models

package
v1.65.5 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type DeckhouseModule

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

func NewDeckhouseModule

func NewDeckhouseModule(def DeckhouseModuleDefinition, staticValues utils.Values, configBytes, valuesBytes []byte) (*DeckhouseModule, error)

func (DeckhouseModule) AsKubeObject

func (dm DeckhouseModule) AsKubeObject(source string) *v1alpha1.Module

func (DeckhouseModule) GetBasicModule

func (dm DeckhouseModule) GetBasicModule() *modules.BasicModule

func (DeckhouseModule) GetConfirmationReason added in v1.65.0

func (dm DeckhouseModule) GetConfirmationReason() (string, bool)

type DeckhouseModuleDefinition

type DeckhouseModuleDefinition struct {
	Name         string            `yaml:"name"`
	Weight       uint32            `yaml:"weight,omitempty"`
	Tags         []string          `yaml:"tags"`
	Stage        string            `yaml:"stage"`
	Description  string            `yaml:"description"`
	Requirements map[string]string `json:"requirements"`

	DisableOptions DisableOptions `yaml:"disable"`

	Path string `yaml:"-"`
}

type DisableOptions added in v1.65.0

type DisableOptions struct {
	Confirmation bool   `yaml:"confirmation"`
	Message      string `yaml:"message"`
}

Jump to

Keyboard shortcuts

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