viceroyd

package
v0.0.0-...-d39c007 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Package viceroyd implements the viceroy daemon. viceroyd manages workers and proxies build commands to running workers.

Index

Constants

This section is empty.

Variables

View Source
var DefaultOptions = Options{
	ListenAddr:               "tcp://0.0.0.0:12194",
	ProvisionerContainer:     "rfratto/viceroy:latest",
	ProvisionerContainerName: "viceroy-worker",
}

DefaultOptions is the set of defaults for viceroyd.

Functions

This section is empty.

Types

type Container

type Container struct {
	ID     string
	Docker *docker.Client

	// FS and worker daemon connections
	FS, Daemon *grpc.ClientConn
}

Container is a provisioned container.

type Daemon

type Daemon struct {
	// contains filtered or unexported fields
}

Daemon is the viceroy daemon. Daemon exposes a gRPC API.

func New

func New(l log.Logger, o Options) (d *Daemon, err error)

New creates a new Daemon.

func (*Daemon) Start

func (d *Daemon) Start() error

Start starts d and doesn't return until it stops or there's an error.

func (*Daemon) Stop

func (d *Daemon) Stop() error

type Options

type Options struct {
	ListenAddr               string // Address to listen for client connections.
	ProvisionerContainer     string // Container to use for provisioning
	ProvisionerContainerName string // Container name to use for provisioning
}

Jump to

Keyboard shortcuts

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