Documentation
¶
Index ¶
- type Chart
- func (chart *Chart) CleanupTemplates() error
- func (chart *Chart) IsEmpty() (bool, error)
- func (chart *Chart) PreprocessorExists(kind string) bool
- func (chart *Chart) ReadDefinitions() (*[]JsonSchema, error)
- func (chart *Chart) WriteDocsResourcesMd(body string) error
- func (chart *Chart) WriteGen() error
- func (chart *Chart) WriteInit() error
- func (chart *Chart) WriteSchema(schema JsonSchema) error
- func (chart *Chart) WriteSchemaFull(schema JsonSchema) error
- func (chart *Chart) WriteSettings(body string) error
- func (chart *Chart) WriteTemplate(name, body string) error
- type ConversionRule
- type JsonSchema
- type ResourceDefinition
- type ResourcesConfig
- type SchemaConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chart ¶
type Chart struct { SchemaConfig SchemaConfig ResourcesConfig ResourcesConfig // contains filtered or unexported fields }
func NewChartEmpty ¶
func (*Chart) CleanupTemplates ¶
func (*Chart) PreprocessorExists ¶
func (*Chart) ReadDefinitions ¶
func (chart *Chart) ReadDefinitions() (*[]JsonSchema, error)
func (*Chart) WriteDocsResourcesMd ¶
func (*Chart) WriteSchema ¶
func (chart *Chart) WriteSchema(schema JsonSchema) error
func (*Chart) WriteSchemaFull ¶
func (chart *Chart) WriteSchemaFull(schema JsonSchema) error
func (*Chart) WriteSettings ¶
func (*Chart) WriteTemplate ¶
type ConversionRule ¶
type ConversionRule struct { Source *string `json:"source"` Target string `json:"target"` Properties *map[string]string `json:"properties,omitempty"` Allowed *[]string `json:"allowed,omitempty"` Disallowed *[]string `json:"disallowed,omitempty"` Required *[]string `json:"required,omitempty"` Related map[string]string `json:"related"` }
type JsonSchema ¶
type ResourceDefinition ¶
type ResourceDefinition struct { Template bool `json:"template"` ApiVersion string `json:"apiVersion"` Kind string `json:"kind"` JsonSchemaRef string `json:"jsonSchemaRef"` Root bool `json:"root"` Defaults bool `json:"defaults"` }
func (*ResourceDefinition) UnmarshalJSON ¶
func (c *ResourceDefinition) UnmarshalJSON(data []byte) error
type ResourcesConfig ¶
type ResourcesConfig struct {
Resources map[string]ResourceDefinition `json:"resources"`
}
type SchemaConfig ¶
type SchemaConfig struct { Definitions []helpers.FilePath `json:"definitions"` Rules []ConversionRule `json:"rules"` }
Click to show internal directories.
Click to hide internal directories.