Documentation ¶
Index ¶
- type Client
- type Common
- func (c *Common) AllDirectories(dir string) []fs.Disk
- func (c *Common) AllFiles(dir string) []*fs.File
- func (c *Common) Append(file string, content []byte) error
- func (c *Common) Copy(source string, destination string) error
- func (c *Common) File(file string) *fs.File
- func (c *Common) LastModified(file string) int64
- func (c *Common) Missing(file string) bool
- func (c *Common) Move(source string, destination string) error
- func (c *Common) Prepend(file string, content []byte) error
- func (c *Common) Size(file string) int64
- type Local
- func (l *Local) Attributes(file string) fs.Attributes
- func (l *Local) Cwd() string
- func (l *Local) Delete(files ...string) error
- func (l *Local) DeleteDirectory(dir string) error
- func (l *Local) Directories(dir string) []fs.Disk
- func (l *Local) Exists(file string) bool
- func (l *Local) Files(dir string) []*fs.File
- func (l *Local) Get(file string) ([]byte, error)
- func (l *Local) MakeDirectory(dir string, visibility fs.Visibility) error
- func (l *Local) Path(file string) string
- func (l *Local) Prefix(prefix string) fs.Disk
- func (l *Local) Put(file string, content []byte, visibility fs.Visibility) error
- type LocalConfig
- type Memory
- type MemoryClient
- func (m *MemoryClient) DeleteObject(ctx context.Context, params *s3.DeleteObjectInput, optFns ...func(*s3.Options)) (*s3.DeleteObjectOutput, error)
- func (m *MemoryClient) GetObject(ctx context.Context, params *s3.GetObjectInput, optFns ...func(*s3.Options)) (*s3.GetObjectOutput, error)
- func (m *MemoryClient) GetObjectAttributes(ctx context.Context, params *s3.GetObjectAttributesInput, ...) (*s3.GetObjectAttributesOutput, error)
- func (m *MemoryClient) HeadObject(ctx context.Context, params *s3.HeadObjectInput, optFns ...func(*s3.Options)) (*s3.HeadObjectOutput, error)
- func (m *MemoryClient) ListObjects(ctx context.Context, params *s3.ListObjectsInput, optFns ...func(*s3.Options)) (*s3.ListObjectsOutput, error)
- func (m *MemoryClient) PutObject(ctx context.Context, params *s3.PutObjectInput, optFns ...func(*s3.Options)) (*s3.PutObjectOutput, error)
- type MemoryConfig
- type S3
- func (s *S3) Attributes(file string) fs.Attributes
- func (s *S3) Cwd() string
- func (s *S3) Delete(files ...string) error
- func (s *S3) DeleteDirectory(dir string) error
- func (s *S3) Directories(dir string) []fs.Disk
- func (s *S3) Exists(file string) bool
- func (s *S3) Files(dir string) []*fs.File
- func (s *S3) Get(file string) ([]byte, error)
- func (s *S3) MakeDirectory(dir string, visibility fs.Visibility) error
- func (s *S3) Options() *s3.Options
- func (s *S3) Path(file string) string
- func (s *S3) Prefix(prefix string) fs.Disk
- func (s *S3) Put(file string, content []byte, visibility fs.Visibility) error
- type S3Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { PutObject(ctx context.Context, params *s3.PutObjectInput, optFns ...func(*s3.Options)) (*s3.PutObjectOutput, error) GetObject(ctx context.Context, params *s3.GetObjectInput, optFns ...func(*s3.Options)) (*s3.GetObjectOutput, error) GetObjectAttributes(ctx context.Context, params *s3.GetObjectAttributesInput, optFns ...func(*s3.Options)) (*s3.GetObjectAttributesOutput, error) HeadObject(ctx context.Context, params *s3.HeadObjectInput, optFns ...func(*s3.Options)) (*s3.HeadObjectOutput, error) DeleteObject(ctx context.Context, params *s3.DeleteObjectInput, optFns ...func(*s3.Options)) (*s3.DeleteObjectOutput, error) ListObjects(ctx context.Context, params *s3.ListObjectsInput, optFns ...func(*s3.Options)) (*s3.ListObjectsOutput, error) }
type Common ¶
type Common struct {
// contains filtered or unexported fields
}
func (*Common) LastModified ¶
type Local ¶
type Local struct { *Common // contains filtered or unexported fields }
func NewLocal ¶
func NewLocal(config LocalConfig) *Local
func (*Local) Attributes ¶
func (l *Local) Attributes(file string) fs.Attributes
func (*Local) DeleteDirectory ¶
func (*Local) MakeDirectory ¶
func (l *Local) MakeDirectory(dir string, visibility fs.Visibility) error
type LocalConfig ¶
type Memory ¶
type Memory struct { *S3 // contains filtered or unexported fields }
func NewMemory ¶
func NewMemory(config MemoryConfig) *Memory
type MemoryClient ¶
type MemoryClient struct {
// contains filtered or unexported fields
}
func NewMemoryClient ¶
func NewMemoryClient() *MemoryClient
func (*MemoryClient) DeleteObject ¶
func (m *MemoryClient) DeleteObject(ctx context.Context, params *s3.DeleteObjectInput, optFns ...func(*s3.Options)) (*s3.DeleteObjectOutput, error)
func (*MemoryClient) GetObject ¶
func (m *MemoryClient) GetObject(ctx context.Context, params *s3.GetObjectInput, optFns ...func(*s3.Options)) (*s3.GetObjectOutput, error)
func (*MemoryClient) GetObjectAttributes ¶
func (m *MemoryClient) GetObjectAttributes(ctx context.Context, params *s3.GetObjectAttributesInput, optFns ...func(*s3.Options)) (*s3.GetObjectAttributesOutput, error)
func (*MemoryClient) HeadObject ¶
func (m *MemoryClient) HeadObject(ctx context.Context, params *s3.HeadObjectInput, optFns ...func(*s3.Options)) (*s3.HeadObjectOutput, error)
func (*MemoryClient) ListObjects ¶
func (m *MemoryClient) ListObjects(ctx context.Context, params *s3.ListObjectsInput, optFns ...func(*s3.Options)) (*s3.ListObjectsOutput, error)
func (*MemoryClient) PutObject ¶
func (m *MemoryClient) PutObject(ctx context.Context, params *s3.PutObjectInput, optFns ...func(*s3.Options)) (*s3.PutObjectOutput, error)
type MemoryConfig ¶
type MemoryConfig struct {
Prefix string
}
type S3 ¶
type S3 struct { *Common // contains filtered or unexported fields }
func (*S3) Attributes ¶
func (s *S3) Attributes(file string) fs.Attributes
func (*S3) DeleteDirectory ¶
func (*S3) MakeDirectory ¶
func (s *S3) MakeDirectory(dir string, visibility fs.Visibility) error
Click to show internal directories.
Click to hide internal directories.