Documentation
¶
Index ¶
- func DefaultClient() *http.Client
- func LoadResourceFromContext(c *cli.Context, flag string) (string, error)
- func NewContext(args []string, myflags []cli.Flag) (context *cli.Context)
- func ToCliFlagArray(fs []pcli.Flag) (cliFlags []cli.Flag)
- type Doer
- type VaultJsonObject
- type VaultUnmarshal
- type VaultUnmarshaler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultClient ¶
func LoadResourceFromContext ¶
LoadResourceFromContext loads data from a CLI flag.
If the value of the specified flag starts with '@', the flag is interpreted as a filename and the contents of the file are returned.
In all other cases, the flag value is returned directly.
func NewContext ¶
NewContext - convenience method to construct a valid cli.Context within a plugin
Types ¶
type VaultJsonObject ¶
type VaultUnmarshal ¶
func (*VaultUnmarshal) UnmarshalFlags ¶
func (s *VaultUnmarshal) UnmarshalFlags(hash string, flgs []pcli.Flag) (err error)
type VaultUnmarshaler ¶
func NewVaultUnmarshal ¶
func NewVaultUnmarshal(domain, token string, client Doer) VaultUnmarshaler
Click to show internal directories.
Click to hide internal directories.