storageservice

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const RecordNotFoundMsg = "status code: 404"

RecordNotFoundMsg define status 404 message

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudStorageAssessor

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

CloudStorageAssessor struct

func NewCloudStorageAssessor

func NewCloudStorageAssessor(ctx context.Context) *CloudStorageAssessor

NewCloudStorageAssessor creates a new CloudStorageAssessor

func (*CloudStorageAssessor) Delete

func (csa *CloudStorageAssessor) Delete(key string) error

Delete remove storage contents

func (*CloudStorageAssessor) Get

func (csa *CloudStorageAssessor) Get(key string) (string, []byte, error)

Get returns storage contents

func (*CloudStorageAssessor) GetByStreaming added in v1.5.0

func (csa *CloudStorageAssessor) GetByStreaming(key string) (string, io.ReadCloser, error)

GetByStreaming returns storage contents by streaming

func (*CloudStorageAssessor) GetObjectInfo added in v1.6.0

func (csa *CloudStorageAssessor) GetObjectInfo(key string) (entity.StorageObjectInfo, error)

GetObjectInfo returns storage contents info

func (*CloudStorageAssessor) Put

func (csa *CloudStorageAssessor) Put(path string, file io.ReadSeeker) error

Put puts storage contents

Jump to

Keyboard shortcuts

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