Documentation ¶
Index ¶
- Constants
- func DeleteDirSafely(dir string) (err error)
- type Bundle
- type BundleImage
- type BundleStore
- type ContainerStore
- type LockedBundle
- func (b *LockedBundle) Close() (err error)
- func (b *LockedBundle) Delete() (err error)
- func (b *LockedBundle) Dir() string
- func (b *LockedBundle) ID() string
- func (b *LockedBundle) Image() *digest.Digest
- func (b *LockedBundle) SetParentImageId(imageID *digest.Digest) (err error)
- func (b *LockedBundle) SetSpec(spec *rspecs.Spec) (err error)
- func (b *LockedBundle) Spec() (*rspecs.Spec, error)
- func (b *LockedBundle) UpdateRootfs(image BundleImage) (err error)
- type SpecGenerator
Constants ¶
View Source
const ANNOTATION_BUNDLE_ID = "com.github.mgoltzsche.ctnr.bundle.id"
Variables ¶
This section is empty.
Functions ¶
func DeleteDirSafely ¶
Types ¶
type Bundle ¶
type Bundle struct {
// contains filtered or unexported fields
}
func (*Bundle) Lock ¶
func (b *Bundle) Lock() (lb *LockedBundle, err error)
type BundleImage ¶
type BundleStore ¶
type ContainerStore ¶
type LockedBundle ¶
type LockedBundle struct {
// contains filtered or unexported fields
}
func CreateLockedBundle ¶
func CreateLockedBundle(dir string, update bool) (r *LockedBundle, err error)
func OpenLockedBundle ¶
func OpenLockedBundle(bundle Bundle) (*LockedBundle, error)
func (*LockedBundle) Close ¶
func (b *LockedBundle) Close() (err error)
func (*LockedBundle) Delete ¶
func (b *LockedBundle) Delete() (err error)
func (*LockedBundle) Dir ¶
func (b *LockedBundle) Dir() string
func (*LockedBundle) ID ¶
func (b *LockedBundle) ID() string
func (*LockedBundle) Image ¶
func (b *LockedBundle) Image() *digest.Digest
Returns the bundle's image ID
func (*LockedBundle) SetParentImageId ¶
func (b *LockedBundle) SetParentImageId(imageID *digest.Digest) (err error)
func (*LockedBundle) UpdateRootfs ¶
func (b *LockedBundle) UpdateRootfs(image BundleImage) (err error)
Updates the rootfs if the image changed
Click to show internal directories.
Click to hide internal directories.