
Product
Introducing Scala and Kotlin Support in Socket
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
github.com/mapuri/vagrantssh
godoc is here
Use this library to do remote testing of vagrant nodes.
For example, this will select the "mynode" node and run "ls" on it.
vagrant := &Vagrant{}
vagrant.Setup(false, "", 3) // 3 node cluster, do not run `vagrant up`.
out, err := vagrant.GetNode("mynode").RunCommandWithOutput("ls")
if err != nil {
// exit status != 0
panic(err)
}
fmt.Println(out) // already a string
If you want to walk nodes, you have a few options:
Sequentially:
vagrant := &vagrantssh.Vagrant{}
vagrant.Setup(false, "", 3)
for _, node := range vagrant.GetNodes() {
node.RunCommand("something")
}
In Parallel:
vagrant := &vagrantssh.Vagrant{}
vagrant.Setup(false, "", 3)
err := vagrant.IterateNodes(func (node vagrantssh.TestbedNode) error {
return node.RunCommand("docker ps -aq | xargs docker rm")
})
if err != nil {
// one or more nodes failed
panic(err)
}
Copyright 2014 Cisco Systems Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Application Security
/Security News
Socket CEO Feross Aboukhadijeh and a16z partner Joel de la Garza discuss vibe coding, AI-driven software development, and how the rise of LLMs, despite their risks, still points toward a more secure and innovative future.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.