builders

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

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
}

func (*AppsConfigBuilder) Build

func (acg *AppsConfigBuilder) Build(
	_ *Options,
	project *project.Project,
	stack *stack.Stack,
) (*intent.Intent, error)

type Builder

type Builder interface {
	Build(o *Options, project *project.Project, stack *stack.Stack) (*intent.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
}

Directories

Path Synopsis
kcl

Jump to

Keyboard shortcuts

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