object

package
v0.0.0-...-49f47d9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2025 License: Apache-2.0 Imports: 5 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EndpointSliceToEndpoints

func EndpointSliceToEndpoints(obj meta.Object) (meta.Object, error)

EndpointSliceToEndpoints converts a *discovery.EndpointSlice to a *Endpoints.

func EndpointsKey

func EndpointsKey(name, namespace string) string

EndpointsKey returns a string using for the index.

func ServiceKey

func ServiceKey(name, namespace string) string

ServiceKey returns a string using for the index.

func ToServiceImport

func ToServiceImport(obj meta.Object) (meta.Object, error)

ToServiceImport converts an v1alpha1.ServiceImport to a *ServiceImport.

Types

type Endpoints

type Endpoints struct {
	object.Endpoints
	ClusterId string
	*object.Empty
}

Endpoints is a stripped down api.Endpoints with only the items we need for CoreDNS.

func (*Endpoints) DeepCopyObject

func (e *Endpoints) DeepCopyObject() runtime.Object

DeepCopyObject implements the ObjectKind interface.

func (*Endpoints) GetName

func (e *Endpoints) GetName() string

GetName implements the metav1.Object interface.

func (*Endpoints) GetNamespace

func (e *Endpoints) GetNamespace() string

GetNamespace implements the metav1.Object interface.

func (*Endpoints) GetResourceVersion

func (e *Endpoints) GetResourceVersion() string

GetResourceVersion implements the metav1.Object interface.

func (*Endpoints) SetName

func (e *Endpoints) SetName(name string)

SetName implements the metav1.Object interface.

func (*Endpoints) SetNamespace

func (e *Endpoints) SetNamespace(namespace string)

SetNamespace implements the metav1.Object interface.

func (*Endpoints) SetResourceVersion

func (e *Endpoints) SetResourceVersion(version string)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL