config

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DeleteCmd = &cobra.Command{
	Use:   "delete",
	Short: "Delete a secret keeper configuration",
	Args:  cobra.ExactArgs(1),
	Run:   RunDeleteConfig,
}
View Source
var GetCmd = &cobra.Command{
	Use:   "get",
	Short: "Get a secret keeper configuration",
	Args:  cobra.ExactArgs(1),
	Run:   RunGet,
}
View Source
var ListCmd = &cobra.Command{
	Use:   "list",
	Short: "List secret keeper configurations",
	Args:  cobra.NoArgs,
	Run:   RunListConfig,
}
View Source
var Replacement map[string]any
View Source
var SetCmd = &cobra.Command{
	Use:   "set",
	Short: "Add or update a secret keeper configuration",
}

Functions

func MakePreRunSetKeeperConfig

func MakePreRunSetKeeperConfig(
	run plugin.CmdFunc,
	fields map[string]*LiteralOrSecretRef,
) func(*cobra.Command, []string) error

func PrintKeeper

func PrintKeeper(
	ctx context.Context,
	keeperName string,
	kc config.KeeperConfig,
	i int,
)

func RunDeleteConfig

func RunDeleteConfig(cmd *cobra.Command, args []string)

func RunGet

func RunGet(cmd *cobra.Command, args []string)

func RunListConfig

func RunListConfig(cmd *cobra.Command, args []string)

func RunSetKeeperConfig

func RunSetKeeperConfig(cmd *cobra.Command, args []string)

Types

type LiteralOrSecretRef

type LiteralOrSecretRef struct {
	Literal string
	Ref     config.SecretRef
}

Jump to

Keyboard shortcuts

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