Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Converter ¶
type Converter struct { SchemaLoader dclschemaloader.DCLSchemaLoader MetadataLoader dclmetadata.ServiceMetadataLoader }
A Converter knows how to convert between KRM and DCL format.
func New ¶
func New(schemaLoader dclschemaloader.DCLSchemaLoader, metadataLoader dclmetadata.ServiceMetadataLoader) *Converter
New returns a Converter.
func (*Converter) DCLObjectToKRMObject ¶
func (c *Converter) DCLObjectToKRMObject(resource *dclunstruct.Resource) (*unstructured.Unstructured, error)
DCLObjectToKRMObject converts the given DCL resource to a KCC Lite KRM resource.
func (*Converter) KRMObjectToDCLObject ¶
func (c *Converter) KRMObjectToDCLObject(obj *unstructured.Unstructured) (*dclunstruct.Resource, error)
KRMObjectToDCLObject converts the given KCC Lite KRM resource to a DCL resource.
Click to show internal directories.
Click to hide internal directories.