storage

package
v0.0.0-...-01c8ee1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileInput

type FileInput struct {
	Data        []byte
	Name        string
	ContentType string
}

type GDriveStorage

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

func NewProvider

func NewProvider(cfg *config.GDriveConfig) *GDriveStorage

func (*GDriveStorage) IsAvailable

func (g *GDriveStorage) IsAvailable() bool

func (*GDriveStorage) UploadFile

func (g *GDriveStorage) UploadFile(ctx context.Context, input FileInput) (string, error)

type Provider

type Provider interface {
	UploadFile(ctx context.Context, input FileInput) (string, error)
	IsAvailable() bool
}

Jump to

Keyboard shortcuts

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