ca

package
v0.0.0-...-2907a6c Latest Latest
Warning

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

Go to latest
Published: May 16, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

Types

type Config

type Config struct {
	// Dependencies.
	Logger      micrologger.Logger
	VaultClient *vaultapi.Client

	// Settings.
	Flag  *flag.Flag
	Viper *viper.Viper
}

Config represents the configuration used to create a CA service.

func DefaultConfig

func DefaultConfig() Config

DefaultConfig provides a default configuration to create a new CA service by best effort.

type Service

type Service struct {
	Config
	// contains filtered or unexported fields
}

Service implements the CA service interface.

func New

func New(config Config) (*Service, error)

New creates a new configured CA service.

func (*Service) SetupPKI

func (s *Service) SetupPKI(cert certificatetpr.Spec) error

SetupPKI creates a PKI backend and policy if one does not exists for the cluster.

Jump to

Keyboard shortcuts

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