provisionerd

package
v0.5.10 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const ReadmeFile = "README.md"

ReadmeFile is the location we look for to extract documentation from template versions.

Variables

This section is empty.

Functions

func IsMissingParameterError

func IsMissingParameterError(err string) bool

IsMissingParameterError returns whether the error message provided is a missing parameter error. This can indicate to consumers that they should check parameters.

Types

type Dialer

Dialer represents the function to create a daemon client connection.

type Options

type Options struct {
	Logger slog.Logger

	ForceCancelInterval time.Duration
	UpdateInterval      time.Duration
	PollInterval        time.Duration
	Provisioners        Provisioners
	WorkDirectory       string
}

Options provides customizations to the behavior of a provisioner daemon.

type Provisioners

type Provisioners map[string]sdkproto.DRPCProvisionerClient

Provisioners maps provisioner ID to implementation.

type Server

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

func New

func New(clientDialer Dialer, opts *Options) *Server

New creates and starts a provisioner daemon.

func (*Server) Close

func (p *Server) Close() error

Close ends the provisioner. It will mark any running jobs as failed.

func (*Server) Shutdown

func (p *Server) Shutdown(ctx context.Context) error

Shutdown triggers a graceful exit of each registered provisioner. It exits when an active job stops.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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