kubectl

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: Apache-2.0 Imports: 13 Imported by: 2

Documentation

Index

Constants

View Source
const (
	DocsFlagYamlOnly = "YamlOnly"
)

Variables

View Source
var (
	InvalidCiphertextFilenameError = errors.Errorf("Ciphertext files must end with '%s'.", encryptedSuffix)
	UnableToDecryptFileError       = func(err error) error {
		return errors.Wrapf(err, "Unable to decrypt file.")
	}
	MissingEnvVarError = func(envVar string) error {
		return errors.Errorf("Missing environment variable %s", envVar)
	}
)
View Source
var (
	UnableToLoadPatchError = func(err error) error {
		return errors.Wrapf(err, "unable to load patch")
	}
)

Functions

This section is empty.

Types

type Apply

type Apply struct {
	Path string `json:"path,omitempty"`
}

func (*Apply) GetCmd

func (a *Apply) GetCmd() *cmd.Command

func (*Apply) GetDescription

func (a *Apply) GetDescription(_ *api.WorkflowContext, _ render.Values) (string, error)

func (*Apply) GetDocs

func (a *Apply) GetDocs(ctx *api.WorkflowContext, values render.Values, flags render.Flags) (string, error)

func (*Apply) Run

func (a *Apply) Run(ctx *api.WorkflowContext, values render.Values) error

type ApplyTemplate

type ApplyTemplate struct {
	Path string `json:"path,omitempty"`
}

func (*ApplyTemplate) GetCmd

func (a *ApplyTemplate) GetCmd(ctx *api.WorkflowContext, values render.Values) (*cmd.Command, error)

func (*ApplyTemplate) GetDescription

func (a *ApplyTemplate) GetDescription(ctx *api.WorkflowContext, values render.Values) (string, error)

func (*ApplyTemplate) GetDocs

func (a *ApplyTemplate) GetDocs(ctx *api.WorkflowContext, values render.Values, flags render.Flags) (string, error)

func (*ApplyTemplate) Run

func (a *ApplyTemplate) Run(ctx *api.WorkflowContext, values render.Values) error

type CreateSecret

type CreateSecret struct {
	// Currently, secrets cannot consist of values from multiple registries
	Name      string                 `json:"name,omitempty"`
	Namespace string                 `json:"namespace,omitempty" valet:"key=Namespace"`
	Type      string                 `json:"typ,omitemptye" valet:"default=Opaque"`
	Entries   map[string]SecretValue `json:"entries,omitempty"`
}

func (*CreateSecret) GetDescription

func (s *CreateSecret) GetDescription(ctx *api.WorkflowContext, values render.Values) (string, error)

func (*CreateSecret) GetDocs

func (s *CreateSecret) GetDocs(ctx *api.WorkflowContext, values render.Values, flags render.Flags) (string, error)

func (*CreateSecret) Run

func (s *CreateSecret) Run(ctx *api.WorkflowContext, values render.Values) error

type Delete

type Delete struct {
	Path string `json:"path,omitempty"`
}

func (*Delete) GetCmd

func (a *Delete) GetCmd() *cmd.Command

func (*Delete) GetDescription

func (a *Delete) GetDescription(_ *api.WorkflowContext, _ render.Values) (string, error)

func (*Delete) GetDocs

func (a *Delete) GetDocs(ctx *api.WorkflowContext, values render.Values, flags render.Flags) (string, error)

func (*Delete) Run

func (a *Delete) Run(ctx *api.WorkflowContext, values render.Values) error

type GcloudKmsEncryptedFile

type GcloudKmsEncryptedFile struct {
	CiphertextFile string `json:"ciphertextFile,omitempty"`
	GcloudProject  string `json:"gcloudProject,omitempty"`
	Keyring        string `json:"keyring,omitempty"`
	Key            string `json:"key,omitempty"`
}

type Patch

type Patch struct {
	Path      string `json:"path"`
	PatchType string `json:"patchType"`
	Name      string `json:"name" valet:"template"`
	Namespace string `json:"namespace" valet:"template"`
	KubeType  string `json:"kubeType"`
}

func (*Patch) GetCmd

func (p *Patch) GetCmd(ctx *api.WorkflowContext, values render.Values) (*cmd.Command, error)

func (*Patch) GetDescription

func (p *Patch) GetDescription(ctx *api.WorkflowContext, values render.Values) (string, error)

func (*Patch) GetDocs

func (p *Patch) GetDocs(ctx *api.WorkflowContext, values render.Values, flags render.Flags) (string, error)

func (*Patch) Run

func (p *Patch) Run(ctx *api.WorkflowContext, values render.Values) error

type SecretValue

type SecretValue struct {
	EnvVar                 string                  `json:"envVar,omitempty"`
	File                   string                  `json:"file,omitempty"`
	GcloudKmsEncryptedFile *GcloudKmsEncryptedFile `json:"gcloudKmsEncryptedFile,omitempty"`
}

Jump to

Keyboard shortcuts

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