client

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2019 License: Apache-2.0 Imports: 24 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	RoleAnnotation                = "pod.boostport.com/vault-approle"
	InitContainerAnnotation       = "pod.boostport.com/vault-init-container"
	InitContainerStatusAnnotation = "pod.beta.kubernetes.io/init-container-statuses"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ExternalRootCAsResolver

type ExternalRootCAsResolver struct {
	CAFile string
}

func (*ExternalRootCAsResolver) GetRootCAs

func (e *ExternalRootCAsResolver) GetRootCAs() ([]byte, *x509.CertPool, error)

type InitContainerStatus

type InitContainerStatus struct {
	Name  string
	State map[string]interface{}
}

type Kube

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

func NewKube

func NewKube(watchNamespace string, logger *logrus.Logger) (*Kube, error)

func (*Kube) Discover

func (k *Kube) Discover(serviceNamespace, service string) ([]string, error)

func (*Kube) GetPods

func (k *Kube) GetPods() ([]Pod, error)

func (*Kube) WatchForPods

func (k *Kube) WatchForPods() (<-chan Pod, chan<- struct{}, error)

type Pod

type Pod struct {
	Name string
	Role string
	Ip   string
	Port int
}

type RenewalConfig

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

type RootCAResolver

type RootCAResolver interface {
	GetRootCAs() ([]byte, *x509.CertPool, error)
}

type Vault

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

func NewVault

func NewVault(vaultAddr string, token string, skipTokenRoleNameValidation bool, kubeServiceName string, wrappingTTL string, caResolver RootCAResolver, logger *logrus.Logger) (*Vault, error)

func (*Vault) GetAndRenewCertificate

func (v *Vault) GetAndRenewCertificate(ip net.IP, backend string, role string) (<-chan tls.Certificate, error)

func (*Vault) GetSecretId

func (v *Vault) GetSecretId(role string) (common.WrappedSecretId, error)

func (*Vault) RootCertificates

func (v *Vault) RootCertificates(roots []string) (*x509.CertPool, error)

func (*Vault) Shutdown

func (v *Vault) Shutdown()

type VaultRootCAsResolver

type VaultRootCAsResolver struct {
	Backends  []string
	VaultAddr string
}

func (*VaultRootCAsResolver) GetRootCAs

func (v *VaultRootCAsResolver) GetRootCAs() ([]byte, *x509.CertPool, error)

Jump to

Keyboard shortcuts

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