bizbinah

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewControlBlock added in v0.1.3

func NewControlBlock(a *libauth.Auth) *modelbinah.ControlBlock

Types

type Binah added in v0.0.2

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

func NewBinah added in v0.0.2

func NewBinah(
	repo BinahRepo,
	callback *modelbinah.ControlBlock,
	auth *libauth.Auth,

	sClient searcher.LibrarianSearcherServiceClient,
) *Binah

func (*Binah) NewSimpleUploadFile added in v0.1.4

func (b *Binah) NewSimpleUploadFile(ctx context.Context) (*SimpleUploadFile, *errors.Error)

func (*Binah) PresignedDownloadFile added in v0.1.4

func (b *Binah) PresignedDownloadFile(ctx context.Context) (string, *errors.Error)

func (*Binah) PresignedUploadFile added in v0.1.4

func (b *Binah) PresignedUploadFile(ctx context.Context) (string, *errors.Error)

func (*Binah) PresignedUploadFileComplete added in v0.1.4

func (b *Binah) PresignedUploadFileComplete(ctx context.Context) *errors.Error

type BinahRepo

type BinahRepo interface {
	FeatureEnabled() bool
	PutObject(context.Context, io.Reader, Bucket, string) error
	PresignedGetObject(context.Context, Bucket, string, time.Duration) (string, error)
	PresignedPutObject(context.Context, Bucket, string, time.Duration) (string, error)
}

type Bucket added in v0.2.0

type Bucket int
const (
	BucketUnspecified Bucket = iota
	BucketDefault
)

type SimpleUploadFile added in v0.1.4

type SimpleUploadFile struct {
	Writer io.Writer
	// contains filtered or unexported fields
}

func (*SimpleUploadFile) Finish added in v0.1.4

func (f *SimpleUploadFile) Finish(ctx context.Context) error

Jump to

Keyboard shortcuts

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