Documentation ¶
Index ¶
- Variables
- func CompleteRuntimeList(cmd *cobra.Command, args []string, toComplete string, client *dubbo.Client) (matches []string, directive cobra.ShellCompDirective)
- func CompleteTemplateList(cmd *cobra.Command, args []string, toComplete string, client *dubbo.Client) (matches []string, directive cobra.ShellCompDirective)
- func ConfigDashboardAdminCmd(baseCmd *cobra.Command)
- func ConfigDashboardGrafanaCmd(baseCmd *cobra.Command)
- func ConfigDashboardNacosCmd(baseCmd *cobra.Command)
- func ConfigDashboardPrometheusCmd(baseCmd *cobra.Command)
- func ConfigDashboardSkywalkingCmd(baseCmd *cobra.Command)
- func ConfigDashboardZipkinCmd(baseCmd *cobra.Command)
- func ConfigManifestDiffCmd(baseCmd *cobra.Command)
- func ConfigManifestGenerateCmd(baseCmd *cobra.Command)
- func ConfigManifestInstallCmd(baseCmd *cobra.Command)
- func ConfigManifestUninstallCmd(baseCmd *cobra.Command)
- func ConfigProfileDiffCmd(baseCmd *cobra.Command)
- func ConfigProfileListCmd(baseCmd *cobra.Command)
- func Execute(args []string)
- func NewClient(options ...dubbo.Option) (*dubbo.Client, func())
- func NewGenerateCertificateCmd(baseCmd *cobra.Command)
- func NewRepositoryAddCmd(newClient ClientFactory) *cobra.Command
- func NewRepositoryListCmd(newClient ClientFactory) *cobra.Command
- func NewRepositoryRemoveCmd(newClient ClientFactory) *cobra.Command
- func NewRepositoryRenameCmd(newClient ClientFactory) *cobra.Command
- func RuntimeTemplateOptions(client *dubbo.Client) (string, error)
- func UsageOptions(desc string, options ...interface{}) string
- func ValidateTokenPath(path string) error
- type ClientFactory
- type DashboardCommonArgs
- type DeployConfig
- type ErrInvalidRuntime
- type ErrInvalidTemplate
- type ErrNoRuntime
- type ManifestDiffArgs
- type ManifestGenerateArgs
- type ManifestInstallArgs
- type ManifestUninstallArgs
- type ProfileDiffArgs
- type ProfileListArgs
- type ProxyConfig
- type ResourceType
- type RootCommandConfig
Constants ¶
This section is empty.
Variables ¶
var ( // TestInstallFlag and TestCli are uses for black box testing TestInstallFlag bool TestCli client.Client )
var ( // TODO: think about a efficient way to change selectors and ports when yaml files change // ports are coming from /deploy/charts and /deploy/kubernetes ComponentPortMap = map[kube.ComponentName]int{ kube.Admin: 8080, kube.Grafana: 3000, kube.Nacos: 8848, kube.Prometheus: 9090, kube.Skywalking: 8080, kube.Zipkin: 9411, } // ComponentSelectorMap selectors are coming from /deploy/charts and /deploy/kubernetes ComponentSelectorMap = map[kube.ComponentName]string{ kube.Admin: "app.kubernetes.io/name=dubbo-admin", kube.Grafana: "app.kubernetes.io/name=grafana", kube.Nacos: "app.kubernetes.io/name=nacos", kube.Prometheus: "app=prometheus", kube.Skywalking: "app=skywalking, component=ui", kube.Zipkin: "app.kubernetes.io/name=zipkin", } )
var NewSelfSignedCert = tls.NewSelfSignedCert
Functions ¶
func CompleteRuntimeList ¶
func CompleteTemplateList ¶
func ConfigDashboardAdminCmd ¶
func ConfigDashboardNacosCmd ¶
func ConfigManifestDiffCmd ¶
func ConfigProfileDiffCmd ¶
func ConfigProfileListCmd ¶
func Execute ¶
func Execute(args []string)
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func NewRepositoryAddCmd ¶
func NewRepositoryAddCmd(newClient ClientFactory) *cobra.Command
func NewRepositoryListCmd ¶
func NewRepositoryListCmd(newClient ClientFactory) *cobra.Command
func NewRepositoryRemoveCmd ¶
func NewRepositoryRemoveCmd(newClient ClientFactory) *cobra.Command
func NewRepositoryRenameCmd ¶
func NewRepositoryRenameCmd(newClient ClientFactory) *cobra.Command
func RuntimeTemplateOptions ¶
RuntimeTemplateOptions is a human-friendly table of valid Language Runtime to Template combinations. Exported for use in docs.
func UsageOptions ¶
func ValidateTokenPath ¶
Types ¶
type ClientFactory ¶
ClientFactory defines a constructor which assists in the creation of a Client for use by commands. See the NewClient constructor which is the fully populated ClientFactory used by commands by default. See NewClientFactory which constructs a minimal ClientFactory for use during testing.
type DashboardCommonArgs ¶
type DeployConfig ¶
type DeployConfig struct { KubeConfig string Context string Build bool Apply bool Namespace string ContainerPort int Output string Force bool TargetPort int NodePort int // contains filtered or unexported fields }
func (DeployConfig) Configure ¶
func (c DeployConfig) Configure(f *dubbo.Dubbo)
func (*DeployConfig) Prompt ¶
func (c *DeployConfig) Prompt(d *dubbo.Dubbo) (*DeployConfig, error)
type ErrInvalidRuntime ¶
type ErrInvalidRuntime error
ErrInvalidRuntime indicates that the passed language runtime was invalid.
type ErrInvalidTemplate ¶
type ErrInvalidTemplate error
ErrInvalidTemplate indicates that the passed template was invalid.
type ErrNoRuntime ¶
type ErrNoRuntime error
ErrNoRuntime indicates that the language runtime flag was not passed.
type ManifestDiffArgs ¶
type ManifestDiffArgs struct {
CompareDir bool
}
type ManifestGenerateArgs ¶
type ManifestInstallArgs ¶
type ManifestInstallArgs struct { ManifestGenerateArgs KubeConfigPath string // selected cluster info of kubeconfig Context string }
type ManifestUninstallArgs ¶
type ManifestUninstallArgs struct { ManifestGenerateArgs KubeConfigPath string // selected cluster info of kubeconfig Context string }
type ProfileDiffArgs ¶
type ProfileDiffArgs struct {
ProfilesPath string
}
type ProfileListArgs ¶
type ProfileListArgs struct {
ProfilesPath string
}
type ProxyConfig ¶
type ProxyConfig struct { ComponentManager component.Manager BootstrapDynamicMetadata map[string]string Config *dubboctl.Config BootstrapGenerator envoy.BootstrapConfigFactoryFunc DataplaneTokenGenerator func(cfg *dubboctl.Config) (component.Component, error) LogLevel log.LogLevel }
func DefaultProxyConfig ¶
func DefaultProxyConfig() *ProxyConfig
type ResourceType ¶
type ResourceType string
type RootCommandConfig ¶
type RootCommandConfig struct { Name string NewClient ClientFactory }
Source Files ¶
- build.go
- client.go
- common.go
- completion_util.go
- create.go
- dashboard.go
- dashboard_all_cmds.go
- deploy.go
- generate.go
- generate_certificate.go
- manifest.go
- manifest_diff.go
- manifest_generate.go
- manifest_install.go
- manifest_uninstall.go
- profile.go
- profile_diff.go
- profile_list.go
- proxy.go
- proxy_context.go
- registry.go
- repository.go
- root.go