Documentation ¶
Index ¶
- Constants
- func AlwaysOverwriteHandler(file string) bool
- func DownloadFactory() func() (cmd cli.Command, err error)
- func ErrorCauser(err error) error
- func HandleError(err error, verbose bool)
- func LoginFactory() func() (cmd cli.Command, err error)
- func LogsFactory() func() (cmd cli.Command, err error)
- func NewClient(ui cli.Ui) (*client.NerdAPIClient, error)
- func OverwriteHandlerUserPrompt(ui cli.Ui) func(string) bool
- func RunFactory() func() (cmd cli.Command, err error)
- func StatusFactory() func() (cmd cli.Command, err error)
- func UploadFactory() func() (cmd cli.Command, err error)
- func UserPassProvider(ui cli.Ui) func() (string, string, error)
- func WorkFactory() func() (cmd cli.Command, err error)
- type ConfOpts
- type Download
- type DownloadOpts
- type Login
- type LoginOpts
- type Logs
- type LogsOpts
- type NerdOpts
- type OutputOpts
- type Run
- type RunOpts
- type Status
- type StatusOpts
- type TaskContainer
- type TaskLogEvent
- type TaskStatus
- type Upload
- type UploadOpts
- type Work
- type WorkOpts
Constants ¶
const ( //DatasetFilename is the filename of the file that contains the dataset ID in the data folder. DatasetFilename = ".dataset" //DatasetPermissions are the permissions for DatasetFilename DatasetPermissions = 0644 )
const (
OutputDirPermissions = 0755
)
Variables ¶
This section is empty.
Functions ¶
func AlwaysOverwriteHandler ¶ added in v0.3.1
AlwaysOverwriteHandler is a handler that tells to always overwrite a file.
func DownloadFactory ¶
DownloadFactory returns a factory method for the join command
func ErrorCauser ¶
ErrorCauser returns the error that is one level up in the error chain.
func HandleError ¶
HandleError handles the way errors are presented to the user.
func LoginFactory ¶
LoginFactory returns a factory method for the join command
func LogsFactory ¶
LogsFactory returns a factory method for the join command
func NewClient ¶
func NewClient(ui cli.Ui) (*client.NerdAPIClient, error)
NewClient creates a new NerdAPIClient with two credential providers.
func OverwriteHandlerUserPrompt ¶ added in v0.3.1
OverwriteHandlerUserPrompt is a handler that checks wether a file should be overwritten by asking the user over Stdin.
func RunFactory ¶
RunFactory returns a factory method for the join command
func StatusFactory ¶
StatusFactory returns a factory method for the join command
func UploadFactory ¶
UploadFactory returns a factory method for the join command
func UserPassProvider ¶ added in v0.1.1
UserPassProvider prompts the username and password on stdin.
func WorkFactory ¶
WorkFactory returns a factory method for the join command
Types ¶
type ConfOpts ¶
type ConfOpts struct { ConfigFile string `long:"config" default:"" default-mask:"" env:"CONFIG" description:"location of config file"` OutputOpts }
type Download ¶
type Download struct {
// contains filtered or unexported fields
}
Download command
func (Download) Help ¶
func (c Download) Help() string
Will write help text for when a user uses --help, it automatically renders all option groups of the flags.Parser (augmented with default values). It will show an extended help message if it is not empty, else it shows the synopsis.
type DownloadOpts ¶
type DownloadOpts struct { NerdOpts AlwaysOverwrite bool `long:"always-overwrite" default-mask:"false" description:"always overwrite files when they already exist"` }
DownloadOpts describes command options
type Login ¶
type Login struct {
// contains filtered or unexported fields
}
Login command
func (Login) Help ¶
func (c Login) Help() string
Will write help text for when a user uses --help, it automatically renders all option groups of the flags.Parser (augmented with default values). It will show an extended help message if it is not empty, else it shows the synopsis.
type LoginOpts ¶
type LoginOpts struct { User string `long:"user" default:"" default-mask:"" env:"NERD_USER" description:"nerd username"` Pass string `long:"pass" default:"" default-mask:"" env:"NERD_PASS" description:"nerd password"` NerdOpts }
LoginOpts describes command options
type Logs ¶
type Logs struct {
// contains filtered or unexported fields
}
Logs command
func (Logs) Help ¶
func (c Logs) Help() string
Will write help text for when a user uses --help, it automatically renders all option groups of the flags.Parser (augmented with default values). It will show an extended help message if it is not empty, else it shows the synopsis.
type NerdOpts ¶
type NerdOpts struct {
ConfOpts
}
NerdOpts are the options that are applicable to all nerd commands.
type OutputOpts ¶
type OutputOpts struct { VerboseOutput bool `short:"v" long:"verbose" default-mask:"false" description:"show verbose output"` JSONOutput bool `long:"json-format" default-mask:"false" description:"show output in json format"` }
OutputOpts are options that are related to CLI output.
type Run ¶
type Run struct {
// contains filtered or unexported fields
}
Run command
func (Run) Help ¶
func (c Run) Help() string
Will write help text for when a user uses --help, it automatically renders all option groups of the flags.Parser (augmented with default values). It will show an extended help message if it is not empty, else it shows the synopsis.
type RunOpts ¶
type RunOpts struct { *NerdOpts Environment []string `short:"e" description:"container environment variables"` }
RunOpts describes command options
type Status ¶
type Status struct {
// contains filtered or unexported fields
}
Status command
func (Status) Help ¶
func (c Status) Help() string
Will write help text for when a user uses --help, it automatically renders all option groups of the flags.Parser (augmented with default values). It will show an extended help message if it is not empty, else it shows the synopsis.
type TaskContainer ¶ added in v0.2.3
type TaskContainer struct {
// contains filtered or unexported fields
}
TaskContainer is a unique execution for a specific task
type TaskLogEvent ¶ added in v0.2.3
type TaskLogEvent struct { *TaskContainer // contains filtered or unexported fields }
TaskLogEvent is a log event for a certain task container
type TaskStatus ¶
type TaskStatus struct { TaskContainer // contains filtered or unexported fields }
TaskStatus describes the container status of a task
type Upload ¶
type Upload struct {
// contains filtered or unexported fields
}
Upload command
func (Upload) Help ¶
func (c Upload) Help() string
Will write help text for when a user uses --help, it automatically renders all option groups of the flags.Parser (augmented with default values). It will show an extended help message if it is not empty, else it shows the synopsis.
type Work ¶
type Work struct {
// contains filtered or unexported fields
}
Work command
func (Work) Help ¶
func (c Work) Help() string
Will write help text for when a user uses --help, it automatically renders all option groups of the flags.Parser (augmented with default values). It will show an extended help message if it is not empty, else it shows the synopsis.