Documentation ¶
Index ¶
- func EndpointSliceToEndpoints(obj meta.Object) (meta.Object, error)
- func EndpointsKey(name, namespace string) string
- func ServiceKey(name, namespace string) string
- func ToServiceImport(obj meta.Object) (meta.Object, error)
- type Endpoints
- func (e *Endpoints) DeepCopyObject() runtime.Object
- func (e *Endpoints) GetName() string
- func (e *Endpoints) GetNamespace() string
- func (e *Endpoints) GetResourceVersion() string
- func (e *Endpoints) SetName(name string)
- func (e *Endpoints) SetNamespace(namespace string)
- func (e *Endpoints) SetResourceVersion(version string)
- type ServiceImport
- func (s *ServiceImport) DeepCopyObject() runtime.Object
- func (s *ServiceImport) GetName() string
- func (s *ServiceImport) GetNamespace() string
- func (s *ServiceImport) GetResourceVersion() string
- func (s *ServiceImport) SetName(name string)
- func (s *ServiceImport) SetNamespace(namespace string)
- func (s *ServiceImport) SetResourceVersion(version string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EndpointSliceToEndpoints ¶
EndpointSliceToEndpoints converts a *discovery.EndpointSlice to a *Endpoints.
func EndpointsKey ¶
EndpointsKey returns a string using for the index.
func ServiceKey ¶
ServiceKey returns a string using for the index.
Types ¶
type Endpoints ¶
Endpoints is a stripped down api.Endpoints with only the items we need for CoreDNS.
func (*Endpoints) DeepCopyObject ¶
DeepCopyObject implements the ObjectKind interface.
func (*Endpoints) GetNamespace ¶
GetNamespace implements the metav1.Object interface.
func (*Endpoints) GetResourceVersion ¶
GetResourceVersion implements the metav1.Object interface.
func (*Endpoints) SetNamespace ¶
SetNamespace implements the metav1.Object interface.
func (*Endpoints) SetResourceVersion ¶
SetResourceVersion implements the metav1.Object interface.
type ServiceImport ¶
type ServiceImport struct { Version string Name string Namespace string Index string ClusterIPs []string Type mcs.ServiceImportType Ports []mcs.ServicePort *object.Empty }
ServiceImport is a stripped down api.ServiceImport with only the items we need for CoreDNS.
func (*ServiceImport) DeepCopyObject ¶
func (s *ServiceImport) DeepCopyObject() runtime.Object
DeepCopyObject implements the ObjectKind interface.
func (*ServiceImport) GetName ¶
func (s *ServiceImport) GetName() string
GetName implements the metav1.Object interface.
func (*ServiceImport) GetNamespace ¶
func (s *ServiceImport) GetNamespace() string
GetNamespace implements the metav1.Object interface.
func (*ServiceImport) GetResourceVersion ¶
func (s *ServiceImport) GetResourceVersion() string
GetResourceVersion implements the metav1.Object interface.
func (*ServiceImport) SetName ¶
func (s *ServiceImport) SetName(name string)
SetName implements the metav1.Object interface.
func (*ServiceImport) SetNamespace ¶
func (s *ServiceImport) SetNamespace(namespace string)
SetNamespace implements the metav1.Object interface.
func (*ServiceImport) SetResourceVersion ¶
func (s *ServiceImport) SetResourceVersion(version string)
SetResourceVersion implements the metav1.Object interface.