Documentation ¶
Index ¶
- type ConsulLocker
- type VaultProvider
- func (e *VaultProvider) GetCert(ctx context.Context, cn string) ([]byte, error)
- func (e *VaultProvider) GetKey(ctx context.Context, cn string) (*rsa.PrivateKey, error)
- func (e *VaultProvider) GetRegistration(ctx context.Context) (*registration.Resource, error)
- func (e *VaultProvider) Lock(ctx context.Context) (*consul.Lock, error)
- func (e *VaultProvider) SaveCert(ctx context.Context, cn string, cert []byte) error
- func (e *VaultProvider) SaveKey(ctx context.Context, cn string, privkey *rsa.PrivateKey) error
- func (e *VaultProvider) SaveRegistration(ctx context.Context, reg *registration.Resource) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsulLocker ¶
type ConsulLocker struct {
// contains filtered or unexported fields
}
func NewConsulLocker ¶
func NewConsulLocker(api *consul.Client) *ConsulLocker
type VaultProvider ¶
type VaultProvider struct {
// contains filtered or unexported fields
}
func NewVaultProvider ¶
func (*VaultProvider) GetKey ¶
func (e *VaultProvider) GetKey(ctx context.Context, cn string) (*rsa.PrivateKey, error)
func (*VaultProvider) GetRegistration ¶
func (e *VaultProvider) GetRegistration(ctx context.Context) (*registration.Resource, error)
func (*VaultProvider) SaveKey ¶
func (e *VaultProvider) SaveKey(ctx context.Context, cn string, privkey *rsa.PrivateKey) error
func (*VaultProvider) SaveRegistration ¶
func (e *VaultProvider) SaveRegistration(ctx context.Context, reg *registration.Resource) error
Click to show internal directories.
Click to hide internal directories.