conversion

package
v1.100.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

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

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.

Jump to

Keyboard shortcuts

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