config

package
v0.0.0-...-cb2ea0e Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultLogLevel is the default logging level.
	DefaultLogLevel = log.InfoLevel

	// DefaultTermSignal is the signal to term the agent.
	DefaultTermSignal = syscall.SIGTERM

	// DefaultReloadSignal is the default signal for reload.
	DefaultReloadSignal = syscall.SIGHUP

	// DefaultKillSignal is the default signal for termination.
	DefaultKillSignal = syscall.SIGINT

	// DefaultDroneRPCAddress is the default address of the Drone server
	DefaultDroneRPCAddress = "http://localhost"

	// DefaultDroneRPCSecret is the default secret of the Drone server
	DefaultDroneRPCSecret = "magic_secret"

	// DefaultDroneRPCCapacity ...
	DefaultDroneRPCCapacity = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// LogLevel is the level with with to log for this config
	LogLevel log.Level

	// ReloadSignal
	ReloadSignal syscall.Signal

	// TermSignal
	TermSignal syscall.Signal

	// KillSignal
	KillSignal syscall.Signal

	// Timeout of the runtime
	Timeout time.Duration

	// DroneRPCAddress ...
	DroneRPCAddress string

	// DroneRPCSecret ...
	DroneRPCSecret string

	// DroneRPCCapacity ...
	DroneRPCCapacity int

	// Runner ...
	Runner Runner
}

Config contains a configuration for drone-runner-virtualbox

func New

func New() *Config

New returns a new Config

func (*Config) Arch

func (cfg *Config) Arch() string

Arch ...

func (*Config) Name

func (cfg *Config) Name() string

Name ...

func (*Config) OS

func (cfg *Config) OS() string

OS ...

type Runner

type Runner struct {
	Procs int64
}

Runner ...

Jump to

Keyboard shortcuts

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