types

package
v1.70.3 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2025 License: Apache-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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