commands

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: Apache-2.0 Imports: 70 Imported by: 0

Documentation

Index

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 AddCompCommands

func AddCompCommands(c types.Args, ioStreams util.IOStreams) *cobra.Command

func AddTraitCommands

func AddTraitCommands(parentCmd *cobra.Command, c types.Args, ioStreams cmdutil.IOStreams) error

func CapabilityCommandGroup

func CapabilityCommandGroup(c types.Args, ioStream cmdutil.IOStreams) *cobra.Command

func CheckVelaRuntimeInstalledAndReady added in v0.0.8

func CheckVelaRuntimeInstalledAndReady(ioStreams cmdutil.IOStreams, c client.Client) (bool, error)

func CreateOrUpdateEnv

func CreateOrUpdateEnv(ctx context.Context, c client.Client, envArgs *types.EnvMeta, args []string, ioStreams cmdutil.IOStreams) error

func DeleteEnv

func DeleteEnv(ctx context.Context, args []string, ioStreams cmdutil.IOStreams) error

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 GetEnv

func GetEnv(cmd *cobra.Command) (*types.EnvMeta, error)

func GetOAMReleaseVersion

func GetOAMReleaseVersion() (string, error)

func GetWorkloadNameFromArgs

func GetWorkloadNameFromArgs(args []string) (string, error)

func InstallOamRuntime

func InstallOamRuntime(chartPath, chartSource string, vals map[string]interface{}, ioStreams cmdutil.IOStreams) error

func ListCapCenters

func ListCapCenters(args []string, ioStreams cmdutil.IOStreams) error

func ListEnvs

func ListEnvs(args []string, ioStreams cmdutil.IOStreams) error

func NewAdminInfoCommand

func NewAdminInfoCommand(ioStreams cmdutil.IOStreams) *cobra.Command

func NewAppListCommand

func NewAppListCommand(c types.Args, ioStreams cmdutil.IOStreams) *cobra.Command

func NewAppShowCommand

func NewAppShowCommand(ioStreams cmdutil.IOStreams) *cobra.Command

func NewAppStatusCommand

func NewAppStatusCommand(c types.Args, ioStreams cmdutil.IOStreams) *cobra.Command

func NewAppsCommand

func NewAppsCommand(c types.Args, ioStreams cmdutil.IOStreams) *cobra.Command

func NewCapAddCommand

func NewCapAddCommand(c types.Args, ioStreams cmdutil.IOStreams) *cobra.Command

func NewCapCenterConfigCommand

func NewCapCenterConfigCommand(ioStreams cmdutil.IOStreams) *cobra.Command

func NewCapCenterListCommand

func NewCapCenterListCommand(ioStreams cmdutil.IOStreams) *cobra.Command

func NewCapCenterRemoveCommand

func NewCapCenterRemoveCommand(ioStreams cmdutil.IOStreams) *cobra.Command

func NewCapCenterSyncCommand

func NewCapCenterSyncCommand(ioStreams cmdutil.IOStreams) *cobra.Command

func NewCapListCommand

func NewCapListCommand(ioStreams cmdutil.IOStreams) *cobra.Command

func NewCapRemoveCommand

func NewCapRemoveCommand(c types.Args, ioStreams cmdutil.IOStreams) *cobra.Command

func NewCenterCommand

func NewCenterCommand(c types.Args, ioStream cmdutil.IOStreams) *cobra.Command

func NewCommand added in v0.0.8

func NewCommand() *cobra.Command

func NewCompDeleteCommand

func NewCompDeleteCommand(c types.Args, ioStreams cmdutil.IOStreams) *cobra.Command

NewCompDeleteCommand delete component

func NewCompDeployCommands added in v0.0.8

func NewCompDeployCommands(c types.Args, ioStreams util.IOStreams) *cobra.Command

func NewCompListCommand

func NewCompListCommand(c types.Args, ioStreams cmdutil.IOStreams) *cobra.Command

func NewCompShowCommand

func NewCompShowCommand(ioStreams cmdutil.IOStreams) *cobra.Command

func NewCompStatusCommand

func NewCompStatusCommand(c types.Args, ioStreams cmdutil.IOStreams) *cobra.Command

func NewCompletionCommand

func NewCompletionCommand() *cobra.Command

func NewDashboardCommand

func NewDashboardCommand(c types.Args, ioStreams cmdutil.IOStreams, frontendSource string) *cobra.Command

func NewDeleteCommand

func NewDeleteCommand(c types.Args, ioStreams cmdutil.IOStreams) *cobra.Command

NewDeleteCommand Delete App

func NewEnvCommand

func NewEnvCommand(c types.Args, ioStream cmdutil.IOStreams) *cobra.Command

func NewEnvDeleteCommand

func NewEnvDeleteCommand(ioStreams cmdutil.IOStreams) *cobra.Command

func NewEnvInitCommand

func NewEnvInitCommand(c types.Args, ioStreams cmdutil.IOStreams) *cobra.Command

func NewEnvListCommand

func NewEnvListCommand(ioStream cmdutil.IOStreams) *cobra.Command

func NewEnvSetCommand added in v0.0.3

func NewEnvSetCommand(ioStreams cmdutil.IOStreams) *cobra.Command

func NewInitCommand added in v0.0.7

func NewInitCommand(c types.Args, ioStreams cmdutil.IOStreams) *cobra.Command

NewInitCommand init application

func NewInstallCommand

func NewInstallCommand(c types.Args, chartContent string, ioStreams cmdutil.IOStreams) *cobra.Command

func NewLogsCommand

func NewLogsCommand(c types.Args, ioStreams cmdutil.IOStreams) *cobra.Command

func NewRefreshCommand

func NewRefreshCommand(c types.Args, ioStreams cmdutil.IOStreams) *cobra.Command

func NewRunCommand

func NewRunCommand(c types.Args, ioStreams cmdutil.IOStreams) *cobra.Command

NewRunCommand run application directly

func NewTemplateCommand added in v0.0.8

func NewTemplateCommand(c types.Args, ioStream cmdutil.IOStreams) *cobra.Command

func NewTemplateContextCommand added in v0.0.8

func NewTemplateContextCommand(ioStream cmdutil.IOStreams) *cobra.Command

func NewTraitsCommand

func NewTraitsCommand(ioStreams cmdutil.IOStreams) *cobra.Command

func NewUpCommand added in v0.0.8

func NewUpCommand(c types.Args, ioStream cmdutil.IOStreams) *cobra.Command

func NewVersionCommand added in v0.0.8

func NewVersionCommand() *cobra.Command

func NewWorkloadsCommand

func NewWorkloadsCommand(ioStreams cmdutil.IOStreams) *cobra.Command

func OpenBrowser

func OpenBrowser(url string) error

func PrintHelpByTag added in v0.0.8

func PrintHelpByTag(cmd *cobra.Command, all []*cobra.Command, tag string)

func PrintTrackVelaRuntimeStatus added in v0.0.8

func PrintTrackVelaRuntimeStatus(ctx context.Context, c client.Client, ioStreams cmdutil.IOStreams) (bool, error)

func RefreshDefinitions

func RefreshDefinitions(ctx context.Context, c client.Client, ioStreams cmdutil.IOStreams) error

func RemoveCapCenter

func RemoveCapCenter(args []string, ioStreams cmdutil.IOStreams) error

func SetEnv added in v0.0.3

func SetEnv(args []string, ioStreams cmdutil.IOStreams) error

func SetupAPIServer

func SetupAPIServer(kubeClient client.Client, cmd *cobra.Command, o Options) error

func SystemCommandGroup

func SystemCommandGroup(c types.Args, ioStream cmdutil.IOStreams) *cobra.Command

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

func (l *Args) AskComponent() (string, error)

func (*Args) Run added in v0.0.8

func (l *Args) Run(ctx context.Context, ioStreams cmdutil.IOStreams) error

Run refer to the implementation at https://github.com/oam-dev/stern/blob/master/stern/main.go

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

func (o *Options) GetStaticPath() error

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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