Help us shape the future of Go! Take the 2026 Go Developer Survey

secrets

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2015 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AddSecretRecommendedName = "add"
)
View Source
const (
	CreateDockerConfigSecretRecommendedName = "new-dockercfg"
)
View Source
const (
	NewSecretRecommendedCommandName = "new"
)
View Source
const SecretsRecommendedName = "secrets"

Variables

Functions

func NewCmdAddSecret

func NewCmdAddSecret(name, fullName string, f *cmdutil.Factory, out io.Writer) *cobra.Command

NewCmdAddSecret creates a command object for adding a secret reference to a service account

func NewCmdCreateDockerConfigSecret

func NewCmdCreateDockerConfigSecret(name, fullName string, f *cmdutil.Factory, out io.Writer, newSecretFullName, ocEditFullName string) *cobra.Command

NewCmdCreateDockerConfigSecret creates a command object for making a dockercfg secret

func NewCmdCreateSecret

func NewCmdCreateSecret(name, fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command

func NewCmdSecrets

func NewCmdSecrets(name, fullName string, f *clientcmd.Factory, out io.Writer, ocEditFullName string) *cobra.Command

Types

type AddSecretOptions

type AddSecretOptions struct {
	TargetName  string
	SecretNames []string

	ForMount bool
	ForPull  bool

	Namespace string

	Mapper          meta.RESTMapper
	Typer           runtime.ObjectTyper
	ClientMapper    resource.ClientMapper
	ClientInterface client.Interface

	Out io.Writer
}

func (AddSecretOptions) AddSecrets

func (o AddSecretOptions) AddSecrets() error

func (*AddSecretOptions) Complete

func (o *AddSecretOptions) Complete(f *cmdutil.Factory, args []string, typeFlags []string) error

func (AddSecretOptions) GetOut

func (o AddSecretOptions) GetOut() io.Writer

func (AddSecretOptions) Validate

func (o AddSecretOptions) Validate() error

type CreateDockerConfigOptions

type CreateDockerConfigOptions struct {
	SecretNamespace  string
	SecretName       string
	RegistryLocation string
	Username         string
	Password         string
	EmailAddress     string

	SecretsInterface client.SecretsInterface

	Out io.Writer
}

func (*CreateDockerConfigOptions) Complete

func (o *CreateDockerConfigOptions) Complete(f *cmdutil.Factory, args []string) error

func (CreateDockerConfigOptions) CreateDockerSecret

func (o CreateDockerConfigOptions) CreateDockerSecret() error

func (CreateDockerConfigOptions) GetOut

func (o CreateDockerConfigOptions) GetOut() io.Writer

func (CreateDockerConfigOptions) MakeDockerSecret

func (o CreateDockerConfigOptions) MakeDockerSecret() (*api.Secret, error)

func (CreateDockerConfigOptions) Validate

func (o CreateDockerConfigOptions) Validate() error

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

	SecretsInterface kclient.SecretsInterface

	// Writer to write warnings to
	Stderr io.Writer

	Out io.Writer

	// Controls whether to output warnings
	Quiet bool
}

func NewCreateSecretOptions

func NewCreateSecretOptions() *CreateSecretOptions

func (*CreateSecretOptions) BundleSecret

func (o *CreateSecretOptions) BundleSecret() (*kapi.Secret, error)

func (*CreateSecretOptions) Complete

func (o *CreateSecretOptions) Complete(args []string, f *clientcmd.Factory) error

func (*CreateSecretOptions) CreateSecret

func (o *CreateSecretOptions) CreateSecret() (*kapi.Secret, error)

func (*CreateSecretOptions) Validate

func (o *CreateSecretOptions) Validate() error

type KnownSecretType

type KnownSecretType struct {
	Type             kapi.SecretType
	RequiredContents util.StringSet
}

func (KnownSecretType) Matches

func (ks KnownSecretType) Matches(secretContent map[string][]byte) bool

Jump to

Keyboard shortcuts

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