blueprints

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OutputResourceDeployItems      = "deployitems"
	OutputResourceSubinstallations = "subinstallations"
	OutputResourceImports          = "imports"
	OutputResourceExports          = "exports"
)
View Source
const (
	JSONOut = "json"
	YAMLOut = "yaml"
)
View Source
const DeployItemOutputDir = "deployitems"
View Source
const SubinstallationOutputDir = "subinstallations"

Variables

View Source
var (
	OutputResourceAllTerms              = sets.NewString("all")
	OutputResourceDeployItemsTerms      = sets.NewString(OutputResourceDeployItems, "di")
	OutputResourceSubinstallationsTerms = sets.NewString(OutputResourceSubinstallations, "subinst", "inst")
)

Functions

func NewBlueprintsCommand

func NewBlueprintsCommand(ctx context.Context) *cobra.Command

NewBlueprintsCommand creates a new blueprints command.

func NewGetCommand

func NewGetCommand(ctx context.Context) *cobra.Command

NewGetCommand shows definitions and their configuration.

func NewPushCommand

func NewPushCommand(ctx context.Context) *cobra.Command

NewPushCommand creates a new blueprint command to push blueprints

func NewRenderCommand

func NewRenderCommand(ctx context.Context) *cobra.Command

NewRenderCommand creates a new local command to render a blueprint instance locally

func NewValidationCommand

func NewValidationCommand(_ context.Context) *cobra.Command

NewValidationCommand creates a new blueprint command to validate blueprints.

Types

type Imports added in v0.18.0

type Imports struct {
	Imports map[string]interface{} `json:"imports"`
}

type RenderOptions added in v0.3.0

type RenderOptions struct {
	// BlueprintPath is the path to the directory containing the definition.
	BlueprintPath string
	// ComponentDescriptorPath is the path to the component descriptor to be used
	ComponentDescriptorPath string
	// AdditionalComponentDescriptorPath is the path to the component descriptor to be used
	AdditionalComponentDescriptorPath []string
	// ResourcesPath is the path to the resources yaml file
	ResourcesPath string
	// ExportTemplatesPath is the path to the export templates yaml file
	ExportTemplatesPath string
	// ValueFiles is a list of file paths to value yaml files.
	ValueFiles []string
	// OutputFormat defines the format of the output
	OutputFormat string
	// OutDir is the directory where the rendered should be written to.
	OutDir string

	OCIOptions ociclientopts.Options
	// contains filtered or unexported fields
}

RenderOptions describes the options for the render command.

func (*RenderOptions) AddFlags added in v0.3.0

func (o *RenderOptions) AddFlags(fs *pflag.FlagSet)

func (*RenderOptions) Complete added in v0.3.0

func (o *RenderOptions) Complete(log logr.Logger, args []string, fs vfs.FileSystem) error

func (*RenderOptions) Run added in v0.3.0

func (o *RenderOptions) Run(ctx context.Context, log logr.Logger, fs vfs.FileSystem) error

func (*RenderOptions) Validate added in v0.3.0

func (o *RenderOptions) Validate() error

Validate validates push options

type SimulatorCallbacks added in v0.18.0

type SimulatorCallbacks struct {
	// contains filtered or unexported fields
}

func (SimulatorCallbacks) OnDeployItem added in v0.18.0

func (c SimulatorCallbacks) OnDeployItem(installationPath string, deployItem *lsv1alpha1.DeployItem)

func (SimulatorCallbacks) OnDeployItemTemplateState added in v0.18.0

func (c SimulatorCallbacks) OnDeployItemTemplateState(installationPath string, state map[string][]byte)

func (SimulatorCallbacks) OnExports added in v0.18.0

func (c SimulatorCallbacks) OnExports(installationPath string, exports map[string]interface{})

func (SimulatorCallbacks) OnImports added in v0.18.0

func (c SimulatorCallbacks) OnImports(installationPath string, imports map[string]interface{})

func (SimulatorCallbacks) OnInstallation added in v0.18.0

func (c SimulatorCallbacks) OnInstallation(installationPath string, installation *lsv1alpha1.Installation)

func (SimulatorCallbacks) OnInstallationTemplateState added in v0.18.0

func (c SimulatorCallbacks) OnInstallationTemplateState(installationPath string, state map[string][]byte)

Jump to

Keyboard shortcuts

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