common

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EtcdChangeGroupMinRevisionRange = 100
)
View Source
const (
	MaxCacheKeyLength = 200
)

Variables

View Source
var (
	EtcdSchedulerBaseDir = "scheduler"

	EtcdRunsDir             = path.Join(EtcdSchedulerBaseDir, "runs")
	EtcdRunSequenceKey      = path.Join(EtcdSchedulerBaseDir, "runsequence")
	EtcdRunEventKey         = path.Join(EtcdSchedulerBaseDir, "runevents")
	EtcdRunEventSequenceKey = path.Join(EtcdSchedulerBaseDir, "runeventsequence")

	EtcdChangeGroupsDir           = path.Join(EtcdSchedulerBaseDir, "changegroups")
	EtcdChangeGroupMinRevisionKey = path.Join(EtcdSchedulerBaseDir, "changegroupsminrev")

	EtcdExecutorsDir = path.Join(EtcdSchedulerBaseDir, "executors")
	EtcdTasksDir     = path.Join(EtcdSchedulerBaseDir, "tasks")

	EtcdPingKey = path.Join(EtcdSchedulerBaseDir, "ping")

	EtcdLocksDir = path.Join(EtcdSchedulerBaseDir, "locks")

	EtcdCompactChangeGroupsLockKey = path.Join(EtcdLocksDir, "compactchangegroups")
	EtcdCacheCleanerLockKey        = path.Join(EtcdLocksDir, "cachecleaner")
	EtcdWorkspaceCleanerLockKey    = path.Join(EtcdLocksDir, "workspacecleaner")
	EtcdTaskUpdaterLockKey         = path.Join(EtcdLocksDir, "taskupdater")

	EtcdMaintenanceKey = "maintenance"
)
View Source
var (
	StorageDataDir        = ""
	StorageRunsDir        = path.Join(StorageDataDir, "runs")
	StorageRunsConfigDir  = path.Join(StorageDataDir, "runsconfig")
	StorageRunsIndexesDir = path.Join(StorageDataDir, "runsindexes")
	StorageCountersDir    = path.Join(StorageDataDir, "counters")
)

Functions

func EtcdExecutorKey

func EtcdExecutorKey(taskID string) string

func EtcdRunKey

func EtcdRunKey(runID string) string

func EtcdTaskFetcherLockKey added in v0.4.0

func EtcdTaskFetcherLockKey(taskID string) string

func EtcdTaskKey

func EtcdTaskKey(taskID string) string

func GenExecutorTask added in v0.3.0

func GenExecutorTask(r *types.Run, rt *types.RunTask, rc *types.RunConfig, executor *types.Executor) *types.ExecutorTask

func GenExecutorTaskSpecData added in v0.3.0

func GenExecutorTaskSpecData(r *types.Run, rt *types.RunTask, rc *types.RunConfig) *types.ExecutorTaskSpecData

func NewRunEvent

func NewRunEvent(ctx context.Context, e *etcd.Store, runID string, phase types.RunPhase, result types.RunResult) (*types.RunEvent, error)

func OSTRootGroup added in v0.3.0

func OSTRootGroup(group string) string

func OSTSubGroupTypes added in v0.3.0

func OSTSubGroupTypes(group string) []string

func OSTSubGroups added in v0.3.0

func OSTSubGroups(group string) []string

func OSTSubGroupsAndGroupTypes added in v0.3.0

func OSTSubGroupsAndGroupTypes(group string) []string

Types

type DataType

type DataType string
const (
	DataTypeRun        DataType = "run"
	DataTypeRunConfig  DataType = "runconfig"
	DataTypeRunCounter DataType = "runcounter"
)

Jump to

Keyboard shortcuts

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