set

package
v0.20.0-beta.15 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoSecret = errors.New("please specify a secret key to set")
)

Functions

func GetSharedSecretNamespace

func GetSharedSecretNamespace(namespace string) (string, error)

func NewSecretCmd

func NewSecretCmd(globalFlags *flags.GlobalFlags, defaults *pdefaults.Defaults) *cobra.Command

NewSecretCmd creates a new command

func NewSetCmd

func NewSetCmd(globalFlags *flags.GlobalFlags, defaults *pdefaults.Defaults) *cobra.Command

NewSetCmd creates a new cobra command

Types

type SecretCmd

type SecretCmd struct {
	*flags.GlobalFlags
	Namespace string
	Project   string
	// contains filtered or unexported fields
}

SecretCmd holds the flags

func (*SecretCmd) Run

func (cmd *SecretCmd) Run(cobraCmd *cobra.Command, args []string) error

type SecretType

type SecretType string
const (
	ProjectSecret SecretType = "Project Secret"
	SharedSecret  SecretType = "Shared Secret"
)

Jump to

Keyboard shortcuts

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