integration

package
v0.7.6 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2020 License: Apache-2.0, BSD-3-Clause, MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnwrapEntry

func UnwrapEntry(obj resources.Object) *v1alpha1.DNSEntry

func UnwrapOwner

func UnwrapOwner(obj resources.Object) *v1alpha1.DNSOwner

Types

type CheckFunc

type CheckFunc func() (bool, error)

type ProviderSpecSetter

type ProviderSpecSetter func(p *v1alpha1.DNSProviderSpec)

type SpecSetter added in v0.7.5

type SpecSetter func(e *v1alpha1.DNSEntry)

type TestEnv

type TestEnv struct {
	Namespace string
	Cluster   cluster.Interface
	Logger    logger.LogContext
	// contains filtered or unexported fields
}

func NewTestEnv

func NewTestEnv(kubeconfig string, namespace string) (*TestEnv, error)

func (*TestEnv) Await

func (te *TestEnv) Await(msg string, check CheckFunc) error

func (*TestEnv) AwaitEntryDeletion

func (te *TestEnv) AwaitEntryDeletion(name string) error

func (*TestEnv) AwaitEntryReady

func (te *TestEnv) AwaitEntryReady(name string) error

func (*TestEnv) AwaitEntryState

func (te *TestEnv) AwaitEntryState(name string, states ...string) error

func (*TestEnv) AwaitFinalizers

func (te *TestEnv) AwaitFinalizers(obj resources.Object, expectedFinalizers ...string) error

func (*TestEnv) AwaitProviderDeletion

func (te *TestEnv) AwaitProviderDeletion(name string) error

func (*TestEnv) AwaitProviderReady

func (te *TestEnv) AwaitProviderReady(name string) error

func (*TestEnv) AwaitProviderState

func (te *TestEnv) AwaitProviderState(name string, states ...string) error

func (*TestEnv) AwaitSecretDeletion

func (te *TestEnv) AwaitSecretDeletion(name string) error

func (*TestEnv) AwaitServiceDeletion

func (te *TestEnv) AwaitServiceDeletion(name string) error

func (*TestEnv) AwaitWithTimeout

func (te *TestEnv) AwaitWithTimeout(msg string, check CheckFunc, timeout time.Duration) error

func (*TestEnv) CreateEntry

func (te *TestEnv) CreateEntry(index int, baseDomain string) (resources.Object, error)

func (*TestEnv) CreateEntryGeneric added in v0.7.5

func (te *TestEnv) CreateEntryGeneric(index int, specSetter SpecSetter) (resources.Object, error)

func (*TestEnv) CreateIngressWithAnnotation

func (te *TestEnv) CreateIngressWithAnnotation(name, domainName string) (resources.Object, error)

func (*TestEnv) CreateNamespace

func (te *TestEnv) CreateNamespace(namespace string) error

func (*TestEnv) CreateOwner

func (te *TestEnv) CreateOwner(name, ownerId string) (resources.Object, error)

func (*TestEnv) CreateProvider

func (te *TestEnv) CreateProvider(baseDomain string, providerIndex int, secretName string) (resources.Object, string, error)

func (*TestEnv) CreateProviderEx

func (te *TestEnv) CreateProviderEx(providerIndex int, secretName string, setSpec ProviderSpecSetter) (resources.Object, error)

func (*TestEnv) CreateSecret

func (te *TestEnv) CreateSecret(index int) (resources.Object, error)

func (*TestEnv) CreateSecretAndProvider

func (te *TestEnv) CreateSecretAndProvider(baseDomain string, index int) (resources.Object, string, error)

func (*TestEnv) CreateServiceWithAnnotation

func (te *TestEnv) CreateServiceWithAnnotation(name, domainName, fakeExternalIP string, ttl int) (resources.Object, error)

func (*TestEnv) CreateTXTEntry added in v0.7.5

func (te *TestEnv) CreateTXTEntry(index int, baseDomain string) (resources.Object, error)

func (*TestEnv) DeleteEntryAndWait

func (te *TestEnv) DeleteEntryAndWait(obj resources.Object) error

func (*TestEnv) DeleteProviderAndSecret

func (te *TestEnv) DeleteProviderAndSecret(pr resources.Object) error

func (*TestEnv) DeleteSecretByName

func (te *TestEnv) DeleteSecretByName(name string) error

func (*TestEnv) Errorf

func (te *TestEnv) Errorf(msgfmt string, args ...interface{})

func (*TestEnv) FindEntryByOwner

func (te *TestEnv) FindEntryByOwner(kind, name string) (resources.Object, error)

func (*TestEnv) GetEntry

func (te *TestEnv) GetEntry(name string) (resources.Object, error)

func (*TestEnv) GetIngress

func (te *TestEnv) GetIngress(name string) (resources.Object, *extensions.Ingress, error)

func (*TestEnv) GetOwner

func (te *TestEnv) GetOwner(name string) (resources.Object, error)

func (*TestEnv) GetProvider

func (te *TestEnv) GetProvider(name string) (resources.Object, *v1alpha1.DNSProvider, error)

func (*TestEnv) GetSecret

func (te *TestEnv) GetSecret(name string) (resources.Object, error)

func (*TestEnv) GetService

func (te *TestEnv) GetService(name string) (resources.Object, *api.Service, error)

func (*TestEnv) HasEntryState

func (te *TestEnv) HasEntryState(name string, states ...string) (bool, error)

func (*TestEnv) HasProviderState

func (te *TestEnv) HasProviderState(name string, states ...string) (bool, error)

func (*TestEnv) Infof

func (te *TestEnv) Infof(msgfmt string, args ...interface{})

func (*TestEnv) SecretName

func (te *TestEnv) SecretName(index int) string

func (*TestEnv) UpdateEntryDomain

func (te *TestEnv) UpdateEntryDomain(obj resources.Object, domain string) (resources.Object, error)

func (*TestEnv) UpdateEntryOwner

func (te *TestEnv) UpdateEntryOwner(obj resources.Object, ownerID *string) (resources.Object, error)

func (*TestEnv) Warnf

func (te *TestEnv) Warnf(msgfmt string, args ...interface{})

Jump to

Keyboard shortcuts

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