v1beta1

package
v0.3.19 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1beta1 Package v1beta1 is the v1beta1 version of the API.

Index

Constants

View Source
const GroupName = "cluster.karpor.io"

GroupName holds the API group name.

Variables

View Source
var (
	// SchemeBuilder allows to add this group to a scheme.
	// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	// AddToScheme adds this group to a scheme.
	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{
	Group:   GroupName,
	Version: "v1beta1",
}

SchemeGroupVersion is group version used to register these objects

Functions

func Convert_cluster_ClusterAccessCredential_To_v1beta1_ClusterAccessCredential

func Convert_cluster_ClusterAccessCredential_To_v1beta1_ClusterAccessCredential(in *cluster.ClusterAccessCredential, out *ClusterAccessCredential, s conversion.Scope) error

Convert_cluster_ClusterAccessCredential_To_v1beta1_ClusterAccessCredential is an autogenerated conversion function.

func Convert_cluster_ClusterAccess_To_v1beta1_ClusterAccess

func Convert_cluster_ClusterAccess_To_v1beta1_ClusterAccess(in *cluster.ClusterAccess, out *ClusterAccess, s conversion.Scope) error

Convert_cluster_ClusterAccess_To_v1beta1_ClusterAccess is an autogenerated conversion function.

func Convert_cluster_ClusterList_To_v1beta1_ClusterList

func Convert_cluster_ClusterList_To_v1beta1_ClusterList(in *cluster.ClusterList, out *ClusterList, s conversion.Scope) error

Convert_cluster_ClusterList_To_v1beta1_ClusterList is an autogenerated conversion function.

func Convert_cluster_ClusterProxyOptions_To_v1beta1_ClusterProxyOptions

func Convert_cluster_ClusterProxyOptions_To_v1beta1_ClusterProxyOptions(in *cluster.ClusterProxyOptions, out *ClusterProxyOptions, s conversion.Scope) error

Convert_cluster_ClusterProxyOptions_To_v1beta1_ClusterProxyOptions is an autogenerated conversion function.

func Convert_cluster_ClusterSpec_To_v1beta1_ClusterSpec

func Convert_cluster_ClusterSpec_To_v1beta1_ClusterSpec(in *cluster.ClusterSpec, out *ClusterSpec, s conversion.Scope) error

Convert_cluster_ClusterSpec_To_v1beta1_ClusterSpec is an autogenerated conversion function.

func Convert_cluster_ClusterStatus_To_v1beta1_ClusterStatus

func Convert_cluster_ClusterStatus_To_v1beta1_ClusterStatus(in *cluster.ClusterStatus, out *ClusterStatus, s conversion.Scope) error

Convert_cluster_ClusterStatus_To_v1beta1_ClusterStatus is an autogenerated conversion function.

func Convert_cluster_Cluster_To_v1beta1_Cluster

func Convert_cluster_Cluster_To_v1beta1_Cluster(in *cluster.Cluster, out *Cluster, s conversion.Scope) error

Convert_cluster_Cluster_To_v1beta1_Cluster is an autogenerated conversion function.

func Convert_cluster_X509_To_v1beta1_X509

func Convert_cluster_X509_To_v1beta1_X509(in *cluster.X509, out *X509, s conversion.Scope) error

Convert_cluster_X509_To_v1beta1_X509 is an autogenerated conversion function.

func Convert_url_Values_To_v1beta1_ClusterProxyOptions

func Convert_url_Values_To_v1beta1_ClusterProxyOptions(in *url.Values, out *ClusterProxyOptions, s conversion.Scope) error

Convert_url_Values_To_v1beta1_ClusterProxyOptions is an autogenerated conversion function.

func Convert_v1beta1_ClusterAccessCredential_To_cluster_ClusterAccessCredential

func Convert_v1beta1_ClusterAccessCredential_To_cluster_ClusterAccessCredential(in *ClusterAccessCredential, out *cluster.ClusterAccessCredential, s conversion.Scope) error

Convert_v1beta1_ClusterAccessCredential_To_cluster_ClusterAccessCredential is an autogenerated conversion function.

func Convert_v1beta1_ClusterAccess_To_cluster_ClusterAccess

func Convert_v1beta1_ClusterAccess_To_cluster_ClusterAccess(in *ClusterAccess, out *cluster.ClusterAccess, s conversion.Scope) error

Convert_v1beta1_ClusterAccess_To_cluster_ClusterAccess is an autogenerated conversion function.

func Convert_v1beta1_ClusterList_To_cluster_ClusterList

func Convert_v1beta1_ClusterList_To_cluster_ClusterList(in *ClusterList, out *cluster.ClusterList, s conversion.Scope) error

Convert_v1beta1_ClusterList_To_cluster_ClusterList is an autogenerated conversion function.

func Convert_v1beta1_ClusterProxyOptions_To_cluster_ClusterProxyOptions

func Convert_v1beta1_ClusterProxyOptions_To_cluster_ClusterProxyOptions(in *ClusterProxyOptions, out *cluster.ClusterProxyOptions, s conversion.Scope) error

Convert_v1beta1_ClusterProxyOptions_To_cluster_ClusterProxyOptions is an autogenerated conversion function.

func Convert_v1beta1_ClusterSpec_To_cluster_ClusterSpec

func Convert_v1beta1_ClusterSpec_To_cluster_ClusterSpec(in *ClusterSpec, out *cluster.ClusterSpec, s conversion.Scope) error

Convert_v1beta1_ClusterSpec_To_cluster_ClusterSpec is an autogenerated conversion function.

func Convert_v1beta1_ClusterStatus_To_cluster_ClusterStatus

func Convert_v1beta1_ClusterStatus_To_cluster_ClusterStatus(in *ClusterStatus, out *cluster.ClusterStatus, s conversion.Scope) error

Convert_v1beta1_ClusterStatus_To_cluster_ClusterStatus is an autogenerated conversion function.

func Convert_v1beta1_Cluster_To_cluster_Cluster

func Convert_v1beta1_Cluster_To_cluster_Cluster(in *Cluster, out *cluster.Cluster, s conversion.Scope) error

Convert_v1beta1_Cluster_To_cluster_Cluster is an autogenerated conversion function.

func Convert_v1beta1_X509_To_cluster_X509

func Convert_v1beta1_X509_To_cluster_X509(in *X509, out *cluster.X509, s conversion.Scope) error

Convert_v1beta1_X509_To_cluster_X509 is an autogenerated conversion function.

func RegisterConversions

func RegisterConversions(s *runtime.Scheme) error

RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.

func RegisterDefaults

func RegisterDefaults(scheme *runtime.Scheme) error

RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Cluster

type Cluster struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"` //nolint:tagliatelle

	Spec ClusterSpec `json:"spec"`
	// +optional
	Status ClusterStatus `json:"status,omitempty"`
}

Cluster is an extension type to access a cluster

func (*Cluster) DeepCopy

func (in *Cluster) DeepCopy() *Cluster

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

func (*Cluster) DeepCopyInto

func (in *Cluster) DeepCopyInto(out *Cluster)

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

func (*Cluster) DeepCopyObject

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

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

type ClusterAccess

type ClusterAccess struct {
	Endpoint string `json:"endpoint"`
	// +optional
	CABundle []byte `json:"caBundle,omitempty"`
	// +optional
	Insecure *bool `json:"insecure,omitempty"`
	// +optional
	Credential *ClusterAccessCredential `json:"credential,omitempty"`
}

func (*ClusterAccess) DeepCopy

func (in *ClusterAccess) DeepCopy() *ClusterAccess

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

func (*ClusterAccess) DeepCopyInto

func (in *ClusterAccess) DeepCopyInto(out *ClusterAccess)

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

type ClusterAccessCredential

type ClusterAccessCredential struct {
	Type CredentialType `json:"type"`
	// +optional
	ServiceAccountToken string `json:"serviceAccountToken,omitempty"`
	// +optional
	X509 *X509 `json:"x509,omitempty"`
}

func (*ClusterAccessCredential) DeepCopy

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

func (*ClusterAccessCredential) DeepCopyInto

func (in *ClusterAccessCredential) DeepCopyInto(out *ClusterAccessCredential)

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

type ClusterList

type ClusterList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"` //nolint:tagliatelle

	Items []Cluster `json:"items"`
}

ClusterList is a list of Cluster objects.

func (*ClusterList) DeepCopy

func (in *ClusterList) DeepCopy() *ClusterList

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

func (*ClusterList) DeepCopyInto

func (in *ClusterList) DeepCopyInto(out *ClusterList)

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

func (*ClusterList) DeepCopyObject

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

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

type ClusterProxyOptions

type ClusterProxyOptions struct {
	metav1.TypeMeta `json:",inline"`

	// Path is the target api path of the proxy request.
	// e.g. "/healthz", "/api/v1"
	// +optional
	Path string `json:"path,omitempty"`
}

func (*ClusterProxyOptions) DeepCopy

func (in *ClusterProxyOptions) DeepCopy() *ClusterProxyOptions

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

func (*ClusterProxyOptions) DeepCopyInto

func (in *ClusterProxyOptions) DeepCopyInto(out *ClusterProxyOptions)

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

func (*ClusterProxyOptions) DeepCopyObject

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

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

type ClusterSpec

type ClusterSpec struct {
	Provider string        `json:"provider"`
	Access   ClusterAccess `json:"access"`
	// +optional
	Description string `json:"description"`
	DisplayName string `json:"displayName"`
	Finalized   *bool  `json:"finalized,omitempty"`
}

func (*ClusterSpec) DeepCopy

func (in *ClusterSpec) DeepCopy() *ClusterSpec

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

func (*ClusterSpec) DeepCopyInto

func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec)

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

type ClusterStatus

type ClusterStatus struct {
	// +optional
	Healthy bool `json:"healthy,omitempty"`
}

func (*ClusterStatus) DeepCopy

func (in *ClusterStatus) DeepCopy() *ClusterStatus

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

func (*ClusterStatus) DeepCopyInto

func (in *ClusterStatus) DeepCopyInto(out *ClusterStatus)

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

type CredentialType

type CredentialType string
const (
	CredentialTypeServiceAccountToken CredentialType = "ServiceAccountToken"
	CredentialTypeX509Certificate     CredentialType = "X509Certificate"
)

type X509

type X509 struct {
	Certificate []byte `json:"certificate"`
	PrivateKey  []byte `json:"privateKey"`
}

func (*X509) DeepCopy

func (in *X509) DeepCopy() *X509

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

func (*X509) DeepCopyInto

func (in *X509) DeepCopyInto(out *X509)

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