httpd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UntarUrlToSingleFile

func UntarUrlToSingleFile(url, outputfile string) (err error)

func UploadFileToS3

func UploadFileToS3(url, outputfile string) (err error)

Types

type ApplyReturn

type ApplyReturn struct {
	Status  string `json:"status"`
	Missing string `json:"missing,omitempty"`
	WfName  string `json:"wfname,omitempty"`
}

type ArtifactResponse

type ArtifactResponse struct {
	Pod string `json:"pod"`
	URL string `json:"url"`
}

type RequestClient

type RequestClient struct {
	BaseURL string
	// contains filtered or unexported fields
}

func (*RequestClient) Init

func (c *RequestClient) Init(url, token string)

func (*RequestClient) S3UploadRequest

func (c *RequestClient) S3UploadRequest(path string, body []byte) error

func (*RequestClient) SendRequest

func (c *RequestClient) SendRequest(method, path string, requestBody, returnBody interface{}) (err error, statuscode int)

type S3InitRequest

type S3InitRequest struct {
	Filename string `json:"filename"`
	Multi    bool   `json:"multi"`
}

type S3InitResponse

type S3InitResponse struct {
	Passkey string `json:"passkey"`
}

type SchemeInfo

type SchemeInfo struct {
	Name       string            `json:"name"`
	Yaml       string            `json:"yaml"`
	Parameters map[string]string `json:"parameters"`
}

type Template

type Template struct {
	Yaml string `json:"yaml"`
	Name string `json:"name"`
}

type URLResponse

type URLResponse struct {
	URL string `json:"url"`
}

type WFStatus

type WFStatus struct {
	Workflow      string `json:"workflow"`
	Status        string `json:"status"`
	Statusmessage string `json:"statusmessage"`
	Running       int    `json:"steps"`
	Finished      int    `json:"finished"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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