Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPrefixToVKVPath ¶
AddPrefixToVKVPath in v2 di/bluh will become di/data/bluh and an optional version param in the url
Types ¶
type ApproleAuth ¶
type ApproleAuth struct {
RoleID string `yaml:"approle"`
}
type Client ¶
type Client interface { ReadAsVal(secretPath, optionalSecretVersion string) (*VaultPayload, error) Read(secretPath, optionalSecretVersion string) (map[string]interface{}, error) }
func NewClientFromApprole ¶
type SecretInfo ¶
type SourceInput ¶
type SourceInput struct { VaultAddr string `yaml:"address"` VaultAuthType AuthType `yaml:"authType"` Approle *ApproleAuth `yaml:"-"` Secret SecretInfo `yaml:"value"` }
func (*SourceInput) UnmarshalYAML ¶
func (s *SourceInput) UnmarshalYAML(n *yaml.Node) error
type VaultPayload ¶
type VaultPayload struct { // Attribute name in module // +optional Key string `json:"key"` JsonVal *ctyjson.SimpleJSONValue JsonBytes []byte // contains filtered or unexported fields }
OutputStatus outputs the values of Vault output
type Vaultclient ¶
type Vaultclient struct {
// contains filtered or unexported fields
}
func (*Vaultclient) Read ¶
func (v *Vaultclient) Read(secretPath, optionalSecretVersion string) (map[string]interface{}, error)
func (*Vaultclient) ReadAsVal ¶
func (v *Vaultclient) ReadAsVal(secretPath, optionalSecretVersion string) (*VaultPayload, error)
Click to show internal directories.
Click to hide internal directories.