secrets

package
v0.0.90 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2020 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddKindResolverFlags

func AddKindResolverFlags(cmd *cobra.Command, o *factory.KindResolver)

AddKindResolverFlags adds the CLI arguments for specifying how to resolve the secret manager kind

func NewCmdSecrets

func NewCmdSecrets() *cobra.Command

NewCmdSecrets creates the new command

Types

type EditOptions

type EditOptions struct {
	factory.KindResolver
	SchemaFile    string
	IOFileHandles *util.IOFileHandles
	AskExisting   bool
	BatchMode     bool
	Verbose       bool
}

EditOptions the options for viewing running PRs

func NewCmdEdit

func NewCmdEdit() (*cobra.Command, *EditOptions)

NewCmdEdit creates a command object for the command

func (*EditOptions) Run

func (o *EditOptions) Run() error

Run implements the command

type ExportOptions

type ExportOptions struct {
	factory.KindResolver
	OutFile string
	Console bool
}

ExportOptions the options for viewing running PRs

func NewCmdExport

func NewCmdExport() (*cobra.Command, *ExportOptions)

NewCmdExport creates a command object for the command

func (*ExportOptions) Run

func (o *ExportOptions) Run() error

Run implements the command

type ImportOptions

type ImportOptions struct {
	factory.KindResolver
	File string
}

ImportOptions the options for viewing running PRs

func NewCmdImport

func NewCmdImport() (*cobra.Command, *ImportOptions)

NewCmdImport creates a command object for the command

func (*ImportOptions) Run

func (o *ImportOptions) Run() error

Run implements the command

type MemoryClient

type MemoryClient struct {
	Data map[string]interface{}
}

MemoryClient a local file system based client loading/saving content from the given URL

func NewMemoryClient

func NewMemoryClient() *MemoryClient

NewMemoryClient create a memory client

func (*MemoryClient) Read

func (c *MemoryClient) Read(secretName string) (map[string]interface{}, error)

Read reads a named secret from the vault

func (*MemoryClient) ReadObject

func (c *MemoryClient) ReadObject(secretName string, secret interface{}) error

ReadObject reads a generic named object from vault. The secret _must_ be serializable to JSON.

func (*MemoryClient) ReplaceURIs

func (c *MemoryClient) ReplaceURIs(s string) (string, error)

ReplaceURIs will replace any local: URIs in a string

func (*MemoryClient) ToYAML

func (c *MemoryClient) ToYAML() (string, error)

ToYAML converts the data to YAML

func (*MemoryClient) Write

func (c *MemoryClient) Write(secretName string, data map[string]interface{}) (map[string]interface{}, error)

Write writes a named secret to the vault with the Data provided. Data can be a generic map of stuff, but at all points in the map, keys _must_ be strings (not bool, int or even interface{}) otherwise you'll get an error

func (*MemoryClient) WriteObject

func (c *MemoryClient) WriteObject(secretName string, data interface{}) (map[string]interface{}, error)

WriteObject writes a generic named object to the vault. The secret _must_ be serializable to JSON.

type VerifyOptions added in v0.0.57

type VerifyOptions struct {
	factory.KindResolver
	File string
}

VerifyOptions the options for viewing running PRs

func NewCmdVerify added in v0.0.57

func NewCmdVerify() (*cobra.Command, *VerifyOptions)

NewCmdVerify creates a command object for the command

func (*VerifyOptions) Run added in v0.0.57

func (o *VerifyOptions) Run() error

Run implements the command

type YAMLOptions added in v0.0.76

type YAMLOptions struct {
	JXFactory  jxfactory.Factory
	SecretName string
	SecretFile string
	OutFile    string
	BatchMode  bool
	Verbose    bool
}

YAMLOptions the options for viewing running PRs

func NewCmdYAML added in v0.0.76

func NewCmdYAML() (*cobra.Command, *YAMLOptions)

NewCmdYAML creates a command object for the command

func (*YAMLOptions) Run added in v0.0.76

func (o *YAMLOptions) Run() error

Run implements the command

Jump to

Keyboard shortcuts

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