constants

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2018 License: Apache-2.0 Imports: 1 Imported by: 71

Documentation

Index

Constants

View Source
const (
	ColumnAppId            = "app_id"
	ColumnCategoryId       = "category_id"
	ColumnChartName        = "chart_name"
	ColumnClusterId        = "cluster_id"
	ColumnCreateTime       = "create_time"
	ColumnCredential       = "credential"
	ColumnDescription      = "description"
	ColumnExecutor         = "executor"
	ColumnFrontgateId      = "frontgate_id"
	ColumnHome             = "home"
	ColumnIcon             = "icon"
	ColumnInstanceId       = "instance_id"
	ColumnJobAction        = "job_action"
	ColumnJobId            = "job_id"
	ColumnKeywords         = "keywords"
	ColumnLabelKey         = "label_key"
	ColumnLabelValue       = "label_value"
	ColumnLocale           = "locale"
	ColumnMaintainers      = "maintainers"
	ColumnName             = "name"
	ColumnNodeId           = "node_id"
	ColumnOwner            = "owner"
	ColumnPackageName      = "package_name"
	ColumnPrivateIp        = "private_ip"
	ColumnProvider         = "provider"
	ColumnReadme           = "readme"
	ColumnRepoEventId      = "repo_event_id"
	ColumnRepoId           = "repo_id"
	ColumnRepoLabelId      = "repo_label_id"
	ColumnRepoSelectorId   = "repo_selector_id"
	ColumnResouceId        = "resource_id"
	ColumnRole             = "role"
	ColumnRuntimeId        = "runtime_id"
	ColumnRuntimeLabelId   = "runtime_label_id"
	ColumnScreenshots      = "screenshots"
	ColumnSelectorKey      = "selector_key"
	ColumnSelectorValue    = "selector_value"
	ColumnSequence         = "sequence"
	ColumnSources          = "sources"
	ColumnStatus           = "status"
	ColumnStatusTime       = "status_time"
	ColumnTarget           = "target"
	ColumnTaskAction       = "task_action"
	ColumnTaskId           = "task_id"
	ColumnTransitionStatus = "transition_status"
	ColumnType             = "type"
	ColumnUpdateTime       = "update_time"
	ColumnUrl              = "url"
	ColumnVersionId        = "version_id"
	ColumnVisibility       = "visibility"
	ColumnVolumeId         = "volume_id"
	ColumnZone             = "zone"
)
View Source
const (
	ApiGatewayHost      = prefix + "api-gateway"
	RepoManagerHost     = prefix + "repo-manager"
	AppManagerHost      = prefix + "app-manager"
	RuntimeManagerHost  = prefix + "runtime-manager"
	ClusterManagerHost  = prefix + "cluster-manager"
	JobManagerHost      = prefix + "job-manager"
	TaskManagerHost     = prefix + "task-manager"
	PilotServiceHost    = prefix + "pilot-service"
	RepoIndexerHost     = prefix + "repo-indexer"
	CategoryManagerHost = prefix + "category-manager"
)
View Source
const (
	ApiGatewayPort       = 9100 // 91 is similar as Pi, Open[Pi]trix
	RepoManagerPort      = 9101
	AppManagerPort       = 9102
	RuntimeManagerPort   = 9103
	ClusterManagerPort   = 9104
	JobManagerPort       = 9106
	TaskManagerPort      = 9107
	RepoIndexerPort      = 9108
	PilotServicePort     = 9110
	FrontgateServicePort = 9111
	DroneServicePort     = 9112
	CategoryManagerPort  = 9113
	PilotTlsListenPort   = 9114 // public service for frontgate
	EtcdServicePort      = 2379
)
View Source
const (
	StatusActive      = "active"
	StatusEnabled     = "enabled"
	StatusDisabled    = "disabled"
	StatusCreating    = "creating"
	StatusDeleted     = "deleted"
	StatusDeleting    = "deleting"
	StatusUpgrading   = "upgrading"
	StatusUpdating    = "updating"
	StatusRollbacking = "rollbacking"
	StatusStopped     = "stopped"
	StatusStopping    = "stopping"
	StatusStarting    = "starting"
	StatusRecovering  = "recovering"
	StatusCeased      = "ceased"
	StatusCeasing     = "ceasing"
	StatusResizing    = "resizing"
	StatusScaling     = "scaling"
	StatusWorking     = "working"
	StatusPending     = "pending"
	StatusSuccessful  = "successful"
	StatusFailed      = "failed"

	StatusRunning    = "running"
	StatusTerminated = "terminated"

	StatusAvailable = "available"
	StatusInUse     = "in-use"

	StatusDraft     = "draft"
	StatusSubmitted = "submitted"
	StatusPassed    = "passed"
	StatusRejected  = "rejected"
	StatusSuspended = "suspended"
)
View Source
const (
	VisibilityPublic  = "public"
	VisibilityPrivate = "private"
)
View Source
const (
	JobLength       = 20
	TaskLength      = 20
	RepoEventLength = 20
	InstanceSize    = 20

	DefaultMountPoint = "/data"

	Ext4FileSystem = "ext4"
	XfsFileSystem  = "xfs"

	DefaultExt4MountOption = "defaults,noatime"
	DefaultXfsMountOption  = "rw,noatime,inode64,allocsize=16m"
)
View Source
const (
	MaxTaskTimeout               = 3600 * time.Second
	WaitTaskTimeout              = 600 * time.Second
	WaitFrontgateServiceTimeout  = 1800 * time.Second
	WaitDroneServiceTimeout      = 1800 * time.Second
	WaitTaskInterval             = 3 * time.Second
	WaitFrontgateServiceInterval = 10 * time.Second
	WaitDroneServiceInterval     = 10 * time.Second

	GrpcToPilotTimeout = 10 * time.Second

	TimeoutName           = "timeout"
	DefaultServiceTimeout = 600
)
View Source
const (
	ActionCreateCluster      = "CreateCluster"
	ActionUpgradeCluster     = "UpgradeCluster"
	ActionRollbackCluster    = "RollbackCluster"
	ActionResizeCluster      = "ResizeCluster"
	ActionAddClusterNodes    = "AddClusterNodes"
	ActionDeleteClusterNodes = "DeleteClusterNodes"
	ActionStopClusters       = "StopClusters"
	ActionStartClusters      = "StartClusters"
	ActionDeleteClusters     = "DeleteClusters"
	ActionRecoverClusters    = "RecoverClusters"
	ActionCeaseClusters      = "CeaseClusters"
	ActionUpdateClusterEnv   = "UpdateClusterEnv"
	ActionAttachKeyPairs     = "AttachKeyPairs"
	ActionDetachKeyPairs     = "DetachKeyPairs"
)
View Source
const (
	ProviderQingCloud  = "qingcloud"
	ProviderKubernetes = "kubernetes"
	ProviderAWS        = "aws"
	TargetPilot        = "pilot"
)
View Source
const (
	PlaceHolder       = "*"
	ReplicaRoleSuffix = "-replica"
)
View Source
const (
	NodesToExecuteOnName    = "nodes_to_execute_on"
	PostStartServiceName    = "post_start_service"
	PostStopServiceName     = "post_stop_service"
	AgentInstalledName      = "agent_installed"
	ServiceOrderName        = "order"
	ServiceTimeoutName      = "timeout"
	ServiceCmdName          = "cmd"
	ServicePreCheckName     = "pre_check"
	ScalingPolicyParallel   = "parallel"
	ScalingPolicySequential = "sequential"

	NormalClusterType    = 0
	FrontgateClusterType = 1

	ServiceInit           = "init"
	ServiceStart          = "start"
	ServiceStop           = "stop"
	ServiceScaleIn        = "scale_in"
	ServiceScaleOut       = "scale_out"
	ServiceCustom         = "custom_service"
	ServiceRestart        = "restart"
	ServiceDestroy        = "destroy"
	ServiceBackup         = "backup"
	ServiceRestore        = "restore"
	ServiceDeleteSnapshot = "delete_snapshot"
	ServiceUpgrade        = "upgrade"
)
View Source
const (
	TypeS3    = "s3"
	TypeHttp  = "http"
	TypeHttps = "https"
)
View Source
const (
	RepoIndexPrefix = "repo_index_"
	ClusterPrefix   = "cluster_"
)
View Source
const (
	TableApp                 = "app"
	TableAppVersion          = "app_version"
	TableCategory            = "category"
	TableCategoryResource    = "category_resource"
	TableCluster             = "cluster"
	TableClusterCommon       = "cluster_common"
	TableClusterLink         = "cluster_link"
	TableClusterLoadbalancer = "cluster_loadbalancer"
	TableClusterNode         = "cluster_node"
	TableClusterRole         = "cluster_role"
	TableJob                 = "job"
	TableKeyPair             = "key_pair"
	TableNodeKeyPair         = "node_key_pair"
	TableRepo                = "repo"
	TableRepoEvent           = "repo_event"
	TableRepoLabel           = "repo_label"
	TableRepoProvider        = "repo_provider"
	TableRepoSelector        = "repo_selector"
	TableRuntime             = "runtime"
	TableRuntimeCredential   = "runtime_credential"
	TableRuntimeLabel        = "runtime_label"
	TableTask                = "task"
)
View Source
const FrontgateAppId = "app-ABCDEFGHIJKLMNOPQRST"
View Source
const FrontgateDefaultConf = `` /* 362-byte string literal not displayed */
View Source
const FrontgateVersionId = "appv-ABCDEFGHIJKLMNOPQRST"

can use this id for internal test

View Source
const (
	RetryInterval = 3 * time.Second
)

Variables

View Source
var DeletedStatuses = []string{
	StatusDeleted,
	StatusCeased,
}

columns that can be search through sql '=' operator

columns that can be search through sql 'like' operator

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