s3

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Client *minio.Client
	Bucket string
}

Options S3 backend options

type Store

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

Store S3 store

func NewStore

func NewStore(opts *Options) *Store

NewStore creates a new S3 backend

func (*Store) DeleteLock

func (c *Store) DeleteLock(ref string) error

DeleteLock deletes a lock

func (*Store) DeleteState

func (c *Store) DeleteState(ref string) error

DeleteState deletes a state

func (*Store) GetLock

func (c *Store) GetLock(ref string) (*types.Lock, error)

GetLock gets the lock

func (*Store) GetState

func (c *Store) GetState(ref string, version ...string) (map[string]interface{}, bool, error)

GetState gets the state

func (*Store) GetStates added in v0.0.9

func (c *Store) GetStates(ref string) ([]string, error)

GetStates lists all the states (refs)

func (*Store) Identities added in v0.1.0

func (c *Store) Identities() (int, error)

Identities gets the lock

func (*Store) Init

func (c *Store) Init() error

Init initializes the backend

func (*Store) Keep added in v0.0.4

func (c *Store) Keep(last int) error

func (*Store) List added in v0.0.4

func (c *Store) List(ref string) ([]string, error)

func (*Store) Locks added in v0.1.0

func (c *Store) Locks(age int) (int, error)

Locks gets the lock

func (*Store) PutLock

func (c *Store) PutLock(ref string, lock types.Lock) error

PutLock puts the lock

func (*Store) PutState

func (c *Store) PutState(ref string, state, metadata map[string]interface{}, encrypted bool, version ...string) error

PutState puts the state

func (*Store) Restore added in v0.0.4

func (c *Store) Restore(ref, version string) error

func (*Store) States added in v0.1.0

func (c *Store) States() (int, error)

States gets the lock

Jump to

Keyboard shortcuts

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