client

package
v1.20.1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientInterface added in v1.20.0

type ClientInterface interface {
	Upload(ctx context.Context, filePath string, metadata *map[string]string) (string, error)
	GetUrl(id string) string
	List(ctx context.Context) ([]string, error)
	Download(ctx context.Context, id string, filePath string) error
	GetFile(ctx context.Context, id string) (*http.Response, error)
	Delete(ctx context.Context, id string) error
}

func MakeClient

func MakeClient(url string) ClientInterface

Client creates a storage service client.

Jump to

Keyboard shortcuts

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