task

package
v0.0.0-...-1298597 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	ClusterName   string
	TopoYaml      topologyyaml.Topology
	SSHClients    map[string]*ssh.SSHClient
	PackageStore  *store.PackageStore
	ManifestStore store.ManifestStore

	ClusterStatus topologyyaml.ClusterStatus
}

TODO: perhaps wrap Context into interface, and disallow updates explicitly

func BuildContext

func BuildContext(clusterName string, topo topologyyaml.Topology,
	packageStore *store.PackageStore, manifestStore store.ManifestStore) (*Context, error)

func (*Context) SetClusterStatus

func (c *Context) SetClusterStatus(status topologyyaml.ClusterStatus)

func (*Context) SetTopoYaml

func (c *Context) SetTopoYaml(topo topologyyaml.Topology)

Warn: do not use this method unless it's REALLY needed. It's only used in pkg/cluster/step/takeover.go at the time of writing.

type Task

type Task interface {
	Name() string
	Execute(ctx context.Context) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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