Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( KnownSecretTypes = []KnownSecretType{ {kapi.SecretTypeDockercfg, util.NewStringSet(kapi.DockerConfigKey)}, } )
Functions ¶
Types ¶
type CreateSecretOptions ¶
type CreateSecretOptions struct {
// Name of the resulting secret
Name string
// SecretTypeName is the type to use when creating the secret. It is checked against known types.
SecretTypeName string
// Files/Directories to read from.
// Directory sources are listed and any direct file children included (but subfolders are not traversed)
Sources util.StringList
// Writer to write warnings to
Stderr io.Writer
// Controls whether to output warnings
Quiet bool
}
func NewDefaultOptions ¶
func NewDefaultOptions() *CreateSecretOptions
func (*CreateSecretOptions) Complete ¶
func (o *CreateSecretOptions) Complete(args []string) error
func (*CreateSecretOptions) CreateSecret ¶
func (o *CreateSecretOptions) CreateSecret() (*kapi.Secret, error)
func (*CreateSecretOptions) Validate ¶
func (o *CreateSecretOptions) Validate() error
type KnownSecretType ¶ added in v0.5.3
type KnownSecretType struct {
Type kapi.SecretType
RequiredContents util.StringSet
}
Click to show internal directories.
Click to hide internal directories.