cmd

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: MIT Imports: 39 Imported by: 0

Documentation

Overview

Copyright © 2023 Dataflows

Copyright © 2023 Dataflows

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func GenerateEncodedKeyPair added in v0.7.0

func GenerateEncodedKeyPair(keyType string) (pubKeyBytes, privKeyBytes []byte, err error)

Types

type Cluster added in v0.6.0

type Cluster struct {
	// contains filtered or unexported fields
}

func NewCluster added in v0.6.0

func NewCluster(parent *Root) *Cluster

func (*Cluster) CheckRequiredFlags added in v0.6.0

func (c *Cluster) CheckRequiredFlags() error

func (*Cluster) ClusterBootstrapPath added in v0.7.0

func (c *Cluster) ClusterBootstrapPath() string

func (*Cluster) ClusterContext added in v0.7.0

func (c *Cluster) ClusterContext() string

func (*Cluster) Cmd added in v0.7.0

func (c *Cluster) Cmd() *cobra.Command

func (*Cluster) DefaultClusterBootstrapPath added in v0.6.0

func (c *Cluster) DefaultClusterBootstrapPath() string

func (*Cluster) DefaultClusterContext added in v0.6.0

func (c *Cluster) DefaultClusterContext() string

func (*Cluster) KeyClusterBootstrapPath added in v0.6.0

func (c *Cluster) KeyClusterBootstrapPath() string

func (*Cluster) KeyClusterContext added in v0.6.0

func (c *Cluster) KeyClusterContext() string

Flags keys, defaults and value getters

func (*Cluster) KeyTimeout added in v0.6.0

func (c *Cluster) KeyTimeout() string

func (*Cluster) RunClusterCommand added in v0.7.0

func (c *Cluster) RunClusterCommand(cmd *cobra.Command, args []string) error

func (*Cluster) Timeout added in v0.7.0

func (c *Cluster) Timeout() string

type ClusterBootstrap added in v0.6.0

type ClusterBootstrap struct {
	// contains filtered or unexported fields
}

func NewClusterBootstrap added in v0.6.0

func NewClusterBootstrap(parent *Cluster) *ClusterBootstrap

func (*ClusterBootstrap) CheckRequiredFlags added in v0.6.0

func (c *ClusterBootstrap) CheckRequiredFlags() error

func (*ClusterBootstrap) RunClusterBootstrapCommand added in v0.7.0

func (c *ClusterBootstrap) RunClusterBootstrapCommand(cmd *cobra.Command, args []string) error

type ClusterKubeconfig added in v0.6.0

type ClusterKubeconfig struct {
	// contains filtered or unexported fields
}

func NewClusterKubeconfig added in v0.6.0

func NewClusterKubeconfig(parent *Cluster) *ClusterKubeconfig

func (*ClusterKubeconfig) CheckRequiredFlags added in v0.6.0

func (c *ClusterKubeconfig) CheckRequiredFlags() error

func (*ClusterKubeconfig) RunClusterKubeconfigCommand added in v0.7.0

func (c *ClusterKubeconfig) RunClusterKubeconfigCommand(cmd *cobra.Command, args []string) error

type ClusterKubectl added in v0.9.0

type ClusterKubectl struct {
	// contains filtered or unexported fields
}

func NewClusterKubectl added in v0.9.0

func NewClusterKubectl(parent *Cluster) *ClusterKubectl

func (*ClusterKubectl) CheckRequiredFlags added in v0.9.0

func (c *ClusterKubectl) CheckRequiredFlags() error

func (*ClusterKubectl) RunClusterKubectlCommand added in v0.9.0

func (c *ClusterKubectl) RunClusterKubectlCommand(cmd *cobra.Command, args []string) error

type ClusterRemote added in v0.6.0

type ClusterRemote struct {
	// contains filtered or unexported fields
}

func NewClusterRemote added in v0.6.0

func NewClusterRemote(parent *Cluster) *ClusterRemote

func (*ClusterRemote) CheckRequiredFlags added in v0.6.0

func (c *ClusterRemote) CheckRequiredFlags() error

func (*ClusterRemote) ClusterRemoteHosts added in v0.7.0

func (c *ClusterRemote) ClusterRemoteHosts() []string

func (*ClusterRemote) KeyClusterRemoteHosts added in v0.6.0

func (c *ClusterRemote) KeyClusterRemoteHosts() string

func (*ClusterRemote) RunClusterRemoteCommand added in v0.7.0

func (c *ClusterRemote) RunClusterRemoteCommand(cmd *cobra.Command, args []string) error

type Flux added in v0.6.0

type Flux struct {
	// contains filtered or unexported fields
}

func NewFlux added in v0.6.0

func NewFlux(parent *Root) *Flux

func (*Flux) CheckRequiredFlags added in v0.6.0

func (f *Flux) CheckRequiredFlags() error

func (*Flux) Cmd added in v0.7.0

func (f *Flux) Cmd() *cobra.Command

func (*Flux) DefaultFluxContext added in v0.6.0

func (f *Flux) DefaultFluxContext() string

func (*Flux) DefaultFluxNamespace added in v0.6.0

func (f *Flux) DefaultFluxNamespace() string

func (*Flux) FluxContext added in v0.7.0

func (f *Flux) FluxContext() string

func (*Flux) FluxNamespace added in v0.7.0

func (f *Flux) FluxNamespace() string

func (*Flux) KeyFluxContext added in v0.6.0

func (f *Flux) KeyFluxContext() string

func (*Flux) KeyFluxNamespace added in v0.6.0

func (f *Flux) KeyFluxNamespace() string

func (*Flux) KeyTimeout added in v0.7.0

func (f *Flux) KeyTimeout() string

func (*Flux) ProjectRoot added in v0.7.0

func (f *Flux) ProjectRoot() string

func (*Flux) RunFluxCommand added in v0.7.0

func (f *Flux) RunFluxCommand(cmd *cobra.Command, args []string) error

func (*Flux) Timeout added in v0.7.0

func (f *Flux) Timeout() string

type FluxBootstrap added in v0.6.0

type FluxBootstrap struct {
	// contains filtered or unexported fields
}

func NewFluxBootstrap added in v0.6.0

func NewFluxBootstrap(parent *Flux) *FluxBootstrap

func (*FluxBootstrap) CheckRequiredFlags added in v0.6.0

func (f *FluxBootstrap) CheckRequiredFlags() error

func (*FluxBootstrap) DefaultFluxBootstrapPath added in v0.6.0

func (f *FluxBootstrap) DefaultFluxBootstrapPath() string

func (*FluxBootstrap) FluxBootstrapPatchesFile added in v0.7.0

func (f *FluxBootstrap) FluxBootstrapPatchesFile() string

func (*FluxBootstrap) FluxBootstrapPath added in v0.7.0

func (f *FluxBootstrap) FluxBootstrapPath() string

func (*FluxBootstrap) KeyFluxBootstrapCommand added in v0.6.0

func (f *FluxBootstrap) KeyFluxBootstrapCommand() string

func (*FluxBootstrap) KeyFluxBootstrapPatchesFile added in v0.6.0

func (f *FluxBootstrap) KeyFluxBootstrapPatchesFile() string

func (*FluxBootstrap) KeyFluxBootstrapPath added in v0.6.0

func (f *FluxBootstrap) KeyFluxBootstrapPath() string

func (*FluxBootstrap) RunFluxBoostrapCommand added in v0.7.0

func (f *FluxBootstrap) RunFluxBoostrapCommand(cmd *cobra.Command, args []string) error

type FluxReconcile added in v0.7.0

type FluxReconcile struct {
	// contains filtered or unexported fields
}

func NewFluxReconcile added in v0.7.0

func NewFluxReconcile(parent *Flux) *FluxReconcile

func (*FluxReconcile) CheckRequiredFlags added in v0.7.0

func (f *FluxReconcile) CheckRequiredFlags() error

func (*FluxReconcile) RunFluxReconcileCommand added in v0.7.0

func (f *FluxReconcile) RunFluxReconcileCommand(cmd *cobra.Command, args []string) error

type Raw added in v0.6.0

type Raw struct {
	// contains filtered or unexported fields
}

func NewRaw added in v0.6.0

func NewRaw(parent *Root) *Raw

func (*Raw) BufferedOutput added in v0.7.0

func (r *Raw) BufferedOutput() bool

func (*Raw) Cmd added in v0.7.0

func (r *Raw) Cmd() *cobra.Command

func (*Raw) KeyBufferedOutput added in v0.6.0

func (r *Raw) KeyBufferedOutput() string

func (*Raw) KeyRawUtilities added in v0.6.0

func (r *Raw) KeyRawUtilities() string

func (*Raw) KeyTimeout added in v0.6.0

func (r *Raw) KeyTimeout() string

func (*Raw) RunRawCommand added in v0.7.0

func (r *Raw) RunRawCommand(cmd *cobra.Command, args []string) error

func (*Raw) RunRawCommandCaptureStdout added in v0.7.0

func (r *Raw) RunRawCommandCaptureStdout(cmd *cobra.Command, args []string) (string, error)

func (*Raw) SetBufferedOutput added in v0.7.0

func (r *Raw) SetBufferedOutput(v bool)

func (*Raw) SetStdin added in v0.8.0

func (r *Raw) SetStdin(stdin io.Reader)

func (*Raw) Timeout added in v0.7.0

func (r *Raw) Timeout() time.Duration

type Root added in v0.6.0

type Root struct {
	// contains filtered or unexported fields
}

func NewRoot added in v0.6.0

func NewRoot() *Root

func (*Root) Cmd added in v0.7.0

func (r *Root) Cmd() *cobra.Command

func (*Root) DefaultProjectRoot added in v0.6.0

func (r *Root) DefaultProjectRoot() string

func (*Root) KeyProjectRoot added in v0.6.0

func (r *Root) KeyProjectRoot() string

Flags keys, defaults and value getters

func (*Root) ProjectRoot added in v0.7.0

func (r *Root) ProjectRoot() string

type Secrets added in v0.6.0

type Secrets struct {
	// contains filtered or unexported fields
}

func NewSecrets added in v0.6.0

func NewSecrets(parent *Root) *Secrets

func (*Secrets) CheckRequiredFlags added in v0.6.0

func (s *Secrets) CheckRequiredFlags() error

func (*Secrets) ClusterBootstrapPath added in v0.7.0

func (s *Secrets) ClusterBootstrapPath() string

func (*Secrets) Cmd added in v0.7.0

func (s *Secrets) Cmd() *cobra.Command

func (*Secrets) DefaultClusterBootstrapPath added in v0.6.0

func (s *Secrets) DefaultClusterBootstrapPath() string

func (*Secrets) DefaultKubeClusterDir added in v0.6.0

func (s *Secrets) DefaultKubeClusterDir() string

func (*Secrets) DefaultSopsConfig added in v0.6.0

func (s *Secrets) DefaultSopsConfig() string

func (*Secrets) KeyClusterBootstrapPath added in v0.6.0

func (s *Secrets) KeyClusterBootstrapPath() string

func (*Secrets) KeyKubeClusterDir added in v0.6.0

func (s *Secrets) KeyKubeClusterDir() string

func (*Secrets) KeySecretsContext added in v0.6.0

func (s *Secrets) KeySecretsContext() string

KeySecretsContext returns key for SecretsContext

func (*Secrets) KeySecretsDir added in v0.6.0

func (s *Secrets) KeySecretsDir() string

KeySecretsDir returns key for SecretsDir

func (*Secrets) KeySopsConfig added in v0.6.0

func (s *Secrets) KeySopsConfig() string

func (*Secrets) KubeClusterDir added in v0.7.0

func (s *Secrets) KubeClusterDir() string

func (*Secrets) ProjectRoot added in v0.7.0

func (s *Secrets) ProjectRoot() string

func (*Secrets) SecretsContext added in v0.7.0

func (s *Secrets) SecretsContext() string

SecretsContext returns SecretsContext

func (*Secrets) SecretsDir added in v0.7.0

func (s *Secrets) SecretsDir() string

SecretsDir returns SecretsDir

func (*Secrets) SopsConfig added in v0.7.0

func (s *Secrets) SopsConfig() string

type SecretsBootstrap added in v0.6.0

type SecretsBootstrap struct {
	// contains filtered or unexported fields
}

func NewSecretsBootstrap added in v0.6.0

func NewSecretsBootstrap(parent *Secrets) *SecretsBootstrap

func (*SecretsBootstrap) CheckRequiredFlags added in v0.6.0

func (s *SecretsBootstrap) CheckRequiredFlags() error

func (*SecretsBootstrap) Cmd added in v0.7.0

func (s *SecretsBootstrap) Cmd() *cobra.Command

func (*SecretsBootstrap) DefaultPrivateKeyPath added in v0.6.0

func (s *SecretsBootstrap) DefaultPrivateKeyPath() string

func (*SecretsBootstrap) DefaultPublicKeyPath added in v0.6.0

func (s *SecretsBootstrap) DefaultPublicKeyPath() string

func (*SecretsBootstrap) Force added in v0.7.0

func (s *SecretsBootstrap) Force() bool

func (*SecretsBootstrap) GenerateAgeKeys added in v0.6.0

func (s *SecretsBootstrap) GenerateAgeKeys() error

GenerateAgeKeys generates age public and private key pair and writes them to files

func (*SecretsBootstrap) GenerateSshKeys added in v0.6.0

func (s *SecretsBootstrap) GenerateSshKeys(keyBaseFileName string) error

GenerateSshKeys generates SSH public and private key pair with given size and writes them to files

func (*SecretsBootstrap) KeyForce added in v0.6.0

func (s *SecretsBootstrap) KeyForce() string

func (*SecretsBootstrap) KeyNamespace added in v0.6.0

func (s *SecretsBootstrap) KeyNamespace() string

Flags keys, defaults and value getters

func (*SecretsBootstrap) KeyPrivateKeyPath added in v0.6.0

func (s *SecretsBootstrap) KeyPrivateKeyPath() string

func (*SecretsBootstrap) KeyPublicKeyPath added in v0.6.0

func (s *SecretsBootstrap) KeyPublicKeyPath() string

func (*SecretsBootstrap) KeySshKeyType added in v0.7.0

func (s *SecretsBootstrap) KeySshKeyType() string

func (*SecretsBootstrap) Namespace added in v0.7.0

func (s *SecretsBootstrap) Namespace() string

func (*SecretsBootstrap) PatchSopsConfig added in v0.6.0

func (s *SecretsBootstrap) PatchSopsConfig() error

PatchSopsConfig patches sops config file with age public key

func (*SecretsBootstrap) PrivateKeyPath added in v0.7.0

func (s *SecretsBootstrap) PrivateKeyPath() string

func (*SecretsBootstrap) PublicKeyPath added in v0.7.0

func (s *SecretsBootstrap) PublicKeyPath() string

func (*SecretsBootstrap) RunBootstrapSecretsCommand added in v0.7.0

func (s *SecretsBootstrap) RunBootstrapSecretsCommand(cmd *cobra.Command, args []string) error

func (*SecretsBootstrap) SshKeyType added in v0.7.0

func (s *SecretsBootstrap) SshKeyType() string

type SecretsCopySshId added in v0.6.0

type SecretsCopySshId struct {
	// contains filtered or unexported fields
}

func NewSecretsCopySshId added in v0.6.0

func NewSecretsCopySshId(parent *Secrets) *SecretsCopySshId

func (*SecretsCopySshId) CheckRequiredFlags added in v0.6.0

func (s *SecretsCopySshId) CheckRequiredFlags() error

func (*SecretsCopySshId) Cmd added in v0.7.0

func (s *SecretsCopySshId) Cmd() *cobra.Command

func (*SecretsCopySshId) DefaultPrivateKeyFile added in v0.6.0

func (s *SecretsCopySshId) DefaultPrivateKeyFile() string

func (*SecretsCopySshId) Hosts added in v0.7.0

func (s *SecretsCopySshId) Hosts() []string

func (*SecretsCopySshId) KeyHosts added in v0.6.0

func (s *SecretsCopySshId) KeyHosts() string

Flags keys, defaults and value getters

func (*SecretsCopySshId) KeyPrivateKeyFile added in v0.6.0

func (s *SecretsCopySshId) KeyPrivateKeyFile() string

func (*SecretsCopySshId) PrivateKeyFile added in v0.7.0

func (s *SecretsCopySshId) PrivateKeyFile() string

func (*SecretsCopySshId) RunSecretsCopySshIdCommand added in v0.7.0

func (s *SecretsCopySshId) RunSecretsCopySshIdCommand(cmd *cobra.Command, args []string) error

type SecretsDecrypt added in v0.7.0

type SecretsDecrypt struct {
	// contains filtered or unexported fields
}

func NewSecretsDecrypt added in v0.7.0

func NewSecretsDecrypt(parent *Secrets) *SecretsDecrypt

func (*SecretsDecrypt) CheckRequiredFlags added in v0.7.0

func (s *SecretsDecrypt) CheckRequiredFlags() error

func (*SecretsDecrypt) DefaultPrivateKeyPath added in v0.7.0

func (s *SecretsDecrypt) DefaultPrivateKeyPath() string

func (*SecretsDecrypt) Inplace added in v0.7.0

func (s *SecretsDecrypt) Inplace() string

func (*SecretsDecrypt) KeyInplace added in v0.7.0

func (s *SecretsDecrypt) KeyInplace() string

func (*SecretsDecrypt) KeyPrivateKeyPath added in v0.7.0

func (s *SecretsDecrypt) KeyPrivateKeyPath() string

func (*SecretsDecrypt) PrivateKeyPath added in v0.7.0

func (s *SecretsDecrypt) PrivateKeyPath() string

func (*SecretsDecrypt) RunSecretsDecryptCommand added in v0.7.0

func (s *SecretsDecrypt) RunSecretsDecryptCommand(cmd *cobra.Command, args []string) error

type SecretsDecryptValue added in v0.8.0

type SecretsDecryptValue struct {
	// contains filtered or unexported fields
}

func NewSecretsDecryptValue added in v0.8.0

func NewSecretsDecryptValue(parent *Secrets) *SecretsDecryptValue

func (*SecretsDecryptValue) CheckRequiredFlags added in v0.8.0

func (s *SecretsDecryptValue) CheckRequiredFlags() error

func (*SecretsDecryptValue) DefaultPrivateKeyPath added in v0.8.0

func (s *SecretsDecryptValue) DefaultPrivateKeyPath() string

func (*SecretsDecryptValue) InputType added in v0.8.0

func (s *SecretsDecryptValue) InputType() string

func (*SecretsDecryptValue) KeyInputType added in v0.8.0

func (s *SecretsDecryptValue) KeyInputType() string

func (*SecretsDecryptValue) KeyPrivateKeyPath added in v0.8.0

func (s *SecretsDecryptValue) KeyPrivateKeyPath() string

func (*SecretsDecryptValue) KeyRegex added in v0.8.0

func (s *SecretsDecryptValue) KeyRegex() string

func (*SecretsDecryptValue) KeyYqExpression added in v0.8.0

func (s *SecretsDecryptValue) KeyYqExpression() string

func (*SecretsDecryptValue) PrivateKeyPath added in v0.8.0

func (s *SecretsDecryptValue) PrivateKeyPath() string

func (*SecretsDecryptValue) Regex added in v0.8.0

func (s *SecretsDecryptValue) Regex() string

func (*SecretsDecryptValue) RunSecretsDecryptValueCommand added in v0.8.0

func (s *SecretsDecryptValue) RunSecretsDecryptValueCommand(cmd *cobra.Command, args []string) error

func (*SecretsDecryptValue) YqExpression added in v0.8.0

func (s *SecretsDecryptValue) YqExpression() string

type SecretsEncrypt added in v0.7.0

type SecretsEncrypt struct {
	// contains filtered or unexported fields
}

func NewSecretsEncrypt added in v0.7.0

func NewSecretsEncrypt(parent *Secrets) *SecretsEncrypt

func (*SecretsEncrypt) CheckRequiredFlags added in v0.7.0

func (s *SecretsEncrypt) CheckRequiredFlags() error

func (*SecretsEncrypt) Inplace added in v0.7.0

func (s *SecretsEncrypt) Inplace() string

func (*SecretsEncrypt) KeyInplace added in v0.7.0

func (s *SecretsEncrypt) KeyInplace() string

func (*SecretsEncrypt) RunSecretsEncryptCommand added in v0.7.0

func (s *SecretsEncrypt) RunSecretsEncryptCommand(cmd *cobra.Command, args []string) error

type Version added in v0.7.0

type Version struct {
	// contains filtered or unexported fields
}

func NewVersion added in v0.7.0

func NewVersion(parent *Root) *Version

Jump to

Keyboard shortcuts

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