Documentation
¶
Index ¶
- Variables
- func AddPolicies(ctx context.Context, log klog.Logger, name string, opts Opts) error
- func AddPolicyDir(ctx context.Context, log klog.Logger, client VaultClient, fsys fs.FS, ...) error
- func AddRoles(ctx context.Context, log klog.Logger, name string, opts Opts) error
- func AddRolesDir(ctx context.Context, log klog.Logger, client VaultClient, fsys fs.FS, ...) error
- type HTTPVaultClient
- type Opts
- type VaultClient
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidRoleKind errInvalidRoleKind
ErrInvalidRoleKind is returned when attempting to parse a role with an invalid kind
Functions ¶
func AddPolicies ¶
AddPolicies creates a vault client and uploads policies from a directory
func AddPolicyDir ¶
func AddPolicyDir(ctx context.Context, log klog.Logger, client VaultClient, fsys fs.FS, opts Opts) error
AddPolicyDir uploads policies from a directory to vault
Types ¶
type HTTPVaultClient ¶
type HTTPVaultClient struct {
// contains filtered or unexported fields
}
HTTPVaultClient interacts with vault via its http api
func NewHTTPVaultClient ¶
func NewHTTPVaultClient() (*HTTPVaultClient, error)
NewHTTPVaultClient creates a new HTTPVaultClient
func (*HTTPVaultClient) PutPolicy ¶
func (v *HTTPVaultClient) PutPolicy(name, rules string) error
PutPolicy uploads a policy to vault
Click to show internal directories.
Click to hide internal directories.