types

package
v0.0.0-...-e6f4ba9 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorBackendMaintenance = fmt.Errorf("Host in maintenance mode")

ErrorBackendMaintenance signals maintenance mode error

Functions

This section is empty.

Types

type BackendError

type BackendError struct {
	HostName string
	OrigErr  error
}

BackendError is returned in Backend.RoundTrip if any

func (*BackendError) Backend

func (be *BackendError) Backend() string

Backend method returns host name

func (*BackendError) Err

func (be *BackendError) Err() error

Err returns original error instance

func (*BackendError) Error

func (be *BackendError) Error() (errMsg string)

Error method complies with built in error interface

type CompleteMultipartUploadResult

type CompleteMultipartUploadResult struct {
	XMLName  xml.Name `xml:"http://s3.amazonaws.com/doc/2006-03-01/ CompleteMultipartUploadResult" json:"-"`
	Location string
	Bucket   string
	Key      string
	ETag     string
}

CompleteMultipartUploadResult contains information about a successfull multipart upload, after the object has been assembled

type HumanSizeUnits

type HumanSizeUnits struct {
	SizeInBytes int64
}

HumanSizeUnits type for max. payload body size in bytes

func (*HumanSizeUnits) UnmarshalYAML

func (hsu *HumanSizeUnits) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML for HumanSizeUnits

type Resetter

type Resetter interface {
	Reset() io.ReadCloser
}

Resetter interface

type YAMLUrl

type YAMLUrl struct {
	*url.URL
}

YAMLUrl type fields in yaml configuration will parse urls

func (*YAMLUrl) UnmarshalYAML

func (yurl *YAMLUrl) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML for YAMLUrl

Jump to

Keyboard shortcuts

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