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(ns string) (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 ListConfigs(ioStreams cmdutil.IOStreams, cmd *cobra.Command) error
- func ListEnvs(args []string, ioStreams cmdutil.IOStreams) error
- func NewAdminInfoCommand(ioStreams cmdutil.IOStreams) *cobra.Command
- func NewAppShowCommand(ioStreams cmdutil.IOStreams) *cobra.Command
- func NewAppStatusCommand(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 NewCapInstallCommand(c types.Args, ioStreams cmdutil.IOStreams) *cobra.Command
- func NewCapListCommand(ioStreams cmdutil.IOStreams) *cobra.Command
- func NewCapUninstallCommand(c types.Args, ioStreams cmdutil.IOStreams) *cobra.Command
- func NewCenterCommand(c types.Args, ioStream cmdutil.IOStreams) *cobra.Command
- func NewCommand() *cobra.Command
- func NewCompDeployCommands(c types.Args, ioStreams util.IOStreams) *cobra.Command
- func NewCompletionCommand() *cobra.Command
- func NewConfigCommand(args types.Args, io cmdutil.IOStreams) *cobra.Command
- func NewConfigDeleteCommand(io cmdutil.IOStreams) *cobra.Command
- func NewConfigGetCommand(io cmdutil.IOStreams) *cobra.Command
- func NewConfigListCommand(io cmdutil.IOStreams) *cobra.Command
- func NewConfigSetCommand(io cmdutil.IOStreams) *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 NewExecCommand(c types.Args, ioStreams velacmdutil.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 NewListCommand(c types.Args, ioStreams cmdutil.IOStreams) *cobra.Command
- func NewLogsCommand(c types.Args, ioStreams cmdutil.IOStreams) *cobra.Command
- func NewPortForwardCommand(c types.Args, ioStreams velacmdutil.IOStreams) *cobra.Command
- func NewTemplateCommand(c types.Args, ioStream cmdutil.IOStreams) *cobra.Command
- func NewTemplateContextCommand(ioStream cmdutil.IOStreams) *cobra.Command
- func NewTraitsCommand(c types.Args, ioStreams cmdutil.IOStreams) *cobra.Command
- func NewUpCommand(c types.Args, ioStream cmdutil.IOStreams) *cobra.Command
- func NewVersionCommand() *cobra.Command
- func NewWorkloadsCommand(c types.Args, 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 AppfileOptions
- type Args
- type CompStatus
- type HealthStatus
- type Options
- type ScopeHealthCondition
- type VelaExecOptions
- type VelaPortForwardOptions
- type VelaRuntimeStatus
- type WorkloadHealthCondition
Constants ¶
View Source
const ( Staging = "staging" App = "app" WorkloadType = "type" TraitDetach = "detach" Service = "svc" )
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 = "service: %s not ready" ErrServiceNotFound = "service %s not found in app" )
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 ListConfigs ¶ added in v0.0.9
func NewAppStatusCommand ¶
func NewCapCenterListCommand ¶
func NewCapCenterSyncCommand ¶
func NewCapInstallCommand ¶ added in v0.0.9
func NewCapUninstallCommand ¶ added in v0.0.9
func NewCenterCommand ¶
func NewCommand ¶ added in v0.0.8
func NewCompDeployCommands ¶ added in v0.0.8
func NewCompletionCommand ¶
func NewConfigCommand ¶ added in v0.0.9
func NewConfigDeleteCommand ¶ added in v0.0.9
func NewConfigGetCommand ¶ added in v0.0.9
func NewConfigListCommand ¶ added in v0.0.9
func NewConfigSetCommand ¶ added in v0.0.9
func NewDashboardCommand ¶
func NewDeleteCommand ¶
NewDeleteCommand Delete App
func NewEnvInitCommand ¶
func NewEnvSetCommand ¶ added in v0.0.3
func NewExecCommand ¶ added in v0.0.9
func NewInitCommand ¶ added in v0.0.7
NewInitCommand init application
func NewInstallCommand ¶
func NewListCommand ¶ added in v0.0.9
func NewPortForwardCommand ¶ added in v0.0.9
func NewTemplateCommand ¶ added in v0.0.8
func NewTemplateContextCommand ¶ added in v0.0.8
func NewTraitsCommand ¶
func NewUpCommand ¶ added in v0.0.8
func NewVersionCommand ¶ added in v0.0.8
func NewWorkloadsCommand ¶
func OpenBrowser ¶
func PrintHelpByTag ¶ added in v0.0.8
func PrintTrackVelaRuntimeStatus ¶ added in v0.0.8
func RefreshDefinitions ¶
func SetupAPIServer ¶
Types ¶
type AppfileOptions ¶ added in v0.0.9
func (*AppfileOptions) ApplyAppConfig ¶ added in v0.0.9
func (o *AppfileOptions) ApplyAppConfig(ac *v1alpha2.ApplicationConfiguration, comps []*v1alpha2.Component, scopes []oam.Object) error
Apply deploy config resources for the app. It differs by create and update:
- for create, it displays app status along with information of url, metrics, ssh, logging.
- for update, it rolls out a canary deployment and prints its information. User can verify the canary deployment. This will wait for user approval. If approved, it continues upgrading the whole; otherwise, it would rollback.
func (*AppfileOptions) Info ¶ added in v0.0.9
func (o *AppfileOptions) Info(appName string, comps []*v1alpha2.Component) string
func (*AppfileOptions) Run ¶ added in v0.0.9
func (o *AppfileOptions) Run(filePath string) error
type Args ¶ added in v0.0.8
type Args struct { Output string Env *types.EnvMeta C types.Args App *application.Application }
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 VelaExecOptions ¶ added in v0.0.9
type VelaExecOptions struct { Cmd *cobra.Command Args []string Stdin bool TTY bool context.Context VelaC types.Args Env *types.EnvMeta App *application.Application ClientSet kubernetes.Interface // contains filtered or unexported fields }
func (*VelaExecOptions) Complete ¶ added in v0.0.9
func (o *VelaExecOptions) Complete() error
func (*VelaExecOptions) Run ¶ added in v0.0.9
func (o *VelaExecOptions) Run() error
type VelaPortForwardOptions ¶ added in v0.0.9
type VelaPortForwardOptions struct { Cmd *cobra.Command Args []string context.Context VelaC types.Args Env *types.EnvMeta App *application.Application ClientSet kubernetes.Interface // contains filtered or unexported fields }
func (*VelaPortForwardOptions) Complete ¶ added in v0.0.9
func (o *VelaPortForwardOptions) Complete() error
func (*VelaPortForwardOptions) Run ¶ added in v0.0.9
func (o *VelaPortForwardOptions) Run() error
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.