module

package
v0.0.29 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ChartConfigFilename  = "Chart.yaml"
	ModuleConfigFilename = "module.yaml"
)
View Source
const (
	ExamplesKey = "x-examples"
	ArrayObject = "array"
	ObjectKey   = "object"
)

Variables

This section is empty.

Functions

func ComposeValuesFromSchemas

func ComposeValuesFromSchemas(m *Module) (chartutil.Values, error)
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 SplitAt

func SplitAt(substring string) func(data []byte, atEOF bool) (advance int, token []byte, err 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 Module

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

func NewModule

func NewModule(path string) (*Module, error)

func (*Module) GetChart

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

func (*Module) GetMetadata

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

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) String

func (m *Module) String() string

type ModuleList

type ModuleList []*Module

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