lockconfig

package
v0.42.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 4 Imported by: 2

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 BundleRef

type BundleRef struct {
	Image string `json:"image,omitempty"` // This generated yaml, but due to lib we need to use `json`
	Tag   string `json:"tag,omitempty"`   // This generated yaml, but due to lib we need to use `json`
}

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 (i *ImageRef) AddLocation(location string)

func (ImageRef) DeepCopy

func (i ImageRef) DeepCopy() ImageRef

func (*ImageRef) DiscardLocationsExcept

func (i *ImageRef) DiscardLocationsExcept(viableLocation string) ImageRef

func (ImageRef) Locations

func (i ImageRef) Locations() []string

func (*ImageRef) PrimaryLocation

func (i *ImageRef) PrimaryLocation() string

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

type LockVersion struct {
	APIVersion string `json:"apiVersion"` // This generated yaml, but due to lib we need to use `json`
	Kind       string `json:"kind"`       // This generated yaml, but due to lib we need to use `json`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL