constant

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const (
	NetworkLegacy = "legacy"
	NetworkStrict = "strict"
	NetworkSDN    = "sdn"

	// For ipam plugin and spiderpool-agent use
	DefaultIPAMUnixSocketPath = "/var/run/spidernet/spiderpool.sock"
)

Network configurations

View Source
const (
	LogDebugLevelStr = "debug"
	LogInfoLevelStr  = "info"
	LogWarnLevelStr  = "warn"
	LogErrorLevelStr = "error"
	LogFatalLevelStr = "fatal"
	LogPanicLevelStr = "panic"
)

Log level character string

View Source
const (
	OwnerNone         types.OwnerType = "None"
	OwnerDeployment   types.OwnerType = "Deployment"
	OwnerStatefuleSet types.OwnerType = "StatefulSet"
	OwnerDaemonSet    types.OwnerType = "DaemonSet"
	OwnerCRD          types.OwnerType = "Unknown"
)
View Source
const (
	PodRunning      types.PodStatus = "Running"
	PodTerminating  types.PodStatus = "Terminating"
	PodGraceTimeOut types.PodStatus = "GraceTimeOut"
	PodSucceeded    types.PodStatus = "Succeeded"
	PodFailed       types.PodStatus = "Failed"
	PodEvicted      types.PodStatus = "Evicted"
	PodDeleted      types.PodStatus = "Deleted"
)
View Source
const (
	AnnotationPre       = "ipam.spidernet.io"
	AnnoPodIPPool       = AnnotationPre + "/ippool"
	AnnoPodIPPools      = AnnotationPre + "/ippools"
	AnnoPodRoutes       = AnnotationPre + "/routes"
	AnnoPodDNS          = AnnotationPre + "/dns"
	AnnoPodStatus       = AnnotationPre + "/status"
	AnnoNSDefautlV4Pool = AnnotationPre + "/defaultv4ippool"
	AnnoNSDefautlV6Pool = AnnotationPre + "/defaultv6ippool"
)
View Source
const SpiderWorkloadEndpointFinalizer = "spiderpool.spidernet.io"

Variables

View Source
var (
	ErrInternal          = errors.New("internal server error")
	ErrWrongInput        = errors.New("wrong input information")
	ErrNotAllocatablePod = errors.New("not allocatable pod")
	ErrNoAvailablePool   = errors.New("no available IP pool")
	ErrIPUsedOut         = errors.New("all IP used out")
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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