Documentation ¶
Index ¶
- Constants
- type Command
- func (c *Command) Complete(ctx context.Context, r *readline.Readline) []goprompt.Suggest
- func (c *Command) Description() string
- func (c *Command) Execute(ctx context.Context, r *readline.Readline) error
- func (c *Command) Help(ctx context.Context, r *readline.Readline) string
- func (c *Command) Name() string
- type CommandOption
- type NamespaceFn
- type Option
- type Squadron
- func (s *Squadron) Cluster(name string) (squadron.Cluster, bool)
- func (s *Squadron) Exists(name string) bool
- func (s *Squadron) GetFiles(squadron, cluster, fleet string, override bool) []string
- func (s *Squadron) List() ([]string, error)
- func (s *Squadron) ListUnits(ctx context.Context, squadron, cluster, fleet string, override bool) ([]string, error)
- func (s *Squadron) UnitDirs(squadron string) []string
- func (s *Squadron) UnitExists(ctx context.Context, squadron, cluster, fleet, name string, override bool) bool
Constants ¶
View Source
const All = "all"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
func NewCommand ¶
func NewCommand(l log.Logger, squadron *Squadron, kubectl *kubectl.Kubectl, op *onepassword.OnePassword, opts ...CommandOption) *Command
func (*Command) Description ¶
type CommandOption ¶
type CommandOption func(*Command)
func CommandWithNamespaceFn ¶
func CommandWithNamespaceFn(v NamespaceFn) CommandOption
func CommandWithSlack ¶
func CommandWithSlack(v *slack.Slack) CommandOption
func CommandWithSlackChannelID ¶
func CommandWithSlackChannelID(v string) CommandOption
type NamespaceFn ¶
type Option ¶
func WithConfigKey ¶
Click to show internal directories.
Click to hide internal directories.