Documentation ¶
Index ¶
- func Register(input IFile, closeFn func())
- func Unload()
- type File
- type FileEnumType
- type IFile
- type IterHandler
- type Query
- func WithFileCloudDelimiter(condition Query, delimiter string) Query
- func WithFileCloudEndOffset(condition Query, endOffset string) Query
- func WithFileCloudPrefix(condition Query, prefix string) Query
- func WithFileCloudProjection(condition Query, projection gs.Projection) Query
- func WithFileCloudStartOffset(condition Query, startOffset string) Query
- func WithFileCloudVersions(condition Query, versions bool) Query
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type File ¶
type File interface { FolderInfo() (name string, path string, exist bool) Path() string Name() string Size() (int64, error) CreatedTime() (time.Time, error) ModTime() (time.Time, error) NewWriter(ctx context.Context) (writer io.WriteCloser, closeFn func() error) NewReader(ctx context.Context) (reader io.ReadCloser, closeFn func() error, err error) Remove(ctx context.Context) error GetURL() string }
type FileEnumType ¶
type FileEnumType int
const ( FileCloudDelimiter FileEnumType = iota FileCloudPrefix FileCloudVersions FileCloudStartOffset FileCloudEndOffset FileCloudProjection )
type IFile ¶
type IFile interface { Upload(ctx context.Context, prefix string, f io.ReadCloser) (string, error) GetURL(ctx context.Context, path string) (string, error) Remove(ctx context.Context, path string) error List(ctx context.Context, q Query, h IterHandler) error }
var ( FILE IFile CLOSEFN func() )
type IterHandler ¶
type Query ¶
type Query struct { Fields []FileEnumType CloudDelimiter string // google cloud field CloudPrefix string // google cloud field CloudVersions bool // google cloud field CloudStartOffset string // google cloud field CloudEndOffset string // google cloud field CloudProjection gs.Projection // google cloud field }
func WithFileCloudDelimiter ¶
func WithFileCloudEndOffset ¶
func WithFileCloudPrefix ¶
func WithFileCloudProjection ¶
func WithFileCloudProjection(condition Query, projection gs.Projection) Query
func WithFileCloudVersions ¶
Click to show internal directories.
Click to hide internal directories.