tls

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertificateBundle

type CertificateBundle struct {
	AuthorityPEM         []byte
	BundlePEM            []byte
	ServerCertificatePEM []byte
	ServerKeyPEM         []byte
}

func GenerateCertificateBundle

func GenerateCertificateBundle(opts ...CertificateBundleOption) (*CertificateBundle, error)

type CertificateBundleOption

type CertificateBundleOption interface {
	ApplyToCertificateBundleOptions(target *CertificateBundleOptions)
}

type CertificateBundleOptions

type CertificateBundleOptions struct {
	Organization        string
	CACommonName        string
	CertificateDNSNames []string
	Validity            time.Duration
}

func (*CertificateBundleOptions) ApplyOptions

func (o *CertificateBundleOptions) ApplyOptions(opts []CertificateBundleOption)

type CertificateBundleWithCACommonName

type CertificateBundleWithCACommonName string

func (CertificateBundleWithCACommonName) ApplyToCertificateBundleOptions

func (wccn CertificateBundleWithCACommonName) ApplyToCertificateBundleOptions(target *CertificateBundleOptions)

type CertificateBundleWithCertificateDNSNames

type CertificateBundleWithCertificateDNSNames []string

func (CertificateBundleWithCertificateDNSNames) ApplyToCertificateBundleOptions

func (wcdn CertificateBundleWithCertificateDNSNames) ApplyToCertificateBundleOptions(target *CertificateBundleOptions)

type CertificateBundleWithOrganization

type CertificateBundleWithOrganization string

func (CertificateBundleWithOrganization) ApplyToCertificateBundleOptions

func (wo CertificateBundleWithOrganization) ApplyToCertificateBundleOptions(target *CertificateBundleOptions)

type CertificateBundleWithValidity

type CertificateBundleWithValidity time.Duration

func (CertificateBundleWithValidity) ApplyToCertificateBundleOptions

func (wv CertificateBundleWithValidity) ApplyToCertificateBundleOptions(target *CertificateBundleOptions)

Jump to

Keyboard shortcuts

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