Documentation ¶
Index ¶
- Variables
- type Config
- type Fins
- func (f *Fins) ChefServerCookbooks() ServerCookbooks
- func (f *Fins) DiffEnvironments(env1 string, env2 string) int
- func (f *Fins) DiffServer(envName string) int
- func (f *Fins) Environment(name string) (chef.Environment, bool)
- func (f *Fins) LatestSupermarketCookbook(name string) supermarket.Cookbook
- func (f *Fins) LatestSupermarketCookbooks() SupermarketCookbooks
- func (f *Fins) LoadCache()
- func (f *Fins) Outdated() int
- type RemoteCache
- type ServerCookbooks
- type ServerEnvironments
- type SupermarketCookbooks
Constants ¶
This section is empty.
Variables ¶
TODO: Implement caching
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Chef struct { ChefServerUrl string `json:"chef_server_url"` NodeName string `json:"node_name"` ClientKey string `json:"client_key"` Version string `json:"version"` } `json:"chef"` Supermarket struct { Endpoint string `json:"endpoint"` } `json:"supermarket"` SSL struct { Verify bool `json:"verify"` } `json:"ssl"` }
func LoadConfig ¶
Loads the fins json config file and returns a populated Config struct.
type Fins ¶
type Fins struct {
// contains filtered or unexported fields
}
Main data structure for fins, keeps the config, client(s)
func (*Fins) ChefServerCookbooks ¶
func (f *Fins) ChefServerCookbooks() ServerCookbooks
func (*Fins) DiffEnvironments ¶
Displays a diff between two chef environments
func (*Fins) DiffServer ¶
Displays a diff between the chef server and an environment
func (*Fins) Environment ¶
func (f *Fins) Environment(name string) (chef.Environment, bool)
func (*Fins) LatestSupermarketCookbook ¶
func (f *Fins) LatestSupermarketCookbook(name string) supermarket.Cookbook
func (*Fins) LatestSupermarketCookbooks ¶
func (f *Fins) LatestSupermarketCookbooks() SupermarketCookbooks
Returns a map of all latest cookbooks from supermarket that match the name on the chef server
type RemoteCache ¶
type RemoteCache struct {
// contains filtered or unexported fields
}
type ServerCookbooks ¶
type ServerEnvironments ¶
type ServerEnvironments map[string]chef.Environment
type SupermarketCookbooks ¶
type SupermarketCookbooks map[string]supermarket.Cookbook
Directories ¶
Path | Synopsis |
---|---|
Godeps
|
|
_workspace/src/github.com/codegangsta/cli
Package cli provides a minimal framework for creating and organizing command line Go applications.
|
Package cli provides a minimal framework for creating and organizing command line Go applications. |
_workspace/src/github.com/marpaia/chef-golang
This is a Go client for Opscode's Chef.
|
This is a Go client for Opscode's Chef. |
_workspace/src/github.com/op/go-logging
Package logging implements a logging infrastructure for Go.
|
Package logging implements a logging infrastructure for Go. |
pkg
|
|
version
Package version provides a VersionComparison method to make comparing versions easy.
|
Package version provides a VersionComparison method to make comparing versions easy. |
Click to show internal directories.
Click to hide internal directories.