provisioners

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidBundle = errors.New("invalid ca bundle")
)

Functions

func Remove

func Remove(namespacedName types.NamespacedName)

Remove removes a provisioner from the collection

func Retryable added in v0.2.5

func Retryable(err error) bool

Retryable returns whether the given error from Sign is a transient error (e.g. due to the network).

func Store

func Store(namespacedName types.NamespacedName, provisioner Provisioner)

Store adds a new provisioner to the collection by NamespacedName.

Types

type CfsslProvisioner added in v0.3.0

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

func Load

func Load(namespacedName types.NamespacedName) (*CfsslProvisioner, bool)

Load returns a provisioner by NamespacedName.

func New

func (*CfsslProvisioner) Sign added in v0.3.0

func (cf *CfsslProvisioner) Sign(csrpem []byte) (resp, rootCA []byte, err error)

type Provisioner

type Provisioner interface {
	Sign([]byte) ([]byte, []byte, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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