upload

package
v0.0.0-...-affaa53 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	Message  string `json:"message"`
	FileName string `json:"omitempty,fileName"`
}

type Response

type Response struct {
	UploadedFiles []Result `json:"uploadedFiles,omitempty"`
	Errors        []Error  `json:"errors,omitempty"`
}

func Do

func Do(directory string, input UploadInput, url string) (*Response, error)

type Result

type Result struct {
	FileName   string `json:"fileName"`
	RemotePath string `json:"remotePath"`
	Bucket     string `json:"bucket"`
	Size       int64  `json:"size"`
}

type UploadInput

type UploadInput struct {
	PrivateFiles []*os.File
	PublicFiles  []*os.File
	Directory    string
}

Jump to

Keyboard shortcuts

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