Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the tower v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:defaulter-gen=TypeMeta +groupName=tower.kubesphere.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "tower.kubesphere.io", 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 Agent ¶
type Agent struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec AgentSpec `json:"spec,omitempty"` Status AgentStatus `json:"status,omitempty"` }
Agent is the Schema for the agents API
func (*Agent) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Agent.
func (*Agent) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Agent) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AgentCondition ¶
type AgentCondition struct { // Type of AgentCondition Type AgentConditionType `json:"type,omitempty"` // 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 (*AgentCondition) DeepCopy ¶
func (in *AgentCondition) DeepCopy() *AgentCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentCondition.
func (*AgentCondition) DeepCopyInto ¶
func (in *AgentCondition) DeepCopyInto(out *AgentCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AgentConditionType ¶
type AgentConditionType string
const ( // Agent is initialized, and waiting for establishing to a proxy server AgentInitialized AgentConditionType = "Initialized" // Agent has successfully connected to proxy server AgentConnected AgentConditionType = "Connected" )
type AgentList ¶
type AgentList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Agent `json:"items"` }
AgentList contains a list of Agent
func (*AgentList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentList.
func (*AgentList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AgentList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AgentSpec ¶
type AgentSpec struct { // Token used by agents to connect to proxy. Token string `json:"token,omitempty"` // KubeAPIServerPort is the port which listens for forwarding kube-apiserver traffic KubernetesAPIServerPort uint16 `json:"kubernetesAPIServerPort,omitempty"` // KubeSphereAPIServerPort is the port which listens for forwarding kubesphere apigateway traffic KubeSphereAPIGatewayPort uint16 `json:"kubesphereAPIServerPort,omitempty"` }
AgentSpec defines the desired state of Agent
func (*AgentSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentSpec.
func (*AgentSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AgentStatus ¶
type AgentStatus struct { // Represents the latest available observations of a agent's current state. Conditions []AgentCondition `json:"conditions,omitempty"` // Represents the connection quality, in ms Ping uint64 `json:"ping,omitempty"` // Issued new kubeconfig by proxy server KubeConfig []byte }
AgentStatus defines the observed state of Agent
func (*AgentStatus) DeepCopy ¶
func (in *AgentStatus) DeepCopy() *AgentStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentStatus.
func (*AgentStatus) DeepCopyInto ¶
func (in *AgentStatus) DeepCopyInto(out *AgentStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.