Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AffinityPolicy ¶
type AffinityPolicy string
AffinityPolicy
const ( SoftAntiAffinity AffinityPolicy = "SoftAntiAffinity" AntiAffinityInSharding AffinityPolicy = "AntiAffinityInSharding" AntiAffinity AffinityPolicy = "AntiAffinity" )
type Arch ¶
type Arch string
const ( // RedisCluster is the Redis Cluster arch RedisCluster Arch = "cluster" // RedisSentinel is the Redis Sentinel arch, which should be renamed to Failover RedisSentinel Arch = "sentinel" // RedisStandalone is the Redis Standalone arch RedisStandalone Arch = "standalone" // RedisStdSentinel is the Redis Standard Sentinel arch RedisStdSentinel Arch = "stdsentinel" )
type HostPort ¶
type HostPort struct {
// Host the sentinel host
Host string `json:"host,omitempty"`
// Port the sentinel port
Port int32 `json:"port,omitempty"`
}
HostPort
func (*HostPort) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostPort.
func (*HostPort) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InstanceAccess ¶
type InstanceAccess struct {
InstanceAccessBase `json:",inline"`
// IPFamily represents the IP Family (IPv4 or IPv6). This type is used to express the family of an IP expressed by a type (e.g. service.spec.ipFamilies).
// +kubebuilder:validation:Enum=IPv4;IPv6
IPFamilyPrefer corev1.IPFamily `json:"ipFamilyPrefer,omitempty"`
// Image defines the image used to expose redis from annotations
Image string `json:"image,omitempty"`
// ImagePullPolicy defines the image pull policy
ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,omitempty"`
}
InstanceAccess
func (*InstanceAccess) DeepCopy ¶
func (in *InstanceAccess) DeepCopy() *InstanceAccess
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceAccess.
func (*InstanceAccess) DeepCopyInto ¶
func (in *InstanceAccess) DeepCopyInto(out *InstanceAccess)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InstanceAccessBase ¶
type InstanceAccessBase struct {
// ServiceType defines the type of the all related service
// +kubebuilder:validation:Enum=NodePort;LoadBalancer;ClusterIP
ServiceType corev1.ServiceType `json:"type,omitempty"`
// The annnotations of the service which attached to services
Annotations map[string]string `json:"annotations,omitempty"`
// AccessPort defines the lb access nodeport
AccessPort int32 `json:"accessPort,omitempty"`
// NodePortMap defines the map of the nodeport for redis nodes
// NodePortSequence defines the sequence of the nodeport for redis cluster only
NodePortSequence string `json:"dataStorageNodePortSequence,omitempty"`
// NodePortMap defines the map of the nodeport for redis sentinel only
// TODO: deprecated this field with NodePortSequence in 3.22
// Reversed for 3.14 backward compatibility
NodePortMap map[string]int32 `json:"dataStorageNodePortMap,omitempty"`
}
InstanceAccessBase
func (*InstanceAccessBase) DeepCopy ¶
func (in *InstanceAccessBase) DeepCopy() *InstanceAccessBase
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceAccessBase.
func (*InstanceAccessBase) DeepCopyInto ¶
func (in *InstanceAccessBase) DeepCopyInto(out *InstanceAccessBase)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RedisBackup ¶
type RedisBackup struct {
Image string `json:"image,omitempty"`
Schedule []Schedule `json:"schedule,omitempty"`
}
RedisBackup defines the structure used to backup the Redis Data
func (*RedisBackup) DeepCopy ¶
func (in *RedisBackup) DeepCopy() *RedisBackup
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisBackup.
func (*RedisBackup) DeepCopyInto ¶
func (in *RedisBackup) DeepCopyInto(out *RedisBackup)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RedisBackupStorage ¶
type RedisBackupStorage struct {
StorageClassName string `json:"storageClassName,omitempty"`
Size resource.Quantity `json:"size,omitempty"`
}
func (*RedisBackupStorage) DeepCopy ¶
func (in *RedisBackupStorage) DeepCopy() *RedisBackupStorage
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisBackupStorage.
func (*RedisBackupStorage) DeepCopyInto ¶
func (in *RedisBackupStorage) DeepCopyInto(out *RedisBackupStorage)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RedisBackupTarget ¶
type RedisBackupTarget struct {
// S3Option
S3Option S3Option `json:"s3Option,omitempty"`
}
func (*RedisBackupTarget) DeepCopy ¶
func (in *RedisBackupTarget) DeepCopy() *RedisBackupTarget
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisBackupTarget.
func (*RedisBackupTarget) DeepCopyInto ¶
func (in *RedisBackupTarget) DeepCopyInto(out *RedisBackupTarget)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RedisDetailedNode ¶
type RedisDetailedNode struct {
RedisNode
// Version version of redis
Version string `json:"version,omitempty"`
// UsedMemory
UsedMemory int64 `json:"usedMemory,omitempty"`
// UsedMemoryDataset
UsedMemoryDataset int64 `json:"usedMemoryDataset,omitempty"`
}
RedisDetailedNode represent a redis Node with more details
func (*RedisDetailedNode) DeepCopy ¶
func (in *RedisDetailedNode) DeepCopy() *RedisDetailedNode
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisDetailedNode.
func (*RedisDetailedNode) DeepCopyInto ¶
func (in *RedisDetailedNode) DeepCopyInto(out *RedisDetailedNode)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RedisNode ¶
type RedisNode struct {
// ID is the redis cluster node id, not runid
ID string `json:"id,omitempty"`
// Role is the role of the node, master or slave
Role RedisRole `json:"role"`
// IP is the ip of the node. if access announce is enabled, it will be the access ip
IP string `json:"ip"`
// Port is the port of the node. if access announce is enabled, it will be the access port
Port string `json:"port"`
// Slots is the slot range for the shard, eg: 0-1000,1002,1005-1100
Slots []string `json:"slots,omitempty"`
// MasterRef is the master node id of this node
MasterRef string `json:"masterRef,omitempty"`
// PodName current pod name
PodName string `json:"podName"`
// NodeName is the node name of the node where holds the pod
NodeName string `json:"nodeName"`
// StatefulSet is the statefulset name of this pod
StatefulSet string `json:"statefulSet"`
}
RedisNode represent a RedisCluster Node
func (*RedisNode) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisNode.
func (*RedisNode) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RedisRestore ¶
type RedisRestore struct {
Image string `json:"image,omitempty"`
ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,omitempty"`
BackupName string `json:"backupName,omitempty"`
}
RedisBackup defines the structure used to restore the Redis Data
func (*RedisRestore) DeepCopy ¶
func (in *RedisRestore) DeepCopy() *RedisRestore
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisRestore.
func (*RedisRestore) DeepCopyInto ¶
func (in *RedisRestore) DeepCopyInto(out *RedisRestore)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RedisRole ¶
type RedisRole string
RedisRole redis node role type
const ( // RedisRoleMaster Master node role RedisRoleMaster RedisRole = "Master" // RedisRoleReplica Master node role RedisRoleReplica RedisRole = "Slave" // RedisRoleSentinel Master node role RedisRoleSentinel RedisRole = "Sentinel" // RedisRoleNone None node role RedisRoleNone RedisRole = "None" )
type S3Option ¶
type S3Option struct {
S3Secret string `json:"s3Secret,omitempty"`
Bucket string `json:"bucket,omitempty"`
Dir string `json:"dir,omitempty"`
}
func (*S3Option) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new S3Option.
func (*S3Option) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Schedule ¶
type Schedule struct {
Name string `json:"name,omitempty"`
Schedule string `json:"schedule"`
Keep int32 `json:"keep"`
KeepAfterDeletion bool `json:"keepAfterDeletion,omitempty"`
Storage RedisBackupStorage `json:"storage"`
Target RedisBackupTarget `json:"target,omitempty"`
}
func (*Schedule) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Schedule.
func (*Schedule) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.