Documentation ¶
Index ¶
- Variables
- func AskToChooseOneService(svcNames []string) (string, error)
- func GenOpenAPI(inst *cue.Instance) ([]byte, error)
- func GenerateUnstructuredObj(name, ns string, gvk schema.GroupVersionKind) *unstructured.Unstructured
- func GetCUEParameterValue(cueStr string) (cue.Value, error)
- func HTTPGet(ctx context.Context, url string) ([]byte, error)
- func ParseTerraformVariables(configuration string) (map[string]*tfconfig.Variable, error)
- func ReadYamlToObject(path string, object k8sruntime.Object) error
- func RealtimePrintCommandOutput(cmd *exec.Cmd, logFile string) error
- func RefineParameterInstance(inst *cue.Instance) (*cue.Instance, error)
- func SetSpecObjIntoUnstructuredObj(spec interface{}, u *unstructured.Unstructured) error
- type Args
Constants ¶
This section is empty.
Variables ¶
var ( // Scheme defines the default KubeVela schema Scheme = k8sruntime.NewScheme() )
Functions ¶
func AskToChooseOneService ¶ added in v1.0.0
AskToChooseOneService will ask users to select one service of the application if more than one exidi
func GenOpenAPI ¶ added in v0.3.0
GenOpenAPI generates OpenAPI json schema from cue.Instance
func GenerateUnstructuredObj ¶ added in v1.1.0
func GenerateUnstructuredObj(name, ns string, gvk schema.GroupVersionKind) *unstructured.Unstructured
GenerateUnstructuredObj generate UnstructuredObj
func GetCUEParameterValue ¶ added in v0.3.0
GetCUEParameterValue converts definitions to cue format
func ParseTerraformVariables ¶ added in v1.0.6
ParseTerraformVariables get variables from Terraform Configuration
func ReadYamlToObject ¶ added in v1.0.0
func ReadYamlToObject(path string, object k8sruntime.Object) error
ReadYamlToObject will read a yaml K8s object to runtime.Object
func RealtimePrintCommandOutput ¶ added in v0.3.1
RealtimePrintCommandOutput prints command output in real time If logFile is "", it will prints the stdout, or it will write to local file
func RefineParameterInstance ¶ added in v1.1.0
RefineParameterInstance refines cue instance to merely include `parameter` identifier
func SetSpecObjIntoUnstructuredObj ¶ added in v1.1.0
func SetSpecObjIntoUnstructuredObj(spec interface{}, u *unstructured.Unstructured) error
SetSpecObjIntoUnstructuredObj set UnstructuredObj spec field
Types ¶
type Args ¶ added in v1.0.0
type Args struct { Config *rest.Config Schema *runtime.Scheme Client client.Client // contains filtered or unexported fields }
Args is args for controller-runtime client
func InitBaseRestConfig ¶
InitBaseRestConfig will return reset config for create controller runtime client
func (*Args) GetDiscoveryMapper ¶ added in v1.0.0
func (a *Args) GetDiscoveryMapper() (discoverymapper.DiscoveryMapper, error)
GetDiscoveryMapper get discoveryMapper client if exist, create if not exist.
func (*Args) GetPackageDiscover ¶ added in v1.0.0
func (a *Args) GetPackageDiscover() (*packages.PackageDiscover, error)
GetPackageDiscover get PackageDiscover client if exist, create if not exist.