module

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChartConfigFilename  = "Chart.yaml"
	ModuleConfigFilename = "module.yaml"
)
View Source
const (
	DmtDefault      = "x-dmt-default"
	ExamplesDefault = "x-examples"
	ExampleDefault  = "x-example"
	ArrayObject     = "array"
	ObjectKey       = "object"
)

Variables

This section is empty.

Functions

func ComposeValuesFromSchemas

func ComposeValuesFromSchemas(m *Module, globalSchema *spec.Schema) (chartutil.Values, error)

func GetModuleName added in v0.1.10

func GetModuleName(moduleYamlFile *ModuleYaml, chartYamlFile *ChartYaml) string
func IsSymlink(fi os.FileInfo) bool

IsSymlink is used to determine if the fileinfo is a symbolic link.

func LoadModuleAsChart added in v0.0.29

func LoadModuleAsChart(moduleName, dir string) (*chart.Chart, error)

LoadModuleAsChart loads a module as a chart default helm loader couldn't be used without Chart.yaml, but deckhouse module could exist without this file, deckhouse will create it automatically

func RunRender

func RunRender(m *Module, values chartutil.Values, objectStore *storage.UnstructuredObjectStore) error

func ToCamel

func ToCamel(s string) string

ToCamel converts a string to CamelCase

func ToLowerCamel

func ToLowerCamel(s string) string

ToLowerCamel converts a string to lowerCamelCase

func Walk added in v0.0.29

func Walk(root string, walkFn filepath.WalkFunc) error

Walk walks the file tree rooted at root, calling walkFn for each file or directory in the tree, including root. All errors that arise visiting files and directories are filtered by walkFn. The files are walked in lexical order, which makes the output deterministic but means that for very large directories Walk can be inefficient. Walk follows symbolic links.

Types

type ChartYaml added in v0.1.10

type ChartYaml struct {
	Name    string `json:"name"`
	Version string `json:"version"`
}

func ParseChartFile added in v0.1.10

func ParseChartFile(path string) (*ChartYaml, error)

type Module

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

func NewModule

func NewModule(path string, vals *chartutil.Values, globalSchema *spec.Schema) (*Module, error)

func (*Module) GetChart

func (m *Module) GetChart() *chart.Chart

func (*Module) GetMetadata

func (m *Module) GetMetadata() *chart.Metadata

func (*Module) GetModuleConfig added in v0.1.0

func (m *Module) GetModuleConfig() *config.ModuleConfig

func (*Module) GetName

func (m *Module) GetName() string

func (*Module) GetNamespace

func (m *Module) GetNamespace() string

func (*Module) GetObjectStore

func (m *Module) GetObjectStore() *storage.UnstructuredObjectStore

func (*Module) GetPath

func (m *Module) GetPath() string

func (*Module) GetStorage

func (m *Module) GetStorage() map[storage.ResourceIndex]storage.StoreObject

func (*Module) GetWerfFile added in v0.0.29

func (m *Module) GetWerfFile() string

func (*Module) MergeRootConfig added in v0.1.0

func (m *Module) MergeRootConfig(cfg *config.RootConfig)

func (*Module) String

func (m *Module) String() string

type ModuleList

type ModuleList []*Module

type ModuleYaml added in v0.1.10

type ModuleYaml struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
}

func ParseModuleConfigFile added in v0.1.10

func ParseModuleConfigFile(path string) (*ModuleYaml, error)

type OpenAPIValuesGenerator

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

func NewOpenAPIValuesGenerator

func NewOpenAPIValuesGenerator(schema *spec.Schema) *OpenAPIValuesGenerator

func (*OpenAPIValuesGenerator) Do

func (g *OpenAPIValuesGenerator) Do() (map[string]any, error)

Directories

Path Synopsis
Package reggen generates text based on regex definitions based on the reggen library by Lucas Jones https://github.com/lucasjones/reggen/blob/master/reggen.go
Package reggen generates text based on regex definitions based on the reggen library by Lucas Jones https://github.com/lucasjones/reggen/blob/master/reggen.go

Jump to

Keyboard shortcuts

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