common

package
v0.0.0-...-b022d11 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: MIT Imports: 1 Imported by: 6

Documentation

Index

Constants

View Source
const (
	// DockerCliVersion for docker cli version
	DockerCliVersion = "1.35"

	// StatusDie for die status
	StatusDie = "die"
	// StatusStart for start status
	StatusStart = "start"

	// DateTimeFormat for datetime format
	DateTimeFormat = "2006-01-02 15:04:05.999999"

	// DOCKERIZED detect agent in docker
	DOCKERIZED = "AGENT_IN_DOCKER"

	// LocalIP .
	LocalIP = "127.0.0.1"

	// DockerRuntime use docker as runtime
	DockerRuntime = "docker"
	// YavirtRuntime use yavirt as runtime
	YavirtRuntime = "yavirt"
	// MocksRuntime use the mock runtime
	MocksRuntime = "mocks"

	// GRPCStore use gRPC as store
	GRPCStore = "grpc"
	// MocksStore use the mock store
	MocksStore = "mocks"

	// ETCDKV use ETCD as KV
	ETCDKV = "etcd"
	// MocksKV use the mock KV
	MocksKV = "mocks"

	// ERUNodeName key of workload's name label
	ERUNodeName = "eru.nodename"
	// ERUCoreID key of workload's core ID label
	ERUCoreID = "eru.coreid"
)

Variables

View Source
var (
	ErrNotImplemented = errors.New("not implemented")
	// ErrConnecting means writer is in connecting status, waiting to be connected
	ErrConnecting = errors.New("connecting")
	// ErrInvalidScheme .
	ErrInvalidScheme = errors.New("invalid scheme")
	// ErrGetRuntimeFailed .
	ErrGetRuntimeFailed = errors.New("failed to get runtime client")
	// ErrInvalidRuntimeType .
	ErrInvalidRuntimeType = errors.New("unknown runtime type")
	// ErrGetStoreFailed .
	ErrGetStoreFailed = errors.New("failed to get store client")
	// ErrInvalidStoreType .
	ErrInvalidStoreType = errors.New("unknown store type")
	// ErrWorkloadUnhealthy .
	ErrWorkloadUnhealthy = errors.New("not healthy")
	// ErrClosedSteam .
	ErrClosedSteam = errors.New("closed")
	// ErrSyscallFailed .
	ErrSyscallFailed = errors.New("syscall fail, Not a syscall.Stat_t")
	// ErrDevNotFound .
	ErrDevNotFound = errors.New("device not found")
	// ErrJournalDisable .
	ErrJournalDisable = errors.New("journal disabled")
	// ErrInvaildContainer .
	ErrInvaildContainer = errors.New("invaild container")
	// ErrGetLockFailed .
	ErrGetLockFailed = errors.New("get lock failed")
	// ErrInvaildVM .
	ErrInvaildVM = errors.New("invaild vm")
)

ErrNotImplemented .

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