providers

package
v0.0.0-...-661d317 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2021 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCAProvider

func NewCAProvider(c client.Client, ref cacerts_api.ObjectRef, obj client.Object) (lib.CAProvider, error)

func NewVault

func NewVault(c client.Reader, opts IssuerOptions) (lib.CAProvider, error)

Types

type IssuerOptions

type IssuerOptions struct {
	// ClusterResourceNamespace is the namespace to store resources created by
	// non-namespaced resources (e.g. ClusterIssuer) in.
	ClusterResourceNamespace string

	// ClusterIssuerAmbientCredentials controls whether a cluster issuer should
	// pick up ambient credentials, such as those from metadata services, to
	// construct clients.
	ClusterIssuerAmbientCredentials bool

	// IssuerAmbientCredentials controls whether an issuer should pick up ambient
	// credentials, such as those from metadata services, to construct clients.
	IssuerAmbientCredentials bool
}

func (IssuerOptions) ResourceNamespace

func (o IssuerOptions) ResourceNamespace(iss cmapi.GenericIssuer) string

type IssuerProvider

type IssuerProvider struct {
	Reader client.Reader
}

func (*IssuerProvider) GetCAs

func (c *IssuerProvider) GetCAs(obj client.Object, _ string) ([]*x509.Certificate, error)

type SecretProvider

type SecretProvider struct {
}

func (*SecretProvider) GetCAs

func (c *SecretProvider) GetCAs(obj client.Object, key string) ([]*x509.Certificate, error)

type VaultProvider

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

func (*VaultProvider) GetCAs

func (v *VaultProvider) GetCAs(obj client.Object, _ string) ([]*x509.Certificate, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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