tasks

package
v0.6.95 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdConfigure

func NewCmdConfigure(_ *terminal.Terminal, store TaskStore) *cobra.Command

func NewCmdRun

func NewCmdRun(_ *terminal.Terminal, _ TaskStore, taskMap TaskMap) *cobra.Command

func NewCmdTasks

func NewCmdTasks(t *terminal.Terminal, store TaskStore) *cobra.Command

func Tasks

func Tasks(_ *terminal.Terminal, _ TaskStore, _ TaskMap) error

Types

type TaskMap

type TaskMap map[string]tasks.Task

type TaskStore

type TaskStore interface {
	CopyBin(targetBin string) error
	WriteString(path, data string) error
	RegisterNode(publicKey string) error
	GetOrCreateFile(path string) (afero.File, error)
	GetNetworkAuthKey() (*store.GetAuthKeyResponse, error)
	GetCurrentWorkspaceID() (string, error)
	GetWorkspace(workspaceID string) (*entity.Workspace, error)
	GetCurrentUser() (*entity.User, error)
	vpn.ServiceMeshStore
	server.RPCServerTaskStore
	ssh.ConfigUpaterFactoryStore
}

Jump to

Keyboard shortcuts

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