Documentation ¶
Index ¶
- Variables
- type FS
- type FileInfo
- type ListInfo
- type LocalFS
- func (local *LocalFS) GetBytes(ctx context.Context, subPath string) ([]byte, error)
- func (local *LocalFS) GetReader(ctx context.Context, subPath string) (io.ReadCloser, *FileInfo, error)
- func (local *LocalFS) Head(ctx context.Context, subPath string) (*FileInfo, error)
- func (LocalFS) Join(paths ...string) string
- func (local *LocalFS) List(ctx context.Context, subPath string) ([]ListInfo, error)
- func (local *LocalFS) Put(ctx context.Context, subPath string, body io.Reader, ...) error
- type S3API
- type S3FS
- func (s3fs *S3FS) GetBytes(ctx context.Context, subPath string) ([]byte, error)
- func (s3fs *S3FS) GetReader(ctx context.Context, subPath string) (io.ReadCloser, *FileInfo, error)
- func (s3fs *S3FS) Head(ctx context.Context, subPath string) (*FileInfo, error)
- func (s3fs *S3FS) Join(paths ...string) string
- func (s3fs *S3FS) List(ctx context.Context, subPath string) ([]ListInfo, error)
- func (s3fs *S3FS) Put(ctx context.Context, subPath string, body io.Reader, ...) error
- type TempFS
Constants ¶
This section is empty.
Variables ¶
View Source
var NotFoundError = fmt.Errorf("not found")
Functions ¶
This section is empty.
Types ¶
type FS ¶
type FS interface { Put(ctx context.Context, path string, body io.Reader, metadata map[string]string) error GetReader(ctx context.Context, path string) (io.ReadCloser, *FileInfo, error) GetBytes(ctx context.Context, path string) ([]byte, error) Head(ctx context.Context, path string) (*FileInfo, error) List(ctx context.Context, path string) ([]ListInfo, error) Join(path ...string) string }
type LocalFS ¶
type LocalFS struct {
// contains filtered or unexported fields
}
func NewLocalFS ¶
type S3API ¶
type S3API interface { GetObject(ctx context.Context, input *s3.GetObjectInput, options ...func(*s3.Options)) (*s3.GetObjectOutput, error) PutObject(ctx context.Context, input *s3.PutObjectInput, options ...func(*s3.Options)) (*s3.PutObjectOutput, error) HeadObject(ctx context.Context, input *s3.HeadObjectInput, options ...func(*s3.Options)) (*s3.HeadObjectOutput, error) ListObjectsV2(ctx context.Context, input *s3.ListObjectsV2Input, options ...func(*s3.Options)) (*s3.ListObjectsV2Output, error) }
Click to show internal directories.
Click to hide internal directories.