cmd

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2018 License: Apache-2.0 Imports: 45 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//EnvConfigJSON can be used to pass the config file as a json encoded string
	EnvConfigJSON = "NERD_CONFIG_JSON"

	//EnvNerdProject can be used to set the nerd project
	EnvNerdProject = "NERD_PROJECT"
)
View Source
const (
	//OutputDirPermissions are the output directory's permissions.
	OutputDirPermissions = 0755
)
View Source
const (
	//PublicCluster is a service type we get from authentication
	PublicCluster = "public-kubernetes"
)

Variables

View Source
var (
	//MessageNotEnoughArguments is shown when the user didn't provide enough arguments
	MessageNotEnoughArguments = "Not enough arguments, this command requires at least %d argument%s."

	//MessageTooManyArguments is shown when the user provides too many arguments
	MessageTooManyArguments = "Too may arguments, this command takes at most %d argument%s."

	//MessageNoArgumentRequired is shown when the user provides too many arguments and the command doesn't take any argument
	MessageNoArgumentRequired = "Too many arguments, this command takes no argument."

	//PlaceholderSynopsis is synopsis text when none is available
	PlaceholderSynopsis = "<synopsis>"

	//PlaceholderHelp is help when none is available
	PlaceholderHelp = "<help>"

	//PlaceholderUsage is shown when no specific implementation is available
	PlaceholderUsage = "<usage>"
)
View Source
var (
	// ErrNamespaceNotSet is returned when no namespace config is found in the kube config file.
	ErrNamespaceNotSet = errors.New("no cluster set, use `nerd login` to update your configuration")
	// ErrNotLoggedIn is returned when no oauth access token was found in the config file.
	ErrNotLoggedIn = errors.New("you're not logged in. Please login with `nerd login`")
	// ErrOverwriteWarning is returned when a user is trying to use the same name for input and output datasets
	ErrOverwriteWarning = errors.New("it is not possible to use the same name for input and output datasets, as it would overwrite your dataset")
)

Functions

func ClusterFactory

func ClusterFactory(ui cli.Ui) cli.CommandFactory

ClusterFactory creates the command

func ClusterListFactory

func ClusterListFactory(ui cli.Ui) cli.CommandFactory

ClusterListFactory creates the command

func ClusterUseFactory

func ClusterUseFactory(ui cli.Ui) cli.CommandFactory

ClusterUseFactory creates the command

func DatasetDeleteFactory

func DatasetDeleteFactory(ui cli.Ui) cli.CommandFactory

DatasetDeleteFactory creates the command

func DatasetDownloadFactory

func DatasetDownloadFactory(ui cli.Ui) cli.CommandFactory

DatasetDownloadFactory creates the command

func DatasetFactory

func DatasetFactory(ui cli.Ui) cli.CommandFactory

DatasetFactory creates the command

func DatasetListFactory

func DatasetListFactory(ui cli.Ui) cli.CommandFactory

DatasetListFactory creates the command

func DatasetUploadFactory

func DatasetUploadFactory(ui cli.Ui) cli.CommandFactory

DatasetUploadFactory creates the command

func JobDeleteFactory

func JobDeleteFactory(ui cli.Ui) cli.CommandFactory

JobDeleteFactory creates the command

func JobFactory

func JobFactory(ui cli.Ui) cli.CommandFactory

JobFactory creates the command

func JobListFactory

func JobListFactory(ui cli.Ui) cli.CommandFactory

JobListFactory creates the command

func JobLogsFactory

func JobLogsFactory(ui cli.Ui) cli.CommandFactory

JobLogsFactory creates the command

func JobRunFactory

func JobRunFactory(ui cli.Ui) cli.CommandFactory

JobRunFactory creates the command

func LoginFactory

func LoginFactory(ui cli.Ui) cli.CommandFactory

LoginFactory returns a factory method for the join command

func ParseInputSpecification

func ParseInputSpecification(input string) (parts []string, err error)

ParseInputSpecification will look at an input string and return its parts if valid

func VersionFactory

func VersionFactory(version, commit string, ui cli.Ui) cli.CommandFactory

VersionFactory returns a factory method for the join command

Types

type Cluster

type Cluster struct {
	// contains filtered or unexported fields
}

Cluster command

func (Cluster) AutocompleteArgs

func (cmd Cluster) AutocompleteArgs() complete.Predictor

AutocompleteArgs returns the argument predictor for this command.

func (Cluster) AutocompleteFlags

func (cmd Cluster) AutocompleteFlags() (fl complete.Flags)

AutocompleteFlags returns a mapping of supported flags

func (*Cluster) Description

func (cmd *Cluster) Description() string

Description returns long-form help text

func (*Cluster) Execute

func (cmd *Cluster) Execute(args []string) (err error)

Execute runs the command

func (Cluster) Help

func (cmd Cluster) Help() string

Help shows extensive help

func (Cluster) Logger

func (cmd Cluster) Logger() *logrus.Logger

Logger returns the logger

func (Cluster) Options

func (cmd Cluster) Options() *flags.Parser

Options returns the available options of a command

func (Cluster) Run

func (cmd Cluster) Run(args []string) int

Run runs the actual command

func (*Cluster) Synopsis

func (cmd *Cluster) Synopsis() string

Synopsis returns a one-line

func (*Cluster) Usage

func (cmd *Cluster) Usage() string

Usage shows usage

type ClusterList

type ClusterList struct {
	// contains filtered or unexported fields
}

ClusterList command

func (ClusterList) AutocompleteArgs

func (cmd ClusterList) AutocompleteArgs() complete.Predictor

AutocompleteArgs returns the argument predictor for this command.

func (ClusterList) AutocompleteFlags

func (cmd ClusterList) AutocompleteFlags() (fl complete.Flags)

AutocompleteFlags returns a mapping of supported flags

func (*ClusterList) Description

func (cmd *ClusterList) Description() string

Description returns long-form help text

func (*ClusterList) Execute

func (cmd *ClusterList) Execute(args []string) (err error)

Execute runs the command

func (ClusterList) Help

func (cmd ClusterList) Help() string

Help shows extensive help

func (ClusterList) Logger

func (cmd ClusterList) Logger() *logrus.Logger

Logger returns the logger

func (ClusterList) Options

func (cmd ClusterList) Options() *flags.Parser

Options returns the available options of a command

func (ClusterList) Run

func (cmd ClusterList) Run(args []string) int

Run runs the actual command

func (*ClusterList) Synopsis

func (cmd *ClusterList) Synopsis() string

Synopsis returns a one-line

func (*ClusterList) Usage

func (cmd *ClusterList) Usage() string

Usage shows usage

type ClusterUse

type ClusterUse struct {
	Namespace string `long:"namespace" short:"n" description:"set a specific namespace as the default one"`
	// contains filtered or unexported fields
}

ClusterUse command

func (ClusterUse) AutocompleteArgs

func (cmd ClusterUse) AutocompleteArgs() complete.Predictor

AutocompleteArgs returns the argument predictor for this command.

func (ClusterUse) AutocompleteFlags

func (cmd ClusterUse) AutocompleteFlags() (fl complete.Flags)

AutocompleteFlags returns a mapping of supported flags

func (*ClusterUse) Description

func (cmd *ClusterUse) Description() string

Description returns long-form help text

func (*ClusterUse) Execute

func (cmd *ClusterUse) Execute(args []string) (err error)

Execute runs the command

func (ClusterUse) Help

func (cmd ClusterUse) Help() string

Help shows extensive help

func (ClusterUse) Logger

func (cmd ClusterUse) Logger() *logrus.Logger

Logger returns the logger

func (ClusterUse) Options

func (cmd ClusterUse) Options() *flags.Parser

Options returns the available options of a command

func (ClusterUse) Run

func (cmd ClusterUse) Run(args []string) int

Run runs the actual command

func (*ClusterUse) Synopsis

func (cmd *ClusterUse) Synopsis() string

Synopsis returns a one-line

func (*ClusterUse) Usage

func (cmd *ClusterUse) Usage() string

Usage shows usage

type ConfOpts

type ConfOpts struct {
	ConfigFile  func(string) `long:"config-file" default:"" default-mask:"" env:"NERD_CONFIG_FILE" description:"Location of config file"`
	SessionFile func(string) `long:"session-file" default:"" default-mask:"" env:"NERD_SESSION_FILE" description:"Location of session file"`
}

ConfOpts are the options related to config file and the way output is handled.

type Dataset

type Dataset struct {
	// contains filtered or unexported fields
}

Dataset command

func (Dataset) AutocompleteArgs

func (cmd Dataset) AutocompleteArgs() complete.Predictor

AutocompleteArgs returns the argument predictor for this command.

func (Dataset) AutocompleteFlags

func (cmd Dataset) AutocompleteFlags() (fl complete.Flags)

AutocompleteFlags returns a mapping of supported flags

func (*Dataset) Description

func (cmd *Dataset) Description() string

Description returns long-form help text

func (*Dataset) Execute

func (cmd *Dataset) Execute(args []string) (err error)

Execute runs the command

func (Dataset) Help

func (cmd Dataset) Help() string

Help shows extensive help

func (Dataset) Logger

func (cmd Dataset) Logger() *logrus.Logger

Logger returns the logger

func (Dataset) Options

func (cmd Dataset) Options() *flags.Parser

Options returns the available options of a command

func (Dataset) Run

func (cmd Dataset) Run(args []string) int

Run runs the actual command

func (*Dataset) Synopsis

func (cmd *Dataset) Synopsis() string

Synopsis returns a one-line

func (*Dataset) Usage

func (cmd *Dataset) Usage() string

Usage shows usage

type DatasetDelete

type DatasetDelete struct {
	All bool `long:"all" short:"a" description:"delete all your datasets in one command"`
	// contains filtered or unexported fields
}

DatasetDelete command

func (DatasetDelete) AutocompleteArgs

func (cmd DatasetDelete) AutocompleteArgs() complete.Predictor

AutocompleteArgs returns the argument predictor for this command.

func (DatasetDelete) AutocompleteFlags

func (cmd DatasetDelete) AutocompleteFlags() (fl complete.Flags)

AutocompleteFlags returns a mapping of supported flags

func (*DatasetDelete) Description

func (cmd *DatasetDelete) Description() string

Description returns long-form help text

func (*DatasetDelete) Execute

func (cmd *DatasetDelete) Execute(args []string) (err error)

Execute runs the command

func (DatasetDelete) Help

func (cmd DatasetDelete) Help() string

Help shows extensive help

func (DatasetDelete) Logger

func (cmd DatasetDelete) Logger() *logrus.Logger

Logger returns the logger

func (DatasetDelete) Options

func (cmd DatasetDelete) Options() *flags.Parser

Options returns the available options of a command

func (DatasetDelete) Run

func (cmd DatasetDelete) Run(args []string) int

Run runs the actual command

func (*DatasetDelete) Synopsis

func (cmd *DatasetDelete) Synopsis() string

Synopsis returns a one-line

func (*DatasetDelete) Usage

func (cmd *DatasetDelete) Usage() string

Usage shows usage

type DatasetDownload

type DatasetDownload struct {
	Input  string `` /* 128-byte string literal not displayed */
	Output string `` /* 130-byte string literal not displayed */
	// contains filtered or unexported fields
}

DatasetDownload command

func (DatasetDownload) AutocompleteArgs

func (cmd DatasetDownload) AutocompleteArgs() complete.Predictor

AutocompleteArgs returns the argument predictor for this command.

func (DatasetDownload) AutocompleteFlags

func (cmd DatasetDownload) AutocompleteFlags() (fl complete.Flags)

AutocompleteFlags returns a mapping of supported flags

func (*DatasetDownload) Description

func (cmd *DatasetDownload) Description() string

Description returns long-form help text

func (*DatasetDownload) Execute

func (cmd *DatasetDownload) Execute(args []string) (err error)

Execute runs the command

func (DatasetDownload) Help

func (cmd DatasetDownload) Help() string

Help shows extensive help

func (DatasetDownload) Logger

func (cmd DatasetDownload) Logger() *logrus.Logger

Logger returns the logger

func (DatasetDownload) Options

func (cmd DatasetDownload) Options() *flags.Parser

Options returns the available options of a command

func (DatasetDownload) Run

func (cmd DatasetDownload) Run(args []string) int

Run runs the actual command

func (*DatasetDownload) Synopsis

func (cmd *DatasetDownload) Synopsis() string

Synopsis returns a one-line

func (*DatasetDownload) Usage

func (cmd *DatasetDownload) Usage() string

Usage shows usage

type DatasetList

type DatasetList struct {
	// contains filtered or unexported fields
}

DatasetList command

func (DatasetList) AutocompleteArgs

func (cmd DatasetList) AutocompleteArgs() complete.Predictor

AutocompleteArgs returns the argument predictor for this command.

func (DatasetList) AutocompleteFlags

func (cmd DatasetList) AutocompleteFlags() (fl complete.Flags)

AutocompleteFlags returns a mapping of supported flags

func (*DatasetList) Description

func (cmd *DatasetList) Description() string

Description returns long-form help text

func (*DatasetList) Execute

func (cmd *DatasetList) Execute(args []string) (err error)

Execute runs the command

func (DatasetList) Help

func (cmd DatasetList) Help() string

Help shows extensive help

func (DatasetList) Logger

func (cmd DatasetList) Logger() *logrus.Logger

Logger returns the logger

func (DatasetList) Options

func (cmd DatasetList) Options() *flags.Parser

Options returns the available options of a command

func (DatasetList) Run

func (cmd DatasetList) Run(args []string) int

Run runs the actual command

func (*DatasetList) Synopsis

func (cmd *DatasetList) Synopsis() string

Synopsis returns a one-line

func (*DatasetList) Usage

func (cmd *DatasetList) Usage() string

Usage shows usage

type DatasetUpload

type DatasetUpload struct {
	Name string `long:"name" short:"n" description:"assign a name to the dataset"`
	// contains filtered or unexported fields
}

DatasetUpload command

func (DatasetUpload) AutocompleteArgs

func (cmd DatasetUpload) AutocompleteArgs() complete.Predictor

AutocompleteArgs returns the argument predictor for this command.

func (DatasetUpload) AutocompleteFlags

func (cmd DatasetUpload) AutocompleteFlags() (fl complete.Flags)

AutocompleteFlags returns a mapping of supported flags

func (*DatasetUpload) Description

func (cmd *DatasetUpload) Description() string

Description returns long-form help text

func (*DatasetUpload) Execute

func (cmd *DatasetUpload) Execute(args []string) (err error)

Execute runs the command

func (DatasetUpload) Help

func (cmd DatasetUpload) Help() string

Help shows extensive help

func (DatasetUpload) Logger

func (cmd DatasetUpload) Logger() *logrus.Logger

Logger returns the logger

func (DatasetUpload) Options

func (cmd DatasetUpload) Options() *flags.Parser

Options returns the available options of a command

func (DatasetUpload) Run

func (cmd DatasetUpload) Run(args []string) int

Run runs the actual command

func (*DatasetUpload) Synopsis

func (cmd *DatasetUpload) Synopsis() string

Synopsis returns a one-line

func (*DatasetUpload) Usage

func (cmd *DatasetUpload) Usage() string

Usage shows usage

type Deps

type Deps struct {
	// contains filtered or unexported fields
}

Deps exposes dependencies

func NewDeps

func NewDeps(logs svc.Logger, kopts KubeOpts) (*Deps, error)

NewDeps uses options to setup dependencies

func (*Deps) APIExt

func (deps *Deps) APIExt() apiext.Interface

APIExt provides the extensions api to create a custom resource definition.

func (*Deps) Crd

func (deps *Deps) Crd() crd.Interface

Crd provides the custom resource definition API.

func (*Deps) Kube

func (deps *Deps) Kube() kubernetes.Interface

Kube provides the kubernetes dependency.

func (*Deps) Logger

func (deps *Deps) Logger() svc.Logger

Logger provides the Logger dependency.

func (*Deps) Namespace

func (deps *Deps) Namespace() string

Namespace provides the namespace dependency.

func (*Deps) Validator

func (deps *Deps) Validator() svc.Validator

Validator provides the Validator dependency.

type Job

type Job struct {
	// contains filtered or unexported fields
}

Job command

func (Job) AutocompleteArgs

func (cmd Job) AutocompleteArgs() complete.Predictor

AutocompleteArgs returns the argument predictor for this command.

func (Job) AutocompleteFlags

func (cmd Job) AutocompleteFlags() (fl complete.Flags)

AutocompleteFlags returns a mapping of supported flags

func (*Job) Description

func (cmd *Job) Description() string

Description returns long-form help text

func (*Job) Execute

func (cmd *Job) Execute(args []string) (err error)

Execute runs the command

func (Job) Help

func (cmd Job) Help() string

Help shows extensive help

func (Job) Logger

func (cmd Job) Logger() *logrus.Logger

Logger returns the logger

func (Job) Options

func (cmd Job) Options() *flags.Parser

Options returns the available options of a command

func (Job) Run

func (cmd Job) Run(args []string) int

Run runs the actual command

func (*Job) Synopsis

func (cmd *Job) Synopsis() string

Synopsis returns a one-line

func (*Job) Usage

func (cmd *Job) Usage() string

Usage shows usage

type JobDelete

type JobDelete struct {
	All bool `long:"all" short:"a" description:"delete all your jobs in one command"`
	// contains filtered or unexported fields
}

JobDelete command

func (JobDelete) AutocompleteArgs

func (cmd JobDelete) AutocompleteArgs() complete.Predictor

AutocompleteArgs returns the argument predictor for this command.

func (JobDelete) AutocompleteFlags

func (cmd JobDelete) AutocompleteFlags() (fl complete.Flags)

AutocompleteFlags returns a mapping of supported flags

func (*JobDelete) Description

func (cmd *JobDelete) Description() string

Description returns long-form help text

func (*JobDelete) Execute

func (cmd *JobDelete) Execute(args []string) (err error)

Execute runs the command

func (JobDelete) Help

func (cmd JobDelete) Help() string

Help shows extensive help

func (JobDelete) Logger

func (cmd JobDelete) Logger() *logrus.Logger

Logger returns the logger

func (JobDelete) Options

func (cmd JobDelete) Options() *flags.Parser

Options returns the available options of a command

func (JobDelete) Run

func (cmd JobDelete) Run(args []string) int

Run runs the actual command

func (*JobDelete) Synopsis

func (cmd *JobDelete) Synopsis() string

Synopsis returns a one-line

func (*JobDelete) Usage

func (cmd *JobDelete) Usage() string

Usage shows usage

type JobList

type JobList struct {
	// contains filtered or unexported fields
}

JobList command

func (JobList) AutocompleteArgs

func (cmd JobList) AutocompleteArgs() complete.Predictor

AutocompleteArgs returns the argument predictor for this command.

func (JobList) AutocompleteFlags

func (cmd JobList) AutocompleteFlags() (fl complete.Flags)

AutocompleteFlags returns a mapping of supported flags

func (*JobList) Description

func (cmd *JobList) Description() string

Description returns long-form help text

func (*JobList) Execute

func (cmd *JobList) Execute(args []string) (err error)

Execute runs the command

func (JobList) Help

func (cmd JobList) Help() string

Help shows extensive help

func (JobList) Logger

func (cmd JobList) Logger() *logrus.Logger

Logger returns the logger

func (JobList) Options

func (cmd JobList) Options() *flags.Parser

Options returns the available options of a command

func (JobList) Run

func (cmd JobList) Run(args []string) int

Run runs the actual command

func (*JobList) Synopsis

func (cmd *JobList) Synopsis() string

Synopsis returns a one-line

func (*JobList) Usage

func (cmd *JobList) Usage() string

Usage shows usage

type JobLogs

type JobLogs struct {
	Tail int64 `long:"tail" short:"t" description:"only return the oldest N lines of the process logs"`
	// contains filtered or unexported fields
}

JobLogs command

func (JobLogs) AutocompleteArgs

func (cmd JobLogs) AutocompleteArgs() complete.Predictor

AutocompleteArgs returns the argument predictor for this command.

func (JobLogs) AutocompleteFlags

func (cmd JobLogs) AutocompleteFlags() (fl complete.Flags)

AutocompleteFlags returns a mapping of supported flags

func (*JobLogs) Description

func (cmd *JobLogs) Description() string

Description returns long-form help text

func (*JobLogs) Execute

func (cmd *JobLogs) Execute(args []string) (err error)

Execute runs the command

func (JobLogs) Help

func (cmd JobLogs) Help() string

Help shows extensive help

func (JobLogs) Logger

func (cmd JobLogs) Logger() *logrus.Logger

Logger returns the logger

func (JobLogs) Options

func (cmd JobLogs) Options() *flags.Parser

Options returns the available options of a command

func (JobLogs) Run

func (cmd JobLogs) Run(args []string) int

Run runs the actual command

func (*JobLogs) Synopsis

func (cmd *JobLogs) Synopsis() string

Synopsis returns a one-line

func (*JobLogs) Usage

func (cmd *JobLogs) Usage() string

Usage shows usage

type JobRun

type JobRun struct {
	Name       string   `long:"name" short:"n" description:"assign a name to the job"`
	Env        []string `long:"env" short:"e" description:"environment variables to use"`
	Memory     string   `long:"memory" short:"m" description:"memory to use for this job, expressed in gigabytes" default:"1"`
	VCPU       string   `long:"vcpu" description:"number of vcpus to use for this job" default:"1"`
	Inputs     []string `` /* 140-byte string literal not displayed */
	Outputs    []string `` /* 173-byte string literal not displayed */
	Private    bool     `` /* 266-byte string literal not displayed */
	CleanCreds bool     `` /* 279-byte string literal not displayed */
	// contains filtered or unexported fields
}

JobRun command

func (JobRun) AutocompleteArgs

func (cmd JobRun) AutocompleteArgs() complete.Predictor

AutocompleteArgs returns the argument predictor for this command.

func (JobRun) AutocompleteFlags

func (cmd JobRun) AutocompleteFlags() (fl complete.Flags)

AutocompleteFlags returns a mapping of supported flags

func (*JobRun) Description

func (cmd *JobRun) Description() string

Description returns long-form help text

func (*JobRun) Execute

func (cmd *JobRun) Execute(args []string) (err error)

Execute runs the command

func (JobRun) Help

func (cmd JobRun) Help() string

Help shows extensive help

func (JobRun) Logger

func (cmd JobRun) Logger() *logrus.Logger

Logger returns the logger

func (JobRun) Options

func (cmd JobRun) Options() *flags.Parser

Options returns the available options of a command

func (JobRun) Run

func (cmd JobRun) Run(args []string) int

Run runs the actual command

func (*JobRun) Synopsis

func (cmd *JobRun) Synopsis() string

Synopsis returns a one-line

func (*JobRun) Usage

func (cmd *JobRun) Usage() string

Usage shows usage

type KubeOpts

type KubeOpts struct {
	KubeConfig string        `` /* 134-byte string literal not displayed */
	Timeout    time.Duration `` /* 126-byte string literal not displayed */
}

KubeOpts can be used to create a Kubernetes service

type Login

type Login struct {
	Config string `long:"config-src" default:"oidc" default-mask:"" description:"type of configuration to use (from env, endpoint, or oidc)"`
	// contains filtered or unexported fields
}

Login command

func (Login) AutocompleteArgs

func (cmd Login) AutocompleteArgs() complete.Predictor

AutocompleteArgs returns the argument predictor for this command.

func (Login) AutocompleteFlags

func (cmd Login) AutocompleteFlags() (fl complete.Flags)

AutocompleteFlags returns a mapping of supported flags

func (*Login) Description

func (cmd *Login) Description() string

Description returns long-form help text

func (*Login) Execute

func (cmd *Login) Execute(args []string) (err error)

Execute runs the command

func (Login) Help

func (cmd Login) Help() string

Help shows extensive help

func (Login) Logger

func (cmd Login) Logger() *logrus.Logger

Logger returns the logger

func (Login) Options

func (cmd Login) Options() *flags.Parser

Options returns the available options of a command

func (Login) Run

func (cmd Login) Run(args []string) int

Run runs the actual command

func (*Login) Synopsis

func (cmd *Login) Synopsis() string

Synopsis returns a one-line

func (*Login) Usage

func (cmd *Login) Usage() string

Usage shows usage

type Output

type Output struct {
	cli.Ui
	// contains filtered or unexported fields
}

Output standardizes the way in which we would like to capture output throughout the program

func NewOutput

func NewOutput(ui cli.Ui) *Output

NewOutput sets up our standardized program outputter

func (*Output) Errorf

func (o *Output) Errorf(format string, a ...interface{})

Errorf prints a formatted error to ErrorOutput

func (*Output) Infof

func (o *Output) Infof(format string, a ...interface{})

Infof prints a formatted message to

func (*Output) Logger

func (o *Output) Logger(level logrus.Level) *logrus.Logger

Logger returns a logrus logger that writes to the UIs Stderr

func (*Output) Table

func (o *Output) Table(header []string, rows [][]string) error

Table will print a table

type TransferOpts

type TransferOpts struct {
	S3Bucket       string `long:"s3-bucket" description:"S3 Bucket name that will be used for dataset storage" default:"nlz-datasets-dev"`
	AWSRegion      string `long:"aws-region" description:"AWS region used for dataset storage"`
	S3AccessKey    string `long:"s3-access-key" description:"access key used for auth with the storage backend"`
	S3SecretKey    string `long:"s3-secret-key" description:"secret key for auth with the storage backend"`
	S3SessionToken string `long:"s3-session-token" description:"temporary auth token for the storage backend"`
	S3Prefix       string `long:"s3-prefix" description:"store this dataset under a specific prefix"`
}

TransferOpts hold CLI options for configuring data transfer

func (TransferOpts) TransferManager

func (opts TransferOpts) TransferManager(kube *svc.Kube) (mgr transfer.Manager, sto *transferstore.StoreOptions, sta *transferarchiver.ArchiverOptions, err error)

TransferManager creates a transfermanager using the command line options

type Version

type Version struct {
	// contains filtered or unexported fields
}

Version command

func (Version) AutocompleteArgs

func (cmd Version) AutocompleteArgs() complete.Predictor

AutocompleteArgs returns the argument predictor for this command.

func (Version) AutocompleteFlags

func (cmd Version) AutocompleteFlags() (fl complete.Flags)

AutocompleteFlags returns a mapping of supported flags

func (*Version) Description

func (cmd *Version) Description() string

Description returns long-form help text

func (*Version) Execute

func (cmd *Version) Execute(args []string) (err error)

Execute is called by run and allows an error to be returned

func (Version) Help

func (cmd Version) Help() string

Help shows extensive help

func (Version) Logger

func (cmd Version) Logger() *logrus.Logger

Logger returns the logger

func (Version) Options

func (cmd Version) Options() *flags.Parser

Options returns the available options of a command

func (Version) Run

func (cmd Version) Run(args []string) int

Run runs the actual command

func (*Version) Synopsis

func (cmd *Version) Synopsis() string

Synopsis returns a one-line

func (*Version) Usage

func (cmd *Version) Usage() string

Usage shows usage

Directories

Path Synopsis
main holds the flex volume executable, compiled separately
main holds the flex volume executable, compiled separately

Jump to

Keyboard shortcuts

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