Documentation
¶
Index ¶
- Constants
- func DiscoverKubefile(path string) (foundFile string, err error)
- func GetImageExtensionFromAnnotations(annotations map[string]string) (image_v1.ImageExtension, error)
- type Engine
- func (engine *Engine) AddToManifest(name, imageSpec string, opts *options.ManifestAddOpts) error
- func (engine *Engine) Build(opts *options.BuildOptions) (string, error)
- func (engine *Engine) Commit(opts *options.CommitOptions) (string, error)
- func (engine *Engine) Copy(opts *options.CopyOptions) error
- func (engine *Engine) CreateContainer(opts *options.FromOptions) (string, error)
- func (engine *Engine) CreateManifest(name string, opts *options.ManifestCreateOpts) error
- func (engine *Engine) CreateWorkingContainer(opts *options.BuildRootfsOptions) (containerID string, err error)
- func (engine *Engine) DeleteManifests(names []string, opts *options.ManifestDeleteOpts) error
- func (engine *Engine) GetImageAnnotation(opts *options.GetImageAnnoOptions) (map[string]string, error)
- func (engine *Engine) GetSealerImageExtension(opts *options.GetImageAnnoOptions) (image_v1.ImageExtension, error)
- func (engine *Engine) ImageRuntime() *libimage.Runtime
- func (engine *Engine) ImageStore() storage.Store
- func (engine *Engine) Images(opts *options.ImagesOptions) error
- func (engine *Engine) Inspect(opts *options.InspectOptions) error
- func (engine *Engine) InspectManifest(name string, opts *options.ManifestInspectOpts) error
- func (engine *Engine) Load(opts *options.LoadOptions) error
- func (engine *Engine) Login(opts *options.LoginOptions) error
- func (engine *Engine) Logout(opts *options.LogoutOptions) error
- func (engine *Engine) LookupManifest(name string) (*libimage.ManifestList, error)
- func (engine *Engine) Mount(opts *options.MountOptions) ([]options.JSONMount, error)
- func (engine *Engine) Pull(opts *options.PullOptions) error
- func (engine *Engine) Push(opts *options.PushOptions) error
- func (engine *Engine) PushManifest(name, destSpec string, opts *options.PushOptions) error
- func (engine *Engine) RemoveContainer(opts *options.RemoveContainerOptions) error
- func (engine *Engine) RemoveFromManifest(name string, instanceDigest digest.Digest, opts *options.ManifestRemoveOpts) error
- func (engine *Engine) RemoveImage(opts *options.RemoveImageOptions) error
- func (engine *Engine) Save(opts *options.SaveOptions) error
- func (engine *Engine) SystemContext() *types.SystemContext
- func (engine *Engine) Tag(opts *options.TagOptions) error
Constants ¶
View Source
const ( OCIManifestDir = "oci-dir" OCIArchive = "oci-archive" V2s2ManifestDir = "docker-dir" V2s2Archive = "docker-archive" )
TODO find a package to place these flags
Variables ¶
This section is empty.
Functions ¶
func DiscoverKubefile ¶
DiscoverKubefile tries to find a Kubefile within the provided `path`.
func GetImageExtensionFromAnnotations ¶
func GetImageExtensionFromAnnotations(annotations map[string]string) (image_v1.ImageExtension, error)
Types ¶
type Engine ¶
func NewBuildahImageEngine ¶
func NewBuildahImageEngine(configurations options.EngineGlobalConfigurations) (*Engine, error)
func (*Engine) AddToManifest ¶
func (engine *Engine) AddToManifest(name, imageSpec string, opts *options.ManifestAddOpts) error
func (*Engine) Copy ¶
func (engine *Engine) Copy(opts *options.CopyOptions) error
Copy will copy files in the host to the container. this is a basic ability, but not used in sealer now.
func (*Engine) CreateContainer ¶
func (engine *Engine) CreateContainer(opts *options.FromOptions) (string, error)
func (*Engine) CreateManifest ¶
func (engine *Engine) CreateManifest(name string, opts *options.ManifestCreateOpts) error
func (*Engine) CreateWorkingContainer ¶
func (engine *Engine) CreateWorkingContainer(opts *options.BuildRootfsOptions) (containerID string, err error)
CreateWorkingContainer will make a workingContainer with rootfs under /var/lib/containers/storage And then link rootfs to the DestDir And remember to call RemoveContainer to remove the link and remove the container(umount rootfs) manually.
func (*Engine) DeleteManifests ¶
func (engine *Engine) DeleteManifests(names []string, opts *options.ManifestDeleteOpts) error
func (*Engine) GetImageAnnotation ¶
func (*Engine) GetSealerImageExtension ¶
func (engine *Engine) GetSealerImageExtension(opts *options.GetImageAnnoOptions) (image_v1.ImageExtension, error)
func (*Engine) ImageRuntime ¶
func (*Engine) ImageStore ¶
func (*Engine) InspectManifest ¶
func (engine *Engine) InspectManifest(name string, opts *options.ManifestInspectOpts) error
func (*Engine) LookupManifest ¶
func (engine *Engine) LookupManifest(name string) (*libimage.ManifestList, error)
func (*Engine) PushManifest ¶
func (engine *Engine) PushManifest(name, destSpec string, opts *options.PushOptions) error
func (*Engine) RemoveContainer ¶
func (engine *Engine) RemoveContainer(opts *options.RemoveContainerOptions) error
func (*Engine) RemoveFromManifest ¶
func (*Engine) RemoveImage ¶
func (engine *Engine) RemoveImage(opts *options.RemoveImageOptions) error
func (*Engine) SystemContext ¶
func (engine *Engine) SystemContext() *types.SystemContext
Click to show internal directories.
Click to hide internal directories.