Documentation ¶
Index ¶
- Constants
- func AuthChecker(p *GCloud) check.Checker
- type Account
- type Cluster
- type ClusterNameFn
- 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 Config
- type GCloud
- type Option
Constants ¶
View Source
const (
ClusterNameDefault string = "default"
)
Variables ¶
This section is empty.
Functions ¶
func AuthChecker ¶ added in v0.3.0
Types ¶
type Account ¶ added in v0.1.0
type Account struct { Name string `json:"name" yaml:"name"` Email string `json:"email" yaml:"email"` Key *onepassword.Secret `json:"key" yaml:"key"` }
type ClusterNameFn ¶ added in v0.1.0
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
func NewCommand ¶
func (*Command) Description ¶
type CommandOption ¶ added in v0.1.0
type CommandOption func(command *Command)
func CommandWithClusterNameFn ¶ added in v0.1.0
func CommandWithClusterNameFn(v ClusterNameFn) CommandOption
func CommandWithName ¶ added in v0.1.0
func CommandWithName(v string) CommandOption
func CommandWithOnePassword ¶ added in v0.1.0
func CommandWithOnePassword(v *onepassword.OnePassword) CommandOption
type Config ¶
type Config struct { ConfigPath string `json:"configPath" yaml:"configPath"` Accounts map[string]Account `json:"accounts" yaml:"accounts"` Clusters map[string]Cluster `json:"clusters" yaml:"clusters"` }
func (Config) AccountNames ¶ added in v0.1.0
func (Config) ClusterNames ¶
type GCloud ¶
type GCloud struct {
// contains filtered or unexported fields
}
func (*GCloud) ActiveAccount ¶ added in v0.1.0
ActiveAccount returns the active account email
func (*GCloud) ServiceAccountKeysPath ¶ added in v0.1.0
Source Files ¶
Click to show internal directories.
Click to hide internal directories.