Documentation ¶
Overview ¶
Copyright 2021 ABSA Group Limited
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 ABSA Group Limited ¶
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 ABSA Group Limited ¶
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 ABSA Group Limited ¶
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 Gateway
- func (gw *Gateway) A(state request.Request, results []net.IP, ttl endpoint.TTL) (records []dns.RR)
- func (gw *Gateway) Name() string
- func (gw *Gateway) SelfAddress(state request.Request) (records []dns.RR)
- func (gw *Gateway) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error)
- func (gw *Gateway) TXT(state request.Request, results []string, ttl endpoint.TTL) (records []dns.RR)
- type KubeController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gateway ¶
type Gateway struct { Next plugin.Handler Zones []string Resources []*resourceWithIndex Controller *KubeController Filter string Annotation string ExternalAddrFunc func(request.Request) []dns.RR // contains filtered or unexported fields }
Gateway stores all runtime configuration of a plugin
func (*Gateway) SelfAddress ¶
type KubeController ¶
type KubeController struct {
// contains filtered or unexported fields
}
KubeController stores the current runtime configuration and cache
func RunKubeController ¶
func RunKubeController(ctx context.Context, c *Gateway) (*KubeController, error)
RunKubeController kicks off the k8s controllers
func (*KubeController) HasSynced ¶
func (ctrl *KubeController) HasSynced() bool
HasSynced returns true if all controllers have been synced