v1alpha1

package
v0.0.0-...-dccfa38 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the store v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:defaulter-gen=TypeMeta +groupName=store.kubesphere.cloud

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: "store.kubesphere.cloud", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

func Resource

func Resource(resource string) schema.GroupResource

Types

type Cluster

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

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

Cluster is the schema for the clusters API

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 ClusterCondition

type ClusterCondition struct {
	// Type of the condition
	Type ClusterConditionType `json:"type"`
	// Status of the condition, one of True, False, Unknown.
	Status v1.ConditionStatus `json:"status"`
	// The last time this condition was updated.
	LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty"`
	// Last time the condition transitioned from one status to another.
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
	// The reason for the condition's last transition.
	Reason string `json:"reason,omitempty"`
	// A human readable message indicating details about the transition.
	Message string `json:"message,omitempty"`
}

func (*ClusterCondition) DeepCopy

func (in *ClusterCondition) DeepCopy() *ClusterCondition

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

func (*ClusterCondition) DeepCopyInto

func (in *ClusterCondition) DeepCopyInto(out *ClusterCondition)

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

type ClusterConditionType

type ClusterConditionType string
const (
	// Cluster is all available for requests
	ClusterReady ClusterConditionType = "Ready"
)

type ClusterList

type ClusterList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Cluster `json:"items"`
}

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 ClusterSpec

type ClusterSpec struct {
	// Desired state of the cluster
	Enable bool `json:"enable,omitempty"`

	// Provider of the cluster, this field is just for description
	Provider string `json:"provider,omitempty"`

	// Connection holds info to connect to the member cluster
	Connection Connection `json:"connection,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 {

	// Represents the latest available observations of a cluster's current state.
	Conditions []ClusterCondition `json:"conditions,omitempty"`

	// GitVersion of the kubernetes cluster, this field is populated by cluster controller
	KubernetesVersion string `json:"kubernetesVersion,omitempty"`

	// Count of the kubernetes cluster nodes
	// This field may not reflect the instant status of the cluster.
	NodeCount int `json:"nodeCount,omitempty"`

	// Zones are the names of availability zones in which the nodes of the cluster exist, e.g. 'us-east1-a'.
	// +optional
	Zones []string `json:"zones,omitempty"`

	// Region is the name of the region in which all of the nodes in the cluster exist.  e.g. 'us-east1'.
	// +optional
	Region *string `json:"region,omitempty"`

	// Configz is status of components enabled in the member cluster. This is synchronized with member cluster
	// every amount of time, like 5 minutes.
	// +optional
	Configz map[string]bool `json:"configz,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 Connection

type Connection struct {
	// type defines how host cluster will connect to host cluster
	// ConnectionTypeDirect means direct connection
	Type ConnectionType `json:"type,omitempty"`

	// Kubernetes API Server endpoint. Example: https://10.10.0.1:6443
	// Should provide this field explicitly if connection type is direct.
	KubernetesAPIEndpoint string `json:"kubernetesAPIEndpoint,omitempty"`

	// KubeConfig content used to connect to cluster apis server
	// Should provide this field explicitly if connection type is direct.
	// +optional
	KubeConfig []byte `json:"kubeconfig,omitempty"`

	// Service account secret
	// +optional
	Secret *Secret `json:"secret,omitempty"`
}

func (*Connection) DeepCopy

func (in *Connection) DeepCopy() *Connection

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

func (*Connection) DeepCopyInto

func (in *Connection) DeepCopyInto(out *Connection)

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

type ConnectionType

type ConnectionType string
const (
	ConnectionTypeDirect ConnectionType = "direct"
)

type S3Credential

type S3Credential struct {
	AccessKeyID string `json:"accessKeyID,omitempty"`

	SecretAccessKey string `json:"secretAccessKey,omitempty"`
}

func (*S3Credential) DeepCopy

func (in *S3Credential) DeepCopy() *S3Credential

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

func (*S3Credential) DeepCopyInto

func (in *S3Credential) DeepCopyInto(out *S3Credential)

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

type S3Location

type S3Location struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   S3LocationSpec   `json:"spec,omitempty"`
	Status S3LocationStatus `json:"status,omitempty"`
}

S3Location is the schema for the s3Locations API

func (*S3Location) DeepCopy

func (in *S3Location) DeepCopy() *S3Location

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

func (*S3Location) DeepCopyInto

func (in *S3Location) DeepCopyInto(out *S3Location)

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

func (*S3Location) DeepCopyObject

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

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

type S3LocationCondition

type S3LocationCondition struct {
	// Type of the condition
	Type S3LocationConditionType `json:"type"`
	// Status of the condition, one of True, False, Unknown.
	Status v1.ConditionStatus `json:"status"`
	// Last time the condition transitioned from one status to another.
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
	// The reason for the condition's last transition.
	Reason string `json:"reason,omitempty"`
	// A human readable message indicating details about the transition.
	Message string `json:"message,omitempty"`
}

func (*S3LocationCondition) DeepCopy

func (in *S3LocationCondition) DeepCopy() *S3LocationCondition

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

func (*S3LocationCondition) DeepCopyInto

func (in *S3LocationCondition) DeepCopyInto(out *S3LocationCondition)

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

type S3LocationConditionType

type S3LocationConditionType string
const (
	S3LocationConditionTypeAvailable S3LocationConditionType = "Available"
)

type S3LocationList

type S3LocationList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []S3Location `json:"items"`
}

func (*S3LocationList) DeepCopy

func (in *S3LocationList) DeepCopy() *S3LocationList

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

func (*S3LocationList) DeepCopyInto

func (in *S3LocationList) DeepCopyInto(out *S3LocationList)

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

func (*S3LocationList) DeepCopyObject

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

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

type S3LocationSpec

type S3LocationSpec struct {
	Endpoint string `json:"endpoint,omitempty"`

	Credential S3Credential `json:"credential,omitempty"`

	Region string `json:"region,omitempty"`

	S3ForcePathStyle bool `json:"s3ForcePathStyle,omitempty"`

	DisableSSL bool `json:"disableSSL,omitempty"`

	Provider string `json:"provider,omitempty"`

	Bucket string `json:"bucket,omitempty"`

	Default bool `json:"default,omitempty"`
}

func (*S3LocationSpec) DeepCopy

func (in *S3LocationSpec) DeepCopy() *S3LocationSpec

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

func (*S3LocationSpec) DeepCopyInto

func (in *S3LocationSpec) DeepCopyInto(out *S3LocationSpec)

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

type S3LocationStatus

type S3LocationStatus struct {
	// Represents the latest available observations of a s3Location's current state.
	Conditions []S3LocationCondition `json:"conditions,omitempty"`
}

func (*S3LocationStatus) DeepCopy

func (in *S3LocationStatus) DeepCopy() *S3LocationStatus

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

func (*S3LocationStatus) DeepCopyInto

func (in *S3LocationStatus) DeepCopyInto(out *S3LocationStatus)

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

type Secret

type Secret struct {
	CACert string `json:"caCert,omitempty"`

	Namespace string `json:"namespace,omitempty"`

	Token string `json:"token,omitempty"`
}

func (*Secret) DeepCopy

func (in *Secret) DeepCopy() *Secret

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

func (*Secret) DeepCopyInto

func (in *Secret) DeepCopyInto(out *Secret)

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