secrets

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get() *cli.Command

func GetSecret

func GetSecret(
	client client.Interface,
	system v1.SystemID,
	secret tree.PathSubcomponent,
	w io.Writer,
	f printer.Format,
) error

func Set

func Set() *cli.Command

func SetSecret

func SetSecret(
	client client.Interface,
	system v1.SystemID,
	secret tree.PathSubcomponent,
	value string,
	w io.Writer,
) error

func Unset

func Unset() *cli.Command

func UnsetSecret

func UnsetSecret(
	client client.Interface,
	system v1.SystemID,
	secret tree.PathSubcomponent,
	w io.Writer,
) error

Types

type Command

type Command struct {
	Name                   string
	Short                  string
	Args                   cli.Args
	Flags                  cli.Flags
	Run                    func(ctx *SecretCommandContext, args []string, flags cli.Flags) error
	MutuallyExclusiveFlags [][]string
	RequiredFlagSet        [][]string
	Subcommands            map[string]*cli.Command
}

func (*Command) Command

func (c *Command) Command() *cli.Command

type SecretCommandContext

type SecretCommandContext struct {
	*command.SystemCommandContext
	Secret tree.PathSubcomponent
}

Jump to

Keyboard shortcuts

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