Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the discovery v1alpha1 API group +kubebuilder:object:generate=true +groupName=discovery.liqo.io
Index ¶
- Variables
- func CreatePeeringRequestClient(kubeconfig string) (*crdClient.CRDClient, error)
- func Keyer(obj runtime.Object) (string, error)
- type DiscoveryType
- type ForeignCluster
- func (in *ForeignCluster) DeepCopy() *ForeignCluster
- func (in *ForeignCluster) DeepCopyInto(out *ForeignCluster)
- func (in *ForeignCluster) DeepCopyObject() runtime.Object
- func (fc *ForeignCluster) DeleteAdvertisement(advClient *crdClient.CRDClient) error
- func (fc *ForeignCluster) GetConfig(client kubernetes.Interface) (*rest.Config, error)
- func (fc *ForeignCluster) LoadForeignCA(localClient kubernetes.Interface, localNamespace string, config *rest.Config) error
- func (fc *ForeignCluster) SetAdvertisement(adv *advtypes.Advertisement, discoveryClient *crdClient.CRDClient) error
- type ForeignClusterList
- type ForeignClusterSpec
- type ForeignClusterStatus
- type Incoming
- type LoadConfigError
- type OriginClusterSets
- type Outgoing
- type PeeringRequest
- type PeeringRequestList
- type PeeringRequestSpec
- type PeeringRequestStatus
- type ReverseJoin
- type SearchDomain
- type SearchDomainList
- type SearchDomainSpec
- type SearchDomainStatus
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "discovery.liqo.io", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
func CreatePeeringRequestClient ¶
create a client for ClusterConfig CR using a provided kubeconfig
Types ¶
type DiscoveryType ¶
type DiscoveryType string
const ( LanDiscovery DiscoveryType = "LAN" WanDiscovery DiscoveryType = "WAN" ManualDiscovery DiscoveryType = "Manual" IncomingPeeringDiscovery DiscoveryType = "IncomingPeering" )
type ForeignCluster ¶
type ForeignCluster struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ForeignClusterSpec `json:"spec,omitempty"` Status ForeignClusterStatus `json:"status,omitempty"` }
ForeignCluster is the Schema for the foreignclusters API
func (*ForeignCluster) DeepCopy ¶
func (in *ForeignCluster) DeepCopy() *ForeignCluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ForeignCluster.
func (*ForeignCluster) DeepCopyInto ¶
func (in *ForeignCluster) DeepCopyInto(out *ForeignCluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ForeignCluster) DeepCopyObject ¶
func (in *ForeignCluster) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ForeignCluster) DeleteAdvertisement ¶
func (fc *ForeignCluster) DeleteAdvertisement(advClient *crdClient.CRDClient) error
func (*ForeignCluster) GetConfig ¶
func (fc *ForeignCluster) GetConfig(client kubernetes.Interface) (*rest.Config, error)
func (*ForeignCluster) LoadForeignCA ¶
func (fc *ForeignCluster) LoadForeignCA(localClient kubernetes.Interface, localNamespace string, config *rest.Config) error
func (*ForeignCluster) SetAdvertisement ¶
func (fc *ForeignCluster) SetAdvertisement(adv *advtypes.Advertisement, discoveryClient *crdClient.CRDClient) error
type ForeignClusterList ¶
type ForeignClusterList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ForeignCluster `json:"items"` }
ForeignClusterList contains a list of ForeignCluster
func (*ForeignClusterList) DeepCopy ¶
func (in *ForeignClusterList) DeepCopy() *ForeignClusterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ForeignClusterList.
func (*ForeignClusterList) DeepCopyInto ¶
func (in *ForeignClusterList) DeepCopyInto(out *ForeignClusterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ForeignClusterList) DeepCopyObject ¶
func (in *ForeignClusterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ForeignClusterSpec ¶
type ForeignClusterSpec struct { ClusterID string `json:"clusterID"` Namespace string `json:"namespace"` Join bool `json:"join"` ApiUrl string `json:"apiUrl"` DiscoveryType DiscoveryType `json:"discoveryType"` AllowUntrustedCA bool `json:"allowUntrustedCA"` }
ForeignClusterSpec defines the desired state of ForeignCluster
func (*ForeignClusterSpec) DeepCopy ¶
func (in *ForeignClusterSpec) DeepCopy() *ForeignClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ForeignClusterSpec.
func (*ForeignClusterSpec) DeepCopyInto ¶
func (in *ForeignClusterSpec) DeepCopyInto(out *ForeignClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ForeignClusterStatus ¶
type ForeignClusterStatus struct { Outgoing Outgoing `json:"outgoing,omitempty"` Incoming Incoming `json:"incoming,omitempty"` Ttl int `json:"ttl,omitempty"` }
ForeignClusterStatus defines the observed state of ForeignCluster
func (*ForeignClusterStatus) DeepCopy ¶
func (in *ForeignClusterStatus) DeepCopy() *ForeignClusterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ForeignClusterStatus.
func (*ForeignClusterStatus) DeepCopyInto ¶
func (in *ForeignClusterStatus) DeepCopyInto(out *ForeignClusterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Incoming ¶
type Incoming struct { Joined bool `json:"joined"` PeeringRequest *v1.ObjectReference `json:"peeringRequest,omitempty"` AvailableIdentity bool `json:"availableIdentity,omitempty"` IdentityRef *v1.ObjectReference `json:"identityRef,omitempty"` AdvertisementStatus advtypes.AdvPhase `json:"advertisementStatus,omitempty"` }
func (*Incoming) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Incoming.
func (*Incoming) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LoadConfigError ¶
type LoadConfigError struct {
// contains filtered or unexported fields
}
func (*LoadConfigError) DeepCopy ¶
func (in *LoadConfigError) DeepCopy() *LoadConfigError
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadConfigError.
func (*LoadConfigError) DeepCopyInto ¶
func (in *LoadConfigError) DeepCopyInto(out *LoadConfigError)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (LoadConfigError) Error ¶
func (lce LoadConfigError) Error() string
type OriginClusterSets ¶
type OriginClusterSets struct {
AllowUntrustedCA bool `json:"allowUntrustedCA"`
}
func (*OriginClusterSets) DeepCopy ¶
func (in *OriginClusterSets) DeepCopy() *OriginClusterSets
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OriginClusterSets.
func (*OriginClusterSets) DeepCopyInto ¶
func (in *OriginClusterSets) DeepCopyInto(out *OriginClusterSets)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Outgoing ¶
type Outgoing struct { Joined bool `json:"joined"` RemotePeeringRequestName string `json:"remote-peering-request-name,omitempty"` CaDataRef *v1.ObjectReference `json:"caDataRef,omitempty"` Advertisement *v1.ObjectReference `json:"advertisement,omitempty"` AvailableIdentity bool `json:"availableIdentity,omitempty"` IdentityRef *v1.ObjectReference `json:"identityRef,omitempty"` AdvertisementStatus advtypes.AdvPhase `json:"advertisementStatus,omitempty"` }
func (*Outgoing) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Outgoing.
func (*Outgoing) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PeeringRequest ¶
type PeeringRequest struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PeeringRequestSpec `json:"spec,omitempty"` Status PeeringRequestStatus `json:"status,omitempty"` }
PeeringRequest is the Schema for the PeeringRequests API
func (*PeeringRequest) DeepCopy ¶
func (in *PeeringRequest) DeepCopy() *PeeringRequest
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PeeringRequest.
func (*PeeringRequest) DeepCopyInto ¶
func (in *PeeringRequest) DeepCopyInto(out *PeeringRequest)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PeeringRequest) DeepCopyObject ¶
func (in *PeeringRequest) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*PeeringRequest) GetConfig ¶
func (pr *PeeringRequest) GetConfig(clientset kubernetes.Interface) (*rest.Config, error)
type PeeringRequestList ¶
type PeeringRequestList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []PeeringRequest `json:"items"` }
PeeringRequestList contains a list of PeeringRequest
func (*PeeringRequestList) DeepCopy ¶
func (in *PeeringRequestList) DeepCopy() *PeeringRequestList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PeeringRequestList.
func (*PeeringRequestList) DeepCopyInto ¶
func (in *PeeringRequestList) DeepCopyInto(out *PeeringRequestList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PeeringRequestList) DeepCopyObject ¶
func (in *PeeringRequestList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PeeringRequestSpec ¶
type PeeringRequestSpec struct { ClusterID string `json:"clusterID"` Namespace string `json:"namespace"` KubeConfigRef *v1.ObjectReference `json:"kubeConfigRef,omitempty"` OriginClusterSets OriginClusterSets `json:"originClusterSets"` }
PeeringRequestSpec defines the desired state of PeeringRequest
func (*PeeringRequestSpec) DeepCopy ¶
func (in *PeeringRequestSpec) DeepCopy() *PeeringRequestSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PeeringRequestSpec.
func (*PeeringRequestSpec) DeepCopyInto ¶
func (in *PeeringRequestSpec) DeepCopyInto(out *PeeringRequestSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PeeringRequestStatus ¶
type PeeringRequestStatus struct {
AdvertisementStatus advtypes.AdvPhase `json:"advertisementStatus,omitempty"`
}
PeeringRequestStatus defines the observed state of PeeringRequest
func (*PeeringRequestStatus) DeepCopy ¶
func (in *PeeringRequestStatus) DeepCopy() *PeeringRequestStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PeeringRequestStatus.
func (*PeeringRequestStatus) DeepCopyInto ¶
func (in *PeeringRequestStatus) DeepCopyInto(out *PeeringRequestStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ReverseJoin ¶
type ReverseJoin string
const ( NoReverseJoin ReverseJoin = "NoReverseJoin" // this cluster will not allow remote cluster to send its PeeringRequest AllowReverseJoin ReverseJoin = "AllowReverseJoin" // this cluster will accept remote cluster PeeringRequest RequireReverseJoin ReverseJoin = "RequireReverseJoin" // this cluster asks to remote cluster to send its PeeringRequest )
type SearchDomain ¶
type SearchDomain struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SearchDomainSpec `json:"spec,omitempty"` Status SearchDomainStatus `json:"status,omitempty"` }
SearchDomain is the Schema for the SearchDomains API
func (*SearchDomain) DeepCopy ¶
func (in *SearchDomain) DeepCopy() *SearchDomain
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SearchDomain.
func (*SearchDomain) DeepCopyInto ¶
func (in *SearchDomain) DeepCopyInto(out *SearchDomain)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SearchDomain) DeepCopyObject ¶
func (in *SearchDomain) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SearchDomainList ¶
type SearchDomainList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []SearchDomain `json:"items"` }
SearchDomainList contains a list of SearchDomain
func (*SearchDomainList) DeepCopy ¶
func (in *SearchDomainList) DeepCopy() *SearchDomainList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SearchDomainList.
func (*SearchDomainList) DeepCopyInto ¶
func (in *SearchDomainList) DeepCopyInto(out *SearchDomainList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SearchDomainList) DeepCopyObject ¶
func (in *SearchDomainList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SearchDomainSpec ¶
SearchDomainSpec defines the desired state of SearchDomain
func (*SearchDomainSpec) DeepCopy ¶
func (in *SearchDomainSpec) DeepCopy() *SearchDomainSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SearchDomainSpec.
func (*SearchDomainSpec) DeepCopyInto ¶
func (in *SearchDomainSpec) DeepCopyInto(out *SearchDomainSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SearchDomainStatus ¶
type SearchDomainStatus struct {
ForeignClusters []v1.ObjectReference `json:"foreignClusters"`
}
SearchDomainStatus defines the observed state of SearchDomain
func (*SearchDomainStatus) DeepCopy ¶
func (in *SearchDomainStatus) DeepCopy() *SearchDomainStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SearchDomainStatus.
func (*SearchDomainStatus) DeepCopyInto ¶
func (in *SearchDomainStatus) DeepCopyInto(out *SearchDomainStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.