Documentation ¶
Index ¶
- func WithAdditionalCommands(cmds ...cmdFunc) padcliOption
- func WithAnalyticsProvider(analytics provider.Analytics) padcliOption
- func WithAuthProvider(auth provider.Auth) padcliOption
- func WithClusterProvider(provider provider.ClusterProvider) padcliOption
- func WithEnvSecProvider(provider provider.EnvSec) padcliOption
- func WithErrorLogger(logger provider.ErrorLogger) padcliOption
- func WithHooks(hooks *hook.Hooks) padcliOption
- func WithInitSurveyProvider(provider provider.InitSurveyProvider) padcliOption
- func WithNamespaceProvider(ns provider.NamespaceProvider) padcliOption
- func WithPersistentPostRunE(r CobraFunc) padcliOption
- func WithPersistentPreRunE(r CobraFunc) padcliOption
- func WithRepositoryProvider(provider provider.Repository) padcliOption
- type CobraFunc
- type Padcli
- func (p *Padcli) AdditionalCommands() []*cobra.Command
- func (p *Padcli) AnalyticsProvider() provider.Analytics
- func (p *Padcli) AuthProvider() provider.Auth
- func (p *Padcli) ClusterProvider() provider.ClusterProvider
- func (p *Padcli) EnvSecProvider() provider.EnvSec
- func (p *Padcli) ErrorLogger() provider.ErrorLogger
- func (p *Padcli) Hooks() *hook.Hooks
- func (p *Padcli) InitSurveyProvider() provider.InitSurveyProvider
- func (p *Padcli) NamespaceProvider() provider.NamespaceProvider
- func (p *Padcli) PersistentPostRunE(cmd *cobra.Command, args []string) error
- func (p *Padcli) PersistentPreRunE(cmd *cobra.Command, args []string) error
- func (p *Padcli) RepositoryProvider() provider.Repository
- func (p *Padcli) RootCommand() *cobra.Command
- func (p *Padcli) RootFlags() *flags.RootCmdFlags
- func (p *Padcli) Run(ctx context.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithAdditionalCommands ¶
func WithAdditionalCommands(cmds ...cmdFunc) padcliOption
func WithAnalyticsProvider ¶
func WithAuthProvider ¶
func WithClusterProvider ¶
func WithClusterProvider(provider provider.ClusterProvider) padcliOption
func WithEnvSecProvider ¶
func WithErrorLogger ¶
func WithErrorLogger(logger provider.ErrorLogger) padcliOption
func WithInitSurveyProvider ¶
func WithInitSurveyProvider(provider provider.InitSurveyProvider) padcliOption
func WithNamespaceProvider ¶
func WithNamespaceProvider(ns provider.NamespaceProvider) padcliOption
func WithPersistentPostRunE ¶
func WithPersistentPostRunE(r CobraFunc) padcliOption
func WithPersistentPreRunE ¶
func WithPersistentPreRunE(r CobraFunc) padcliOption
func WithRepositoryProvider ¶
func WithRepositoryProvider(provider provider.Repository) padcliOption
Types ¶
type Padcli ¶
type Padcli struct {
// contains filtered or unexported fields
}
func (*Padcli) AdditionalCommands ¶
func (*Padcli) AnalyticsProvider ¶
func (*Padcli) AuthProvider ¶
func (*Padcli) ClusterProvider ¶
func (p *Padcli) ClusterProvider() provider.ClusterProvider
func (*Padcli) EnvSecProvider ¶
func (*Padcli) ErrorLogger ¶
func (p *Padcli) ErrorLogger() provider.ErrorLogger
func (*Padcli) InitSurveyProvider ¶
func (p *Padcli) InitSurveyProvider() provider.InitSurveyProvider
func (*Padcli) NamespaceProvider ¶
func (p *Padcli) NamespaceProvider() provider.NamespaceProvider
func (*Padcli) PersistentPostRunE ¶
func (*Padcli) PersistentPreRunE ¶
func (*Padcli) RepositoryProvider ¶
func (p *Padcli) RepositoryProvider() provider.Repository
func (*Padcli) RootCommand ¶
func (*Padcli) RootFlags ¶
func (p *Padcli) RootFlags() *flags.RootCmdFlags
Click to show internal directories.
Click to hide internal directories.