certsigner

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsKeyPairNotFound

func IsKeyPairNotFound(err error) bool

IsKeyPairNotFound asserts keyPairNotFoundError.

func IsNoVaultHandlerDefined

func IsNoVaultHandlerDefined(err error) bool

IsNoVaultHandlerDefined asserts a dirty string matching against the error message provided by err. This is necessary due to the poor error handling design of the Vault library we are using.

func New

func New(config Config) (spec.CertSigner, error)

New creates a new configured certificate signer.

Types

type Config

type Config struct {
	// Dependencies.
	VaultClient *vaultclient.Client
}

Config represents the configuration used to create a new certificate signer.

func DefaultConfig

func DefaultConfig() Config

DefaultConfig provides a default configuration to create a certificate signer.

Jump to

Keyboard shortcuts

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