cmd

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Staging      = "staging"
	App          = "app"
	WorkloadType = "type"
	TraitDetach  = "detach"
)
View Source
const (
	// StatusHealthy represents healthy status.
	StatusHealthy = v1alpha2.StatusHealthy
	// StatusUnhealthy represents unhealthy status.
	StatusUnhealthy = v1alpha2.StatusUnhealthy
	// StatusUnknown represents unknown status.
	StatusUnknown = v1alpha2.StatusUnknown
)

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 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 GenNativeResourceDefinition

func GenNativeResourceDefinition(c client.Client) error

func GetCompMeta

func GetCompMeta(deployed []oam.ComponentMeta, appName, compName string) (oam.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(ioStreams cmdutil.IOStreams, version string) 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 NewAdminInitCommand

func NewAdminInitCommand(c types.Args, 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 NewCompDeleteCommand

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

NewCompDeleteCommand delete component

func NewCompListCommand

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

func NewCompRunCommands

func NewCompRunCommands(c types.Args, ioStreams util.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 NewEnvSwitchCommand

func NewEnvSwitchCommand(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 NewTraitDefinition

func NewTraitDefinition(manifest string) oamv1.TraitDefinition

func NewTraitsCommand

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

func NewWorkloadDefinition

func NewWorkloadDefinition(manifest string) oamv1.WorkloadDefinition

func NewWorkloadsCommand

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

func OpenBrowser

func OpenBrowser(url string) 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 Run

func Run(ctx context.Context, config *stern.Config, ioStreams cmdutil.IOStreams) error

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

func SetupAPIServer

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

func SwitchEnv

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

func SystemCommandGroup

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

Types

type HealthStatus

type HealthStatus = v1alpha2.HealthStatus

HealthStatus represents health status strings.

const (
	// StatusNotFound means there's no health check info returned from the scope.
	StatusNotFound 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 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