storage

package
v0.0.0-...-b18cd58 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDisabled = errors.New("object storage disabled")
)

Functions

This section is empty.

Types

type Storage

type Storage struct {
	Upstream string
	Insecure bool
	Bucket   string
	Prefix   string
	MaxSize  int64
	// contains filtered or unexported fields
}

func ForContext

func ForContext(ctx context.Context) (*Storage, error)

func (*Storage) Remove

func (s *Storage) Remove(ctx context.Context, u *url.URL) error

func (*Storage) UploadProfileImage

func (s *Storage) UploadProfileImage(ctx context.Context, upload *graphql.Upload) (*url.URL, error)

Jump to

Keyboard shortcuts

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