filestorage

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Anonymous

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

func NewAnonymous

func NewAnonymous(baseURL string) (a *Anonymous, err error)

func (*Anonymous) CanonicalURL

func (g *Anonymous) CanonicalURL(path string) string

func (*Anonymous) Exists

func (g *Anonymous) Exists(ctx context.Context, path string) (err error)

func (*Anonymous) PresignedURLForGet

func (g *Anonymous) PresignedURLForGet(ctx context.Context, path string, dur time.Duration) (url string, err error)

func (*Anonymous) PresignedURLForPut

func (g *Anonymous) PresignedURLForPut(ctx context.Context, path string, dur time.Duration) (string, error)

func (*Anonymous) Put

func (g *Anonymous) Put(ctx context.Context, path string, r io.ReadSeeker) (err error)

type GS

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

func NewGS

func NewGS(ctx context.Context, baseURL string) (g *GS, err error)

func (*GS) CanonicalURL

func (g *GS) CanonicalURL(path string) string

func (*GS) Exists

func (g *GS) Exists(ctx context.Context, path string) (err error)

func (*GS) PresignedURLForGet

func (g *GS) PresignedURLForGet(ctx context.Context, path string, dur time.Duration) (string, error)

func (*GS) PresignedURLForPut

func (g *GS) PresignedURLForPut(ctx context.Context, path string, dur time.Duration) (string, error)

func (*GS) Put

func (g *GS) Put(ctx context.Context, path string, r io.ReadSeeker) (err error)

type S3

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

func NewS3

func NewS3(ctx context.Context, baseURL string) (s *S3, err error)

func (*S3) CanonicalURL

func (s *S3) CanonicalURL(path string) string

func (*S3) Exists

func (s *S3) Exists(ctx context.Context, path string) (err error)

func (*S3) PresignedURLForGet

func (s *S3) PresignedURLForGet(ctx context.Context, path string, dur time.Duration) (url string, err error)

func (*S3) PresignedURLForPut

func (s *S3) PresignedURLForPut(ctx context.Context, path string, dur time.Duration) (url string, err error)

func (*S3) Put

func (s *S3) Put(ctx context.Context, path string, r io.ReadSeeker) (err error)

Jump to

Keyboard shortcuts

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