core

package
v0.0.0-...-b097151 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auther

type Auther interface {
	Auth() auth.Auth
}

Auther exposes the "auth" sub command

type Core

type Core interface {
	Auther
	Eventser
	Lser
	Noder
	Oper
	Runer
	SelfUpdater
	UIer
}

Core exposes all cli commands

func New

func New(
	cliColorer clicolorer.CliColorer,
	nodeProvider nodeprovider.NodeProvider,
) Core

New returns initialized cli core

type Eventser

type Eventser interface {
	Events(
		ctx context.Context,
	)
}

Eventser exposes the "events" command

type Lser

type Lser interface {
	Ls(
		ctx context.Context,
		dirRef string,
	)
}

Lser exposes the "ls" command

type Noder

type Noder interface {
	Node() node.Node
}

Noder exposes the "node" sub command

type Oper

type Oper interface {
	Op() op.Op
}

Oper exposes the "op" sub command

type Runer

type Runer interface {
	Run(
		ctx context.Context,
		opRef string,
		opts *cliModel.RunOpts,
	)
}

Runer exposes the "run" command

type SelfUpdater

type SelfUpdater interface {
	SelfUpdate(
		releaseChannel string,
	)
}

SelfUpdater exposes the "self-update" command

type UIer

type UIer interface {
	UI(
		mountRef string,
	)
}

Uier exposes the "ui" command

Directories

Path Synopsis
fakes
Code generated by counterfeiter.
Code generated by counterfeiter.
Code generated by counterfeiter.
Code generated by counterfeiter.
creater/fakes
Code generated by counterfeiter.
Code generated by counterfeiter.
fakes
Code generated by counterfeiter.
Code generated by counterfeiter.
op
fakes
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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