Documentation ¶
Overview ¶
Package intent contains functions to build the Intent in operation commands. It should only be used in `pkg/cmd`
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppsConfigBuilder ¶
type AppsConfigBuilder struct { Apps map[string]inputs.AppConfiguration Workspace *v1.Workspace }
type Builder ¶
type Builder interface {
Build(o *Options, project *v1.Project, stack *v1.Stack) (*v1.Intent, error)
}
Builder represents a method to build an Intent. Typically, it is implemented by the AppConfigureBuilder, but we have designed it as an interface to allow for more general usage. Any struct that implements this interface is considered a Builder and can be integrated into the Kusion workflow.
type Options ¶
type Options struct { // IsKclPkg represents whether the operation is invoked in a KCL package IsKclPkg bool // WorkDir represent the filesystem path where the operation is invoked WorkDir string // Filenames represent all file names included in this operation Filenames []string // Settings are setting args stored in the setting.yaml Settings []string // Arguments are args used for a specified Builder. All Builder related args should be passed through this field Arguments map[string]string // NoStyle represents whether to turn on the spinner output style NoStyle bool }
Click to show internal directories.
Click to hide internal directories.