Documentation ¶
Index ¶
- func UnwrapEntry(obj resources.Object) *v1alpha1.DNSEntry
- func UnwrapOwner(obj resources.Object) *v1alpha1.DNSOwner
- func UnwrapProvider(obj resources.Object) *v1alpha1.DNSProvider
- type CheckFunc
- type EntrySpecSetter
- type OwnerSpecSetter
- type ProviderSpecSetter
- type ProviderTestOption
- type TestEnv
- func (te *TestEnv) ApplyCRDs(dir string) error
- 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) AwaitIngressDeletion(name string) error
- func (te *TestEnv) AwaitObjectByOwner(kind, name string) (resources.Object, error)
- func (te *TestEnv) AwaitObjectsByOwner(kind, name string, count int) ([]resources.Object, 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) BuildProviderConfig(domain, domain2 string, failOptions ...ProviderTestOption) *runtime.RawExtension
- func (te *TestEnv) BuildProviderConfigEx(input mock.MockConfig, failOptions ...ProviderTestOption) *runtime.RawExtension
- func (te *TestEnv) CreateDNSAnnotationForService(name string, spec v1alpha1.DNSAnnotationSpec) (resources.Object, error)
- func (te *TestEnv) CreateEntry(index int, baseDomain string) (resources.Object, error)
- func (te *TestEnv) CreateEntryGeneric(index int, specSetter EntrySpecSetter) (resources.Object, error)
- func (te *TestEnv) CreateGatewayAPIGatewayWithAnnotation(name, domainName string, address *gatewayapisv1.GatewayStatusAddress, ttl int, ...) (resources.Object, error)
- func (te *TestEnv) CreateGatewayAPIHTTPRoute(name, hostname string, gateway resources.ObjectName) (resources.Object, error)
- func (te *TestEnv) CreateIngressAndIstioGatewayWithAnnotation(name string, domainName string, ...) (resources.Object, resources.Object, error)
- func (te *TestEnv) CreateIngressWithAnnotation(name, domainName, fakeExternalIP string, ttl int, routingPolicy *string, ...) (resources.Object, error)
- func (te *TestEnv) CreateIstioGatewayWithAnnotation(name, domainName string, selector map[string]string, ttl int, ...) (resources.Object, error)
- func (te *TestEnv) CreateNamespace(namespace string) error
- func (te *TestEnv) CreateOwner(name, ownerId string) (resources.Object, error)
- func (te *TestEnv) CreateOwnerGeneric(name string, setSpec OwnerSpecSetter) (resources.Object, error)
- func (te *TestEnv) CreateProvider(baseDomain string, providerIndex int, secretName string, ...) (resources.Object, string, string, error)
- func (te *TestEnv) CreateProviderEx(providerIndex int, setSpec ProviderSpecSetter) (resources.Object, error)
- func (te *TestEnv) CreateSecret(index int) (resources.Object, error)
- func (te *TestEnv) CreateSecretAndProvider(baseDomain string, index int, options ...ProviderTestOption) (resources.Object, string, string, error)
- func (te *TestEnv) CreateSecretEx(secret *corev1.Secret) (resources.Object, error)
- func (te *TestEnv) CreateServiceAndIstioGatewayWithAnnotation(name, domainName string, status *corev1.LoadBalancerIngress, ttl int, ...) (resources.Object, resources.Object, error)
- func (te *TestEnv) CreateServiceWithAnnotation(name, domainName string, status *corev1.LoadBalancerIngress, ttl int, ...) (resources.Object, error)
- func (te *TestEnv) CreateTXTEntry(index int, baseDomain string) (resources.Object, error)
- func (te *TestEnv) DeleteEntriesAndWait(objs ...resources.Object) error
- func (te *TestEnv) DeleteEntryAndWait(obj resources.Object) error
- func (te *TestEnv) DeleteOwner(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) FindEntriesByOwner(kind, name string) ([]resources.Object, error)
- func (te *TestEnv) FindEntryByOwner(kind, name string) (resources.Object, error)
- func (te *TestEnv) GetDNSAnnotation(name string) (resources.Object, *v1alpha1.DNSAnnotation, error)
- func (te *TestEnv) GetEntry(name string) (resources.Object, error)
- func (te *TestEnv) GetGatewayAPIGateway(name string) (resources.Object, *gatewayapisv1.Gateway, error)
- func (te *TestEnv) GetGatewayAPIHTTPRoute(name string) (resources.Object, *gatewayapisv1.HTTPRoute, error)
- func (te *TestEnv) GetIngress(name string) (resources.Object, *networkingv1.Ingress, error)
- func (te *TestEnv) GetIstioGateway(name string) (resources.Object, *istionetworkingv1beta1.Gateway, 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, *corev1.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) MockInMemoryGetDNSSetEx(name, zonePrefix, dnsName string) (*dns.DNSSet, error)
- func (te *TestEnv) MockInMemoryHasEntry(e resources.Object) error
- func (te *TestEnv) MockInMemoryHasEntryEx(name, zonePrefix string, e resources.Object) error
- func (te *TestEnv) MockInMemoryHasNotEntry(e resources.Object) error
- func (te *TestEnv) MockInMemoryHasNotEntryEx(name, zonePrefix string, e resources.Object) error
- func (te *TestEnv) PatchIngressLoadBalancer(ingressObj resources.Object, fakeExternalIP string) 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) WaitForCRDs() error
- func (te *TestEnv) Warnf(msgfmt string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnwrapProvider ¶ added in v0.7.9
func UnwrapProvider(obj resources.Object) *v1alpha1.DNSProvider
Types ¶
type EntrySpecSetter ¶ added in v0.11.0
type OwnerSpecSetter ¶ added in v0.11.0
type ProviderSpecSetter ¶
type ProviderSpecSetter func(p *v1alpha1.DNSProvider)
type ProviderTestOption ¶ added in v0.12.0
type ProviderTestOption int
const ( FailGetZones ProviderTestOption = iota FailDeleteEntry FailSecondZoneWithSameBaseDomain AlternativeMockName PrivateZones Quotas4PerMin RemoveAccess )
type TestEnv ¶
type TestEnv struct { Namespace string ZonePrefix string Cluster cluster.Interface Logger logger.LogContext // contains filtered or unexported fields }
func NewTestEnvNamespace ¶ added in v0.10.7
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) AwaitIngressDeletion ¶ added in v0.13.0
func (*TestEnv) AwaitObjectByOwner ¶ added in v0.13.0
func (*TestEnv) AwaitObjectsByOwner ¶ added in v0.17.1
func (*TestEnv) AwaitProviderDeletion ¶
func (*TestEnv) AwaitProviderReady ¶
func (*TestEnv) AwaitProviderState ¶
func (*TestEnv) AwaitSecretDeletion ¶
func (*TestEnv) AwaitServiceDeletion ¶
func (*TestEnv) AwaitWithTimeout ¶
func (*TestEnv) BuildProviderConfig ¶ added in v0.10.7
func (te *TestEnv) BuildProviderConfig(domain, domain2 string, failOptions ...ProviderTestOption) *runtime.RawExtension
func (*TestEnv) BuildProviderConfigEx ¶ added in v0.10.7
func (te *TestEnv) BuildProviderConfigEx(input mock.MockConfig, failOptions ...ProviderTestOption) *runtime.RawExtension
func (*TestEnv) CreateDNSAnnotationForService ¶ added in v0.17.1
func (*TestEnv) CreateEntry ¶
func (*TestEnv) CreateEntryGeneric ¶ added in v0.7.5
func (*TestEnv) CreateGatewayAPIGatewayWithAnnotation ¶ added in v0.18.0
func (*TestEnv) CreateGatewayAPIHTTPRoute ¶ added in v0.18.0
func (*TestEnv) CreateIngressAndIstioGatewayWithAnnotation ¶ added in v0.18.0
func (*TestEnv) CreateIngressWithAnnotation ¶
func (*TestEnv) CreateIstioGatewayWithAnnotation ¶ added in v0.18.0
func (*TestEnv) CreateNamespace ¶
func (*TestEnv) CreateOwner ¶
func (*TestEnv) CreateOwnerGeneric ¶ added in v0.11.0
func (*TestEnv) CreateProvider ¶
func (*TestEnv) CreateProviderEx ¶
func (*TestEnv) CreateSecretAndProvider ¶
func (*TestEnv) CreateSecretEx ¶ added in v0.12.0
func (*TestEnv) CreateServiceAndIstioGatewayWithAnnotation ¶ added in v0.18.0
func (*TestEnv) CreateServiceWithAnnotation ¶
func (*TestEnv) CreateTXTEntry ¶ added in v0.7.5
func (*TestEnv) DeleteEntriesAndWait ¶ added in v0.11.3
func (*TestEnv) DeleteEntryAndWait ¶
func (*TestEnv) DeleteOwner ¶ added in v0.11.0
func (*TestEnv) DeleteProviderAndSecret ¶
func (*TestEnv) DeleteSecretByName ¶
func (*TestEnv) FindEntriesByOwner ¶ added in v0.17.1
func (*TestEnv) FindEntryByOwner ¶
func (*TestEnv) GetDNSAnnotation ¶ added in v0.17.1
func (*TestEnv) GetGatewayAPIGateway ¶ added in v0.18.0
func (*TestEnv) GetGatewayAPIHTTPRoute ¶ added in v0.18.0
func (*TestEnv) GetIngress ¶
func (*TestEnv) GetIstioGateway ¶ added in v0.18.0
func (*TestEnv) GetProvider ¶
func (*TestEnv) GetService ¶
func (*TestEnv) HasEntryState ¶
func (*TestEnv) HasProviderState ¶
func (*TestEnv) MockInMemoryGetDNSSet ¶ added in v0.8.2
func (*TestEnv) MockInMemoryGetDNSSetEx ¶ added in v0.10.7
func (*TestEnv) MockInMemoryHasEntry ¶ added in v0.8.2
func (*TestEnv) MockInMemoryHasEntryEx ¶ added in v0.10.7
func (*TestEnv) MockInMemoryHasNotEntry ¶ added in v0.8.2
func (*TestEnv) MockInMemoryHasNotEntryEx ¶ added in v0.10.7
func (*TestEnv) PatchIngressLoadBalancer ¶ added in v0.18.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
func (*TestEnv) WaitForCRDs ¶ added in v0.12.0
Click to show internal directories.
Click to hide internal directories.