implementable

package
v0.0.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudClient

type CloudClient interface {
	NewDataStorageClient(dataStorageId string, dataStorageContainerId string) (DataStorageClient, error)
}

type DataStorageClient

type DataStorageClient interface {
	UploadFile(srcAbsPath string, remoteObjectKey string) (interface{}, error)
	DownloadFile(remoteObjectKey string, destAbsPath string) (interface{}, error)
	NewListObjectsPager(input *ListObjectsInput) ListObjectsPager
}

type DataStorageObject

type DataStorageObject struct {
	Key  string
	Name string
}

type ListObjectsInput

type ListObjectsInput struct {
	Prefix            *string
	Cursor            *string
	MaxResultsPerPage *int
}

type ListObjectsPager

type ListObjectsPager Pager[interface{}, ListObjectsResponse]

type ListObjectsResponse

type ListObjectsResponse struct {
	Objects []DataStorageObject
	Cursor  *string
}

type Pager

type Pager[P interface{}, Q interface{}] interface {
	NextPage(i P) (Q, error)
	More() bool
}

Jump to

Keyboard shortcuts

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