common

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: Apache-2.0 Imports: 20 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Scheme defines the default KubeVela schema
	Scheme = k8sruntime.NewScheme()
)

Functions

func GenOpenAPI added in v0.3.0

func GenOpenAPI(inst *cue.Instance) ([]byte, error)

GenOpenAPI generates OpenAPI json schema from cue.Instance

func GenOpenAPIFromFile added in v0.3.0

func GenOpenAPIFromFile(filePath string, fileName string) ([]byte, error)

GenOpenAPIFromFile generates OpenAPI json schema from cue file

func GetCUEParameterValue added in v0.3.0

func GetCUEParameterValue(cueStr string) (cue.Value, error)

GetCUEParameterValue converts definitions to cue format

func HTTPGet added in v0.2.0

func HTTPGet(ctx context.Context, url string) ([]byte, error)

HTTPGet will send GET http request with context

func InitBaseRestConfig

func InitBaseRestConfig() (types.Args, error)

InitBaseRestConfig will return reset config for create controller runtime client

Types

This section is empty.

Jump to

Keyboard shortcuts

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