types

package
v1.71.9 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefinitionFile = "module.yaml"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Definition

type Definition struct {
	Name           string   `json:"name" yaml:"name"`
	Weight         uint32   `json:"weight,omitempty" yaml:"weight,omitempty"`
	Tags           []string `json:"tags,omitempty" yaml:"tags,omitempty"`
	Subsystems     []string `json:"subsystems,omitempty" yaml:"subsystems,omitempty"`
	Namespace      string   `json:"namespace,omitempty" yaml:"namespace,omitempty"`
	Stage          string   `json:"stage,omitempty" yaml:"stage,omitempty"`
	ExclusiveGroup string   `json:"exclusiveGroup,omitempty" yaml:"exclusiveGroup,omitempty"`

	Descriptions *ModuleDescriptions          `json:"descriptions,omitempty" yaml:"descriptions,omitempty"`
	Requirements *v1alpha1.ModuleRequirements `json:"requirements,omitempty" yaml:"requirements,omitempty"`

	DisableOptions *v1alpha1.ModuleDisableOptions `json:"disable,omitempty" yaml:"disable,omitempty"`
	Path           string                         `yaml:"-"`
}

func (*Definition) Annotations added in v1.69.0

func (d *Definition) Annotations() map[string]string

func (*Definition) Labels added in v1.69.0

func (d *Definition) Labels() map[string]string

func (*Definition) Validate

func (d *Definition) Validate(values addonutils.Values, logger *log.Logger) error

type Module

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

func NewModule

func NewModule(def *Definition, staticValues utils.Values, configBytes, valuesBytes []byte, logger *log.Logger) (*Module, error)

func (*Module) GetBasicModule

func (m *Module) GetBasicModule() *modules.BasicModule

func (*Module) GetConfirmationDisableReason

func (m *Module) GetConfirmationDisableReason() (string, bool)

func (*Module) GetModuleDefenition added in v1.70.0

func (m *Module) GetModuleDefenition() *Definition

func (*Module) GetModuleExclusiveGroup added in v1.70.0

func (m *Module) GetModuleExclusiveGroup() *string

type ModuleDescriptions added in v1.69.0

type ModuleDescriptions struct {
	Ru string `json:"ru,omitempty" yaml:"ru,omitempty"`
	En string `json:"en,omitempty" yaml:"en,omitempty"`
}

Jump to

Keyboard shortcuts

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