Documentation ¶
Overview ¶
Copyright 2021 The k8gb Contributors.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Generated by GoLic, for more details see: https://github.com/AbsaOSS/golic
Package dns is a generated GoMock package.
Copyright 2021 The k8gb Contributors.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Generated by GoLic, for more details see: https://github.com/AbsaOSS/golic
Copyright 2021 The k8gb Contributors.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Generated by GoLic, for more details see: https://github.com/AbsaOSS/golic
Copyright 2021 The k8gb Contributors.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Generated by GoLic, for more details see: https://github.com/AbsaOSS/golic
Copyright 2021 The k8gb Contributors.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Generated by GoLic, for more details see: https://github.com/AbsaOSS/golic
Package dns is a generated GoMock package.
Package dns is a generated GoMock package.
Copyright 2021 The k8gb Contributors.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Generated by GoLic, for more details see: https://github.com/AbsaOSS/golic
Copyright 2021 The k8gb Contributors.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Generated by GoLic, for more details see: https://github.com/AbsaOSS/golic
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 []string)
- 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 []string)
- 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 []string)
- 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 MockIBConnector
- func (m *MockIBConnector) CreateObject(arg0 ibclient.IBObject) (string, error)
- func (m *MockIBConnector) DeleteObject(arg0 string) (string, error)
- func (m *MockIBConnector) EXPECT() *MockIBConnectorMockRecorder
- func (m *MockIBConnector) GetObject(arg0 ibclient.IBObject, arg1 string, arg2 interface{}) error
- func (m *MockIBConnector) UpdateObject(arg0 ibclient.IBObject, arg1 string) (string, error)
- type MockIBConnectorMockRecorder
- func (mr *MockIBConnectorMockRecorder) CreateObject(arg0 interface{}) *gomock.Call
- func (mr *MockIBConnectorMockRecorder) DeleteObject(arg0 interface{}) *gomock.Call
- func (mr *MockIBConnectorMockRecorder) GetObject(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockIBConnectorMockRecorder) UpdateObject(arg0, arg1 interface{}) *gomock.Call
- type MockInfobloxClient
- type MockInfobloxClientMockRecorder
- type MockProvider
- func (m *MockProvider) CreateZoneDelegationForExternalDNS(arg0 *v1beta1.Gslb) error
- func (m *MockProvider) EXPECT() *MockProviderMockRecorder
- func (m *MockProvider) Finalize(arg0 *v1beta1.Gslb) error
- func (m *MockProvider) GetExternalTargets(arg0 string) []string
- func (m *MockProvider) GslbIngressExposedIPs(arg0 *v1beta1.Gslb) ([]string, error)
- func (m *MockProvider) SaveDNSEndpoint(arg0 *v1beta1.Gslb, arg1 *endpoint.DNSEndpoint) error
- func (m *MockProvider) String() string
- type MockProviderMockRecorder
- func (mr *MockProviderMockRecorder) CreateZoneDelegationForExternalDNS(arg0 interface{}) *gomock.Call
- func (mr *MockProviderMockRecorder) Finalize(arg0 interface{}) *gomock.Call
- func (mr *MockProviderMockRecorder) GetExternalTargets(arg0 interface{}) *gomock.Call
- func (mr *MockProviderMockRecorder) GslbIngressExposedIPs(arg0 interface{}) *gomock.Call
- func (mr *MockProviderMockRecorder) SaveDNSEndpoint(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockProviderMockRecorder) String() *gomock.Call
- 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 []string)
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 []string)
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 []string)
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 MockIBConnector ¶
type MockIBConnector struct {
// contains filtered or unexported fields
}
MockIBConnector is a mock of IBConnector interface.
func NewMockIBConnector ¶
func NewMockIBConnector(ctrl *gomock.Controller) *MockIBConnector
NewMockIBConnector creates a new mock instance.
func (*MockIBConnector) CreateObject ¶
func (m *MockIBConnector) CreateObject(arg0 ibclient.IBObject) (string, error)
CreateObject mocks base method.
func (*MockIBConnector) DeleteObject ¶
func (m *MockIBConnector) DeleteObject(arg0 string) (string, error)
DeleteObject mocks base method.
func (*MockIBConnector) EXPECT ¶
func (m *MockIBConnector) EXPECT() *MockIBConnectorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIBConnector) GetObject ¶
func (m *MockIBConnector) GetObject(arg0 ibclient.IBObject, arg1 string, arg2 interface{}) error
GetObject mocks base method.
func (*MockIBConnector) UpdateObject ¶
UpdateObject mocks base method.
type MockIBConnectorMockRecorder ¶
type MockIBConnectorMockRecorder struct {
// contains filtered or unexported fields
}
MockIBConnectorMockRecorder is the mock recorder for MockIBConnector.
func (*MockIBConnectorMockRecorder) CreateObject ¶
func (mr *MockIBConnectorMockRecorder) CreateObject(arg0 interface{}) *gomock.Call
CreateObject indicates an expected call of CreateObject.
func (*MockIBConnectorMockRecorder) DeleteObject ¶
func (mr *MockIBConnectorMockRecorder) DeleteObject(arg0 interface{}) *gomock.Call
DeleteObject indicates an expected call of DeleteObject.
func (*MockIBConnectorMockRecorder) GetObject ¶
func (mr *MockIBConnectorMockRecorder) GetObject(arg0, arg1, arg2 interface{}) *gomock.Call
GetObject indicates an expected call of GetObject.
func (*MockIBConnectorMockRecorder) UpdateObject ¶
func (mr *MockIBConnectorMockRecorder) UpdateObject(arg0, arg1 interface{}) *gomock.Call
UpdateObject indicates an expected call of UpdateObject.
type MockInfobloxClient ¶
type MockInfobloxClient struct {
// contains filtered or unexported fields
}
MockInfobloxClient is a mock of InfobloxClient interface.
func NewMockInfobloxClient ¶
func NewMockInfobloxClient(ctrl *gomock.Controller) *MockInfobloxClient
NewMockInfobloxClient creates a new mock instance.
func (*MockInfobloxClient) EXPECT ¶
func (m *MockInfobloxClient) EXPECT() *MockInfobloxClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInfobloxClient) GetObjectManager ¶
func (m *MockInfobloxClient) GetObjectManager() (*ibclient.ObjectManager, error)
GetObjectManager mocks base method.
type MockInfobloxClientMockRecorder ¶
type MockInfobloxClientMockRecorder struct {
// contains filtered or unexported fields
}
MockInfobloxClientMockRecorder is the mock recorder for MockInfobloxClient.
func (*MockInfobloxClientMockRecorder) GetObjectManager ¶
func (mr *MockInfobloxClientMockRecorder) GetObjectManager() *gomock.Call
GetObjectManager indicates an expected call of GetObjectManager.
type MockProvider ¶
type MockProvider struct {
// contains filtered or unexported fields
}
MockProvider is a mock of Provider interface.
func NewMockProvider ¶
func NewMockProvider(ctrl *gomock.Controller) *MockProvider
NewMockProvider creates a new mock instance.
func (*MockProvider) CreateZoneDelegationForExternalDNS ¶
func (m *MockProvider) CreateZoneDelegationForExternalDNS(arg0 *v1beta1.Gslb) error
CreateZoneDelegationForExternalDNS mocks base method.
func (*MockProvider) EXPECT ¶
func (m *MockProvider) EXPECT() *MockProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockProvider) Finalize ¶
func (m *MockProvider) Finalize(arg0 *v1beta1.Gslb) error
Finalize mocks base method.
func (*MockProvider) GetExternalTargets ¶
func (m *MockProvider) GetExternalTargets(arg0 string) []string
GetExternalTargets mocks base method.
func (*MockProvider) GslbIngressExposedIPs ¶
func (m *MockProvider) GslbIngressExposedIPs(arg0 *v1beta1.Gslb) ([]string, error)
GslbIngressExposedIPs mocks base method.
func (*MockProvider) SaveDNSEndpoint ¶
func (m *MockProvider) SaveDNSEndpoint(arg0 *v1beta1.Gslb, arg1 *endpoint.DNSEndpoint) error
SaveDNSEndpoint mocks base method.
type MockProviderMockRecorder ¶
type MockProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockProviderMockRecorder is the mock recorder for MockProvider.
func (*MockProviderMockRecorder) CreateZoneDelegationForExternalDNS ¶
func (mr *MockProviderMockRecorder) CreateZoneDelegationForExternalDNS(arg0 interface{}) *gomock.Call
CreateZoneDelegationForExternalDNS indicates an expected call of CreateZoneDelegationForExternalDNS.
func (*MockProviderMockRecorder) Finalize ¶
func (mr *MockProviderMockRecorder) Finalize(arg0 interface{}) *gomock.Call
Finalize indicates an expected call of Finalize.
func (*MockProviderMockRecorder) GetExternalTargets ¶
func (mr *MockProviderMockRecorder) GetExternalTargets(arg0 interface{}) *gomock.Call
GetExternalTargets indicates an expected call of GetExternalTargets.
func (*MockProviderMockRecorder) GslbIngressExposedIPs ¶
func (mr *MockProviderMockRecorder) GslbIngressExposedIPs(arg0 interface{}) *gomock.Call
GslbIngressExposedIPs indicates an expected call of GslbIngressExposedIPs.
func (*MockProviderMockRecorder) SaveDNSEndpoint ¶
func (mr *MockProviderMockRecorder) SaveDNSEndpoint(arg0, arg1 interface{}) *gomock.Call
SaveDNSEndpoint indicates an expected call of SaveDNSEndpoint.
func (*MockProviderMockRecorder) String ¶
func (mr *MockProviderMockRecorder) String() *gomock.Call
String indicates an expected call of 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) []string // 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