apis

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	AppConfigName  string               `json:"appName" binding:"required,max=64"`
	Definition     runtime.RawExtension `json:"definition" binding:"required"`
	DefinitionType string               `json:"definitionType" binding:"required,max=32"`
	DefinitionName string               `json:"definitionName" binding:"required,max=64"`
}

type ApplicationStatusMeta

type ApplicationStatusMeta struct {
	Status   string                        `json:"Status,omitempty"`
	Workload corev1alpha2.ComponentSpec    `json:"Workload,omitempty"`
	Traits   []corev1alpha2.ComponentTrait `json:"Traits,omitempty"`
}

type CapabilityCenterMeta

type CapabilityCenterMeta struct {
	Name string `json:"name"`
	URL  string `json:"url"`
}

type CapabilityMeta

type CapabilityMeta struct {
	CapabilityName       string `json:"capability_name"`
	CapabilityCenterName string `json:"capability_center_name,omitempty"`
}

type CommonFlag

type CommonFlag struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type Environment

type Environment struct {
	EnvName   string `json:"envName" binding:"required,min=1,max=32"`
	Namespace string `json:"namespace" binding:"required,min=1,max=32"`
	Email     string `json:"email"`
	Domain    string `json:"domain"`
	Current   string `json:"current,omitempty"`
}

type EnvironmentBody

type EnvironmentBody struct {
	Namespace string `json:"namespace" binding:"required,min=1,max=32"`
}

type Response

type Response struct {
	Code int         `json:"code"`
	Data interface{} `json:"data"`
}

type TraitBody

type TraitBody struct {
	EnvName      string       `json:"env_name"`
	Name         string       `json:"name"`
	Flags        []CommonFlag `json:"flags"`
	WorkloadName string       `json:"workload_name"`
	AppGroup     string       `json:"app_group,omitempty"`
	Staging      string       `json:"staging,omitempty"`
}

used to present trait which is to be attached and, of which parameters are set

type TraitMeta

type TraitMeta struct {
	Name       string   `json:"name"`
	Definition string   `json:"definition,omitempty"`
	AppliesTo  []string `json:"applies_to,omitempty"`
}

type WorkloadMeta

type WorkloadMeta struct {
	Name       string            `json:"name"`
	Parameters []types.Parameter `json:"parameters,omitempty"`
	AppliesTo  []string          `json:"appliesTo,omitempty"`
}

type WorkloadRunBody

type WorkloadRunBody struct {
	EnvName      string       `json:"env_name"`
	WorkloadType string       `json:"workload_type"`
	WorkloadName string       `json:"workload_name"`
	AppGroup     string       `json:"app_group,omitempty"`
	Flags        []CommonFlag `json:"flags"`
	Staging      bool         `json:"staging,omitempty"`
	Traits       []TraitBody  `json:"traits,omitempty"`
}

Jump to

Keyboard shortcuts

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