padcli

package
v0.0.0-...-2dfab7d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAdditionalCommands

func WithAdditionalCommands(cmds ...cmdFunc) padcliOption

func WithAnalyticsProvider

func WithAnalyticsProvider(analytics provider.Analytics) padcliOption

func WithAuthProvider

func WithAuthProvider(auth provider.Auth) padcliOption

func WithClusterProvider

func WithClusterProvider(provider provider.ClusterProvider) padcliOption

func WithEnvSecProvider

func WithEnvSecProvider(provider provider.EnvSec) padcliOption

func WithErrorLogger

func WithErrorLogger(logger provider.ErrorLogger) padcliOption

func WithHooks

func WithHooks(hooks *hook.Hooks) 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 CobraFunc

type CobraFunc func(cmd *cobra.Command, args []string) error

type Padcli

type Padcli struct {
	// contains filtered or unexported fields
}

func New

func New(opts ...padcliOption) *Padcli

func (*Padcli) AdditionalCommands

func (p *Padcli) AdditionalCommands() []*cobra.Command

func (*Padcli) AnalyticsProvider

func (p *Padcli) AnalyticsProvider() provider.Analytics

func (*Padcli) AuthProvider

func (p *Padcli) AuthProvider() provider.Auth

func (*Padcli) ClusterProvider

func (p *Padcli) ClusterProvider() provider.ClusterProvider

func (*Padcli) EnvSecProvider

func (p *Padcli) EnvSecProvider() provider.EnvSec

func (*Padcli) ErrorLogger

func (p *Padcli) ErrorLogger() provider.ErrorLogger

func (*Padcli) Hooks

func (p *Padcli) Hooks() *hook.Hooks

func (*Padcli) InitSurveyProvider

func (p *Padcli) InitSurveyProvider() provider.InitSurveyProvider

func (*Padcli) NamespaceProvider

func (p *Padcli) NamespaceProvider() provider.NamespaceProvider

func (*Padcli) PersistentPostRunE

func (p *Padcli) PersistentPostRunE(cmd *cobra.Command, args []string) error

func (*Padcli) PersistentPreRunE

func (p *Padcli) PersistentPreRunE(cmd *cobra.Command, args []string) error

func (*Padcli) RepositoryProvider

func (p *Padcli) RepositoryProvider() provider.Repository

func (*Padcli) RootCommand

func (p *Padcli) RootCommand() *cobra.Command

func (*Padcli) RootFlags

func (p *Padcli) RootFlags() *flags.RootCmdFlags

func (*Padcli) Run

func (p *Padcli) Run(ctx context.Context)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL