Documentation ¶
Index ¶
- Constants
- Variables
- func NewBlueprintsCommand(ctx context.Context) *cobra.Command
- func NewGetCommand(ctx context.Context) *cobra.Command
- func NewPushCommand(ctx context.Context) *cobra.Command
- func NewRenderCommand(ctx context.Context) *cobra.Command
- func NewValidationCommand(_ context.Context) *cobra.Command
- type Imports
- type RenderOptions
- type SimulatorCallbacks
- func (c SimulatorCallbacks) OnDeployItem(installationPath string, deployItem *lsv1alpha1.DeployItem)
- func (c SimulatorCallbacks) OnDeployItemTemplateState(installationPath string, state map[string][]byte)
- func (c SimulatorCallbacks) OnExports(installationPath string, exports map[string]interface{})
- func (c SimulatorCallbacks) OnImports(installationPath string, imports map[string]interface{})
- func (c SimulatorCallbacks) OnInstallation(installationPath string, installation *lsv1alpha1.Installation)
- func (c SimulatorCallbacks) OnInstallationTemplateState(installationPath string, state map[string][]byte)
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 ¶
NewBlueprintsCommand creates a new blueprints command.
func NewGetCommand ¶
NewGetCommand shows definitions and their configuration.
func NewPushCommand ¶
NewPushCommand creates a new blueprint command to push blueprints
func NewRenderCommand ¶
NewRenderCommand creates a new local command to render a blueprint instance locally
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)
Click to show internal directories.
Click to hide internal directories.