internal

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2024 License: MPL-2.0 Imports: 26 Imported by: 0

Documentation

Overview

provider.go

Index

Constants

View Source
const (
	// DefaultEndpoint is the default endpoint for Tigris object storage service.
	DefaultEndpoint = "https://fly.storage.tigris.dev"

	// DefaultRegion is the default region for Tigris object storage service.
	DefaultRegion = "auto"

	// Headers for the requests to Tigris.
	HeaderContentType          = "Content-Type"
	HeaderAccept               = "Accept"
	HeaderAmzContentSha        = "X-Amz-Content-Sha256"
	HeaderAmzIdentityId        = "S3-Identity-Id"
	HeaderAmzAcl               = "X-Amz-Acl"
	HeaderAmzPublicListObjects = "X-Amz-Acl-Public-List-Objects-Enabled"
)

Variables

This section is empty.

Functions

func Provider

func Provider() *schema.Provider

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(endpoint, accessKeyID, secretAccessKey string) (*Client, error)

func (*Client) CreateBucket

func (c *Client) CreateBucket(ctx context.Context, input *types.BucketUpdateInput) error

func (*Client) DeleteBucket

func (c *Client) DeleteBucket(ctx context.Context, bucketName string) error

func (*Client) FindBucketWithRetry

func (c *Client) FindBucketWithRetry(ctx context.Context, bucketName string) (bool, error)

func (*Client) GetBucketMetadata

func (c *Client) GetBucketMetadata(ctx context.Context, bucketName string) (*types.BucketMetadata, error)

func (*Client) HeadBucket

func (c *Client) HeadBucket(ctx context.Context, bucketName string) (bool, error)

func (*Client) UpdateBucket

func (c *Client) UpdateBucket(ctx context.Context, input *types.BucketUpdateInput) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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