Documentation ¶
Index ¶
Constants ¶
View Source
const ( BundleLockKind = "BundleLock" BundleLockAPIVersion = "imgpkg.carvel.dev/v1alpha1" )
View Source
const ( ImagesLockKind = "ImagesLock" ImagesLockAPIVersion = "imgpkg.carvel.dev/v1alpha1" )
Variables ¶
This section is empty.
Functions ¶
func NewLockFromPath ¶
func NewLockFromPath(path string) (*BundleLock, *ImagesLock, error)
Types ¶
type BundleLock ¶
type BundleLock struct { LockVersion Bundle BundleRef `json:"bundle"` // This generated yaml, but due to lib we need to use `json` }
func NewBundleLockFromBytes ¶
func NewBundleLockFromBytes(data []byte) (BundleLock, error)
func NewBundleLockFromPath ¶
func NewBundleLockFromPath(path string) (BundleLock, error)
func (BundleLock) AsBytes ¶
func (b BundleLock) AsBytes() ([]byte, error)
func (BundleLock) Validate ¶
func (b BundleLock) Validate() error
func (BundleLock) WriteToPath ¶
func (b BundleLock) WriteToPath(path string) error
type ImageRef ¶
type ImageRef struct { Image string `json:"image,omitempty"` // This generated yaml, but due to lib we need to use `json` Annotations map[string]string `json:"annotations,omitempty"` // This generated yaml, but due to lib we need to use `json` // contains filtered or unexported fields }
func (*ImageRef) AddLocation ¶
func (*ImageRef) DiscardLocationsExcept ¶
func (*ImageRef) PrimaryLocation ¶
type ImagesLock ¶
type ImagesLock struct { LockVersion Images []ImageRef `json:"images,omitempty"` // This generated yaml, but due to lib we need to use `json` }
func NewEmptyImagesLock ¶
func NewEmptyImagesLock() ImagesLock
func NewImagesLockFromBytes ¶
func NewImagesLockFromBytes(data []byte) (ImagesLock, error)
func NewImagesLockFromPath ¶
func NewImagesLockFromPath(path string) (ImagesLock, error)
func (*ImagesLock) AddImageRef ¶
func (i *ImagesLock) AddImageRef(ref ImageRef)
func (ImagesLock) AsBytes ¶
func (i ImagesLock) AsBytes() ([]byte, error)
func (ImagesLock) Validate ¶
func (i ImagesLock) Validate() error
func (ImagesLock) WriteToPath ¶
func (i ImagesLock) WriteToPath(path string) error
type LockVersion ¶
Click to show internal directories.
Click to hide internal directories.