config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2025 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const GroupName = "blockchaincontroller.config.onex.io"

GroupName is the group name used in this package.

Variables

View Source
var (
	// SchemeBuilder is the scheme builder with scheme init functions to run for this API package.
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is a global function that registers this API group & version to a scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}

SchemeGroupVersion is group version used to register these objects.

Functions

This section is empty.

Types

type BlockchainControllerConfiguration

type BlockchainControllerConfiguration struct {
	// TypeMeta contains the API version and kind.
	metav1.TypeMeta

	// Generic holds configuration for a generic controller-manager
	Generic genericconfig.GenericControllerManagerConfiguration

	// DryRun tells if the dry run mode is enabled, do not create an actual miner pod,
	// but directly set the miner status to Running.
	// If DryRun is set to true, the DryRun mode will be prioritized.
	// +optional
	DryRun bool

	// FeatureGates is a map of feature names to bools that enable or disable alpha/experimental features.
	FeatureGates map[string]bool

	// Path to miner provider kubeconfig file with authorization and master location information.
	// +optional
	ProviderKubeconfig string

	// Create miner pod in the cluster where miner controller is located.
	// +optional
	InCluster bool

	// Redis defines the configuration of redis client.
	Redis genericconfig.RedisConfiguration

	// MySQL defines the configuration of mysql client.
	MySQL genericconfig.MySQLConfiguration

	// Types specifies the configuration of the cloud mining machine.
	Types map[string]MinerProfile

	// ChainControllerConfiguration holds configuration for ChainController related features.
	ChainController ChainControllerConfiguration
}

BlockchainControllerConfiguration configures a scheduler.

func (*BlockchainControllerConfiguration) DeepCopy

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

func (*BlockchainControllerConfiguration) DeepCopyInto

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

func (*BlockchainControllerConfiguration) DeepCopyObject

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

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

type ChainControllerConfiguration

type ChainControllerConfiguration struct {
	// Image specify the blockchain node image.
	Image string
}

func (*ChainControllerConfiguration) DeepCopy

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

func (*ChainControllerConfiguration) DeepCopyInto

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

type MinerProfile

type MinerProfile struct {
	CPU              resource.Quantity
	Memory           resource.Quantity
	MiningDifficulty int
}

func (*MinerProfile) DeepCopy

func (in *MinerProfile) DeepCopy() *MinerProfile

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

func (*MinerProfile) DeepCopyInto

func (in *MinerProfile) DeepCopyInto(out *MinerProfile)

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL