Documentation ¶
Index ¶
- type Client
- type EmptyDNSProvider
- func (p *EmptyDNSProvider) CreateZoneDelegationForExternalDNS(*k8gbv1beta1.Gslb) (err error)
- func (p *EmptyDNSProvider) Finalize(gslb *k8gbv1beta1.Gslb) (err error)
- func (p *EmptyDNSProvider) GetExternalTargets(host string) (targets assistant.Targets)
- func (p *EmptyDNSProvider) GslbIngressExposedIPs(gslb *k8gbv1beta1.Gslb) (r []string, err error)
- func (p *EmptyDNSProvider) SaveDNSEndpoint(gslb *k8gbv1beta1.Gslb, i *externaldns.DNSEndpoint) error
- func (p *EmptyDNSProvider) String() string
- type ExternalDNSProvider
- func (p *ExternalDNSProvider) CreateZoneDelegationForExternalDNS(gslb *k8gbv1beta1.Gslb) error
- func (p *ExternalDNSProvider) Finalize(*k8gbv1beta1.Gslb) error
- func (p *ExternalDNSProvider) GetExternalTargets(host string) (targets assistant2.Targets)
- func (p *ExternalDNSProvider) GslbIngressExposedIPs(gslb *k8gbv1beta1.Gslb) ([]string, error)
- func (p *ExternalDNSProvider) SaveDNSEndpoint(gslb *k8gbv1beta1.Gslb, i *externaldns.DNSEndpoint) error
- func (p *ExternalDNSProvider) String() string
- type InfobloxClient
- type InfobloxProvider
- func (p *InfobloxProvider) CreateZoneDelegationForExternalDNS(gslb *k8gbv1beta1.Gslb) error
- func (p *InfobloxProvider) Finalize(gslb *k8gbv1beta1.Gslb) error
- func (p *InfobloxProvider) GetExternalTargets(host string) (targets assistant.Targets)
- func (p *InfobloxProvider) GslbIngressExposedIPs(gslb *k8gbv1beta1.Gslb) ([]string, error)
- func (p *InfobloxProvider) SaveDNSEndpoint(gslb *k8gbv1beta1.Gslb, i *externaldns.DNSEndpoint) error
- func (p *InfobloxProvider) String() string
- type Provider
- type ProviderFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewInfobloxClient ¶
func NewInfobloxClient(config depresolver.Config) *Client
func (*Client) GetObjectManager ¶
func (c *Client) GetObjectManager() (objMgr *ibclient.ObjectManager, err error)
type EmptyDNSProvider ¶
type EmptyDNSProvider struct {
// contains filtered or unexported fields
}
EmptyDNSProvider is executed when fakeDNSEnabled is true.
func NewEmptyDNS ¶
func NewEmptyDNS(config depresolver.Config, assistant assistant.Assistant) *EmptyDNSProvider
func (*EmptyDNSProvider) CreateZoneDelegationForExternalDNS ¶
func (p *EmptyDNSProvider) CreateZoneDelegationForExternalDNS(*k8gbv1beta1.Gslb) (err error)
func (*EmptyDNSProvider) Finalize ¶
func (p *EmptyDNSProvider) Finalize(gslb *k8gbv1beta1.Gslb) (err error)
func (*EmptyDNSProvider) GetExternalTargets ¶
func (p *EmptyDNSProvider) GetExternalTargets(host string) (targets assistant.Targets)
func (*EmptyDNSProvider) GslbIngressExposedIPs ¶
func (p *EmptyDNSProvider) GslbIngressExposedIPs(gslb *k8gbv1beta1.Gslb) (r []string, err error)
func (*EmptyDNSProvider) SaveDNSEndpoint ¶
func (p *EmptyDNSProvider) SaveDNSEndpoint(gslb *k8gbv1beta1.Gslb, i *externaldns.DNSEndpoint) error
func (*EmptyDNSProvider) String ¶
func (p *EmptyDNSProvider) String() string
type ExternalDNSProvider ¶
type ExternalDNSProvider struct {
// contains filtered or unexported fields
}
func NewExternalDNS ¶
func NewExternalDNS(config depresolver.Config, assistant assistant2.Assistant) *ExternalDNSProvider
func (*ExternalDNSProvider) CreateZoneDelegationForExternalDNS ¶
func (p *ExternalDNSProvider) CreateZoneDelegationForExternalDNS(gslb *k8gbv1beta1.Gslb) error
func (*ExternalDNSProvider) Finalize ¶
func (p *ExternalDNSProvider) Finalize(*k8gbv1beta1.Gslb) error
func (*ExternalDNSProvider) GetExternalTargets ¶
func (p *ExternalDNSProvider) GetExternalTargets(host string) (targets assistant2.Targets)
func (*ExternalDNSProvider) GslbIngressExposedIPs ¶
func (p *ExternalDNSProvider) GslbIngressExposedIPs(gslb *k8gbv1beta1.Gslb) ([]string, error)
func (*ExternalDNSProvider) SaveDNSEndpoint ¶
func (p *ExternalDNSProvider) SaveDNSEndpoint(gslb *k8gbv1beta1.Gslb, i *externaldns.DNSEndpoint) error
func (*ExternalDNSProvider) String ¶
func (p *ExternalDNSProvider) String() string
type InfobloxClient ¶
type InfobloxClient interface {
GetObjectManager() (objMgr *ibclient.ObjectManager, err error)
}
type InfobloxProvider ¶
type InfobloxProvider struct {
// contains filtered or unexported fields
}
func NewInfobloxDNS ¶
func NewInfobloxDNS(config depresolver.Config, assistant assistant.Assistant, client InfobloxClient) *InfobloxProvider
func (*InfobloxProvider) CreateZoneDelegationForExternalDNS ¶
func (p *InfobloxProvider) CreateZoneDelegationForExternalDNS(gslb *k8gbv1beta1.Gslb) error
func (*InfobloxProvider) Finalize ¶
func (p *InfobloxProvider) Finalize(gslb *k8gbv1beta1.Gslb) error
func (*InfobloxProvider) GetExternalTargets ¶
func (p *InfobloxProvider) GetExternalTargets(host string) (targets assistant.Targets)
func (*InfobloxProvider) GslbIngressExposedIPs ¶
func (p *InfobloxProvider) GslbIngressExposedIPs(gslb *k8gbv1beta1.Gslb) ([]string, error)
func (*InfobloxProvider) SaveDNSEndpoint ¶
func (p *InfobloxProvider) SaveDNSEndpoint(gslb *k8gbv1beta1.Gslb, i *externaldns.DNSEndpoint) error
func (*InfobloxProvider) String ¶
func (p *InfobloxProvider) String() string
type Provider ¶
type Provider interface { // CreateZoneDelegationForExternalDNS handles delegated zone in Edge DNS CreateZoneDelegationForExternalDNS(*k8gbv1beta1.Gslb) error // GslbIngressExposedIPs retrieves list of IP's exposed by all GSLB ingresses GslbIngressExposedIPs(*k8gbv1beta1.Gslb) ([]string, error) // GetExternalTargets retrieves list of external targets for specified host GetExternalTargets(string) assistant.Targets // SaveDNSEndpoint update DNS endpoint in gslb or create new one if doesn't exist SaveDNSEndpoint(*k8gbv1beta1.Gslb, *externaldns.DNSEndpoint) error // Finalize finalize gslb in k8gbNamespace Finalize(*k8gbv1beta1.Gslb) error // String see: Stringer interface String() string }
type ProviderFactory ¶
type ProviderFactory struct {
// contains filtered or unexported fields
}
func NewDNSProviderFactory ¶
func NewDNSProviderFactory(client client.Client, config depresolver.Config) (f *ProviderFactory, err error)
func (*ProviderFactory) Provider ¶
func (f *ProviderFactory) Provider() Provider
Click to show internal directories.
Click to hide internal directories.