common

package
v0.0.0-...-41825be Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package common provides functions used by multiple commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandOperationName

func ExpandOperationName(project, location, name string) string

ExpandOperationName adds the project, location and operations prefixes to name (if they are not already present).

func ParseFlags

func ParseFlags(flags *flag.FlagSet, arguments []string) []string

ParseFlags calls parse on flags and collects non-flag arguments until there are no non-flag arguments remaining. This makes it possible to handle mixed flag and non-flag arguments.

Types

type MapFlagValue

type MapFlagValue struct {
	Values map[string]string
}

func (*MapFlagValue) Set

func (m *MapFlagValue) Set(input string) error

func (*MapFlagValue) String

func (m *MapFlagValue) String() string

type PipelineExecutionError

type PipelineExecutionError genomics.Status

PipelineExecutionError is an error returned by the Genomics API during a pipeline execution

func (PipelineExecutionError) Error

func (err PipelineExecutionError) Error() string

func (PipelineExecutionError) IsRetriable

func (err PipelineExecutionError) IsRetriable() bool

IsRetriable indicates if the user should retry the operation after receiving the current error.

Jump to

Keyboard shortcuts

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