Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrLeaseNotFound = errors.New("lease not found or is not renewable")
View Source
var ErrPermissionDenied = errors.New("permission denied")
Functions ¶
This section is empty.
Types ¶
type CredentialsProvider ¶
type CredentialsProvider interface {
Fetch() (*Credentials, error)
}
type CredentialsRenewer ¶
type CredentialsRenewer interface { RenewSecret(ctx context.Context, secret *api.Secret, lease time.Duration) error RenewAuthToken(ctx context.Context, token string, lease time.Duration) error RevokeSelf(ctx context.Context, token string) }
func NewLeaseManager ¶
func NewLeaseManager(client *api.Client) CredentialsRenewer
type DefaultCredentialsProvider ¶
type DefaultCredentialsProvider struct {
// contains filtered or unexported fields
}
func NewCredentialsProvider ¶
func NewCredentialsProvider(client *api.Client, secretPath string) *DefaultCredentialsProvider
func (*DefaultCredentialsProvider) Fetch ¶
func (c *DefaultCredentialsProvider) Fetch() (*Credentials, error)
type DefaultLeaseManager ¶
type DefaultLeaseManager struct {
// contains filtered or unexported fields
}
func (*DefaultLeaseManager) RenewAuthToken ¶
func (*DefaultLeaseManager) RenewSecret ¶
func (*DefaultLeaseManager) RevokeSelf ¶
func (m *DefaultLeaseManager) RevokeSelf(ctx context.Context, token string)
RevokeSelf this will attempt to revoke its own token
type DefaultVaultClientFactory ¶
type DefaultVaultClientFactory struct {
// contains filtered or unexported fields
}
DefaultVaultClientFactory creates a Vault client authenticated against a kubernetes service account token
func NewKubernetesAuthClientFactory ¶
func NewKubernetesAuthClientFactory(vault *VaultConfig, kube *KubernetesAuthConfig) *DefaultVaultClientFactory
type KubernetesAuthConfig ¶
type VaultConfig ¶
Click to show internal directories.
Click to hide internal directories.