Documentation
¶
Index ¶
- Constants
- func ShouldSkipResolve(cmd *cobra.Command) bool
- func SplitAndTrim(value string) []string
- type ContextStore
- type ContextSummary
- type RocketMQConfig
- func (r *RocketMQConfig) AddContext(name string, namesrvAddrs []string, accessKey, secretKey string) error
- func (r *RocketMQConfig) ContextExists(name string) (bool, error)
- func (r *RocketMQConfig) GetNamesrvAddrs() []string
- func (r *RocketMQConfig) InstallRocketMQFlags(cmd *cobra.Command)
- func (r *RocketMQConfig) InstallRootFlags(cmd *cobra.Command)
- func (r *RocketMQConfig) Load() error
- func (r *RocketMQConfig) LoadContextStore() (ContextStore, error)
- func (r *RocketMQConfig) Resolve(cmd *cobra.Command) error
- func (r *RocketMQConfig) SetCurrentContext(name string) error
- type RuntimeConfig
Constants ¶
View Source
const ( DefaultNamesrvAddr = "127.0.0.1:9876" FlagAccessKey = "accessKey" FlagConfig = "config" FlagContext = "context" FlagNameserver = "nameserver" FlagSecretKey = "secretKey" )
View Source
const AnnotationSkipResolve = "rmq.echooymxq.io/skip-resolve"
Variables ¶
This section is empty.
Functions ¶
func ShouldSkipResolve ¶
func SplitAndTrim ¶
Types ¶
type ContextStore ¶
type ContextStore struct {
ConfigFile string
Current string
Contexts []ContextSummary
}
type ContextSummary ¶
type RocketMQConfig ¶
type RocketMQConfig struct {
ConfigFile string
Context string
AccessKey string
SecretKey string
NamesrvAddrs string
Runtime RuntimeConfig
}
func (*RocketMQConfig) AddContext ¶
func (r *RocketMQConfig) AddContext(name string, namesrvAddrs []string, accessKey, secretKey string) error
func (*RocketMQConfig) ContextExists ¶
func (r *RocketMQConfig) ContextExists(name string) (bool, error)
func (*RocketMQConfig) GetNamesrvAddrs ¶
func (r *RocketMQConfig) GetNamesrvAddrs() []string
func (*RocketMQConfig) InstallRocketMQFlags ¶
func (r *RocketMQConfig) InstallRocketMQFlags(cmd *cobra.Command)
func (*RocketMQConfig) InstallRootFlags ¶
func (r *RocketMQConfig) InstallRootFlags(cmd *cobra.Command)
func (*RocketMQConfig) Load ¶
func (r *RocketMQConfig) Load() error
func (*RocketMQConfig) LoadContextStore ¶
func (r *RocketMQConfig) LoadContextStore() (ContextStore, error)
func (*RocketMQConfig) SetCurrentContext ¶
func (r *RocketMQConfig) SetCurrentContext(name string) error
Click to show internal directories.
Click to hide internal directories.