consts

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProtocolTCP  = "tcp"
	ProtocolUDP  = "udp"
	ProtocolIPIP = "ipip"
)
View Source
const (
	LogFieldTask       string = "task"
	LogFieldAction     string = "action"
	LogFieldActionType string = "action-type"
	LogFieldNode       string = "node"

	// TODO:
	// 1. difference between pkg/constant
	// 2. what const should be placed where
	DefaultK8sConfigDir = "/etc/kubernetes"
)
View Source
const (
	MsgRequestFailed string = "the request was failed"

	MsgUnknownFixMethod string = "unknown"

	// Task related messages
	MsgTaskTypeUnsupported         string = "unsupported task type"
	MsgTaskSplitFailed             string = "failed to split task"
	MsgTaskTypeMismatched          string = "task type mismatched"
	MsgEmptyTask                   string = "empty task"
	MsgTaskProcessorCreationFailed string = "failed to create task processor"
	MsgTaskGenSummaryFailed        string = "failed to generate task summary"

	// Action related messages
	MsgActionTypeUnsupported         string = "unsupported action type"
	MsgActionExecutorCreationFailed  string = "failed to create action executor"
	MsgActionExecutionFailed         string = "failed to execute aciton"
	MsgActionTypeMismatched          string = "action type mismatched"
	MsgActionTypeMismatchedDetail    string = "the action type is not match: should be %T, but is %T"
	MsgActionInvalidConfig           string = "the action config is invalid"
	MsgActionInvalidConfigNodeNotSet string = "the action's target node is not set"
	MsgEmptyAction                   string = "empty action"
)
View Source
const (
	DashLine = "-----------------------------"
)
View Source
const (
	DefaultKubeToolScript = "/scripts/init_deploy_kubetool.sh"
)
View Source
const (
	KubeConfigPath = "/etc/kubernetes/admin.conf"
)
View Source
const (
	KubernetesToken = "4a996f.8f1da0db96f8e50e"
)

Variables

View Source
var (
	// Task
	ErrEmptyTask error = fmt.Errorf(MsgEmptyTask)

	// Action
	ErrEmptyAction       error     = fmt.Errorf(MsgEmptyAction)
	PBErrActionNodeEmpty *pb.Error = &pb.Error{
		Reason: MsgActionInvalidConfig,
		Detail: MsgActionInvalidConfigNodeNotSet,
	}
)

Functions

This section is empty.

Types

type NetworkType

type NetworkType string
const (
	NetworkTypeCalico NetworkType = "calico"
)

type Protocol

type Protocol string

Jump to

Keyboard shortcuts

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