nomad

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Nomad

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

func NewNomad

func NewNomad(opts *options.Options) (*Nomad, error)

func (*Nomad) CommandDevContainer

func (n *Nomad) CommandDevContainer(
	ctx context.Context,
	jobID string,
	user string,
	command string,
	stdin io.Reader,
	stdout io.Writer,
	stderr io.Writer,
) (int, error)

Untested Run a command on the instance

func (*Nomad) Create

func (n *Nomad) Create(
	ctx context.Context,
	job *api.Job,
) (*api.JobRegisterResponse, error)

func (*Nomad) Delete

func (n *Nomad) Delete(
	ctx context.Context,
	jobID string,
) error

func (*Nomad) Init

func (n *Nomad) Init(
	ctx context.Context,
) error

func (*Nomad) Status

func (n *Nomad) Status(
	ctx context.Context,
	jobID string,
) (client.Status, *api.Job, error)

Jump to

Keyboard shortcuts

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