ports

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CromwellServer

type CromwellServer interface {
	Kill(o string) (types.SubmitResponse, error)
	Status(o string) (types.SubmitResponse, error)
	Outputs(o string) (types.OutputsResponse, error)
	Query(params *types.ParamsQueryGet) (types.QueryResponse, error)
	Metadata(o string, params *types.ParamsMetadataGet) (types.MetadataResponse, error)
	Submit(wdl, inputs, dependencies, options string) (types.SubmitResponse, error)
}

type Filesystem

type Filesystem interface {
	CreateDirectory(dir string) error
	MoveFile(srcPath, destPath string) error
	HomeDir() (string, error)
	ReadFile(path string) (string, error)
	WriteFile(path, contents string) error
	CreateZip(destinationPath string, filePaths []string) error
	FileExists(path string) bool
}

type GoogleCloudPlatform

type GoogleCloudPlatform interface {
	GetStorageClient(ctx context.Context) (gcp.CloudStorageClient, error)
	GetIAPToken(ctx context.Context) (string, error)
}

type HTTPClient

type HTTPClient interface {
	Get(url string) (resp *http.Response, err error)
	Head(url string) (resp *http.Response, err error)
	DownloadWithProgress(url string, fileName string) error
}

type Logger

type Logger interface {
	Info(msg string)
	Warning(msg string)
	Error(msg string)
}

type Prompt

type Prompt interface {
	SelectByKey(taskOptions []string) (string, error)
	SelectByIndex(sfn func(input string, index int) bool, items interface{}) (int, error)
}

type Sql

type Sql interface {
	CheckConnection() error
}

type Wdl

type Wdl interface {
	GetDependencies(contents string) ([]string, error)
	ReplaceImports(contents string) (string, error)
}

type Writer

type Writer interface {
	Primary(string)
	Accent(string)
	Message(string)
	Error(string)
	Table(table types.Table)
	QueryTable(table types.QueryResponse)
	ResourceTable(table types.TotalResources)
	MetadataTable(d types.MetadataResponse) error
	Json(interface{}) error
}

Jump to

Keyboard shortcuts

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