Documentation
¶
Index ¶
- Constants
- func ComposeValuesFromSchemas(m *Module) (chartutil.Values, error)
- func GetGlobalValues() (*spec.Schema, error)
- func GetModuleValues(modulePath string) (*spec.Schema, error)
- func IsSymlink(fi os.FileInfo) bool
- func LoadModuleAsChart(moduleName, dir string) (*chart.Chart, error)
- func LoadSchemaFromBytes(openAPIContent []byte) (*spec.Schema, error)
- func RunRender(m *Module, values chartutil.Values, ...) error
- func SplitAt(substring string) func(data []byte, atEOF bool) (advance int, token []byte, err error)
- func ToCamel(s string) string
- func ToLowerCamel(s string) string
- func Walk(root string, walkFn filepath.WalkFunc) error
- func YAMLBytesToJSONDoc(data []byte) (json.RawMessage, error)
- type Module
- func (m *Module) GetChart() *chart.Chart
- func (m *Module) GetMetadata() *chart.Metadata
- func (m *Module) GetModuleConfig() *config.ModuleConfig
- func (m *Module) GetName() string
- func (m *Module) GetNamespace() string
- func (m *Module) GetObjectStore() *storage.UnstructuredObjectStore
- func (m *Module) GetPath() string
- func (m *Module) GetStorage() map[storage.ResourceIndex]storage.StoreObject
- func (m *Module) GetWerfFile() string
- func (m *Module) MergeRootConfig(cfg *config.RootConfig)
- func (m *Module) String() string
- type ModuleList
- type OpenAPIValuesGenerator
- type SchemaType
- type Schemas
Constants ¶
const ( ChartConfigFilename = "Chart.yaml" ModuleConfigFilename = "module.yaml" )
const ( DmtDefault = "x-dmt-default" ExamplesDefault = "x-examples" ExampleDefault = "x-example" ArrayObject = "array" ObjectKey = "object" )
Variables ¶
This section is empty.
Functions ¶
func GetGlobalValues ¶ added in v0.1.8
func GetModuleValues ¶ added in v0.1.8
func IsSymlink ¶ added in v0.0.29
IsSymlink is used to determine if the fileinfo is a symbolic link.
func LoadModuleAsChart ¶ added in v0.0.29
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 LoadSchemaFromBytes ¶ added in v0.1.8
LoadSchemaFromBytes returns spec.Schema object loaded from YAML bytes.
func ToLowerCamel ¶
ToLowerCamel converts a string to lowerCamelCase
func Walk ¶ added in v0.0.29
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.
func YAMLBytesToJSONDoc ¶ added in v0.1.8
func YAMLBytesToJSONDoc(data []byte) (json.RawMessage, error)
YAMLBytesToJSONDoc is a replacement of swag.YAMLData and YAMLDoc to Unmarshal into interface{}. swag.BytesToYAML uses yaml.MapSlice to unmarshal YAML. This type doesn't support map merge of YAML anchors.
Types ¶
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
func (*Module) GetMetadata ¶
func (*Module) GetModuleConfig ¶ added in v0.1.0
func (m *Module) GetModuleConfig() *config.ModuleConfig
func (*Module) GetNamespace ¶
func (*Module) GetObjectStore ¶
func (m *Module) GetObjectStore() *storage.UnstructuredObjectStore
func (*Module) GetStorage ¶
func (m *Module) GetStorage() map[storage.ResourceIndex]storage.StoreObject
func (*Module) GetWerfFile ¶ added in v0.0.29
func (*Module) MergeRootConfig ¶ added in v0.1.0
func (m *Module) MergeRootConfig(cfg *config.RootConfig)
type ModuleList ¶
type ModuleList []*Module
type OpenAPIValuesGenerator ¶
type OpenAPIValuesGenerator struct {
// contains filtered or unexported fields
}
func NewOpenAPIValuesGenerator ¶
func NewOpenAPIValuesGenerator(schema *spec.Schema) *OpenAPIValuesGenerator
type SchemaType ¶ added in v0.1.8
type SchemaType string
const ( GlobalSchema SchemaType = "global" ModuleSchema SchemaType = "module" ConfigValuesSchema SchemaType = "config" ValuesSchema SchemaType = "values" HelmValuesSchema SchemaType = "helm" )
type Schemas ¶ added in v0.1.8
type Schemas map[SchemaType]*spec.Schema
Source Files
¶
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 |