Documentation
¶
Index ¶
- Constants
- func AddCompCommands(c types.Args, ioStreams util.IOStreams) *cobra.Command
- func AddTraitCommands(parentCmd *cobra.Command, c types.Args, ioStreams cmdutil.IOStreams) error
- func CapabilityCommandGroup(c types.Args, ioStream cmdutil.IOStreams) *cobra.Command
- func CheckVelaRuntimeInstalledAndReady(ioStreams cmdutil.IOStreams, c client.Client) (bool, error)
- func CreateOrUpdateEnv(ctx context.Context, c client.Client, envArgs *types.EnvMeta, args []string, ...) error
- func DeleteEnv(ctx context.Context, args []string, ioStreams cmdutil.IOStreams) error
- func GetCapabilityByName(name string, workloads []types.Capability) (types.Capability, error)
- func GetCompMeta(deployed []apis.ComponentMeta, appName, compName string) (apis.ComponentMeta, bool)
- func GetEnv(cmd *cobra.Command) (*types.EnvMeta, error)
- func GetOAMReleaseVersion() (string, error)
- func GetWorkloadNameFromArgs(args []string) (string, error)
- func InstallOamRuntime(chartPath, chartSource string, vals map[string]interface{}, ...) error
- func ListCapCenters(args []string, ioStreams cmdutil.IOStreams) error
- func ListEnvs(args []string, ioStreams cmdutil.IOStreams) error
- func NewAdminInfoCommand(ioStreams cmdutil.IOStreams) *cobra.Command
- func NewAppListCommand(c types.Args, ioStreams cmdutil.IOStreams) *cobra.Command
- func NewAppShowCommand(ioStreams cmdutil.IOStreams) *cobra.Command
- func NewAppStatusCommand(c types.Args, ioStreams cmdutil.IOStreams) *cobra.Command
- func NewAppsCommand(c types.Args, ioStreams cmdutil.IOStreams) *cobra.Command
- func NewCapAddCommand(c types.Args, ioStreams cmdutil.IOStreams) *cobra.Command
- func NewCapCenterConfigCommand(ioStreams cmdutil.IOStreams) *cobra.Command
- func NewCapCenterListCommand(ioStreams cmdutil.IOStreams) *cobra.Command
- func NewCapCenterRemoveCommand(ioStreams cmdutil.IOStreams) *cobra.Command
- func NewCapCenterSyncCommand(ioStreams cmdutil.IOStreams) *cobra.Command
- func NewCapListCommand(ioStreams cmdutil.IOStreams) *cobra.Command
- func NewCapRemoveCommand(c types.Args, ioStreams cmdutil.IOStreams) *cobra.Command
- func NewCenterCommand(c types.Args, ioStream cmdutil.IOStreams) *cobra.Command
- func NewCommand() *cobra.Command
- func NewCompDeleteCommand(c types.Args, ioStreams cmdutil.IOStreams) *cobra.Command
- func NewCompDeployCommands(c types.Args, ioStreams util.IOStreams) *cobra.Command
- func NewCompListCommand(c types.Args, ioStreams cmdutil.IOStreams) *cobra.Command
- func NewCompShowCommand(ioStreams cmdutil.IOStreams) *cobra.Command
- func NewCompStatusCommand(c types.Args, ioStreams cmdutil.IOStreams) *cobra.Command
- func NewCompletionCommand() *cobra.Command
- func NewDashboardCommand(c types.Args, ioStreams cmdutil.IOStreams, frontendSource string) *cobra.Command
- func NewDeleteCommand(c types.Args, ioStreams cmdutil.IOStreams) *cobra.Command
- func NewEnvCommand(c types.Args, ioStream cmdutil.IOStreams) *cobra.Command
- func NewEnvDeleteCommand(ioStreams cmdutil.IOStreams) *cobra.Command
- func NewEnvInitCommand(c types.Args, ioStreams cmdutil.IOStreams) *cobra.Command
- func NewEnvListCommand(ioStream cmdutil.IOStreams) *cobra.Command
- func NewEnvSetCommand(ioStreams cmdutil.IOStreams) *cobra.Command
- func NewInitCommand(c types.Args, ioStreams cmdutil.IOStreams) *cobra.Command
- func NewInstallCommand(c types.Args, chartContent string, ioStreams cmdutil.IOStreams) *cobra.Command
- func NewLogsCommand(c types.Args, ioStreams cmdutil.IOStreams) *cobra.Command
- func NewRefreshCommand(c types.Args, ioStreams cmdutil.IOStreams) *cobra.Command
- func NewRunCommand(c types.Args, ioStreams cmdutil.IOStreams) *cobra.Command
- func NewTemplateCommand(c types.Args, ioStream cmdutil.IOStreams) *cobra.Command
- func NewTemplateContextCommand(ioStream cmdutil.IOStreams) *cobra.Command
- func NewTraitsCommand(ioStreams cmdutil.IOStreams) *cobra.Command
- func NewUpCommand(c types.Args, ioStream cmdutil.IOStreams) *cobra.Command
- func NewVersionCommand() *cobra.Command
- func NewWorkloadsCommand(ioStreams cmdutil.IOStreams) *cobra.Command
- func OpenBrowser(url string) error
- func PrintHelpByTag(cmd *cobra.Command, all []*cobra.Command, tag string)
- func PrintTrackVelaRuntimeStatus(ctx context.Context, c client.Client, ioStreams cmdutil.IOStreams) (bool, error)
- func RefreshDefinitions(ctx context.Context, c client.Client, ioStreams cmdutil.IOStreams) error
- func RemoveCapCenter(args []string, ioStreams cmdutil.IOStreams) error
- func SetEnv(args []string, ioStreams cmdutil.IOStreams) error
- func SetupAPIServer(kubeClient client.Client, cmd *cobra.Command, o Options) error
- func SystemCommandGroup(c types.Args, ioStream cmdutil.IOStreams) *cobra.Command
- type Args
- type CompStatus
- type HealthStatus
- type Options
- type ScopeHealthCondition
- type Unkown
- type VelaRuntimeStatus
- type WorkloadHealthCondition
Constants ¶
View Source
const ( Staging = "staging" App = "app" WorkloadType = "type" TraitDetach = "detach" )
View Source
const ( // HealthStatusHealthy represents healthy status. HealthStatusHealthy = v1alpha2.StatusHealthy // HealthStatusUnhealthy represents unhealthy status. HealthStatusUnhealthy = v1alpha2.StatusUnhealthy // HealthStatusUnknown represents unknown status. HealthStatusUnknown = v1alpha2.StatusUnknown )
View Source
const ( ErrNotLoadAppConfig = "cannot load the application" ErrFmtNotInitialized = "oam-core-controller cannot initilize the component: %s" )
Variables ¶
This section is empty.
Functions ¶
func AddTraitCommands ¶
func CapabilityCommandGroup ¶
func CheckVelaRuntimeInstalledAndReady ¶ added in v0.0.8
func CreateOrUpdateEnv ¶
func GetCapabilityByName ¶ added in v0.0.7
func GetCapabilityByName(name string, workloads []types.Capability) (types.Capability, error)
func GetCompMeta ¶
func GetCompMeta(deployed []apis.ComponentMeta, appName, compName string) (apis.ComponentMeta, bool)
func GetOAMReleaseVersion ¶
func GetWorkloadNameFromArgs ¶
func InstallOamRuntime ¶
func NewAppListCommand ¶
func NewAppStatusCommand ¶
func NewCapAddCommand ¶
func NewCapCenterListCommand ¶
func NewCapCenterSyncCommand ¶
func NewCapRemoveCommand ¶
func NewCenterCommand ¶
func NewCommand ¶ added in v0.0.8
func NewCompDeleteCommand ¶
NewCompDeleteCommand delete component
func NewCompDeployCommands ¶ added in v0.0.8
func NewCompListCommand ¶
func NewCompStatusCommand ¶
func NewCompletionCommand ¶
func NewDashboardCommand ¶
func NewDeleteCommand ¶
NewDeleteCommand Delete App
func NewEnvInitCommand ¶
func NewEnvSetCommand ¶ added in v0.0.3
func NewInitCommand ¶ added in v0.0.7
NewInitCommand init application
func NewInstallCommand ¶
func NewRefreshCommand ¶
func NewRunCommand ¶
NewRunCommand run application directly
func NewTemplateCommand ¶ added in v0.0.8
func NewTemplateContextCommand ¶ added in v0.0.8
func NewUpCommand ¶ added in v0.0.8
func NewVersionCommand ¶ added in v0.0.8
func OpenBrowser ¶
func PrintHelpByTag ¶ added in v0.0.8
func PrintTrackVelaRuntimeStatus ¶ added in v0.0.8
func RefreshDefinitions ¶
func SetupAPIServer ¶
Types ¶
type Args ¶ added in v0.0.8
type Args struct { Output string Env *types.EnvMeta C types.Args App *application.Application }
func (*Args) AskComponent ¶ added in v0.0.8
type CompStatus ¶ added in v0.0.8
type CompStatus int
CompStatus represents the status of a component during "vela init"
type HealthStatus ¶
type HealthStatus = v1alpha2.HealthStatus
HealthStatus represents health status strings.
const ( // HealthStatusNotDiagnosed means there's no health scope refered or unknown health status returned HealthStatusNotDiagnosed HealthStatus = "NOT DIAGNOSED" )
type Options ¶
type Options struct {
// contains filtered or unexported fields
}
func (*Options) GetStaticPath ¶
type ScopeHealthCondition ¶
type ScopeHealthCondition = v1alpha2.ScopeHealthCondition
ScopeHealthCondition holds health condition of a scope
type Unkown ¶
type Unkown struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` Spec interface{} `json:"spec"` Status interface{} `json:"status"` }
type VelaRuntimeStatus ¶ added in v0.0.8
type VelaRuntimeStatus int
const ( NotFound VelaRuntimeStatus = iota Pending Ready Error )
type WorkloadHealthCondition ¶
type WorkloadHealthCondition = v1alpha2.WorkloadHealthCondition
WorkloadHealthCondition holds health status of any resource
Source Files
¶
Click to show internal directories.
Click to hide internal directories.