buildconfigs

package
v0.0.0-...-a1c5d04 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StdIn                     = "-"
	FetchContentAnnotationKey = "fetch-content-from"
	AppBuildFileName          = "app-build.yml"
)
View Source
const (
	PkgBuildFileName = "package-build.yml"
)

Variables

This section is empty.

Functions

func ConfigureExportSection

func ConfigureExportSection(buildConfig Build, isLocal bool, vendirSyncDirectory string)

func NewDefaultAppTemplateSpec

func NewDefaultAppTemplateSpec() *v1alpha1.AppTemplateSpec

Types

type AppBuild

type AppBuild struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec Spec `json:"spec,omitempty"`
}

func NewAppBuild

func NewAppBuild() (*AppBuild, error)

func NewAppBuildFromFile

func NewAppBuildFromFile(filePath string) (*AppBuild, error)

func NewDefaultAppBuild

func NewDefaultAppBuild() *AppBuild

func (*AppBuild) GetAppSpec

func (b *AppBuild) GetAppSpec() *kcv1alpha1.AppSpec

func (*AppBuild) GetExport

func (b *AppBuild) GetExport() []Export

func (*AppBuild) GetObjectMeta

func (b *AppBuild) GetObjectMeta() *metav1.ObjectMeta

func (*AppBuild) HasHelmTemplate

func (b *AppBuild) HasHelmTemplate() bool

func (*AppBuild) InitializeOrKeepDeploySection

func (b *AppBuild) InitializeOrKeepDeploySection()

func (*AppBuild) Save

func (b *AppBuild) Save() error

Save will persist the appBuild onto the fileSystem. Before saving, it will remove the Annotations from the AppBuild.

func (*AppBuild) SetAppSpec

func (b *AppBuild) SetAppSpec(appSpec *kcv1alpha1.AppSpec)

func (*AppBuild) SetExport

func (b *AppBuild) SetExport(exportObj *[]Export)

func (*AppBuild) SetObjectMeta

func (b *AppBuild) SetObjectMeta(metaObj *metav1.ObjectMeta)

type Build

type Build interface {
	Save() error
	GetAppSpec() *kcv1alpha1.AppSpec
	SetAppSpec(*kcv1alpha1.AppSpec)
	GetObjectMeta() *metav1.ObjectMeta
	SetObjectMeta(*metav1.ObjectMeta)
	SetExport(export *[]Export)
	GetExport() []Export
	HasHelmTemplate() bool
	InitializeOrKeepDeploySection()
}

type Export

type Export struct {
	ImgpkgBundle *ImgpkgBundle `json:"imgpkgBundle,omitempty"`
	IncludePaths []string      `json:"includePaths,omitempty"`
}

type ImgpkgBundle

type ImgpkgBundle struct {
	Image             string `json:"image,omitempty"`
	UseKbldImagesLock bool   `json:"useKbldImagesLock,omitempty"`
}

type PackageBuild

type PackageBuild struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Spec              PackageBuildSpec `json:"spec,omitempty"`
}

func NewPackageBuildFromFile

func NewPackageBuildFromFile(filePath string) (*PackageBuild, error)

func (*PackageBuild) GetAppSpec

func (b *PackageBuild) GetAppSpec() *kcv1alpha1.AppSpec

func (*PackageBuild) GetExport

func (b *PackageBuild) GetExport() []Export

func (*PackageBuild) GetObjectMeta

func (b *PackageBuild) GetObjectMeta() *metav1.ObjectMeta

func (*PackageBuild) HasHelmTemplate

func (b *PackageBuild) HasHelmTemplate() bool

func (*PackageBuild) InitializeOrKeepDeploySection

func (b *PackageBuild) InitializeOrKeepDeploySection()

func (*PackageBuild) Save

func (b *PackageBuild) Save() error

func (*PackageBuild) SetAppSpec

func (b *PackageBuild) SetAppSpec(appSpec *kcv1alpha1.AppSpec)

func (*PackageBuild) SetExport

func (b *PackageBuild) SetExport(exportObj *[]Export)

func (*PackageBuild) SetObjectMeta

func (b *PackageBuild) SetObjectMeta(metaObj *metav1.ObjectMeta)

type PackageBuildSpec

type PackageBuildSpec struct {
	Template Template  `json:"template,omitempty"`
	Release  []Release `json:"release,omitempty"`
}

type Release

type Release struct {
	Resource *ReleaseResource `json:"resource,omitempty"`
	YAML     *ReleaseYAML     `json:"yaml,omitempty"`
}

type ReleaseResource

type ReleaseResource struct {
}

type ReleaseYAML

type ReleaseYAML struct {
}

type Spec

type Spec struct {
	Export  []Export                  `json:"export,omitempty"`
	App     *v1alpha1.AppTemplateSpec `json:"app,omitempty"`
	Release []Release                 `json:"release,omitempty"`
}

type Template

type Template struct {
	Spec Spec `json:"spec"`
}

Jump to

Keyboard shortcuts

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