sdk

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 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 SiloSDK

type SiloSDK struct {
	// contains filtered or unexported fields
}

func NewSiloSDK

func NewSiloSDK(url string, secret string) *SiloSDK

func (*SiloSDK) Delete

func (sdk *SiloSDK) Delete(key string) error

func (*SiloSDK) Download

func (sdk *SiloSDK) Download(key string, writer io.Writer) (int64, error)
func (sdk *SiloSDK) GenerateDownloadLink(key string, ttl int, baseurl_override ...string) string

func (*SiloSDK) Has

func (sdk *SiloSDK) Has(key string) (bool, error)

func (*SiloSDK) PerformSignedRequest

func (sdk *SiloSDK) PerformSignedRequest(method string, key string, reader io.Reader, headers map[string]string) (*http.Response, error)

func (*SiloSDK) SetTTL added in v1.2.0

func (sdk *SiloSDK) SetTTL(key string, ttl int) (bool, error)

func (*SiloSDK) Upload

func (sdk *SiloSDK) Upload(key string, reader io.Reader) error

Jump to

Keyboard shortcuts

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