pki

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActiveOperation

type ActiveOperation func(Operation, string) bool

type Authority

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

func Ensure

func Ensure(root string, names []string) (*Authority, error)

func (*Authority) Issue

func (a *Authority) Issue(kind Operation, id string, ttl time.Duration) (Credential, error)

func (*Authority) ServerTLSConfig

func (a *Authority) ServerTLSConfig(expected Operation, active ActiveOperation) *tls.Config

type Credential

type Credential struct {
	CAPEM          []byte
	CertificatePEM []byte
	PrivateKeyPEM  []byte
	ServerName     string
	ExpiresAt      time.Time
}

type Operation

type Operation string
const (
	OperationJob   Operation = "job"
	OperationBuild Operation = "build"
)

Jump to

Keyboard shortcuts

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