Documentation
¶
Index ¶
- func Execute(ctx *component.ExecutionContext, operation Operation) error
- type ComponentProvider
- func (p *ComponentProvider) Execute(ctx *component.ExecutionContext) error
- func (p *ComponentProvider) GenerateArtifacts(_ *component.ExecutionContext) error
- func (p *ComponentProvider) GetAvailableCommands() []string
- func (p *ComponentProvider) GetBasePath(atmosConfig *schema.AtmosConfiguration) string
- func (p *ComponentProvider) GetGroup() string
- func (p *ComponentProvider) GetType() string
- func (p *ComponentProvider) ListComponents(_ context.Context, _ string, stackConfig map[string]any) ([]string, error)
- func (p *ComponentProvider) ValidateComponent(config map[string]any) error
- type Config
- type Operation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ComponentProvider ¶
type ComponentProvider struct{}
ComponentProvider implements the component.ComponentProvider interface for native Helm components.
func (*ComponentProvider) Execute ¶
func (p *ComponentProvider) Execute(ctx *component.ExecutionContext) error
Execute runs the requested subcommand for a Helm component.
func (*ComponentProvider) GenerateArtifacts ¶
func (p *ComponentProvider) GenerateArtifacts(_ *component.ExecutionContext) error
GenerateArtifacts is a no-op for Helm components (charts are self-contained).
func (*ComponentProvider) GetAvailableCommands ¶
func (p *ComponentProvider) GetAvailableCommands() []string
GetAvailableCommands returns the subcommands Helm components support.
func (*ComponentProvider) GetBasePath ¶
func (p *ComponentProvider) GetBasePath(atmosConfig *schema.AtmosConfiguration) string
GetBasePath returns the base directory for Helm components.
func (*ComponentProvider) GetGroup ¶
func (p *ComponentProvider) GetGroup() string
GetGroup returns the component group for categorization.
func (*ComponentProvider) GetType ¶
func (p *ComponentProvider) GetType() string
GetType returns the component type identifier.
func (*ComponentProvider) ListComponents ¶
func (p *ComponentProvider) ListComponents(_ context.Context, _ string, stackConfig map[string]any) ([]string, error)
ListComponents discovers all Helm components in a stack.
func (*ComponentProvider) ValidateComponent ¶
func (p *ComponentProvider) ValidateComponent(config map[string]any) error
ValidateComponent validates Helm component configuration.
type Config ¶
type Config struct {
BasePath string `yaml:"base_path" json:"base_path" mapstructure:"base_path"`
AutoGenerateFiles bool `yaml:"auto_generate_files" json:"auto_generate_files" mapstructure:"auto_generate_files"`
}
Config holds the resolved global configuration for Helm components.
func DefaultConfig ¶
func DefaultConfig() Config
DefaultConfig returns the built-in defaults for Helm components.
type Operation ¶
type Operation string
Operation is a Helm component lifecycle operation.
const ( // OperationTemplate renders chart templates to manifests (no cluster contact). OperationTemplate Operation = "template" // OperationDiff previews the changes an apply would make. OperationDiff Operation = "diff" // OperationApply installs or upgrades the release (or delivers to a target). OperationApply Operation = "apply" // OperationDelete uninstalls the release. OperationDelete Operation = "delete" )