v1

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Overview

Package v1 contains API Schema definitions for the citacloud v1 API group +kubebuilder:object:generate=true +groupName=citacloud.rivtower.com

Index

Constants

View Source
const (
	BackupSourceVolumeName = "backup-source"
	BackupSourceVolumePath = "/backup-source"
	BackupDestVolumeName   = "backup-dest"
	BackupDestVolumePath   = "/backup-dest"
)
View Source
const (
	ConfigName      = "cita-config"
	ConfigMountPath = "/cita-config"
	VolumeName      = "datadir"
	VolumeMountPath = "/mnt"
)
View Source
const (
	ChangeOwnerVolumeName = "change-owner"
	ChangeOwnerVolumePath = "/change-owner"
)
View Source
const (
	PodReady             status.ConditionType   = "PodReady"
	ExternalTrigger      status.ConditionType   = "ExternalTrigger"
	CitaNodeReady        status.ConditionType   = "CitaNodeReady"
	ContainerNotReady    status.ConditionReason = "ContainerNotReady"
	ContainerAllReady    status.ConditionReason = "ContainerAllReady"
	ExternalStartAction  status.ConditionReason = "ExternalStartAction"
	ExternalStopAction   status.ConditionReason = "ExternalStopAction"
	ExternalUpdateAction status.ConditionReason = "ContainerAllReady"
	CitaNodeStopped      status.ConditionReason = "CitaNodeStopped"
)
View Source
const (
	CITANodeJobServiceAccount     = "cita-node-job"
	CITANodeJobClusterRole        = "cita-node-job"
	CITANodeJobClusterRoleBinding = "cita-node-job"
)
View Source
const (
	RestoreSourceVolumeName = "restore-source"
	RestoreSourceVolumePath = "/restore-source"
	RestoreDestVolumeName   = "restore-dest"
	RestoreDestVolumePath   = "/restore-dest"
)
View Source
const DefaultImage = "citacloud/cita-node-job:v0.0.2"

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "citacloud.rivtower.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 Backend added in v0.0.5

type Backend struct {
	Pvc  string `json:"pvc,omitempty"`
	Path string `json:"path,omitempty"`
}

func (*Backend) DeepCopy added in v0.0.5

func (in *Backend) DeepCopy() *Backend

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

func (*Backend) DeepCopyInto added in v0.0.5

func (in *Backend) DeepCopyInto(out *Backend)

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

type Backup

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

	Spec   BackupSpec   `json:"spec,omitempty"`
	Status BackupStatus `json:"status,omitempty"`
}

Backup is the Schema for the backups API

func (*Backup) DeepCopy

func (in *Backup) DeepCopy() *Backup

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

func (*Backup) DeepCopyInto

func (in *Backup) DeepCopyInto(out *Backup)

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

func (*Backup) DeepCopyObject

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

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

type BackupList

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

BackupList contains a list of Backup

func (*BackupList) DeepCopy

func (in *BackupList) DeepCopy() *BackupList

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

func (*BackupList) DeepCopyInto

func (in *BackupList) DeepCopyInto(out *BackupList)

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

func (*BackupList) DeepCopyObject

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

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

type BackupSpec

type BackupSpec struct {
	// Chain
	Chain string `json:"chain"`
	// Node
	Node string `json:"node"`
	// DeployMethod
	DeployMethod nodepkg.DeployMethod `json:"deployMethod"`
	// StorageClass
	StorageClass string `json:"storageClass,omitempty"`
	// PvcSize
	PvcSize string `json:"pvcSize,omitempty"`
	// Action
	Action nodepkg.Action `json:"action,omitempty"`
	// Image
	Image string `json:"image,omitempty"`
	// PullPolicy
	PullPolicy v1.PullPolicy `json:"pullPolicy,omitempty"`
	// ttlSecondsAfterFinished clean up finished Jobs (either Complete or Failed) automatically
	TTLSecondsAfterFinished int64 `json:"ttlSecondsAfterFinished,omitempty"`
	// PodAffinityFlag weather or not the job's affinity with chain node's pod. Notice: helm chain must be false
	PodAffinityFlag bool `json:"podAffinityFlag,omitempty"`
}

BackupSpec defines the desired state of Backup

func (*BackupSpec) DeepCopy

func (in *BackupSpec) DeepCopy() *BackupSpec

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

func (*BackupSpec) DeepCopyInto

func (in *BackupSpec) DeepCopyInto(out *BackupSpec)

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

type BackupStatus

type BackupStatus struct {
	// Allocate
	Allocate int64 `json:"allocate,omitempty"`
	// Actual
	Actual int64 `json:"actual,omitempty"`
	// Status
	Status JobConditionType `json:"status,omitempty"`
	// StartTime
	StartTime *metav1.Time `json:"startTime,omitempty"`
	// EndTime
	EndTime *metav1.Time `json:"endTime,omitempty"`
	// BlockHeight
	BlockHeight int64 `json:"blockHeight,omitempty"`
	// Message
	Message string `json:"message,omitempty"`
}

BackupStatus defines the observed state of Backup

func (*BackupStatus) DeepCopy

func (in *BackupStatus) DeepCopy() *BackupStatus

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

func (*BackupStatus) DeepCopyInto

func (in *BackupStatus) DeepCopyInto(out *BackupStatus)

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

type BlockHeightFallback

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

	Spec   BlockHeightFallbackSpec   `json:"spec,omitempty"`
	Status BlockHeightFallbackStatus `json:"status,omitempty"`
}

BlockHeightFallback is the Schema for the blockheightfallbacks API

func (*BlockHeightFallback) DeepCopy

func (in *BlockHeightFallback) DeepCopy() *BlockHeightFallback

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

func (*BlockHeightFallback) DeepCopyInto

func (in *BlockHeightFallback) DeepCopyInto(out *BlockHeightFallback)

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

func (*BlockHeightFallback) DeepCopyObject

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

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

type BlockHeightFallbackList

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

BlockHeightFallbackList contains a list of BlockHeightFallback

func (*BlockHeightFallbackList) DeepCopy

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

func (*BlockHeightFallbackList) DeepCopyInto

func (in *BlockHeightFallbackList) DeepCopyInto(out *BlockHeightFallbackList)

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

func (*BlockHeightFallbackList) DeepCopyObject

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

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

type BlockHeightFallbackSpec

type BlockHeightFallbackSpec struct {
	// Chain
	Chain string `json:"chain"`
	// Node
	Node string `json:"node"`
	// BlockHeight
	BlockHeight int64 `json:"blockHeight"`
	// DeployMethod
	DeployMethod node.DeployMethod `json:"deployMethod"`
	// Action
	Action node.Action `json:"action,omitempty"`
	// Image
	Image string `json:"image,omitempty"`
	// PullPolicy
	PullPolicy v1.PullPolicy `json:"pullPolicy,omitempty"`
	// ttlSecondsAfterFinished clean up finished Jobs (either Complete or Failed) automatically
	TTLSecondsAfterFinished int64 `json:"ttlSecondsAfterFinished,omitempty"`
	// PodAffinityFlag weather or not the job's affinity with chain node's pod. Notice: helm chain must be false
	PodAffinityFlag bool `json:"podAffinityFlag,omitempty"`
	// DeleteConsensusData weather or not delete consensus data when restore
	DeleteConsensusData bool `json:"deleteConsensusData,omitempty"`
}

BlockHeightFallbackSpec defines the desired state of BlockHeightFallback

func (*BlockHeightFallbackSpec) DeepCopy

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

func (*BlockHeightFallbackSpec) DeepCopyInto

func (in *BlockHeightFallbackSpec) DeepCopyInto(out *BlockHeightFallbackSpec)

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

type BlockHeightFallbackStatus

type BlockHeightFallbackStatus struct {
	// StartTime
	StartTime *metav1.Time `json:"startTime,omitempty"`
	// EndTime
	EndTime *metav1.Time `json:"endTime,omitempty"`
	// Status
	Status JobConditionType `json:"status,omitempty"`
	// Message
	Message string `json:"message,omitempty"`
}

BlockHeightFallbackStatus defines the observed state of BlockHeightFallback

func (*BlockHeightFallbackStatus) DeepCopy

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

func (*BlockHeightFallbackStatus) DeepCopyInto

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

type ChangeOwner added in v0.0.2

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

	Spec   ChangeOwnerSpec   `json:"spec,omitempty"`
	Status ChangeOwnerStatus `json:"status,omitempty"`
}

ChangeOwner is the Schema for the changeowners API

func (*ChangeOwner) DeepCopy added in v0.0.2

func (in *ChangeOwner) DeepCopy() *ChangeOwner

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

func (*ChangeOwner) DeepCopyInto added in v0.0.2

func (in *ChangeOwner) DeepCopyInto(out *ChangeOwner)

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

func (*ChangeOwner) DeepCopyObject added in v0.0.2

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

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

type ChangeOwnerList added in v0.0.2

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

ChangeOwnerList contains a list of ChangeOwner

func (*ChangeOwnerList) DeepCopy added in v0.0.2

func (in *ChangeOwnerList) DeepCopy() *ChangeOwnerList

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

func (*ChangeOwnerList) DeepCopyInto added in v0.0.2

func (in *ChangeOwnerList) DeepCopyInto(out *ChangeOwnerList)

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

func (*ChangeOwnerList) DeepCopyObject added in v0.0.2

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

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

type ChangeOwnerSpec added in v0.0.2

type ChangeOwnerSpec struct {
	// Chain
	Chain string `json:"chain"`
	// Node
	Node string `json:"node"`
	// DeployMethod
	DeployMethod nodepkg.DeployMethod `json:"deployMethod"`
	// Action
	Action nodepkg.Action `json:"action,omitempty"`
	// Uid
	Uid int64 `json:"uid,omitempty"`
	// Gid
	Gid int64 `json:"gid,omitempty"`
	// Image
	Image string `json:"image,omitempty"`
	// PullPolicy
	PullPolicy v1.PullPolicy `json:"pullPolicy,omitempty"`
	// ttlSecondsAfterFinished clean up finished Jobs (either Complete or Failed) automatically
	TTLSecondsAfterFinished int64 `json:"ttlSecondsAfterFinished,omitempty"`
	// PodAffinityFlag weather or not the job's affinity with chain node's pod. Notice: helm chain must be false
	PodAffinityFlag bool `json:"podAffinityFlag,omitempty"`
}

ChangeOwnerSpec defines the desired state of ChangeOwner

func (*ChangeOwnerSpec) DeepCopy added in v0.0.2

func (in *ChangeOwnerSpec) DeepCopy() *ChangeOwnerSpec

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

func (*ChangeOwnerSpec) DeepCopyInto added in v0.0.2

func (in *ChangeOwnerSpec) DeepCopyInto(out *ChangeOwnerSpec)

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

type ChangeOwnerStatus added in v0.0.2

type ChangeOwnerStatus struct {
	// Status
	Status JobConditionType `json:"status,omitempty"`
	// StartTime
	StartTime *metav1.Time `json:"startTime,omitempty"`
	// EndTime
	EndTime *metav1.Time `json:"endTime,omitempty"`
	// Message
	Message string `json:"message,omitempty"`
}

ChangeOwnerStatus defines the observed state of ChangeOwner

func (*ChangeOwnerStatus) DeepCopy added in v0.0.2

func (in *ChangeOwnerStatus) DeepCopy() *ChangeOwnerStatus

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

func (*ChangeOwnerStatus) DeepCopyInto added in v0.0.2

func (in *ChangeOwnerStatus) DeepCopyInto(out *ChangeOwnerStatus)

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

type CitaNode

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

	Spec   CitaNodeSpec   `json:"spec,omitempty"`
	Status CitaNodeStatus `json:"status,omitempty"`
}

CitaNode is the Schema for the citanodes API

func (*CitaNode) DeepCopy

func (in *CitaNode) DeepCopy() *CitaNode

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

func (*CitaNode) DeepCopyInto

func (in *CitaNode) DeepCopyInto(out *CitaNode)

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

func (*CitaNode) DeepCopyObject

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

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

func (*CitaNode) GetConditions

func (c *CitaNode) GetConditions() *status.Conditions

type CitaNodeList

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

CitaNodeList contains a list of CitaNode

func (*CitaNodeList) DeepCopy

func (in *CitaNodeList) DeepCopy() *CitaNodeList

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

func (*CitaNodeList) DeepCopyInto

func (in *CitaNodeList) DeepCopyInto(out *CitaNodeList)

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

func (*CitaNodeList) DeepCopyObject

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

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

type CitaNodeSpec

type CitaNodeSpec struct {
	// chain name
	ChainName string `json:"chainName"`

	// EnableTLS
	EnableTLS bool `json:"enableTls,omitempty"`

	// ConsensusType
	// +kubebuilder:validation:Enum=BFT;Raft
	ConsensusType ConsensusType `json:"consensusType"`

	// config.toml && kms.db configmap ref
	ConfigMapRef string `json:"configMapRef"`
	// log level
	// +kubebuilder:default:=info
	LogLevel LogLevel `json:"logLevel,omitempty"`
	// storage class name
	StorageClassName *string `json:"storageClassName"`
	// storage size
	StorageSize *int64 `json:"storageSize"`
	// ImageInfo
	ImageInfo `json:"imageInfo,omitempty"`
	// desire status
	// +kubebuilder:validation:Enum=Running;Stopped
	DesiredState Status `json:"desiredState"`
}

CitaNodeSpec defines the desired state of CitaNode

func (*CitaNodeSpec) DeepCopy

func (in *CitaNodeSpec) DeepCopy() *CitaNodeSpec

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

func (*CitaNodeSpec) DeepCopyInto

func (in *CitaNodeSpec) DeepCopyInto(out *CitaNodeSpec)

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

type CitaNodeStatus

type CitaNodeStatus struct {
	Status     Status            `json:"status,omitempty"`
	Conditions status.Conditions `json:"conditions,omitempty"`
}

CitaNodeStatus defines the observed state of CitaNode

func (*CitaNodeStatus) DeepCopy

func (in *CitaNodeStatus) DeepCopy() *CitaNodeStatus

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

func (*CitaNodeStatus) DeepCopyInto

func (in *CitaNodeStatus) DeepCopyInto(out *CitaNodeStatus)

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

type Compress added in v0.0.5

type Compress struct {
	CType CompressType `json:"type,omitempty"`
	File  string       `json:"file,omitempty"`
}

func (*Compress) DeepCopy added in v0.0.5

func (in *Compress) DeepCopy() *Compress

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

func (*Compress) DeepCopyInto added in v0.0.5

func (in *Compress) DeepCopyInto(out *Compress)

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

type CompressType added in v0.0.5

type CompressType string
const (
	Gzip CompressType = "gzip"
)

type ConsensusType

type ConsensusType string
const (
	BFT  ConsensusType = "BFT"
	Raft ConsensusType = "Raft"
)

type Decompress added in v0.0.5

type Decompress struct {
	Md5  string `json:"md5,omitempty"`
	File string `json:"file,omitempty"`
}

func (*Decompress) DeepCopy added in v0.0.5

func (in *Decompress) DeepCopy() *Decompress

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

func (*Decompress) DeepCopyInto added in v0.0.5

func (in *Decompress) DeepCopyInto(out *Decompress)

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

type Duplicate added in v0.0.5

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

	Spec   DuplicateSpec   `json:"spec,omitempty"`
	Status DuplicateStatus `json:"status,omitempty"`
}

Duplicate is the Schema for the duplicates API

func (*Duplicate) DeepCopy added in v0.0.5

func (in *Duplicate) DeepCopy() *Duplicate

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

func (*Duplicate) DeepCopyInto added in v0.0.5

func (in *Duplicate) DeepCopyInto(out *Duplicate)

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

func (*Duplicate) DeepCopyObject added in v0.0.5

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

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

type DuplicateList added in v0.0.5

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

DuplicateList contains a list of Duplicate

func (*DuplicateList) DeepCopy added in v0.0.5

func (in *DuplicateList) DeepCopy() *DuplicateList

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

func (*DuplicateList) DeepCopyInto added in v0.0.5

func (in *DuplicateList) DeepCopyInto(out *DuplicateList)

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

func (*DuplicateList) DeepCopyObject added in v0.0.5

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

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

type DuplicateSpec added in v0.0.5

type DuplicateSpec struct {
	// Chain
	Chain string `json:"chain"`
	// Node
	Node string `json:"node"`
	// DeployMethod
	DeployMethod nodepkg.DeployMethod `json:"deployMethod"`
	// Backend
	Backend *Backend `json:"backend,omitempty"`
	// Action
	Action nodepkg.Action `json:"action,omitempty"`
	// Image
	Image string `json:"image,omitempty"`
	// PullPolicy
	PullPolicy v1.PullPolicy `json:"pullPolicy,omitempty"`
	// ttlSecondsAfterFinished clean up finished Jobs (either Complete or Failed) automatically
	TTLSecondsAfterFinished int64 `json:"ttlSecondsAfterFinished,omitempty"`
	// PodAffinityFlag weather or not the job's affinity with chain node's pod. Notice: helm chain must be false
	PodAffinityFlag bool `json:"podAffinityFlag,omitempty"`
	// Compression
	Compress *Compress `json:"compress,omitempty"`
}

DuplicateSpec defines the desired state of Duplicate

func (*DuplicateSpec) DeepCopy added in v0.0.5

func (in *DuplicateSpec) DeepCopy() *DuplicateSpec

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

func (*DuplicateSpec) DeepCopyInto added in v0.0.5

func (in *DuplicateSpec) DeepCopyInto(out *DuplicateSpec)

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

type DuplicateStatus added in v0.0.5

type DuplicateStatus struct {
	// Allocate
	Allocate int64 `json:"allocate,omitempty"`
	// Actual
	Actual int64 `json:"actual,omitempty"`
	// Md5 info
	Md5 string `json:"md5,omitempty"`
	// Status
	Status JobConditionType `json:"status,omitempty"`
	// StartTime
	StartTime *metav1.Time `json:"startTime,omitempty"`
	// EndTime
	EndTime *metav1.Time `json:"endTime,omitempty"`
	// BlockHeight
	BlockHeight int64 `json:"blockHeight,omitempty"`
	// Message
	Message string `json:"message,omitempty"`
}

DuplicateStatus defines the observed state of Duplicate

func (*DuplicateStatus) DeepCopy added in v0.0.5

func (in *DuplicateStatus) DeepCopy() *DuplicateStatus

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

func (*DuplicateStatus) DeepCopyInto added in v0.0.5

func (in *DuplicateStatus) DeepCopyInto(out *DuplicateStatus)

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

type ImageInfo

type ImageInfo struct {
	// PullPolicy
	PullPolicy v1.PullPolicy `json:"pullPolicy,omitempty"`

	// NetworkImage the image of network container
	NetworkImage string `json:"networkImage,omitempty"`

	// ConsensusImage the image of consensus container
	ConsensusImage string `json:"consensusImage,omitempty"`

	// ExecutorImage the image of executor container
	ExecutorImage string `json:"executorImage,omitempty"`

	// StorageImage the image of storage container
	StorageImage string `json:"storageImage,omitempty"`

	// ControllerImage the image of controller container
	ControllerImage string `json:"controllerImage,omitempty"`

	// KmsImage the image of kms container
	KmsImage string `json:"kmsImage,omitempty"`
}

+k8s:deepcopy-gen=false

type JobConditionType

type JobConditionType string
const (
	// JobActive means the job is active.
	JobActive JobConditionType = "Active"
	// JobComplete means the job has completed its execution.
	JobComplete JobConditionType = "Complete"
	// JobFailed means the job has failed its execution.
	JobFailed JobConditionType = "Failed"
)

These are valid conditions of a job.

type LogLevel

type LogLevel string
const (
	Info LogLevel = "info"
	Warn LogLevel = "warn"
)

type Recover added in v0.0.5

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

	Spec   RecoverSpec   `json:"spec,omitempty"`
	Status RecoverStatus `json:"status,omitempty"`
}

Recover is the Schema for the recovers API

func (*Recover) DeepCopy added in v0.0.5

func (in *Recover) DeepCopy() *Recover

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

func (*Recover) DeepCopyInto added in v0.0.5

func (in *Recover) DeepCopyInto(out *Recover)

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

func (*Recover) DeepCopyObject added in v0.0.5

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

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

type RecoverList added in v0.0.5

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

RecoverList contains a list of Recover

func (*RecoverList) DeepCopy added in v0.0.5

func (in *RecoverList) DeepCopy() *RecoverList

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

func (*RecoverList) DeepCopyInto added in v0.0.5

func (in *RecoverList) DeepCopyInto(out *RecoverList)

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

func (*RecoverList) DeepCopyObject added in v0.0.5

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

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

type RecoverSpec added in v0.0.5

type RecoverSpec struct {
	// Chain
	Chain string `json:"chain"`
	// Node
	Node string `json:"node"`
	// DeployMethod
	DeployMethod nodepkg.DeployMethod `json:"deployMethod"`
	// Backend
	Backend *Backend `json:"backend,omitempty"`
	// Action
	Action nodepkg.Action `json:"action,omitempty"`
	// Image
	Image string `json:"image,omitempty"`
	// PullPolicy
	PullPolicy v1.PullPolicy `json:"pullPolicy,omitempty"`
	// ttlSecondsAfterFinished clean up finished Jobs (either Complete or Failed) automatically
	TTLSecondsAfterFinished int64 `json:"ttlSecondsAfterFinished,omitempty"`
	// PodAffinityFlag weather or not the job's affinity with chain node's pod. Notice: helm chain must be false
	PodAffinityFlag bool `json:"podAffinityFlag,omitempty"`
	// Decompress
	Decompress *Decompress `json:"decompress,omitempty"`
	// DeleteConsensusData weather or not delete consensus data when restore
	DeleteConsensusData bool `json:"deleteConsensusData,omitempty"`
}

RecoverSpec defines the desired state of Recover

func (*RecoverSpec) DeepCopy added in v0.0.5

func (in *RecoverSpec) DeepCopy() *RecoverSpec

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

func (*RecoverSpec) DeepCopyInto added in v0.0.5

func (in *RecoverSpec) DeepCopyInto(out *RecoverSpec)

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

type RecoverStatus added in v0.0.5

type RecoverStatus struct {
	// Status
	Status JobConditionType `json:"status,omitempty"`
	// StartTime
	StartTime *metav1.Time `json:"startTime,omitempty"`
	// EndTime
	EndTime *metav1.Time `json:"endTime,omitempty"`
	// Message
	Message string `json:"message,omitempty"`
}

RecoverStatus defines the observed state of Recover

func (*RecoverStatus) DeepCopy added in v0.0.5

func (in *RecoverStatus) DeepCopy() *RecoverStatus

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

func (*RecoverStatus) DeepCopyInto added in v0.0.5

func (in *RecoverStatus) DeepCopyInto(out *RecoverStatus)

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

type Restore

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

	Spec   RestoreSpec   `json:"spec,omitempty"`
	Status RestoreStatus `json:"status,omitempty"`
}

Restore is the Schema for the restores API

func (*Restore) DeepCopy

func (in *Restore) DeepCopy() *Restore

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

func (*Restore) DeepCopyInto

func (in *Restore) DeepCopyInto(out *Restore)

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

func (*Restore) DeepCopyObject

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

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

type RestoreList

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

RestoreList contains a list of Restore

func (*RestoreList) DeepCopy

func (in *RestoreList) DeepCopy() *RestoreList

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

func (*RestoreList) DeepCopyInto

func (in *RestoreList) DeepCopyInto(out *RestoreList)

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

func (*RestoreList) DeepCopyObject

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

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

type RestoreSpec

type RestoreSpec struct {
	// Chain
	Chain string `json:"chain"`
	// Node
	Node string `json:"node"`
	// DeployMethod
	DeployMethod nodepkg.DeployMethod `json:"deployMethod"`
	// Backup
	Backup string `json:"backup,omitempty"`
	// Snapshot
	Snapshot string `json:"snapshot,omitempty"`
	// Action
	Action nodepkg.Action `json:"action,omitempty"`
	// Image
	Image string `json:"image,omitempty"`
	// PullPolicy
	PullPolicy v1.PullPolicy `json:"pullPolicy,omitempty"`
	// ttlSecondsAfterFinished clean up finished Jobs (either Complete or Failed) automatically
	TTLSecondsAfterFinished int64 `json:"ttlSecondsAfterFinished,omitempty"`
	// PodAffinityFlag weather or not the job's affinity with chain node's pod. Notice: helm chain must be false
	PodAffinityFlag bool `json:"podAffinityFlag,omitempty"`
	// DeleteConsensusData weather or not delete consensus data when restore
	DeleteConsensusData bool `json:"deleteConsensusData,omitempty"`
}

RestoreSpec defines the desired state of Restore

func (*RestoreSpec) DeepCopy

func (in *RestoreSpec) DeepCopy() *RestoreSpec

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

func (*RestoreSpec) DeepCopyInto

func (in *RestoreSpec) DeepCopyInto(out *RestoreSpec)

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

type RestoreStatus

type RestoreStatus struct {
	// Status
	Status JobConditionType `json:"status,omitempty"`
	// StartTime
	StartTime *metav1.Time `json:"startTime,omitempty"`
	// EndTime
	EndTime *metav1.Time `json:"endTime,omitempty"`
	// Message
	Message string `json:"message,omitempty"`
}

RestoreStatus defines the observed state of Restore

func (*RestoreStatus) DeepCopy

func (in *RestoreStatus) DeepCopy() *RestoreStatus

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

func (*RestoreStatus) DeepCopyInto

func (in *RestoreStatus) DeepCopyInto(out *RestoreStatus)

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

type Snapshot added in v0.0.2

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

	Spec   SnapshotSpec   `json:"spec,omitempty"`
	Status SnapshotStatus `json:"status,omitempty"`
}

Snapshot is the Schema for the snapshots API

func (*Snapshot) DeepCopy added in v0.0.2

func (in *Snapshot) DeepCopy() *Snapshot

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

func (*Snapshot) DeepCopyInto added in v0.0.2

func (in *Snapshot) DeepCopyInto(out *Snapshot)

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

func (*Snapshot) DeepCopyObject added in v0.0.2

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

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

type SnapshotList added in v0.0.2

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

SnapshotList contains a list of Snapshot

func (*SnapshotList) DeepCopy added in v0.0.2

func (in *SnapshotList) DeepCopy() *SnapshotList

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

func (*SnapshotList) DeepCopyInto added in v0.0.2

func (in *SnapshotList) DeepCopyInto(out *SnapshotList)

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

func (*SnapshotList) DeepCopyObject added in v0.0.2

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

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

type SnapshotSpec added in v0.0.2

type SnapshotSpec struct {
	// Chain
	Chain string `json:"chain"`
	// Node
	Node string `json:"node"`
	// BlockHeight
	BlockHeight int64 `json:"blockHeight"`
	// DeployMethod
	DeployMethod nodepkg.DeployMethod `json:"deployMethod"`
	// StorageClass
	StorageClass string `json:"storageClass,omitempty"`
	// PvcSize
	PvcSize string `json:"pvcSize,omitempty"`
	// Action
	Action nodepkg.Action `json:"action,omitempty"`
	// Image
	Image string `json:"image,omitempty"`
	// PullPolicy
	PullPolicy v1.PullPolicy `json:"pullPolicy,omitempty"`
	// ttlSecondsAfterFinished clean up finished Jobs (either Complete or Failed) automatically
	TTLSecondsAfterFinished int64 `json:"ttlSecondsAfterFinished,omitempty"`
	// PodAffinityFlag weather or not the job's affinity with chain node's pod. Notice: helm chain must be false
	PodAffinityFlag bool `json:"podAffinityFlag,omitempty"`
}

SnapshotSpec defines the desired state of Snapshot

func (*SnapshotSpec) DeepCopy added in v0.0.2

func (in *SnapshotSpec) DeepCopy() *SnapshotSpec

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

func (*SnapshotSpec) DeepCopyInto added in v0.0.2

func (in *SnapshotSpec) DeepCopyInto(out *SnapshotSpec)

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

type SnapshotStatus added in v0.0.2

type SnapshotStatus struct {
	// Allocate
	Allocate int64 `json:"allocate,omitempty"`
	// Actual
	Actual int64 `json:"actual,omitempty"`
	// Status
	Status JobConditionType `json:"status,omitempty"`
	// StartTime
	StartTime *metav1.Time `json:"startTime,omitempty"`
	// EndTime
	EndTime *metav1.Time `json:"endTime,omitempty"`
	// Message
	Message string `json:"message,omitempty"`
}

SnapshotStatus defines the observed state of Snapshot

func (*SnapshotStatus) DeepCopy added in v0.0.2

func (in *SnapshotStatus) DeepCopy() *SnapshotStatus

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

func (*SnapshotStatus) DeepCopyInto added in v0.0.2

func (in *SnapshotStatus) DeepCopyInto(out *SnapshotStatus)

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

type Status

type Status string
const (
	Running   Status = "Running"
	Stopped   Status = "Stopped"
	Stopping  Status = "Stopping"
	Starting  Status = "Starting"
	Upgrading Status = "Upgrading"
	Error     Status = "Error"
)

type Switchover added in v0.0.2

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

	Spec   SwitchoverSpec   `json:"spec,omitempty"`
	Status SwitchoverStatus `json:"status,omitempty"`
}

Switchover is the Schema for the switchovers API

func (*Switchover) DeepCopy added in v0.0.2

func (in *Switchover) DeepCopy() *Switchover

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

func (*Switchover) DeepCopyInto added in v0.0.2

func (in *Switchover) DeepCopyInto(out *Switchover)

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

func (*Switchover) DeepCopyObject added in v0.0.2

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

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

type SwitchoverList added in v0.0.2

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

SwitchoverList contains a list of Switchover

func (*SwitchoverList) DeepCopy added in v0.0.2

func (in *SwitchoverList) DeepCopy() *SwitchoverList

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

func (*SwitchoverList) DeepCopyInto added in v0.0.2

func (in *SwitchoverList) DeepCopyInto(out *SwitchoverList)

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

func (*SwitchoverList) DeepCopyObject added in v0.0.2

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

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

type SwitchoverSpec added in v0.0.2

type SwitchoverSpec struct {
	// Chain
	Chain string `json:"chain"`
	// SourceNode
	SourceNode string `json:"sourceNode"`
	// DestNode
	DestNode string `json:"destNode"`
	// Image
	Image string `json:"image,omitempty"`
	// PullPolicy
	PullPolicy v1.PullPolicy `json:"pullPolicy,omitempty"`
	// ttlSecondsAfterFinished clean up finished Jobs (either Complete or Failed) automatically
	TTLSecondsAfterFinished int64 `json:"ttlSecondsAfterFinished,omitempty"`
}

SwitchoverSpec defines the desired state of Switchover Role conversion for two nodes in the same k8s cluster

func (*SwitchoverSpec) DeepCopy added in v0.0.2

func (in *SwitchoverSpec) DeepCopy() *SwitchoverSpec

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

func (*SwitchoverSpec) DeepCopyInto added in v0.0.2

func (in *SwitchoverSpec) DeepCopyInto(out *SwitchoverSpec)

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

type SwitchoverStatus added in v0.0.2

type SwitchoverStatus struct {
	// Status
	Status JobConditionType `json:"status,omitempty"`
	// StartTime
	StartTime *metav1.Time `json:"startTime,omitempty"`
	// EndTime
	EndTime *metav1.Time `json:"endTime,omitempty"`
	// Message
	Message string `json:"message,omitempty"`
}

SwitchoverStatus defines the observed state of Switchover

func (*SwitchoverStatus) DeepCopy added in v0.0.2

func (in *SwitchoverStatus) DeepCopy() *SwitchoverStatus

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

func (*SwitchoverStatus) DeepCopyInto added in v0.0.2

func (in *SwitchoverStatus) DeepCopyInto(out *SwitchoverStatus)

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