vaultcrt

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2020 License: Apache-2.0 Imports: 5 Imported by: 6

README

CircleCI

vaultcrt

Package vaultcrt provides primitives to more easily work with Vault roles.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsExecutionFailed

func IsExecutionFailed(err error) bool

IsExecutionFailed asserts executionFailedError.

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

Types

type Config

type Config struct {
	Logger      micrologger.Logger
	VaultClient *vaultclient.Client
}

func DefaultConfig

func DefaultConfig() Config

type CreateConfig

type CreateConfig struct {
	AltNames      []string
	CommonName    string
	ID            string
	IPSANs        []string
	Organizations []string
	TTL           string
}

type CreateResult

type CreateResult struct {
	CA           string
	Crt          string
	Key          string
	SerialNumber string
}

type Interface

type Interface interface {
	Create(config CreateConfig) (CreateResult, error)
}

type VaultCrt

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

func New

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

func (*VaultCrt) Create

func (c *VaultCrt) Create(config CreateConfig) (CreateResult, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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