Documentation
¶
Index ¶
- Constants
- func GetServiceMapping(s string) (string, bool)
- func WriteConfigToFile(config *Configure) error
- type ApiInfo
- type Command
- type Configure
- type Context
- type Flag
- type FlagSet
- type MetaInfo
- type Parser
- type Profile
- type RootSupport
- func (r *RootSupport) GetAllAction(svc string) []string
- func (r *RootSupport) GetAllSvc() []string
- func (r *RootSupport) GetApiInfo(svc string, action string) *ApiInfo
- func (r *RootSupport) GetVersion(svc string) string
- func (r *RootSupport) IsValidAction(svc, action string) bool
- func (r *RootSupport) IsValidSvc(svc string) bool
- type SdkClient
- type SdkClientInfo
- type VestackMeta
Constants ¶
View Source
const ConfigFile = "config.json"
Variables ¶
This section is empty.
Functions ¶
func GetServiceMapping ¶
func WriteConfigToFile ¶
WriteConfigToFile store config
Types ¶
type Command ¶
type Command struct { Name string Run func(ctx *Context, args []string) error // contains filtered or unexported fields }
func NewRootCommand ¶
func NewRootCommand() *Command
func (*Command) HandleConfigureCommand ¶
func (*Command) InitRootCommand ¶
func (c *Command) InitRootCommand()
type Configure ¶
type Configure struct { Current string `json:"current"` Profiles map[string]*Profile `json:"profiles"` }
func (*Configure) SetRandomCurrentProfile ¶
func (config *Configure) SetRandomCurrentProfile()
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func NewContext ¶
func NewContext() *Context
func (*Context) SetCommand ¶
type FlagSet ¶
type FlagSet struct {
// contains filtered or unexported fields
}
func NewFlagSet ¶
func NewFlagSet() *FlagSet
type Profile ¶
type RootSupport ¶
type RootSupport struct { SupportSvc []string SupportAction map[string]map[string]*ApiInfo Versions map[string]string }
func NewRootSupport ¶
func NewRootSupport() *RootSupport
func (*RootSupport) GetAllAction ¶
func (r *RootSupport) GetAllAction(svc string) []string
func (*RootSupport) GetAllSvc ¶
func (r *RootSupport) GetAllSvc() []string
func (*RootSupport) GetApiInfo ¶
func (r *RootSupport) GetApiInfo(svc string, action string) *ApiInfo
func (*RootSupport) GetVersion ¶
func (r *RootSupport) GetVersion(svc string) string
func (*RootSupport) IsValidAction ¶
func (r *RootSupport) IsValidAction(svc, action string) bool
func (*RootSupport) IsValidSvc ¶
func (r *RootSupport) IsValidSvc(svc string) bool
type SdkClient ¶
type SdkClient struct { Config *volcengine.Config Session *session.Session }
func NewSimpleClient ¶
type SdkClientInfo ¶
type VestackMeta ¶
Click to show internal directories.
Click to hide internal directories.