schema

package
v0.0.0-...-6cdb919 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClusterIDKey    string = "clusterID"
	ResourceTypeKey string = "resourceType"
)

params

Variables

This section is empty.

Functions

func RenderFiles

func RenderFiles(params map[string]string, files ...[]byte) (retFiles [][]byte, _ error)

Types

type Getter

type Getter interface {
	// GetTemplateSchema get schema for specified template release. todo(gjq) add cache
	GetTemplateSchema(ctx context.Context, templateName, releaseName string, params map[string]string) (*Schemas, error)
}

Getter provides some functions for template schema nolint

type Schema

type Schema struct {
	JSONSchema map[string]interface{}
	UISchema   map[string]interface{}
}

type Schemas

type Schemas struct {
	Application *Schema
	Pipeline    *Schema
}

func ParseFiles

func ParseFiles(params map[string]string,
	pipelineSchemaBytes, applicationSchemaBytes,
	pipelineUISchemaBytes, applicationUISchemaBytes []byte,
) (*Schemas, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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