s3

package
v0.0.0-...-b4fe549 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: Apache-2.0 Imports: 9 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 NewClient

func NewClient(c *Config) (*Client, error)

func (*Client) DeleteEncounter

func (c *Client) DeleteEncounter(ctx context.Context, id int32) error

func (*Client) FetchAvatar

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

func (*Client) FetchEncounter

func (c *Client) FetchEncounter(ctx context.Context, id int32) ([]byte, error)

func (*Client) FetchImage

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

func (*Client) RemoveAvatar

func (c *Client) RemoveAvatar(ctx context.Context, uuid string) error

func (*Client) RemoveImage

func (c *Client) RemoveImage(ctx context.Context, path string) error

func (*Client) SaveAvatar

func (c *Client) SaveAvatar(ctx context.Context, uuid string, raw []byte) error

func (*Client) SaveEncounter

func (c *Client) SaveEncounter(ctx context.Context, id int32, raw string) error

func (*Client) SaveImage

func (c *Client) SaveImage(ctx context.Context, path string, raw []byte) error

type Config

type Config struct {
	Endpoint        string
	Bucket          string
	AccessKeyID     string
	SecretAccessKey string
}

Jump to

Keyboard shortcuts

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