common

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: Apache-2.0 Imports: 22 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

func RealtimePrintCommandOutput added in v0.3.1

func RealtimePrintCommandOutput(cmd *exec.Cmd, logFile string) error

RealtimePrintCommandOutput prints command output in real time If logFile is "", it will prints the stdout, or it will write to local file

Types

This section is empty.

Jump to

Keyboard shortcuts

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