builder

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DataAcmeAccountUrlKey          = "acme.account-url"
	DataAcmeAccountDirectoryUrlKey = "acme.account-created-at-directory-url"
	DataTlslKey                    = "tls.key"
	LabelAcmeTypeKey               = "kubernetes.io/acme.type"
	LabelAcmeAccountType           = "account"
)

TODO: consider moving constants into common package

Variables

This section is empty.

Functions

func BuildClientFromSecret

func BuildClientFromSecret(secret *corev1.Secret) (*acmeclient.Client, error)

func SecretFromClient

func SecretFromClient(client *acmeclient.Client) (*corev1.Secret, error)

func SetSpecificAnnotationsForNewAccount

func SetSpecificAnnotationsForNewAccount(secret *corev1.Secret, acmeUrl string)

Types

type SharedClientFactory

type SharedClientFactory struct {
	// contains filtered or unexported fields
}

func NewSharedClientFactory

func NewSharedClientFactory(acmeUrl, secretName, secretNamespace string, kubeClientset kubernetes.Interface, secretGetter kcorelistersv1.SecretLister) *SharedClientFactory

func (*SharedClientFactory) GetClient

func (f *SharedClientFactory) GetClient(ctx context.Context) (*acmeclient.Client, error)

Jump to

Keyboard shortcuts

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