certificate

package
v0.14.3 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCertificate

func CreateCertificate(t *testing.T, clients *test.Clients, dnsNames []string) (*v1alpha1.Certificate, context.CancelFunc)

CreateCertificate creates a Certificate with the given DNS names

func VerifyChallenges

func VerifyChallenges(t *testing.T, client *test.Clients, cert *v1alpha1.Certificate)

VerifyChallenges verifies that the given certificate has the correct number of HTTP01challenges and they contain valid data.

func WaitForCertificateSecret

func WaitForCertificateSecret(t *testing.T, client *test.Clients, cert *v1alpha1.Certificate, desc string) error

WaitForCertificateSecret polls the status of the Secret for the provided Certificate until it exists or the timeout is exceeded. It then validates its contents

func WaitForCertificateState

func WaitForCertificateState(client *test.NetworkingClients, name string, inState func(r *v1alpha1.Certificate) (bool, error), desc string) error

WaitForCertificateState polls the status of the Certificate called name from client every PollInterval until inState returns `true` indicating it is done, returns an error or PollTimeout. desc will be used to name the metric that is emitted to track how long it took for name to get into the state checked by inState.

Types

This section is empty.

Jump to

Keyboard shortcuts

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