image

package
v0.0.0-...-d69b078 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2015 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterConfigDecoder

func RegisterConfigDecoder()

RegisterConfigDecoder with the engine.

Types

type Config

type Config struct {
	Name     string `mapstructure:"name" version:"1"`
	Registry string `mapstructure:"registry" version:"1"`
	State    string `mapstructure:"state" version:"1"`
}

Config struct for an Image

func NewConfig

func NewConfig() *Config

NewConfig returns an ImageConfig with defaults

func (*Config) Hash

func (c *Config) Hash() string

Hash returns the unique hash for this config object

func (*Config) Target

func (c *Config) Target() *engine.NameSpace

Target returns the namespace of the target of this config

func (*Config) Version

func (c *Config) Version() int

Version of the config TODO: automate

type ConfigDecoder

type ConfigDecoder struct{}

ConfigDecoder object

func (*ConfigDecoder) DecodeConfig

func (cd *ConfigDecoder) DecodeConfig(data interface{}) (engine.Config, error)

DecodeConfig returns a parsed config object

type Image

type Image struct {
	sync.Mutex
	Name   string
	ID     string
	Config *Config
}

Image represents a docker image

func NewImage

func NewImage(name string) *Image

NewImage returns a new image object

func (*Image) Command

func (i *Image) Command(cmd *engine.Command) error

Command takes a Command object and triggers events

func (*Image) Target

func (i *Image) Target() *engine.NameSpace

Target returns the namespace of the target of this config

type List

type List struct {
	Images []*Image
	// contains filtered or unexported fields
}

List of docker Images we know of

func NewList

func NewList(eng *engine.Engine) *List

NewList returns a new Image List object

func (*List) BuildNewList

func (il *List) BuildNewList() error

BuildNewList (re)creates the internal image list

func (*List) Command

func (il *List) Command(cmd *engine.Command) error

Command takes a Command object and triggers events

Jump to

Keyboard shortcuts

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