Documentation
¶
Index ¶
- func BuildProviderConfig(domain, baseDomain string, failOptions ...FailOption) *runtime.RawExtension
- func UnwrapEntry(obj resources.Object) *v1alpha1.DNSEntry
- func UnwrapOwner(obj resources.Object) *v1alpha1.DNSOwner
- func UnwrapProvider(obj resources.Object) *v1alpha1.DNSProvider
- type CheckFunc
- type FailOption
- type ProviderSpecSetter
- type SpecSetter
- type TestEnv
- func (te *TestEnv) Await(msg string, check CheckFunc) error
- func (te *TestEnv) AwaitEntryDeletion(name string) error
- func (te *TestEnv) AwaitEntryError(name string) error
- func (te *TestEnv) AwaitEntryInvalid(name string) error
- func (te *TestEnv) AwaitEntryReady(name string) error
- func (te *TestEnv) AwaitEntryStale(name string) error
- func (te *TestEnv) AwaitEntryState(name string, states ...string) error
- func (te *TestEnv) AwaitFinalizers(obj resources.Object, expectedFinalizers ...string) error
- func (te *TestEnv) AwaitProviderDeletion(name string) error
- func (te *TestEnv) AwaitProviderReady(name string) error
- func (te *TestEnv) AwaitProviderState(name string, states ...string) error
- func (te *TestEnv) AwaitSecretDeletion(name string) error
- func (te *TestEnv) AwaitServiceDeletion(name string) error
- func (te *TestEnv) AwaitWithTimeout(msg string, check CheckFunc, timeout time.Duration) error
- func (te *TestEnv) CreateEntry(index int, baseDomain string) (resources.Object, error)
- func (te *TestEnv) CreateEntryGeneric(index int, specSetter SpecSetter) (resources.Object, error)
- func (te *TestEnv) CreateIngressWithAnnotation(name, domainName string) (resources.Object, error)
- func (te *TestEnv) CreateNamespace(namespace string) error
- func (te *TestEnv) CreateOwner(name, ownerId string) (resources.Object, error)
- func (te *TestEnv) CreateProvider(baseDomain string, providerIndex int, secretName string, ...) (resources.Object, string, error)
- func (te *TestEnv) CreateProviderEx(providerIndex int, secretName string, setSpec ProviderSpecSetter) (resources.Object, error)
- func (te *TestEnv) CreateSecret(index int) (resources.Object, error)
- func (te *TestEnv) CreateSecretAndProvider(baseDomain string, index int, failOptions ...FailOption) (resources.Object, string, error)
- func (te *TestEnv) CreateServiceWithAnnotation(name, domainName, fakeExternalIP string, ttl int) (resources.Object, error)
- func (te *TestEnv) CreateTXTEntry(index int, baseDomain string) (resources.Object, error)
- func (te *TestEnv) DeleteEntryAndWait(obj resources.Object) error
- func (te *TestEnv) DeleteProviderAndSecret(pr resources.Object) error
- func (te *TestEnv) DeleteSecretByName(name string) error
- func (te *TestEnv) Errorf(msgfmt string, args ...interface{})
- func (te *TestEnv) FindEntryByOwner(kind, name string) (resources.Object, error)
- func (te *TestEnv) GetEntry(name string) (resources.Object, error)
- func (te *TestEnv) GetIngress(name string) (resources.Object, *extensions.Ingress, error)
- func (te *TestEnv) GetOwner(name string) (resources.Object, error)
- func (te *TestEnv) GetProvider(name string) (resources.Object, *v1alpha1.DNSProvider, error)
- func (te *TestEnv) GetSecret(name string) (resources.Object, error)
- func (te *TestEnv) GetService(name string) (resources.Object, *api.Service, error)
- func (te *TestEnv) HasEntryState(name string, states ...string) (bool, error)
- func (te *TestEnv) HasProviderState(name string, states ...string) (bool, error)
- func (te *TestEnv) Infof(msgfmt string, args ...interface{})
- func (te *TestEnv) MockInMemoryGetDNSSet(dnsName string) (*dns.DNSSet, error)
- func (te *TestEnv) MockInMemoryHasEntry(e resources.Object) error
- func (te *TestEnv) MockInMemoryHasNotEntry(e resources.Object) error
- func (te *TestEnv) SecretName(index int) string
- func (te *TestEnv) UpdateEntryDomain(obj resources.Object, domain string) (resources.Object, error)
- func (te *TestEnv) UpdateEntryOwner(obj resources.Object, ownerID *string) (resources.Object, error)
- func (te *TestEnv) UpdateEntryTargets(obj resources.Object, targets ...string) (resources.Object, error)
- func (te *TestEnv) UpdateProviderSpec(obj resources.Object, f func(spec *v1alpha1.DNSProviderSpec) error) (resources.Object, error)
- func (te *TestEnv) Warnf(msgfmt string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildProviderConfig ¶ added in v0.7.9
func BuildProviderConfig(domain, baseDomain string, failOptions ...FailOption) *runtime.RawExtension
func UnwrapProvider ¶ added in v0.7.9
func UnwrapProvider(obj resources.Object) *v1alpha1.DNSProvider
Types ¶
type FailOption ¶ added in v0.8.2
type FailOption int
const ( FailGetZones FailOption = iota FailDeleteEntry )
type ProviderSpecSetter ¶
type ProviderSpecSetter func(p *v1alpha1.DNSProviderSpec)
type SpecSetter ¶ added in v0.7.5
type TestEnv ¶
type TestEnv struct { Namespace string Cluster cluster.Interface Logger logger.LogContext // contains filtered or unexported fields }
func (*TestEnv) AwaitEntryDeletion ¶
func (*TestEnv) AwaitEntryError ¶ added in v0.7.9
func (*TestEnv) AwaitEntryInvalid ¶ added in v0.8.3
func (*TestEnv) AwaitEntryReady ¶
func (*TestEnv) AwaitEntryStale ¶ added in v0.7.9
func (*TestEnv) AwaitEntryState ¶
func (*TestEnv) AwaitFinalizers ¶
func (*TestEnv) AwaitProviderDeletion ¶
func (*TestEnv) AwaitProviderReady ¶
func (*TestEnv) AwaitProviderState ¶
func (*TestEnv) AwaitSecretDeletion ¶
func (*TestEnv) AwaitServiceDeletion ¶
func (*TestEnv) AwaitWithTimeout ¶
func (*TestEnv) CreateEntry ¶
func (*TestEnv) CreateEntryGeneric ¶ added in v0.7.5
func (*TestEnv) CreateIngressWithAnnotation ¶
func (*TestEnv) CreateNamespace ¶
func (*TestEnv) CreateOwner ¶
func (*TestEnv) CreateProvider ¶
func (*TestEnv) CreateProviderEx ¶
func (*TestEnv) CreateSecretAndProvider ¶
func (*TestEnv) CreateServiceWithAnnotation ¶
func (*TestEnv) CreateTXTEntry ¶ added in v0.7.5
func (*TestEnv) DeleteEntryAndWait ¶
func (*TestEnv) DeleteProviderAndSecret ¶
func (*TestEnv) DeleteSecretByName ¶
func (*TestEnv) FindEntryByOwner ¶
func (*TestEnv) GetIngress ¶
func (*TestEnv) GetProvider ¶
func (*TestEnv) GetService ¶
func (*TestEnv) HasEntryState ¶
func (*TestEnv) HasProviderState ¶
func (*TestEnv) MockInMemoryGetDNSSet ¶ added in v0.8.2
func (*TestEnv) MockInMemoryHasEntry ¶ added in v0.8.2
func (*TestEnv) MockInMemoryHasNotEntry ¶ added in v0.8.2
func (*TestEnv) SecretName ¶
func (*TestEnv) UpdateEntryDomain ¶
func (*TestEnv) UpdateEntryOwner ¶
func (*TestEnv) UpdateEntryTargets ¶ added in v0.8.3
func (*TestEnv) UpdateProviderSpec ¶ added in v0.7.9
Click to show internal directories.
Click to hide internal directories.