Documentation ¶
Overview ¶
* Copyright 1999-2020 Alibaba Group Holding Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
* Copyright 1999-2020 Alibaba Group Holding Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
* Copyright 1999-2020 Alibaba Group Holding Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
Index ¶
- Constants
- Variables
- func CmdInit() *baseCommand
- func GetDS() data.SourceI
- func GetResourceFlags() []spec.ExpFlagSpec
- func Register(requestPath string)
- func SetDS(source data.SourceI)
- type CheckCommand
- type CheckExecCmd
- type CheckJavaCommand
- type CheckOsCommand
- type Cli
- type Command
- type CreateCommand
- type DestroyCommand
- type ExecResult
- type ExpActionFlags
- type ExpFlags
- type PrepareCPlusCommand
- type PrepareCommand
- type PrepareJvmCommand
- func (bc *PrepareJvmCommand) AddCommand(child Command)
- func (bc *PrepareJvmCommand) CobraCmd() *cobra.Command
- func (pc *PrepareJvmCommand) Init()
- func (pc *PrepareJvmCommand) ManualPreparation(ctx context.Context, record *data.PreparationRecord, err error) (*data.PreparationRecord, error)
- func (bc *PrepareJvmCommand) Name() string
- type QueryCommand
- type QueryDiskCommand
- type QueryJvmCommand
- type QueryK8sCommand
- type QueryNetworkCommand
- type RevokeCommand
- type ServerCommand
- type StartServerCommand
- type StatusCommand
- type StatusServerCommand
- type StopServerCommand
- type VersionCommand
Constants ¶
const ( BladeBin = "blade" OperatorCommand = "operator" )
const ( ForceRemoveFlag = "force-remove" ExpTargetFlag = "target" KubeconfigFlag = "kubeconfig" )
const ( PrepareJvmType = "jvm" PrepareK8sType = "k8s" PrepareCPlusType = "cplus" )
const ( Created = "Created" Success = "Success" Running = "Running" Error = "Error" Destroyed = "Destroyed" Revoked = "Revoked" )
const AsyncFlag = "async"
const EndpointFlag = "endpoint"
const InterfaceArg = "interface"
const MountPointArg = "mount-point"
const NohupFlag = "nohup"
const UidFlag = "uid"
Variables ¶
var AllCheckExecCmds []CheckExecCmd
var AllCheckModels *spec.Models
var BladeBinPath string
Functions ¶
func GetResourceFlags ¶ added in v1.7.0
func GetResourceFlags() []spec.ExpFlagSpec
Types ¶
type CheckCommand ¶ added in v1.2.0
type CheckCommand struct {
// contains filtered or unexported fields
}
func (*CheckCommand) AddCommand ¶ added in v1.2.0
func (bc *CheckCommand) AddCommand(child Command)
AddCommand is add child command to the parent command
func (CheckCommand) GetExecutor ¶ added in v1.2.0
func (*CheckCommand) Init ¶ added in v1.2.0
func (dc *CheckCommand) Init()
type CheckExecCmd ¶ added in v1.2.0
type CheckExecCmd struct { ExpName string ActionName string Scope string ExecResult []*ExecResult }
type CheckJavaCommand ¶ added in v1.2.0
type CheckJavaCommand struct {
// contains filtered or unexported fields
}
func (*CheckJavaCommand) CobraCmd ¶ added in v1.2.0
func (djc *CheckJavaCommand) CobraCmd() *cobra.Command
func (*CheckJavaCommand) Init ¶ added in v1.2.0
func (djc *CheckJavaCommand) Init()
func (*CheckJavaCommand) Name ¶ added in v1.2.0
func (djc *CheckJavaCommand) Name() string
type CheckOsCommand ¶ added in v1.2.0
type CheckOsCommand struct {
// contains filtered or unexported fields
}
func (*CheckOsCommand) CobraCmd ¶ added in v1.2.0
func (doc *CheckOsCommand) CobraCmd() *cobra.Command
func (CheckOsCommand) GetExecutor ¶ added in v1.2.0
func (*CheckOsCommand) Init ¶ added in v1.2.0
func (doc *CheckOsCommand) Init()
func (*CheckOsCommand) Name ¶ added in v1.2.0
func (doc *CheckOsCommand) Name() string
type Cli ¶
type Cli struct {
// contains filtered or unexported fields
}
type Command ¶
type Command interface { // Init command Init() // CobraCmd CobraCmd() *cobra.Command // Name Name() string }
Command is cli command interface
type CreateCommand ¶
type CreateCommand struct {
// contains filtered or unexported fields
}
CreateCommand for create experiment
func (*CreateCommand) AddCommand ¶
func (bc *CreateCommand) AddCommand(child Command)
AddCommand is add child command to the parent command
func (CreateCommand) GetExecutor ¶ added in v0.4.0
func (*CreateCommand) Init ¶
func (cc *CreateCommand) Init()
type DestroyCommand ¶
type DestroyCommand struct {
// contains filtered or unexported fields
}
func (*DestroyCommand) AddCommand ¶
func (bc *DestroyCommand) AddCommand(child Command)
AddCommand is add child command to the parent command
func (DestroyCommand) GetExecutor ¶ added in v0.4.0
func (*DestroyCommand) Init ¶
func (dc *DestroyCommand) Init()
type ExecResult ¶ added in v1.2.0
type ExecResult struct {
// contains filtered or unexported fields
}
type ExpActionFlags ¶
type ExpActionFlags struct { // ActionFlags cache action flags, contains name key and description value ActionFlags map[string]func() string // MatcherFlags cache matcher flags, contains name key and description value MatcherFlags map[string]func() string }
ExpActionFlags is used to receive experiment action flags
type ExpFlags ¶
type ExpFlags struct { // Target is experiment target, for example dubbo Target string // Scope Scope string // Actions cache action name and flags Actions map[string]*ExpActionFlags // CommandFlags CommandFlags map[string]func() string }
expFlags is used to receive experiment flags
type PrepareCPlusCommand ¶
type PrepareCPlusCommand struct {
// contains filtered or unexported fields
}
func (*PrepareCPlusCommand) AddCommand ¶
func (bc *PrepareCPlusCommand) AddCommand(child Command)
AddCommand is add child command to the parent command
func (*PrepareCPlusCommand) Init ¶
func (pc *PrepareCPlusCommand) Init()
type PrepareCommand ¶
type PrepareCommand struct {
// contains filtered or unexported fields
}
PrepareCommand defines attach command
func (*PrepareCommand) AddCommand ¶
func (bc *PrepareCommand) AddCommand(child Command)
AddCommand is add child command to the parent command
func (*PrepareCommand) Init ¶
func (pc *PrepareCommand) Init()
Init attach command operators includes create instance and bind flags
type PrepareJvmCommand ¶
type PrepareJvmCommand struct {
// contains filtered or unexported fields
}
func (*PrepareJvmCommand) AddCommand ¶
func (bc *PrepareJvmCommand) AddCommand(child Command)
AddCommand is add child command to the parent command
func (*PrepareJvmCommand) Init ¶
func (pc *PrepareJvmCommand) Init()
func (*PrepareJvmCommand) ManualPreparation ¶ added in v0.8.0
func (pc *PrepareJvmCommand) ManualPreparation(ctx context.Context, record *data.PreparationRecord, err error) (*data.PreparationRecord, error)
type QueryCommand ¶
type QueryCommand struct {
// contains filtered or unexported fields
}
QueryCommand defines query command
func (*QueryCommand) AddCommand ¶
func (bc *QueryCommand) AddCommand(child Command)
AddCommand is add child command to the parent command
func (*QueryCommand) Init ¶
func (qc *QueryCommand) Init()
Init attach command operators includes create instance and bind flags
type QueryDiskCommand ¶
type QueryDiskCommand struct {
// contains filtered or unexported fields
}
func (*QueryDiskCommand) AddCommand ¶
func (bc *QueryDiskCommand) AddCommand(child Command)
AddCommand is add child command to the parent command
func (*QueryDiskCommand) Init ¶
func (qdc *QueryDiskCommand) Init()
type QueryJvmCommand ¶
type QueryJvmCommand struct {
// contains filtered or unexported fields
}
func (*QueryJvmCommand) AddCommand ¶
func (bc *QueryJvmCommand) AddCommand(child Command)
AddCommand is add child command to the parent command
func (*QueryJvmCommand) Init ¶
func (qjc *QueryJvmCommand) Init()
type QueryK8sCommand ¶ added in v0.4.0
type QueryK8sCommand struct {
// contains filtered or unexported fields
}
func (*QueryK8sCommand) AddCommand ¶ added in v0.4.0
func (bc *QueryK8sCommand) AddCommand(child Command)
AddCommand is add child command to the parent command
func (*QueryK8sCommand) Init ¶ added in v0.4.0
func (q *QueryK8sCommand) Init()
type QueryNetworkCommand ¶
type QueryNetworkCommand struct {
// contains filtered or unexported fields
}
func (*QueryNetworkCommand) AddCommand ¶
func (bc *QueryNetworkCommand) AddCommand(child Command)
AddCommand is add child command to the parent command
func (*QueryNetworkCommand) Init ¶
func (qnc *QueryNetworkCommand) Init()
type RevokeCommand ¶
type RevokeCommand struct {
// contains filtered or unexported fields
}
func (*RevokeCommand) AddCommand ¶
func (bc *RevokeCommand) AddCommand(child Command)
AddCommand is add child command to the parent command
func (*RevokeCommand) Init ¶
func (rc *RevokeCommand) Init()
type ServerCommand ¶
type ServerCommand struct {
// contains filtered or unexported fields
}
func (*ServerCommand) AddCommand ¶
func (bc *ServerCommand) AddCommand(child Command)
AddCommand is add child command to the parent command
func (*ServerCommand) Init ¶
func (sc *ServerCommand) Init()
type StartServerCommand ¶
type StartServerCommand struct {
// contains filtered or unexported fields
}
func (*StartServerCommand) AddCommand ¶
func (bc *StartServerCommand) AddCommand(child Command)
AddCommand is add child command to the parent command
func (*StartServerCommand) Init ¶
func (ssc *StartServerCommand) Init()
type StatusCommand ¶
type StatusCommand struct {
// contains filtered or unexported fields
}
func (*StatusCommand) AddCommand ¶
func (bc *StatusCommand) AddCommand(child Command)
AddCommand is add child command to the parent command
func (*StatusCommand) Init ¶
func (sc *StatusCommand) Init()
type StatusServerCommand ¶ added in v0.5.0
type StatusServerCommand struct {
// contains filtered or unexported fields
}
func (*StatusServerCommand) AddCommand ¶ added in v0.5.0
func (bc *StatusServerCommand) AddCommand(child Command)
AddCommand is add child command to the parent command
func (*StatusServerCommand) Init ¶ added in v0.5.0
func (ssc *StatusServerCommand) Init()
type StopServerCommand ¶
type StopServerCommand struct {
// contains filtered or unexported fields
}
func (*StopServerCommand) AddCommand ¶
func (bc *StopServerCommand) AddCommand(child Command)
AddCommand is add child command to the parent command
func (*StopServerCommand) Init ¶
func (ssc *StopServerCommand) Init()
type VersionCommand ¶
type VersionCommand struct {
// contains filtered or unexported fields
}
func (*VersionCommand) AddCommand ¶
func (bc *VersionCommand) AddCommand(child Command)
AddCommand is add child command to the parent command
func (*VersionCommand) Init ¶
func (vc *VersionCommand) Init()