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: 4 modules, 6 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.

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
⌂ 换网址