common

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BuildRunningOutdatedTimeout --
	BuildRunningOutdatedTimeout = 1 * time.Hour
	// BuildPendingOutdatedTimeout --
	BuildPendingOutdatedTimeout = 24 * time.Hour
	// BuildScheduledOutdatedTimeout --
	BuildScheduledOutdatedTimeout = 1 * time.Hour
	// BuildPendingStuckTimeout --
	BuildPendingStuckTimeout = 1 * time.Hour
)
View Source
const ContextKeyDb contextKey = "db"

ContextKeyDb is used to set context value for db

View Source
const ContextKeyNode contextKey = "node"

ContextKeyNode is used to set context value for node/snowflake

View Source
const ContextKeyWebsocket contextKey = "websocket"

ContextKeyWebsocket is used to set context value for passing websocket

Variables

View Source
var BRANCH = "dev"

BRANCH of the Version

View Source
var GitLabDefaultStages = []string{"build", "test", "deploy"}

GitLabDefaultStages defines the default stages if none are specified

View Source
var GitLabKeywordsGlobalDefaults = []string{
	"image",
	"services",
	"before_script",
	"after_script",
	"tags",
	"cache",
	"artifacts",
	"retry",
	"timeout",
	"interruptible",
}

GitLabKeywordsGlobalDefaults define the global defaults for a pipeline

View Source
var GitLabUnavailableJobNames = []string{
	"image",
	"services",
	"stages",
	"types",
	"before_script",
	"after_script",
	"variables",
	"cache",
	"include",

	"tags",
	"cache",
	"artifacts",
	"retry",
	"timeout",
	"script",
	"interruptible",
}

GitLabUnavailableJobNames are used to exclude job names

View Source
var GitlabGlobalConfig = []string{
	"image",
	"services",
	"before_script",
	"after_script",
	"tags",
	"cache",
	"artifacts",
	"retry",
	"timeout",
	"interruptible",

	"script",
	"stages",
}

GitlabGlobalConfig --

View Source
var NAME = "pipeliner"

NAME of the App

View Source
var SUMMARY = "dirty"

SUMMARY of the Version

View Source
var VERSION = "0.2.0"

VERSION of Release

Functions

func GetCommands

func GetCommands() []*cli.Command

GetCommands --

func RegisterCommand

func RegisterCommand(command *cli.Command)

RegisterCommand --

Types

type AppVersionInfo

type AppVersionInfo struct {
	Name    string
	Version string
	Branch  string
	Summary string
}

AppVersionInfo --

var AppVersion AppVersionInfo

AppVersion --

type Commander

type Commander interface {
	Execute(c *cli.Context)
}

Commander --

type Config

type Config struct {
	NodeID int64

	StorageDriver string
	FileStorage   FileStore
}

Config --

type FileStore

type FileStore struct {
	PathPrefix string
}

FileStore --

type S3Store

type S3Store struct {
}

S3Store --

Jump to

Keyboard shortcuts

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