miner

package
v0.2.0-alpha.14 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 License: MIT Imports: 6 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

This section is empty.

Variables

This section is empty.

Functions

func ChainDNSServiceNameFromMiner

func ChainDNSServiceNameFromMiner(namespace, name string) string

func GenesisDNSServiceNameFromMiner

func GenesisDNSServiceNameFromMiner(name string) string

func GetProviderServiceName

func GetProviderServiceName(m *v1beta1.Miner) string

func GetReadyCondition

func GetReadyCondition(status *v1beta1.MinerStatus) *v1beta1.Condition

GetReadyCondition extracts the ready condition from the given status and returns that. Returns nil and -1 if the condition is not present, and the index of the located condition.

func IsGenesisMiner

func IsGenesisMiner(m *v1beta1.Miner) bool

func IsMinerAvailable

func IsMinerAvailable(m *v1beta1.Miner, minReadySeconds int32, now metav1.Time) bool

IsMinerAvailable returns true if the pod is ready and minReadySeconds have elapsed or is 0. False otherwise.

func IsMinerHealthy

func IsMinerHealthy(c client.Client, miner *v1beta1.Miner) bool

IsMinerHealthy returns true if the the miner is running and miner node is healthy.

func IsMinerReady

func IsMinerReady(m *v1beta1.Miner) bool

IsMinerReady returns true if a miner is ready; false otherwise.

func PhaseFromPodHealthyCondition

func PhaseFromPodHealthyCondition(cond *v1beta1.Condition) v1beta1.MinerPhase

Types

This section is empty.

Jump to

Keyboard shortcuts

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