Documentation ¶
Index ¶
Constants ¶
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 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" )
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" )
View Source
const ( ProviderQingCloud = "qingcloud" ProviderKubernetes = "kubernetes" 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 FrontgateDefaultConf = `` /* 362-byte string literal not displayed */
View Source
const FrontgateVersionId = "appv-ABCDEFGHIJKLMNOPQRST"
can use this id for internal test
Variables ¶
View Source
var ServiceNames = []string{ ServiceInit, ServiceStart, ServiceStop, ServiceScaleIn, ServiceScaleOut, ServiceRestart, ServiceDestroy, ServiceBackup, ServiceRestore, ServiceDeleteSnapshot, ServiceUpgrade, }
View Source
var VmBaseProviders = []string{ ProviderQingCloud, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.