tls

package
v1.7.14 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Log = logf.Log.WithName("tls")

Functions

func Approve

func Approve(ctx context.Context, config *rest.Config, csr *certs.CertificateSigningRequest) error

func NewClientCertificateRequest

func NewClientCertificateRequest(user string) *x509.CertificateRequest

func NewNodeCertificateRequest

func NewNodeCertificateRequest(public, discovery, domain, namespace string) *x509.CertificateRequest

func SignAndCreate

func SignAndCreate(request *x509.CertificateRequest,
	secret *resource.TLSSecret,
	csr *certs.CertificateSigningRequest,
	usages []certs.KeyUsage) error

Types

type CSR

type CSR struct {
	Status RequestStatus
	// contains filtered or unexported fields
}

func InitCSR

func InitCSR(ctx context.Context, client client.Client, name string) (*CSR, error)

func (CSR) Unwrap

func (c CSR) Unwrap() *certs.CertificateSigningRequest

func (CSR) UnwrappedCopy

func (c CSR) UnwrappedCopy() *certs.CertificateSigningRequest

type RequestStatus

type RequestStatus string
const (
	SigningRequestPending  RequestStatus = "Pending"
	SigningRequestNotFound RequestStatus = "NotFound"
	SigningRequestApproved RequestStatus = "Approved"
	SigningRequestDenied   RequestStatus = "Denied"
)

Jump to

Keyboard shortcuts

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