Documentation ¶
Index ¶
- func AddKindResolverFlags(cmd *cobra.Command, o *factory.KindResolver)
- func NewCmdSecrets() *cobra.Command
- type EditOptions
- type ExportOptions
- type ImportOptions
- type MemoryClient
- func (c *MemoryClient) Read(secretName string) (map[string]interface{}, error)
- func (c *MemoryClient) ReadObject(secretName string, secret interface{}) error
- func (c *MemoryClient) ReplaceURIs(s string) (string, error)
- func (c *MemoryClient) ToYAML() (string, error)
- func (c *MemoryClient) Write(secretName string, data map[string]interface{}) (map[string]interface{}, error)
- func (c *MemoryClient) WriteObject(secretName string, data interface{}) (map[string]interface{}, error)
- type VerifyOptions
- type YAMLOptions
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
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
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
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
type MemoryClient ¶
type MemoryClient struct {
Data map[string]interface{}
}
MemoryClient a local file system based client loading/saving content from the given URL
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 ¶
type VerifyOptions struct { factory.KindResolver File string }
VerifyOptions the options for viewing running PRs
func NewCmdVerify ¶
func NewCmdVerify() (*cobra.Command, *VerifyOptions)
NewCmdVerify creates a command object for the command
type YAMLOptions ¶
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 ¶
func NewCmdYAML() (*cobra.Command, *YAMLOptions)
NewCmdYAML creates a command object for the command