Documentation
¶
Index ¶
- Constants
- Variables
- func Convert_config_BlockchainControllerConfiguration_To_v1beta1_BlockchainControllerConfiguration(in *config.BlockchainControllerConfiguration, ...) error
- func Convert_config_ChainControllerConfiguration_To_v1beta1_ChainControllerConfiguration(in *config.ChainControllerConfiguration, out *ChainControllerConfiguration, ...) error
- func Convert_config_MinerProfile_To_v1beta1_MinerProfile(in *config.MinerProfile, out *MinerProfile, s conversion.Scope) error
- func Convert_v1beta1_BlockchainControllerConfiguration_To_config_BlockchainControllerConfiguration(in *BlockchainControllerConfiguration, ...) error
- func Convert_v1beta1_ChainControllerConfiguration_To_config_ChainControllerConfiguration(in *ChainControllerConfiguration, out *config.ChainControllerConfiguration, ...) error
- func Convert_v1beta1_MinerProfile_To_config_MinerProfile(in *MinerProfile, out *config.MinerProfile, s conversion.Scope) error
- func RecommendedDefaultChainControllerConfiguration(obj *ChainControllerConfiguration)
- func RegisterConversions(s *runtime.Scheme) error
- func RegisterDefaults(scheme *runtime.Scheme) error
- func SetDefaults_BlockchainControllerConfiguration(obj *BlockchainControllerConfiguration)
- func SetObjectDefaults_BlockchainControllerConfiguration(in *BlockchainControllerConfiguration)
- type BlockchainControllerConfiguration
- type ChainControllerConfiguration
- type MinerProfile
Constants ¶
const ( // MinerControllerDefaultLockObjectNamespace defines default miner controller lock object namespace ("kube-system"). MinerControllerDefaultLockObjectNamespace string = metav1.NamespaceSystem // MinerControllerDefaultLockObjectName defines default miner controller lock object name ("onex-miner-controller"). MinerControllerDefaultLockObjectName = "onex-miner-controller" )
const GroupName = "blockchaincontroller.config.onex.io"
GroupName is the group name used in this package.
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes, addDefaultingFuncs) // AddToScheme is a global function that registers this API group & version to a scheme. AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1beta1"}
SchemeGroupVersion is group version used to register these objects.
Functions ¶
func Convert_config_BlockchainControllerConfiguration_To_v1beta1_BlockchainControllerConfiguration ¶
func Convert_config_BlockchainControllerConfiguration_To_v1beta1_BlockchainControllerConfiguration(in *config.BlockchainControllerConfiguration, out *BlockchainControllerConfiguration, s conversion.Scope) error
Convert_config_BlockchainControllerConfiguration_To_v1beta1_BlockchainControllerConfiguration is an autogenerated conversion function.
func Convert_config_ChainControllerConfiguration_To_v1beta1_ChainControllerConfiguration ¶
func Convert_config_ChainControllerConfiguration_To_v1beta1_ChainControllerConfiguration(in *config.ChainControllerConfiguration, out *ChainControllerConfiguration, s conversion.Scope) error
Convert_config_ChainControllerConfiguration_To_v1beta1_ChainControllerConfiguration is an autogenerated conversion function.
func Convert_config_MinerProfile_To_v1beta1_MinerProfile ¶
func Convert_config_MinerProfile_To_v1beta1_MinerProfile(in *config.MinerProfile, out *MinerProfile, s conversion.Scope) error
Convert_config_MinerProfile_To_v1beta1_MinerProfile is an autogenerated conversion function.
func Convert_v1beta1_BlockchainControllerConfiguration_To_config_BlockchainControllerConfiguration ¶
func Convert_v1beta1_BlockchainControllerConfiguration_To_config_BlockchainControllerConfiguration(in *BlockchainControllerConfiguration, out *config.BlockchainControllerConfiguration, s conversion.Scope) error
Convert_v1beta1_BlockchainControllerConfiguration_To_config_BlockchainControllerConfiguration is an autogenerated conversion function.
func Convert_v1beta1_ChainControllerConfiguration_To_config_ChainControllerConfiguration ¶
func Convert_v1beta1_ChainControllerConfiguration_To_config_ChainControllerConfiguration(in *ChainControllerConfiguration, out *config.ChainControllerConfiguration, s conversion.Scope) error
Convert_v1beta1_ChainControllerConfiguration_To_config_ChainControllerConfiguration is an autogenerated conversion function.
func Convert_v1beta1_MinerProfile_To_config_MinerProfile ¶
func Convert_v1beta1_MinerProfile_To_config_MinerProfile(in *MinerProfile, out *config.MinerProfile, s conversion.Scope) error
Convert_v1beta1_MinerProfile_To_config_MinerProfile is an autogenerated conversion function.
func RecommendedDefaultChainControllerConfiguration ¶
func RecommendedDefaultChainControllerConfiguration(obj *ChainControllerConfiguration)
func RegisterConversions ¶
RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.
func RegisterDefaults ¶
RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.
func SetDefaults_BlockchainControllerConfiguration ¶
func SetDefaults_BlockchainControllerConfiguration(obj *BlockchainControllerConfiguration)
SetDefaults_BlockchainControllerConfiguration sets additional defaults.
func SetObjectDefaults_BlockchainControllerConfiguration ¶
func SetObjectDefaults_BlockchainControllerConfiguration(in *BlockchainControllerConfiguration)
Types ¶
type BlockchainControllerConfiguration ¶
type BlockchainControllerConfiguration struct { // TypeMeta contains the API version and kind. metav1.TypeMeta `json:",inline"` // Generic holds configuration for a generic controller-manager Generic genericconfigv1beta1.GenericControllerManagerConfiguration `json:"generic,omitempty"` // 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 `json:"dryRun,omitempty"` // FeatureGates is a map of feature names to bools that enable or disable alpha/experimental features. FeatureGates map[string]bool `json:"featureGates,omitempty"` // Path to miner provider kubeconfig file with authorization and master location information. // +optional ProviderKubeconfig string `json:"providerKubeconfig,omitempty"` // Create miner pod in the cluster where miner controller is located. // +optional InCluster bool `json:"inCluster,omitempty"` // Redis defines the configuration of redis client. Redis genericconfigv1beta1.RedisConfiguration `json:"redis,omitempty"` // MySQL defines the configuration of mysql client. MySQL genericconfigv1beta1.MySQLConfiguration `json:"mysql,omitempty"` // Types specifies the configuration of the cloud mining machine. Types map[string]MinerProfile `json:"types,omitempty"` // ChainControllerConfiguration holds configuration for ChainController related features. ChainController ChainControllerConfiguration `json:"chainController,omitempty"` }
BlockchainControllerConfiguration configures a scheduler.
func (*BlockchainControllerConfiguration) DeepCopy ¶
func (in *BlockchainControllerConfiguration) DeepCopy() *BlockchainControllerConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BlockchainControllerConfiguration.
func (*BlockchainControllerConfiguration) DeepCopyInto ¶
func (in *BlockchainControllerConfiguration) DeepCopyInto(out *BlockchainControllerConfiguration)
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 `json:"image,omitempty"` }
func (*ChainControllerConfiguration) DeepCopy ¶
func (in *ChainControllerConfiguration) DeepCopy() *ChainControllerConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChainControllerConfiguration.
func (*ChainControllerConfiguration) DeepCopyInto ¶
func (in *ChainControllerConfiguration) DeepCopyInto(out *ChainControllerConfiguration)
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 `json:"cpu,omitempty"` Memory resource.Quantity `json:"memory,omitempty"` MiningDifficulty int `json:"miningDifficulty,omitempty"` }
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.