certs

package
v0.0.0-...-4f22f6d Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAcmeClient

func NewAcmeClient(u *User) (*lego.Client, error)

NewAcmeClient returns a new AcmeClient

Types

type Certs

type Certs struct {
	CACert []byte
	Key    []byte
	Cert   []byte
}

Certs contains certificates and keys

func Generate

func Generate(constructor func(u *User) (*lego.Client, error), caName string, provider iaas.Provider, ipOrDomains ...string) (*Certs, error)

Generate generates certs for use in a bosh director manifest

type User

type User struct {
	sync.Once
	// contains filtered or unexported fields
}

User contains a key, a registration resource, and a sync parameter

func (*User) GetEmail

func (u *User) GetEmail() string

GetEmail returns the email for a user

func (*User) GetPrivateKey

func (u *User) GetPrivateKey() crypto.PrivateKey

GetPrivateKey returns the private key for a user

func (*User) GetRegistration

func (u *User) GetRegistration() *registration.Resource

GetRegistration returns the registration for a user

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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