world

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PruneError

type PruneError struct {
	Prefix string
	Err    error
}

func (PruneError) Error

func (e PruneError) Error() string

type WorldService

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

func New

func New(ctx context.Context, bucket string, forcePathStyle bool) (*WorldService, error)

func (*WorldService) DeleteWorld added in v0.3.0

func (ws *WorldService) DeleteWorld(ctx context.Context, id string) error

func (*WorldService) GetLatestWorldKey

func (ws *WorldService) GetLatestWorldKey(ctx context.Context, world string) (string, error)

func (*WorldService) GetPresignedGetURL

func (ws *WorldService) GetPresignedGetURL(ctx context.Context, id string) (string, error)

func (*WorldService) GetPresignedGetURLWithLifetime

func (ws *WorldService) GetPresignedGetURLWithLifetime(ctx context.Context, id string, dur time.Duration) (string, error)

func (*WorldService) GetPresignedPutURL

func (ws *WorldService) GetPresignedPutURL(ctx context.Context, id string) (string, error)

func (*WorldService) GetPresignedPutURLWithLifetime

func (ws *WorldService) GetPresignedPutURLWithLifetime(ctx context.Context, id string, dur time.Duration) (string, error)

func (*WorldService) GetWorlds

func (ws *WorldService) GetWorlds(ctx context.Context) ([]web.World, error)

func (*WorldService) Prune

func (w *WorldService) Prune(ctx context.Context, preserveCount int) error

Jump to

Keyboard shortcuts

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