gcloudfilestore

package
v1.1.32 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GCloudFileStore

type GCloudFileStore struct {
	Client                           *storage.Client
	BucketName                       string
	DefaultObjectCacheDuration       *time.Duration
	DefaultPresignExpirationDuration time.Duration
}

func New

func New(bucketName string) *GCloudFileStore

func (*GCloudFileStore) PresignedGetUrl

func (g *GCloudFileStore) PresignedGetUrl(key string, opts ...PresignOption) (string, error)

func (*GCloudFileStore) PresignedPutUrl

func (g *GCloudFileStore) PresignedPutUrl(
	key string,
	opts ...PresignOption,
) (string, error)

type PresignConfig

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

type PresignOption

type PresignOption func(*PresignConfig)

func SetCacheDuration

func SetCacheDuration(duration time.Duration) PresignOption

func SetDownloadOptions

func SetDownloadOptions(fileName string, contentType string) PresignOption

func SetExpirationDuration

func SetExpirationDuration(duration time.Duration) PresignOption

Jump to

Keyboard shortcuts

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