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 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 GenNativeResourceDefinition(c client.Client) error
- func GetCompMeta(deployed []oam.ComponentMeta, appName, compName string) (oam.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) 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 NewCompDeleteCommand(c types.Args, ioStreams cmdutil.IOStreams) *cobra.Command
- func NewCompListCommand(c types.Args, ioStreams cmdutil.IOStreams) *cobra.Command
- func NewCompRunCommands(c types.Args, ioStreams util.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 NewInstallCommand(c types.Args, chartSource 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 NewTraitDefinition(manifest string) oamv1.TraitDefinition
- func NewTraitsCommand(ioStreams cmdutil.IOStreams) *cobra.Command
- func NewWorkloadDefinition(manifest string) oamv1.WorkloadDefinition
- func NewWorkloadsCommand(ioStreams cmdutil.IOStreams) *cobra.Command
- func OpenBrowser(url string) error
- func RefreshDefinitions(ctx context.Context, c client.Client, ioStreams cmdutil.IOStreams) error
- func RemoveCapCenter(args []string, ioStreams cmdutil.IOStreams) error
- func Run(ctx context.Context, config *stern.Config, 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 HealthStatus
- type Options
- type ScopeHealthCondition
- type Unkown
- type WorkloadHealthCondition
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 AddTraitCommands ¶
func CapabilityCommandGroup ¶
func CreateOrUpdateEnv ¶
func GetCompMeta ¶
func GetCompMeta(deployed []oam.ComponentMeta, appName, compName string) (oam.ComponentMeta, bool)
func GetOAMReleaseVersion ¶
func GetWorkloadNameFromArgs ¶
func InstallOamRuntime ¶
func NewAppListCommand ¶
func NewAppStatusCommand ¶
func NewCapAddCommand ¶
func NewCapCenterListCommand ¶
func NewCapCenterSyncCommand ¶
func NewCapRemoveCommand ¶
func NewCenterCommand ¶
func NewCompDeleteCommand ¶
NewCompDeleteCommand delete component
func NewCompListCommand ¶
func NewCompRunCommands ¶
func NewCompStatusCommand ¶
func NewCompletionCommand ¶
func NewDashboardCommand ¶
func NewDeleteCommand ¶
NewDeleteCommand Delete App
func NewEnvInitCommand ¶
func NewEnvSetCommand ¶ added in v0.0.3
func NewInstallCommand ¶
func NewRefreshCommand ¶
func NewRunCommand ¶
NewRunCommand run application directly
func NewTraitDefinition ¶
func NewTraitDefinition(manifest string) oamv1.TraitDefinition
func NewWorkloadDefinition ¶
func NewWorkloadDefinition(manifest string) oamv1.WorkloadDefinition
func OpenBrowser ¶
func RefreshDefinitions ¶
func Run ¶
Run refer to the implementation at https://github.com/oam-dev/stern/blob/master/stern/main.go
func SetupAPIServer ¶
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 ¶
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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.