minimart

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2015 License: Apache-2.0 Imports: 19 Imported by: 1

Documentation

Index

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 CookbookFetch struct {
	Name     string
	Version  string
	Cookbook *chef.CookbookVersion
	Error    error
	SkipSSL  bool
	// contains filtered or unexported fields
}

func (*CookbookFetch) Run

func (f *CookbookFetch) Run() (*bytes.Reader, error)

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 NewMinimart(config *Config) *Minimart

func (*Minimart) CreateCookbookVersionTarball

func (c *Minimart) CreateCookbookVersionTarball(name, version string) (*bytes.Reader, error)

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 (c *Minimart) PollForCookbooks(interval time.Duration)

func (*Minimart) StopPollingForCookbooks

func (c *Minimart) StopPollingForCookbooks()

func (*Minimart) Universe

func (c *Minimart) Universe() ([]byte, error)

type ProxyCookbookVersion

type ProxyCookbookVersion struct {
	LocationPath    string                `json:"location_path"`
	LocationType    string                `json:"location_type"`
	Dependencies    map[string]string     `json:"dependencies"`
	CookbookVersion *chef.CookbookVersion `json:"-"`
}

type UniverseHandler

type UniverseHandler struct {
	// contains filtered or unexported fields
}

func (*UniverseHandler) ServeHTTP

func (h *UniverseHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL