Documentation
¶
Overview ¶
Package v1 contains API Schema definitions for the storageos.com v1 API group +kubebuilder:object:generate=true +groupName=storageos.com
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects. GroupVersion = schema.GroupVersion{Group: "storageos.com", Version: "v1"} // 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 ¶
This section is empty.
Types ¶
type CapacityStats ¶
type CapacityStats struct { // Total bytes in the filesystem Total uint64 `json:"total,omitempty"` // Free bytes in the filesystem available to root user Free uint64 `json:"free,omitempty"` // Byte value available to an unprivileged user Available uint64 `json:"available,omitempty"` }
CapacityStats describes the node's storage capacity.
func (*CapacityStats) DeepCopy ¶
func (in *CapacityStats) DeepCopy() *CapacityStats
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CapacityStats.
func (*CapacityStats) DeepCopyInto ¶
func (in *CapacityStats) DeepCopyInto(out *CapacityStats)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Node ¶
type Node struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec NodeSpec `json:"spec,omitempty"` Status NodeStatus `json:"status,omitempty"` }
Node is the Schema for the nodes API.
func (*Node) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Node.
func (*Node) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Node) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NodeHealth ¶
type NodeHealth string
NodeHealth is a string representation of the node health.
const ( NodeHealthOnline NodeHealth = "online" NodeHealthOffline NodeHealth = "offline" NodeHealthUnknown NodeHealth = "unknown" )
type NodeList ¶
type NodeList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Node `json:"items"` }
NodeList contains a list of Node.
func (*NodeList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeList.
func (*NodeList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NodeList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NodeSpec ¶
type NodeSpec struct { // Endpoint at which we operate our dataplane's dfs service. (used for IO // operations) This value is set on startup by the corresponding environment // variable (IO_ADVERTISE_ADDRESS). IoEndpoint string `json:"ioEndpoint,omitempty"` // Endpoint at which we operate our dataplane's supervisor service (used for // sync). This value is set on startup by the corresponding environment // variable (SUPERVISOR_ADVERTISE_ADDRESS). SupervisorEndpoint string `json:"supervisorEndpoint,omitempty"` // Endpoint at which we operate our health checking service. This value is // set on startup by the corresponding environment variable // (GOSSIP_ADVERTISE_ADDRESS). GossipEndpoint string `json:"gossipEndpoint,omitempty"` // Endpoint at which we operate our clustering GRPC API. This value is set // on startup by the corresponding environment variable // (INTERNAL_API_ADVERTISE_ADDRESS). ClusteringEndpoint string `json:"clusteringEndpoint,omitempty"` }
NodeSpec defines the desired state of Node.
func (*NodeSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeSpec.
func (*NodeSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NodeStatus ¶
type NodeStatus struct { // Health of the node. Health NodeHealth `json:"health,omitempty"` // Capacity of the node. Capacity CapacityStats `json:"capacity,omitempty"` }
NodeStatus defines the observed state of the Node.
func (*NodeStatus) DeepCopy ¶
func (in *NodeStatus) DeepCopy() *NodeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeStatus.
func (*NodeStatus) DeepCopyInto ¶
func (in *NodeStatus) DeepCopyInto(out *NodeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.