secrets

package
v0.0.0-...-597cd30 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SecretPrivateKey = "private"
	SecretPublicKey  = "public"
	SecretConfigKey  = "config"
)

Variables

This section is empty.

Functions

func CreateWithConfig

func CreateWithConfig(nn types.NamespacedName, config []byte) client.Object

func IsValid

func IsValid(secret *v1.Secret) error

func Parse

func Parse(secret *v1.Secret) (key, cert []byte)

Types

type Request

type Request struct {
	*certutil.Config
	CASecret  *v1.Secret
	Type      RequestType
	Name      string
	Namespace string
}

func (*Request) Create

func (r *Request) Create() (secret *v1.Secret, err error)

type RequestType

type RequestType int
const (
	CA RequestType = iota + 1
	KeyPair
	KeyWithSignedCert
)

Jump to

Keyboard shortcuts

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