Documentation ¶
Index ¶
- type Config
- type CookbookFetch
- type CookbookFetchFile
- type CookbookHandler
- type Minimart
- func (c *Minimart) CreateCookbookVersionTarball(name, version string) (*bytes.Reader, error)
- func (c *Minimart) NewCookbookHandler() *CookbookHandler
- func (c *Minimart) NewCookbookTarballFetch(name, version string, cookbook *chef.CookbookVersion, skipSSL bool) *CookbookFetch
- func (c *Minimart) NewUniverseHandler() *UniverseHandler
- func (c *Minimart) PollForCookbooks(interval time.Duration)
- func (c *Minimart) StopPollingForCookbooks()
- func (c *Minimart) Universe() ([]byte, error)
- type ProxyCookbookVersion
- type UniverseHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // URI to the Chef Server, with protocol and organization path (if required) ChefServer string // Path to the file containing the client PEM ChefPEM string // Name of the Chef client ChefClient string // Base URL to use in the universe endpoint BaseURL string // Disable SSL validation for the Chef server SkipSSL bool }
Config is used to pass configuration options into the NewMinimart() constructor.
type CookbookFetch ¶
type CookbookFetchFile ¶
type CookbookFetchFile struct {
// contains filtered or unexported fields
}
type CookbookHandler ¶
type CookbookHandler struct {
// contains filtered or unexported fields
}
func (*CookbookHandler) ServeHTTP ¶
func (h *CookbookHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type Minimart ¶
type Minimart struct { Config *Config // contains filtered or unexported fields }
func NewMinimart ¶
func (*Minimart) CreateCookbookVersionTarball ¶
func (*Minimart) NewCookbookHandler ¶
func (c *Minimart) NewCookbookHandler() *CookbookHandler
func (*Minimart) NewCookbookTarballFetch ¶
func (c *Minimart) NewCookbookTarballFetch(name, version string, cookbook *chef.CookbookVersion, skipSSL bool) *CookbookFetch
func (*Minimart) NewUniverseHandler ¶
func (c *Minimart) NewUniverseHandler() *UniverseHandler
func (*Minimart) PollForCookbooks ¶
func (*Minimart) StopPollingForCookbooks ¶
func (c *Minimart) StopPollingForCookbooks()
type ProxyCookbookVersion ¶
type UniverseHandler ¶
type UniverseHandler struct {
// contains filtered or unexported fields
}
func (*UniverseHandler) ServeHTTP ¶
func (h *UniverseHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.