storage

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(cfg config.StorageConfig) (*Client, error)

func (*Client) DeleteMedia added in v0.9.2

func (c *Client) DeleteMedia(ctx context.Context, key string) error

func (*Client) DeletePrivate added in v0.9.2

func (c *Client) DeletePrivate(ctx context.Context, key string) error

func (*Client) GetPrivate

func (c *Client) GetPrivate(ctx context.Context, key string) ([]byte, error)

func (*Client) PublicURL

func (c *Client) PublicURL(key string) string

func (*Client) PutMedia

func (c *Client) PutMedia(ctx context.Context, key, contentType string, data []byte) error

func (*Client) PutPrivate

func (c *Client) PutPrivate(ctx context.Context, key, contentType string, data []byte) error

Jump to

Keyboard shortcuts

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