types

package
v2.1.63 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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 Scheduler 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

func PriorityV1ToV2(priority commonv1.Priority) commonv2.Priority

PriorityV1ToV2 converts priority from v1 to v2.

func PriorityV2ToV1 added in v2.0.9

func PriorityV2ToV1(priority commonv2.Priority) commonv1.Priority

PriorityV2ToV1 converts priority from v2 to v1.

func SizeScopeV1ToV2 added in v2.0.9

func SizeScopeV1ToV2(sizeScope commonv1.SizeScope) commonv2.SizeScope

SizeScopeV1ToV2 converts size scope from v1 to v2.

func SizeScopeV2ToV1 added in v2.0.9

func SizeScopeV2ToV1(sizeScope commonv2.SizeScope) commonv1.SizeScope

SizeScopeV2ToV1 converts size scope from v2 to v1.

func TaskTypeV1ToV2 added in v2.0.9

func TaskTypeV1ToV2(typ commonv1.TaskType) commonv2.TaskType

TaskTypeV1ToV2 converts task type from v1 to v2.

func TaskTypeV2ToV1 added in v2.0.9

func TaskTypeV2ToV1(typ commonv2.TaskType) commonv1.TaskType

TaskTypeV2ToV1 converts task type from v2 to v1.

Types

type HostType added in v2.0.8

type HostType int

HostType is the type of host.

const (
	// HostTypeNormal is the normal type of host.
	HostTypeNormal HostType = iota

	// HostTypeSuperSeed is the super seed type of host.
	HostTypeSuperSeed

	// HostTypeStrongSeed is the strong seed type of host.
	HostTypeStrongSeed

	// HostTypeWeakSeed is the weak seed type of host.
	HostTypeWeakSeed
)

func ParseHostType added in v2.0.8

func ParseHostType(name string) HostType

ParseHostType parses host type by name.

func (HostType) Name added in v2.0.8

func (h HostType) Name() string

Name returns the name of host type.

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

Jump to

Keyboard shortcuts

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