swift

package
v0.0.0-...-66518bc Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStorage

func NewStorage(username, domain, apiKey, authURL, region, tenant, tenantDomain, container string) (resources.Storage, error)

NewStorage creates the storage.

Types

type Storage

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

func (*Storage) Add

func (s *Storage) Add(ctx context.Context, filename string, mimetype string, reader io.Reader) error

func (*Storage) Get

func (s *Storage) Get(ctx context.Context, filename string) ([]byte, string, error)

func (*Storage) Has

func (s *Storage) Has(ctx context.Context, filename string) (bool, error)

Jump to

Keyboard shortcuts

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