Documentation ¶
Index ¶
- Constants
- func PrintConfigEnv()
- func RandStringBytes(n int) string
- type CheckFunc
- type Config
- type LookupFunc
- type ProviderConfig
- type RoutingPolicy
- type TestUtils
- func (u *TestUtils) Await(msg string, check CheckFunc) error
- func (u *TestUtils) AwaitDNSEntriesDeleted(names ...string) error
- func (u *TestUtils) AwaitDNSEntriesError(names ...string) error
- func (u *TestUtils) AwaitDNSEntriesReady(names ...string) error
- func (u *TestUtils) AwaitDNSProviderDeleted(names ...string) error
- func (u *TestUtils) AwaitDNSProviderReady(names ...string) error
- func (u *TestUtils) AwaitKubectlGetCRDs(crds ...string) error
- func (u *TestUtils) AwaitLookup(dnsname string, expected ...string)
- func (u *TestUtils) AwaitLookupCName(dnsname, target string)
- func (u *TestUtils) AwaitLookupFunc(lookup LookupFunc, dnsname string, expected ...string)
- func (u *TestUtils) AwaitLookupTXT(dnsname string, expected ...string)
- func (u *TestUtils) AwaitState(resourceName, expectedState string, names ...string) error
- func (u *TestUtils) AwaitWithTimeout(msg string, check CheckFunc, timeout time.Duration) error
- func (u *TestUtils) CanLookup(privateDNS bool) bool
- func (u *TestUtils) KubectlApply(filename string) error
- func (u *TestUtils) KubectlDelete(filename string) error
- func (u *TestUtils) KubectlGetAllDNSEntries() (map[string]interface{}, error)
- func (u *TestUtils) LogVerbose(output string)
- func (u *TestUtils) SetTimeoutForNextAwait(timeout time.Duration)
Constants ¶
View Source
const (
STATE_DELETED = "~DELETED~"
)
Variables ¶
This section is empty.
Functions ¶
func PrintConfigEnv ¶
func PrintConfigEnv()
func RandStringBytes ¶
Types ¶
type Config ¶
type Config struct { Providers []*ProviderConfig `json:"providers"` KubeConfig string Namespace string DNSLookup bool Utils *TestUtils }
func InitConfig ¶
func InitConfig() *Config
func LoadConfig ¶
type LookupFunc ¶
type ProviderConfig ¶
type ProviderConfig struct { Name string `json:"name"` Type string `json:"type"` FinalizerType string `json:"finalizerType,omitempty"` Domain string `json:"domain"` ForeignDomain string `json:"foreignDomain,omitempty"` SecretData string `json:"secretData"` Prefix string `json:"prefix"` AliasTarget string `json:"aliasTarget,omitempty"` AliasTargetDualStack string `json:"aliasTargetDualStack,omitempty"` ZoneID string `json:"zoneID"` PrivateDNS bool `json:"privateDNS,omitempty"` TTL string `json:"ttl,omitempty"` SpecProviderConfig string `json:"providerConfig,omitempty"` RoutingPolicySets map[string]map[string]RoutingPolicy `json:"routingPolicySets,omitempty"` Namespace string }
func (*ProviderConfig) CreateTempManifest ¶
func (*ProviderConfig) DeleteTempManifest ¶
func (p *ProviderConfig) DeleteTempManifest(manifestFilename string)
func (*ProviderConfig) TTLValue ¶
func (p *ProviderConfig) TTLValue() int
type RoutingPolicy ¶ added in v0.13.0
type TestUtils ¶
type TestUtils struct { AwaitTimeout time.Duration LookupTimeout time.Duration PollingPeriod time.Duration Namespace string Verbose bool // contains filtered or unexported fields }
func CreateDefaultTestUtils ¶
func (*TestUtils) AwaitDNSEntriesDeleted ¶
func (*TestUtils) AwaitDNSEntriesError ¶
func (*TestUtils) AwaitDNSEntriesReady ¶
func (*TestUtils) AwaitDNSProviderDeleted ¶
func (*TestUtils) AwaitDNSProviderReady ¶
func (*TestUtils) AwaitKubectlGetCRDs ¶
func (*TestUtils) AwaitLookup ¶
func (*TestUtils) AwaitLookupCName ¶
func (*TestUtils) AwaitLookupFunc ¶
func (u *TestUtils) AwaitLookupFunc(lookup LookupFunc, dnsname string, expected ...string)
func (*TestUtils) AwaitLookupTXT ¶
func (*TestUtils) AwaitState ¶
func (*TestUtils) AwaitWithTimeout ¶
func (*TestUtils) KubectlApply ¶
func (*TestUtils) KubectlDelete ¶
func (*TestUtils) KubectlGetAllDNSEntries ¶
func (*TestUtils) LogVerbose ¶
func (*TestUtils) SetTimeoutForNextAwait ¶ added in v0.7.20
Click to show internal directories.
Click to hide internal directories.