cache

package
v0.0.63-rc23 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2019 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

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

func (*ConsulLocker) Lock

func (c *ConsulLocker) Lock(ctx context.Context, prefix string) (*consul.Lock, error)

func (*ConsulLocker) Unlock

func (c *ConsulLocker) Unlock(ctx context.Context) error

type VaultProvider

type VaultProvider struct {
	// contains filtered or unexported fields
}

func NewVaultProvider

func NewVaultProvider(c *consul.Client, v *vault.Client, p string) *VaultProvider

func (*VaultProvider) GetCert

func (e *VaultProvider) GetCert(ctx context.Context, cn string) ([]byte, error)

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) Lock

func (e *VaultProvider) Lock(ctx context.Context) (*consul.Lock, error)

func (*VaultProvider) SaveCert

func (e *VaultProvider) SaveCert(ctx context.Context, cn string, cert []byte) 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL