Documentation
¶
Index ¶
- Constants
- type Bundle
- type BundleBuilder
- type BundleImage
- type BundleStore
- 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(specgen SpecGenerator) (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.cntnr.bundle.id"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bundle ¶
type Bundle struct {
// contains filtered or unexported fields
}
func (*Bundle) Lock ¶
func (b *Bundle) Lock() (*LockedBundle, error)
type BundleBuilder ¶
type BundleBuilder struct { *generate.SpecBuilder // contains filtered or unexported fields }
func Builder ¶
func Builder(id string) *BundleBuilder
func BuilderFromImage ¶
func BuilderFromImage(id string, image BundleImage) (b *BundleBuilder, err error)
func FromSpec ¶
func FromSpec(spec *generate.SpecBuilder) *BundleBuilder
func (*BundleBuilder) Build ¶
func (b *BundleBuilder) Build(dir string, update bool) (*LockedBundle, error)
func (*BundleBuilder) GetID ¶
func (b *BundleBuilder) GetID() string
func (*BundleBuilder) SetID ¶
func (b *BundleBuilder) SetID(id string)
type BundleImage ¶
type BundleStore ¶
type LockedBundle ¶
type LockedBundle struct {
// contains filtered or unexported fields
}
func CreateLockedBundle ¶
func CreateLockedBundle(dir string, spec SpecGenerator, image BundleImage, 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
Reads image ID from cached spec
func (*LockedBundle) SetParentImageId ¶
func (b *LockedBundle) SetParentImageId(imageID *digest.Digest) (err error)
func (*LockedBundle) SetSpec ¶
func (b *LockedBundle) SetSpec(specgen SpecGenerator) (err error)
func (*LockedBundle) UpdateRootfs ¶
func (b *LockedBundle) UpdateRootfs(image BundleImage) (err error)
Click to show internal directories.
Click to hide internal directories.