Documentation
¶
Index ¶
- Variables
- type Image
- func (i *Image) AddAnnotation(name, value string) error
- func (i *Image) AddEnv(name, value string) error
- func (i *Image) AddLabel(name, value string) error
- func (i *Image) AddMount(name, path string, readOnly bool) error
- func (i *Image) AddPort(name, protocol string, port, count uint, socketActivated bool) error
- func (i *Image) GetAnnotations() (map[string]string, error)
- func (i *Image) GetConfig() ociImage.Image
- func (i *Image) GetDiffIDs() []string
- func (i *Image) GetLayerDigests() []string
- func (i *Image) GetManifest() ociImage.Manifest
- func (i *Image) GetRef() ociImage.Descriptor
- func (i *Image) NewTopLayer(digestAlgo, layerDigest, diffId string, size int64) error
- func (i *Image) Print(w io.Writer, prettyPrint, printConfig bool) error
- func (i *Image) RemoveAnnotation(name string) error
- func (i *Image) RemoveEnv(name string) error
- func (i *Image) RemoveLabel(name string) error
- func (i *Image) RemoveMount(mount string) error
- func (i *Image) RemovePort(port string) error
- func (i *Image) Replace(configPath string) error
- func (i *Image) SetExec(cmd []string) error
- func (i *Image) SetGroup(group string) error
- func (i *Image) SetTag(tag string) error
- func (i *Image) SetUser(user string) error
- func (i *Image) SetWorkingDir(dir string) error
- func (i *Image) UpdateTopLayer(digestAlgo, layerDigest, diffId string, size int64) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotFound is returned when acbuild is asked to remove an element from a // list and the element is not present in the list ErrNotFound = fmt.Errorf("element to be removed does not exist in this image") )
Functions ¶
This section is empty.
Types ¶
type Image ¶
type Image struct {
// contains filtered or unexported fields
}
Manifest is a struct with an open handle to a manifest that it can manipulate
func (*Image) AddAnnotation ¶
func (*Image) GetDiffIDs ¶
func (*Image) GetLayerDigests ¶
func (*Image) GetManifest ¶
func (*Image) GetRef ¶
func (i *Image) GetRef() ociImage.Descriptor
func (*Image) NewTopLayer ¶
func (*Image) RemoveAnnotation ¶
func (*Image) RemoveLabel ¶
func (*Image) RemoveMount ¶
func (*Image) RemovePort ¶
func (*Image) Replace ¶
Replace will replace the config in the expanded OCI image stored at a.CurrentImagePath with the new config stored at configPath
func (*Image) SetExec ¶
SetExec sets the exec command for the untarred ACI stored at a.CurrentImagePath.
func (*Image) SetGroup ¶
SetGroup will set the user (group name or GID) the app in this container will run as
func (*Image) SetUser ¶
SetUser will set the user (username or UID) the app in this container will run as
func (*Image) SetWorkingDir ¶
SetWorkingDir sets the WorkingDir value in the OCI's config
Click to show internal directories.
Click to hide internal directories.