components

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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

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

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

Jump to

Keyboard shortcuts

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