v1

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the citacloud v1 API group +kubebuilder:object:generate=true +groupName=citacloud.buaa.edu.cn

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "citacloud.buaa.edu.cn", 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 ChainConfig

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

	Spec   ChainConfigSpec   `json:"spec,omitempty"`
	Status ChainConfigStatus `json:"status,omitempty"`
}

ChainConfig is the Schema for the chainconfigs API

func (*ChainConfig) DeepCopy

func (in *ChainConfig) DeepCopy() *ChainConfig

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

func (*ChainConfig) DeepCopyInto

func (in *ChainConfig) DeepCopyInto(out *ChainConfig)

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

func (*ChainConfig) DeepCopyObject

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

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

type ChainConfigList

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

ChainConfigList contains a list of ChainConfig

func (*ChainConfigList) DeepCopy

func (in *ChainConfigList) DeepCopy() *ChainConfigList

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

func (*ChainConfigList) DeepCopyInto

func (in *ChainConfigList) DeepCopyInto(out *ChainConfigList)

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

func (*ChainConfigList) DeepCopyObject

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

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

type ChainConfigSpec

type ChainConfigSpec struct {

	// init_sys_config.toml: validators
	Authorities []string `json:"authorities,omitempty"`

	// init_sys_config.toml: admin
	SuperAdmin string `json:"super_admin,omitempty"`

	// init_sys_config.toml: block_interval
	// Not allowed to change, any change will ignored
	// Can be empty, default to 3
	BlockInterval string `json:"block_interval,omitempty"`

	// genesis.toml: timestamp
	// Not allowed to change, any change will ignored
	// Can be empty, default to unix_now*1000
	Timestamp string `json:"timestamp,omitempty"`

	// genesis.toml: prevhash
	// Not allowed to change, any change will ignored
	// Can be empty, default to  "0x00000000000000000
	// 00000000000000000000000000000000000000000000000"
	PrevHash string `json:"prevhash,omitempty"`

	// network-config.toml: enable_tls
	// Not allowed to change, any change will ignored
	// Can be empty, default to true
	EnableTLS string `json:"enable_tls,omitempty"`

	// network-config.toml: peers
	// Can be changed
	Nodes []string `json:"nodes,omitempty"`

	// Not allowed to change, any change will ignored
	NetworkImage string `json:"network_image,omitempty"`

	// Not allowed to change, any change will ignored
	ConsensusImage string `json:"consensus_image,omitempty"`

	// Not allowed to change, any change will ignored
	ExecutorImage string `json:"executor_image,omitempty"`

	// Not allowed to change, any change will ignored
	StorageImage string `json:"storage_image,omitempty"`

	// Not allowed to change, any change will ignored
	ControllerImage string `json:"controller_image,omitempty"`

	// Not allowed to change, any change will ignored
	KmsImage string `json:"kms_image,omitempty"`
}

ChainConfigSpec defines the desired state of ChainConfig

func (*ChainConfigSpec) DeepCopy

func (in *ChainConfigSpec) DeepCopy() *ChainConfigSpec

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

func (*ChainConfigSpec) DeepCopyInto

func (in *ChainConfigSpec) DeepCopyInto(out *ChainConfigSpec)

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

type ChainConfigStatus

type ChainConfigStatus struct {

	// ChainNode reconcile will only be called when
	// ChainConfig is ready
	Ready bool `json:"ready,omitempty"`
}

ChainConfigStatus defines the observed state of ChainConfig

func (*ChainConfigStatus) DeepCopy

func (in *ChainConfigStatus) DeepCopy() *ChainConfigStatus

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

func (*ChainConfigStatus) DeepCopyInto

func (in *ChainConfigStatus) DeepCopyInto(out *ChainConfigStatus)

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

type ChainNode

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

	Spec   ChainNodeSpec   `json:"spec,omitempty"`
	Status ChainNodeStatus `json:"status,omitempty"`
}

ChainNode is the Schema for the chainnodes API

func (*ChainNode) DeepCopy

func (in *ChainNode) DeepCopy() *ChainNode

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

func (*ChainNode) DeepCopyInto

func (in *ChainNode) DeepCopyInto(out *ChainNode)

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

func (*ChainNode) DeepCopyObject

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

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

type ChainNodeList

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

ChainNodeList contains a list of ChainNode

func (*ChainNodeList) DeepCopy

func (in *ChainNodeList) DeepCopy() *ChainNodeList

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

func (*ChainNodeList) DeepCopyInto

func (in *ChainNodeList) DeepCopyInto(out *ChainNodeList)

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

func (*ChainNodeList) DeepCopyObject

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

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

type ChainNodeSpec

type ChainNodeSpec struct {

	// Name of the ChainConfig used
	// Not allowed to change, any change will ignored
	ConfigName string `json:"configname,omitempty"`

	// Can be changed
	// Can be empty
	LogLevel string `json:"log_level,omitempty"`

	// Network secret
	NetworkKey string `json:"network_key,omitempty"`

	// Node Address
	// Not allowed to change, any change will ignored
	NodeAddress string `json:"node_address,omitempty"`

	// Node Key
	// Not allowed to change, any change will ignored
	NodeKey string `json:"node_key,omitempty"`

	// Kms password, change policy not set yet
	KmsPassword string `json:"kms_pwd,omitempty"`

	// Weither or not follow when chainConfig has updated
	// Can be updated
	// Choose from AutoUpdate, NoUpdate
	// Default to AutoUpdate
	// Can be empty
	UpdatePoilcy string `json:"update_policy,omitempty"`
}

ChainNodeSpec defines the desired state of ChainNode

func (*ChainNodeSpec) DeepCopy

func (in *ChainNodeSpec) DeepCopy() *ChainNodeSpec

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

func (*ChainNodeSpec) DeepCopyInto

func (in *ChainNodeSpec) DeepCopyInto(out *ChainNodeSpec)

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

type ChainNodeStatus

type ChainNodeStatus struct {

	// The back up of log level
	Nodes []string `json:"nodes,omitempty"`

	// The back up of log level
	LogLevel string `json:"log_level,omitempty"`
}

ChainNodeStatus defines the observed state of ChainNode

func (*ChainNodeStatus) DeepCopy

func (in *ChainNodeStatus) DeepCopy() *ChainNodeStatus

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

func (*ChainNodeStatus) DeepCopyInto

func (in *ChainNodeStatus) DeepCopyInto(out *ChainNodeStatus)

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