v1

package
v0.5.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)

create a SchemeBuilder which uses functions to add types to the scheme more comments here

View Source
var SchemeGroupVersion = schema.GroupVersion{
	Group:   "lighthouse.submariner.io",
	Version: "v1",
}

SchemeGroupVersion identifieds the group name and the group version. SchemeGroupVersion is group version used to register these objects

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type ClusterServiceInfo

type ClusterServiceInfo struct {
	//The unique identity of the cluster where the service is available. This field is
	//not optional.
	ClusterID string `json:"clusterID"`

	//The DNS zone in which the service is a part of. This field is not optional.
	ClusterDomain string `json:"clusterDomain"`

	//The cluster IP of the service running in the cluster that is identified by the
	//ClusterID field. This field is not optional.
	ServiceIP string `json:"serviceIP"`

	//+optional
	//The port in which the service listens at.This is an optional field.
	Port int `json:"port,omitempty"`
}

ClusterServiceInfo provides information about service in each cluster.

func (*ClusterServiceInfo) DeepCopy

func (in *ClusterServiceInfo) DeepCopy() *ClusterServiceInfo

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterServiceInfo.

func (*ClusterServiceInfo) DeepCopyInto

func (in *ClusterServiceInfo) DeepCopyInto(out *ClusterServiceInfo)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MultiClusterService

type MultiClusterService struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              MultiClusterServiceSpec `json:"spec"`
}

MultiClusterService describes the information of service that is available across clusters. A shared informer running in the lighthouse control plane will listen for service creation in every cluster that is part of the control plane and whenever a service is created a MultiClusterService will be created. Lighthouse will distribute the MultiClusterService to every other cluster that is the part of the control plane. When the service is updated/deleted lighthouse ensures that the updated state is reflected in every cluster.

func (*MultiClusterService) DeepCopy

func (in *MultiClusterService) DeepCopy() *MultiClusterService

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MultiClusterService.

func (*MultiClusterService) DeepCopyInto

func (in *MultiClusterService) DeepCopyInto(out *MultiClusterService)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MultiClusterService) DeepCopyObject

func (in *MultiClusterService) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type MultiClusterServiceList

type MultiClusterServiceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []MultiClusterService `json:"items"`
}

MultiClusterServiceList is a list of multiclusterservice objects.

func (*MultiClusterServiceList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MultiClusterServiceList.

func (*MultiClusterServiceList) DeepCopyInto

func (in *MultiClusterServiceList) DeepCopyInto(out *MultiClusterServiceList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MultiClusterServiceList) DeepCopyObject

func (in *MultiClusterServiceList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type MultiClusterServiceSpec

type MultiClusterServiceSpec struct {
	//List of service information across clusters. This field is not optional.
	Items []ClusterServiceInfo `json:"clusterServiceInfo"`
}

MultiClusterServiceSpec provides the specification of a MultiClusterService

func (*MultiClusterServiceSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MultiClusterServiceSpec.

func (*MultiClusterServiceSpec) DeepCopyInto

func (in *MultiClusterServiceSpec) DeepCopyInto(out *MultiClusterServiceSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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