Documentation ¶
Index ¶
- Constants
- func PriorityV1ToV2(priority commonv1.Priority) commonv2.Priority
- func PriorityV2ToV1(priority commonv2.Priority) commonv1.Priority
- func SizeScopeV1ToV2(sizeScope commonv1.SizeScope) commonv2.SizeScope
- func SizeScopeV2ToV1(sizeScope commonv2.SizeScope) commonv1.SizeScope
- func TaskTypeV1ToV2(typ commonv1.TaskType) commonv2.TaskType
- func TaskTypeV2ToV1(typ commonv2.TaskType) commonv1.TaskType
- type HostType
- type PEMContent
Constants ¶
View Source
const ( // ManagerName is name of manager. ManagerName = "manager" // SchedulerName is name of scheduler. SchedulerName = "scheduler" // DfdaemonName is name of dfdaemon. DfdaemonName = "dfdaemon" // DaemonName is daemon name of dfdaemon. DaemonName = "daemon" // DfgetName is dfget name of dfdaemon. DfgetName = "dfget" // DfcacheName is dfcache name of dfdaemon. DfcacheName = "dfcache" // DfstoreName is dfstore name of dfdaemon. DfstoreName = "dfstore" )
View Source
const ( // MetricsNamespace is namespace of metrics. MetricsNamespace = "dragonfly" // ManagerMetricsName is name of manager metrics. ManagerMetricsName = "manager" // SchedulerMetricsName is name of scheduelr metrics. SchedulerMetricsName = "scheduler" // DfdaemonMetricsName is name of dfdaemon metrics. DfdaemonMetricsName = "dfdaemon" )
View Source
const ( // HostTypeNormalName is the name of normal host type. HostTypeNormalName = "normal" // HostTypeSuperSeedName is the name of super host type. HostTypeSuperSeedName = "super" // HostTypeStrongSeedName is the name of strong host type. HostTypeStrongSeedName = "strong" // HostTypeWeakSeedName is the name of weak host type. HostTypeWeakSeedName = "weak" )
View Source
const (
// AffinitySeparator is separator of affinity.
AffinitySeparator = "|"
)
Variables ¶
This section is empty.
Functions ¶
func PriorityV1ToV2 ¶ added in v2.0.9
PriorityV1ToV2 converts priority from v1 to v2.
func PriorityV2ToV1 ¶ added in v2.0.9
PriorityV2ToV1 converts priority from v2 to v1.
func SizeScopeV1ToV2 ¶ added in v2.0.9
SizeScopeV1ToV2 converts size scope from v1 to v2.
func SizeScopeV2ToV1 ¶ added in v2.0.9
SizeScopeV2ToV1 converts size scope from v2 to v1.
func TaskTypeV1ToV2 ¶ added in v2.0.9
TaskTypeV1ToV2 converts task type from v1 to v2.
Types ¶
type HostType ¶ added in v2.0.8
type HostType int
HostType is the type of host.
func ParseHostType ¶ added in v2.0.8
ParseHostType parses host type by name.
type PEMContent ¶
type PEMContent string
PEMContent supports load PEM format from file or just inline PEM format content
func (*PEMContent) UnmarshalJSON ¶
func (p *PEMContent) UnmarshalJSON(b []byte) error
func (*PEMContent) UnmarshalYAML ¶
func (p *PEMContent) UnmarshalYAML(node *yaml.Node) error
Click to show internal directories.
Click to hide internal directories.