Documentation ¶
Index ¶
- type ComponentDescriptorReader
- type ComponentDescriptorWriter
- type ParameterDefinitionParser
- func (p *ParameterDefinitionParser) ParseExportDefinition(paramDef string) (*v1alpha1.ExportDefinition, error)
- func (p *ParameterDefinitionParser) ParseExportDefinitions(exportParams *[]string) (exportDefinitions map[string]*v1alpha1.ExportDefinition, err error)
- func (p *ParameterDefinitionParser) ParseFieldValueDefinition(paramDef string) (*v1alpha1.FieldValueDefinition, error)
- func (p *ParameterDefinitionParser) ParseImportDefinition(paramDef string) (*v1alpha1.ImportDefinition, error)
- func (p *ParameterDefinitionParser) ParseImportDefinitions(importParams *[]string) (importDefinitions map[string]*v1alpha1.ImportDefinition, err error)
- type ResourceReader
- type ResourceWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComponentDescriptorReader ¶
type ComponentDescriptorReader struct {
// contains filtered or unexported fields
}
func NewComponentDescriptorReader ¶
func NewComponentDescriptorReader(componentPath string) *ComponentDescriptorReader
func (*ComponentDescriptorReader) Read ¶
func (r *ComponentDescriptorReader) Read() (*cd.ComponentDescriptor, error)
type ComponentDescriptorWriter ¶
type ComponentDescriptorWriter struct {
// contains filtered or unexported fields
}
func NewComponentDescriptorWriter ¶
func NewComponentDescriptorWriter(componentPath string) *ComponentDescriptorWriter
func (*ComponentDescriptorWriter) Write ¶
func (w *ComponentDescriptorWriter) Write(componentDescriptor *cd.ComponentDescriptor) error
type ParameterDefinitionParser ¶ added in v0.3.0
type ParameterDefinitionParser struct{}
func (*ParameterDefinitionParser) ParseExportDefinition ¶ added in v0.3.0
func (p *ParameterDefinitionParser) ParseExportDefinition(paramDef string) (*v1alpha1.ExportDefinition, error)
func (*ParameterDefinitionParser) ParseExportDefinitions ¶ added in v0.3.0
func (p *ParameterDefinitionParser) ParseExportDefinitions(exportParams *[]string) (exportDefinitions map[string]*v1alpha1.ExportDefinition, err error)
func (*ParameterDefinitionParser) ParseFieldValueDefinition ¶ added in v0.3.0
func (p *ParameterDefinitionParser) ParseFieldValueDefinition(paramDef string) (*v1alpha1.FieldValueDefinition, error)
func (*ParameterDefinitionParser) ParseImportDefinition ¶ added in v0.3.0
func (p *ParameterDefinitionParser) ParseImportDefinition(paramDef string) (*v1alpha1.ImportDefinition, error)
ParseImportDefinition creates a new ImportDefinition from a given parameter definition string. The parameter definition string must have the format "name:type", for example "replicas:integer". The supported types are: string, boolean, integer
func (*ParameterDefinitionParser) ParseImportDefinitions ¶ added in v0.3.0
func (p *ParameterDefinitionParser) ParseImportDefinitions(importParams *[]string) (importDefinitions map[string]*v1alpha1.ImportDefinition, err error)
type ResourceReader ¶
type ResourceReader struct {
// contains filtered or unexported fields
}
func NewResourceReader ¶
func NewResourceReader(resourcesFilePath string) *ResourceReader
func (*ResourceReader) Read ¶
func (r *ResourceReader) Read() ([]cdresources.ResourceOptions, error)
type ResourceWriter ¶
type ResourceWriter struct {
// contains filtered or unexported fields
}
func NewResourceWriter ¶
func NewResourceWriter(componentPath string) *ResourceWriter
func (*ResourceWriter) Write ¶
func (w *ResourceWriter) Write(resourceOptions []cdresources.ResourceOptions) error
Click to show internal directories.
Click to hide internal directories.