backend

package
v22.11.4 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 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) (ferr 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, ferr fail.Error)

NewJob creates a new instance of struct Job

Types

type Job

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

	Abort() fail.Error
	Aborted() (bool, fail.Error)
	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 defines the interface of various abstracted resources used by SafeScale
Package resources defines the interface of various abstracted resources used by SafeScale
abstract
Package abstract defines structures that will contain abstracted information of resources
Package abstract defines structures that will contain abstracted information of 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
operations
Package operations contains the implementations of resources interfaces
Package operations contains the implementations of resources interfaces

Jump to

Keyboard shortcuts

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