converter

package
v0.8.26 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Error codes for Helm Converter
	ErrLoadPatternCode = "meshkit-11315"
	ErrConvertK8sCode  = "meshkit-11316"
	ErrCreateChartCode = "meshkit-11317"
	ErrHelmPackageCode = "meshkit-11318"
)

Functions

func CreateK8sResourceStructure

func CreateK8sResourceStructure(comp *component.ComponentDefinition) map[string]interface{}

func ErrConvertK8s added in v0.8.26

func ErrConvertK8s(err error) error

ErrConvertK8s returns error for failing to convert to K8s

func ErrCreateHelmChart added in v0.8.26

func ErrCreateHelmChart(err error, operation string) error

ErrCreateHelmChart returns error for failing to create Helm chart

func ErrHelmPackage added in v0.8.26

func ErrHelmPackage(err error) error

ErrHelmPackage returns error for failing to package Helm chart

func ErrLoadPattern added in v0.8.26

func ErrLoadPattern(err error, patternFile string) error

ErrLoadPattern returns error for failing to load pattern file

func NewK8sManifestsFromPatternfile

func NewK8sManifestsFromPatternfile(patternFile *pattern.PatternFile) (string, error)

Types

type HelmConverter added in v0.8.26

type HelmConverter struct{}

func (*HelmConverter) Convert added in v0.8.26

func (h *HelmConverter) Convert(patternFile string) (string, error)

type K8sConverter

type K8sConverter struct{}

func (*K8sConverter) Convert

func (k *K8sConverter) Convert(patternFile string) (string, error)

Jump to

Keyboard shortcuts

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