Documentation
¶
Index ¶
- Variables
- type Binary
- type Blob
- type Container
- func (c *Container) AddBinary(fnames []string) error
- func (c *Container) Copy(names ...string) error
- func (c *Container) Save(dirname string) error
- func (c *Container) SetHealthcheck(cmd []string, interval, timeout, start *time.Duration, retries int) error
- func (c *Container) SetHealthcheckFromArg(arg string) error
- func (c *Container) SetLabels(labels ...string) error
- func (c *Container) WriteBlobs(dirname string) error
- func (c *Container) WriteIndex(dirname string) error
- func (c *Container) WriteLayout(dirname string) error
- type HealthcheckConfig
- type Image
- type ImageConfig
- type Layer
- type TarItem
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidCopyName = errors.New("invalid copy name (format: <file>[:<destination>])") ErrorInvalidLabelFormat = errors.New("invalid label (format: <key>=<value>)") )
Functions ¶
This section is empty.
Types ¶
type Binary ¶
type Binary struct {
Platform ocischemav1.Platform
File string
}
type Container ¶
type Container struct {
Blobs []Blob
Layout ocischemav1.ImageLayout
Index ocischemav1.Index
Labels map[string]string
Healthcheck *HealthcheckConfig
}
func (*Container) SetHealthcheck ¶ added in v1.0.4
func (*Container) SetHealthcheckFromArg ¶ added in v1.0.4
func (*Container) WriteBlobs ¶
func (*Container) WriteIndex ¶
func (*Container) WriteLayout ¶
type HealthcheckConfig ¶ added in v1.0.4
type Image ¶ added in v1.0.4
type Image struct {
Created *time.Time `json:"created,omitempty"`
Author string `json:"author,omitempty"`
Architecture string `json:"architecture"`
OS string `json:"os"`
Config ImageConfig `json:"config,omitempty"`
RootFS ocischemav1.RootFS `json:"rootfs"`
History []ocischemav1.History `json:"history,omitempty"`
}
Image is copied from ocischemav1 (except the Config)
type ImageConfig ¶ added in v1.0.4
type ImageConfig struct {
// ImageConfig defines the execution parameters which should be used as a base
// when running a container using an image.
Entrypoint []string `json:"Entrypoint,omitempty"`
WorkingDir string `json:"WorkingDir,omitempty"`
Healthcheck *HealthcheckConfig `json:"Healthcheck,omitempty"`
Volumes map[string]struct{} `json:"Volumes,omitempty"`
Labels map[string]string `json:"Labels,omitempty"`
}
ImageConfig is copied from ocischemav1.ImageConfig, only selecting used item and adding:
- healthcheck
Click to show internal directories.
Click to hide internal directories.