fixtures

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package fixtures owns reusable test assets and factories that return fresh data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChartUpgrade

func ChartUpgrade(name string) ([]byte, error)

func WriteChartUpgrade

func WriteChartUpgrade(directory string) error

Types

type Certificate

type Certificate struct {
	Parsed *x509.Certificate
	Key    crypto.Signer
	DER    []byte
	PEM    []byte
	KeyPEM []byte
}

func NewCertificate

func NewCertificate(template *x509.Certificate, algorithm KeyAlgorithm, authority *Certificate) (*Certificate, error)

NewCertificate self-signs when authority is nil. Each call generates a fresh key.

type KeyAlgorithm

type KeyAlgorithm int
const (
	RSA2048 KeyAlgorithm = iota
	ECDSAP256
)

Jump to

Keyboard shortcuts

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