Help us shape the future of Go! Take the 2026 Go Developer Survey

cert

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2020 License: Apache-2.0, MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFileCertificateSource

func CreateFileCertificateSource(ctx context.Context, logger logger.LogContext, cfg *CertConfig) (certs.CertificateSource, error)

func CreateSecretCertificateSource

func CreateSecretCertificateSource(ctx context.Context, logger logger.LogContext, cluster cluster.Interface, namespace string, cfg *CertConfig, keys ...certsecret.Keys) (certs.CertificateSource, error)

func OptionSourceCreator

func OptionSourceCreator(name, prefix string, common, org string) extension.OptionSourceCreator

Types

type CertConfig

type CertConfig struct {
	CommonName   string
	Organization string

	Secret     string
	Service    string
	Hostnames  []string
	CertFile   string
	KeyFile    string
	CACertFile string
	CAKeyFile  string
	// contains filtered or unexported fields
}

func NewCertConfig

func NewCertConfig(name, prefix string) *CertConfig

func (*CertConfig) AddOptionsToSet

func (this *CertConfig) AddOptionsToSet(set config.OptionSet)

func (*CertConfig) CreateAccess

func (this *CertConfig) CreateAccess(ctx context.Context, logger logger.LogContext, cluster cluster.Interface, namespace string, keys ...certsecret.Keys) (certs.CertificateSource, error)

func (*CertConfig) Used

func (this *CertConfig) Used() bool

Jump to

Keyboard shortcuts

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