Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNoSecretFound is thrown when no secret name was provided but we didn't find any secrets ErrNoSecretFound = errors.New("no secrets found") // ErrSecretEmpty is thrown when there's no data in the secret ErrSecretEmpty = errors.New("secret is empty") // ErrSecretKeyNotFound is thrown if the key doesn't exist in the secret ErrSecretKeyNotFound = errors.New("provided key not found in secret") )
Functions ¶
func NewCmdViewSecret ¶
NewCmdViewSecret creates the cobra command to be executed
Types ¶
type CommandOpts ¶
type CommandOpts struct {
// contains filtered or unexported fields
}
CommandOpts is the struct holding common properties
func (*CommandOpts) ParseArgs ¶ added in v0.13.0
func (c *CommandOpts) ParseArgs(args []string)
ParseArgs serializes the user supplied program arguments
type Secret ¶ added in v0.13.0
type Secret struct { Data SecretData `json:"data"` Metadata Metadata `json:"metadata"` }
type SecretData ¶ added in v0.13.0
type SecretList ¶ added in v0.13.0
type SecretList struct {
Items []Secret `json:"items"`
}
Click to show internal directories.
Click to hide internal directories.