Documentation ¶
Index ¶
- func DataPath(key api.DataKey) string
- func DataSubPath(key api.DataKey, subPath string) string
- func KubernetesRolePath(key Key) string
- func PKIPath(key Key) string
- func PKISubPath(key Key, subPath string) string
- func PolicyName(key Key, policy string) string
- func RoleName(key Key) string
- type Client
- func (c *Client) CreateDataStore(ctx context.Context, namespace string) error
- func (c *Client) DeleteData(ctx context.Context, key api.DataKey) error
- func (c *Client) GetData(ctx context.Context, key api.DataKey, data *api.Data) error
- func (c *Client) PutData(ctx context.Context, key api.DataKey, data *api.Data) error
- type ClientOptions
- type Key
- type VaultData
- type VaultSecret
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KubernetesRolePath ¶
func PKISubPath ¶
func PolicyName ¶
Types ¶
type Client ¶
type Client struct { *vapi.Client ClientOptions }
func New ¶
func New(opts ClientOptions) (*Client, error)
func (*Client) CreateDataStore ¶
type ClientOptions ¶
type ClientOptions struct { Instance string Role string URL string // CACert is the path to a PEM-encoded CA cert file to use to verify the // Vault server SSL certificate. It takes precedence over CACertBytes. CACert string // CACertBytes is a PEM-encoded certificate or bundle. CACertBytes []byte // AutoRenew indicates that the Vault token should automatically be renewed // to ensure it does not expire. AutoRenew bool }
type VaultSecret ¶
type VaultSecret struct {
Data *VaultData `json:"data"`
}
Click to show internal directories.
Click to hide internal directories.