Documentation
¶
Index ¶
- type File
- type Option
- type Service
- func (f *Service) Download(ctx context.Context, uri string) ([]byte, error)
- func (f *Service) Exists(ctx context.Context, requestedPath string) (bool, error)
- func (f *Service) List(ctx context.Context, opts ...Option) ([]File, error)
- func (f *Service) Upload(ctx context.Context, uri string, payload []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
Name string `json:"name"`
IsFolder bool `json:"isFolder"`
URI string `json:"uri"`
ChildNodes []File `json:"childNodes"`
}
File represents a file or directory item.
type Option ¶
type Option func(*options)
Option is a function that modifies options
func WithOnlyFolder ¶
WithOnlyFolder sets the onlyFolder option
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is our abstraction that uses github.com/viant/afs to list files from a root.
Click to show internal directories.
Click to hide internal directories.