Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
chef
✓ github.com/go-chef/chef
Lists all nodes from the Chef server.
package main
import (
"fmt"
"github.com/go-chef/chef"
)
func main() {
client, err := chef.NewClient(&chef.Config{
BaseURL: "https://chef.example.com",
ClientName: "myclient",
Key: "...",
})
if err != nil {
panic(err)
}
nodes, _ := client.Nodes.List()
fmt.Println(nodes)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.30.1latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.