posix

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 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 string, acl []byte) 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) DeleteBucket

func (p *Posix) DeleteBucket(_ context.Context, bucket string) error

func (*Posix) DeleteBucketOwnershipControls added in v1.0.3

func (p *Posix) DeleteBucketOwnershipControls(_ context.Context, bucket string) 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(ctx context.Context, input *s3.DeleteObjectInput) (*s3.DeleteObjectOutput, 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) GetBucketOwnershipControls added in v1.0.3

func (p *Posix) GetBucketOwnershipControls(_ context.Context, bucket string) (types.ObjectOwnership, 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) GetBucketVersioning added in v1.0.8

func (p *Posix) GetBucketVersioning(_ context.Context, bucket string) (s3response.GetBucketVersioningOutput, error)

func (*Posix) GetObject

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

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) ListBucketsAndOwners

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

func (*Posix) ListObjectVersions added in v1.0.8

func (p *Posix) ListObjectVersions(ctx context.Context, input *s3.ListObjectVersionsInput) (s3response.ListVersionsResult, error)

func (*Posix) ListObjects

func (p *Posix) ListObjects(ctx context.Context, input *s3.ListObjectsInput) (s3response.ListObjectsResult, error)

func (*Posix) ListObjectsV2

func (p *Posix) ListObjectsV2(ctx context.Context, input *s3.ListObjectsV2Input) (s3response.ListObjectsV2Result, error)

func (*Posix) ListParts

func (*Posix) PutBucketAcl

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

func (*Posix) PutBucketOwnershipControls added in v1.0.3

func (p *Posix) PutBucketOwnershipControls(_ context.Context, bucket string, ownership types.ObjectOwnership) 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) PutBucketVersioning added in v1.0.8

func (p *Posix) PutBucketVersioning(ctx context.Context, bucket string, status types.BucketVersioningStatus) error

func (*Posix) PutObject

func (*Posix) PutObjectLegalHold

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

func (*Posix) PutObjectLockConfiguration

func (p *Posix) PutObjectLockConfiguration(ctx 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
	BucketLinks   bool
	VersioningDir string
	NewDirPerm    fs.FileMode
}

Jump to

Keyboard shortcuts

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