constant

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Dual types.IPVersion = 64
	IPv4 types.IPVersion = 4
	IPv6 types.IPVersion = 6
)
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        string = "None"
	OwnerDeployment  string = "Deployment"
	OwnerStatefulSet string = "StatefulSet"
	OwnerDaemonSet   string = "DaemonSet"
	OwnerUnknown     string = "Unknown"
	OwnerReplicaSet  string = "ReplicaSet"
	OwnerJob         string = "Job"
)
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 (
	SingleNICDefaultRoute types.DefaultRouteType = iota
	MultiNICDefaultRoute
	MultiNICNotDefaultRoute
)
View Source
const (
	SpiderpoolAgent        = "spiderpool-agent"
	SpiderpoolController   = "spiderpool-controller"
	SpiderpoolAPIGroup     = "spiderpool.spidernet.io"
	SpiderFinalizer        = SpiderpoolAPIGroup
	SpiderpoolAPIVersionV1 = "v1"
	SpiderIPPoolKind       = "SpiderIPPool"
	SpiderEndpointKind     = "SpiderEndpoint"
	SpiderReservedIPKind   = "SpiderReservedIP"
)
View Source
const (
	SpiderControllerElectorLockName = SpiderpoolController + "-" + resourcelock.LeasesResourceLock
	QualifiedK8sObjNameFmt          = "[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*"
)

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 IPPool")
	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