server

package
v21.11.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbortJobByID

func AbortJobByID(id string) (xerr fail.Error)

AbortJobByID asks the job identified by 'id' to abort

func ListJobs

func ListJobs() map[string]string

ListJobs ...

func NewJob

func NewJob(ctx context.Context, cancel context.CancelFunc, svc iaas.Service, description string) (_ *job, xerr fail.Error)

NewJob creates a new instance of struct Job

Types

type Job

type Job interface {
	ID() string
	Name() string
	Context() context.Context
	Task() concurrency.Task
	Tenant() string
	Service() iaas.Service
	Duration() time.Duration
	String() string

	Abort() fail.Error
	Aborted() bool
	Close()
}

Job is the interface of a daemon job

Directories

Path Synopsis
stacks/aws
Package aws contains the implementation of stack for Amazon
Package aws contains the implementation of stack for Amazon
Package resources ...
Package resources ...
enums/clusterstate
Package clusterstate is an enumeration of the possible states of a Cluster
Package clusterstate is an enumeration of the possible states of a Cluster
enums/volumespeed
Package volumespeed defines an enum to represents Volume type
Package volumespeed defines an enum to represents Volume type
enums/volumestate
Package volumestate defines an enum to represents Volume states life cycle
Package volumestate defines an enum to represents Volume states life cycle
factories/network
Package network contains functions to list, create, load instances of resources.Network
Package network contains functions to list, create, load instances of resources.Network
factories/subnet
Package subnet contains methods to load or create instance of resources.Subnet
Package subnet contains methods to load or create instance of resources.Subnet

Jump to

Keyboard shortcuts

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