common

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterID

type ClusterID string

type DockerHostsI

type DockerHostsI interface {
	GetBestHost(ClusterID, string) string

	Sync()
}

func NewDockerHosts

func NewDockerHosts(hubServerAddr string, logger *zap.SugaredLogger) DockerHostsI

type Member

type Member string

func (Member) String

func (m Member) String() string

type Stage

type Stage struct {
	//Note: The same stage cannot temporarily run different types of tasks
	TaskType    config.TaskType                   `bson:"type"               json:"type"`
	Status      config.Status                     `bson:"status"             json:"status"`
	RunParallel bool                              `bson:"run_parallel"       json:"run_parallel"`
	Desc        string                            `bson:"desc,omitempty"     json:"desc,omitempty"`
	SubTasks    map[string]map[string]interface{} `bson:"sub_tasks"          json:"sub_tasks"`
	AfterAll    bool                              `bson:"after_all"          json:"after_all"`
}

Jump to

Keyboard shortcuts

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