Documentation ¶
Overview ¶
Copyright © 2022 NAME HERE <EMAIL ADDRESS>
Index ¶
- Constants
- func Execute()
- func GetServiceMapping(s string) (string, bool)
- func SetServiceMapping(s1, s2 string)
- func WriteConfigToFile(config *Configure) error
- type ApiInfo
- type ApiMeta
- type Configure
- type Context
- type Flag
- type FlagSet
- type Meta
- type MetaInfo
- type MetaType
- type Parser
- type Profile
- type RootSupport
- func (r *RootSupport) GetAllAction(svc string) []string
- func (r *RootSupport) GetAllSvc() []string
- func (r *RootSupport) GetAllSvcCompatible() []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 StructInfo
- type VolcengineMeta
Constants ¶
View Source
const ConfigFile = "config.json"
Variables ¶
This section is empty.
Functions ¶
func GetServiceMapping ¶
func SetServiceMapping ¶ added in v1.0.12
func SetServiceMapping(s1, s2 string)
func WriteConfigToFile ¶
WriteConfigToFile store config
Types ¶
type Configure ¶
type Configure struct { Current string `json:"current"` Profiles map[string]*Profile `json:"profiles"` EnableColor bool `json:"enableColor"` }
func LoadConfig ¶
func LoadConfig() *Configure
LoadConfig from CONFIG_FILE_DIR(default ~/.volcengine)
func (*Configure) SetRandomCurrentProfile ¶
func (config *Configure) SetRandomCurrentProfile()
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func NewContext ¶
func NewContext() *Context
type FlagSet ¶
type FlagSet struct {
// contains filtered or unexported fields
}
func NewFlagSet ¶
func NewFlagSet() *FlagSet
type Meta ¶
type Meta struct { MetaTypes map[string]*MetaType `json:"MetaTypes,omitempty"` ChildMetas map[string]*Meta `json:"ChildMetas,omitempty"` }
func (*Meta) GetReqBody ¶
type Profile ¶
type RootSupport ¶
type RootSupport struct { SupportSvc []string SupportAction map[string]map[string]*VolcengineMeta Versions map[string]string SupportTypes map[string]map[string]*ApiMeta }
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) GetAllSvcCompatible ¶ added in v1.0.15
func (r *RootSupport) GetAllSvcCompatible() []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 StructInfo ¶ added in v1.0.15
type VolcengineMeta ¶
func (*VolcengineMeta) GetRequestParams ¶
func (meta *VolcengineMeta) GetRequestParams(apiMeta *ApiMeta) (params []param)
Click to show internal directories.
Click to hide internal directories.