posix

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Posix

type Posix struct {
	backend.BackendUnsupported
	// contains filtered or unexported fields
}

func New

func New(rootdir string, meta meta.MetadataStorer, opts PosixOpts) (*Posix, error)

func (*Posix) AbortMultipartUpload

func (p *Posix) AbortMultipartUpload(_ context.Context, mpu *s3.AbortMultipartUploadInput) error

func (*Posix) ChangeBucketOwner

func (p *Posix) ChangeBucketOwner(ctx context.Context, bucket, newOwner string) error

func (*Posix) CompleteMultipartUpload

func (p *Posix) CompleteMultipartUpload(ctx context.Context, input *s3.CompleteMultipartUploadInput) (*s3.CompleteMultipartUploadOutput, error)

func (*Posix) CopyObject

func (p *Posix) CopyObject(ctx context.Context, input *s3.CopyObjectInput) (*s3.CopyObjectOutput, error)

func (*Posix) CreateBucket

func (p *Posix) CreateBucket(ctx context.Context, input *s3.CreateBucketInput, acl []byte) error

func (*Posix) CreateMultipartUpload

func (p *Posix) CreateMultipartUpload(ctx context.Context, mpu *s3.CreateMultipartUploadInput) (*s3.CreateMultipartUploadOutput, error)

func (*Posix) DeleteBucket

func (p *Posix) DeleteBucket(_ context.Context, input *s3.DeleteBucketInput) error

func (*Posix) DeleteBucketPolicy

func (p *Posix) DeleteBucketPolicy(ctx context.Context, bucket string) error

func (*Posix) DeleteBucketTagging

func (p *Posix) DeleteBucketTagging(ctx context.Context, bucket string) error

func (*Posix) DeleteObject

func (p *Posix) DeleteObject(_ context.Context, input *s3.DeleteObjectInput) error

func (*Posix) DeleteObjectTagging

func (p *Posix) DeleteObjectTagging(ctx context.Context, bucket, object string) error

func (*Posix) DeleteObjects

func (p *Posix) DeleteObjects(ctx context.Context, input *s3.DeleteObjectsInput) (s3response.DeleteResult, error)

func (*Posix) GetBucketAcl

func (p *Posix) GetBucketAcl(_ context.Context, input *s3.GetBucketAclInput) ([]byte, error)

func (*Posix) GetBucketPolicy

func (p *Posix) GetBucketPolicy(ctx context.Context, bucket string) ([]byte, error)

func (*Posix) GetBucketTagging

func (p *Posix) GetBucketTagging(_ context.Context, bucket string) (map[string]string, error)

func (*Posix) GetObject

func (p *Posix) GetObject(_ context.Context, input *s3.GetObjectInput, writer io.Writer) (*s3.GetObjectOutput, error)

func (*Posix) GetObjectAttributes

func (*Posix) GetObjectLegalHold

func (p *Posix) GetObjectLegalHold(_ context.Context, bucket, object, versionId string) (*bool, error)

func (*Posix) GetObjectLockConfiguration

func (p *Posix) GetObjectLockConfiguration(_ context.Context, bucket string) ([]byte, error)

func (*Posix) GetObjectRetention

func (p *Posix) GetObjectRetention(_ context.Context, bucket, object, versionId string) ([]byte, error)

func (*Posix) GetObjectTagging

func (p *Posix) GetObjectTagging(_ context.Context, bucket, object string) (map[string]string, error)

func (*Posix) HeadBucket

func (p *Posix) HeadBucket(_ context.Context, input *s3.HeadBucketInput) (*s3.HeadBucketOutput, error)

func (*Posix) HeadObject

func (p *Posix) HeadObject(ctx context.Context, input *s3.HeadObjectInput) (*s3.HeadObjectOutput, error)

func (*Posix) ListBuckets

func (p *Posix) ListBuckets(_ context.Context, owner string, isAdmin bool) (s3response.ListAllMyBucketsResult, error)

func (*Posix) ListBucketsAndOwners

func (p *Posix) ListBucketsAndOwners(ctx context.Context) (buckets []s3response.Bucket, err error)

func (*Posix) ListObjects

func (p *Posix) ListObjects(_ context.Context, input *s3.ListObjectsInput) (*s3.ListObjectsOutput, error)

func (*Posix) ListObjectsV2

func (p *Posix) ListObjectsV2(_ context.Context, input *s3.ListObjectsV2Input) (*s3.ListObjectsV2Output, error)

func (*Posix) ListParts

func (*Posix) PutBucketAcl

func (p *Posix) PutBucketAcl(_ context.Context, bucket string, data []byte) error

func (*Posix) PutBucketPolicy

func (p *Posix) PutBucketPolicy(ctx context.Context, bucket string, policy []byte) error

func (*Posix) PutBucketTagging

func (p *Posix) PutBucketTagging(_ context.Context, bucket string, tags map[string]string) error

func (*Posix) PutObject

func (p *Posix) PutObject(ctx context.Context, po *s3.PutObjectInput) (string, error)

func (*Posix) PutObjectLegalHold

func (p *Posix) PutObjectLegalHold(_ context.Context, bucket, object, versionId string, status bool) error

func (*Posix) PutObjectLockConfiguration

func (p *Posix) PutObjectLockConfiguration(_ context.Context, bucket string, config []byte) error

func (*Posix) PutObjectRetention

func (p *Posix) PutObjectRetention(_ context.Context, bucket, object, versionId string, bypass bool, retention []byte) error

func (*Posix) PutObjectTagging

func (p *Posix) PutObjectTagging(_ context.Context, bucket, object string, tags map[string]string) error

func (*Posix) Shutdown

func (p *Posix) Shutdown()

func (*Posix) String

func (p *Posix) String() string

func (*Posix) UploadPart

func (p *Posix) UploadPart(ctx context.Context, input *s3.UploadPartInput) (string, error)

func (*Posix) UploadPartCopy

func (p *Posix) UploadPartCopy(ctx context.Context, upi *s3.UploadPartCopyInput) (s3response.CopyObjectResult, error)

type PosixOpts

type PosixOpts struct {
	ChownUID bool
	ChownGID bool
}

Jump to

Keyboard shortcuts

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