types

package
v2.0.9-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: Apache-2.0 Imports: 5 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 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

This section is empty.

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