s3

package
v0.0.0-...-28d8bff Latest Latest
Warning

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

Go to latest
Published: May 26, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnvPath

func EnvPath(suffix string) string

func LogPath

func LogPath(id int32, suffix string) string

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

func (c *Client) FetchEncounterOldRaw(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, parsed []byte) 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