task

package
v0.0.0-...-1a23c2c Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Task

type Task interface {
	Read(ctx context.Context) error

	Create(ctx context.Context) error
	Delete(ctx context.Context) error

	Push(ctx context.Context, source string, unsafe bool) error
	Pull(ctx context.Context, destination string) error

	Logs(ctx context.Context) ([]string, error)

	// Not useful for Kubernetes.
	Stop(ctx context.Context) error

	// To be refactored.
	GetAddresses(ctx context.Context) []net.IP
	GetEvents(ctx context.Context) []universal.Event
	GetStatus(ctx context.Context) map[string]int
	GetKeyPair(ctx context.Context) (*ssh.DeterministicSSHKeyPair, error)
	GetIdentifier(ctx context.Context) string
}

func NewTask

func NewTask(ctx context.Context, cloud universal.Cloud, identifier string, task universal.Task) (Task, error)

Jump to

Keyboard shortcuts

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