storage

package
v0.0.0-...-116ad82 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAWSStorage

func NewAWSStorage(config aws.Config, bucket string, c storagebackend.ConfigForResource, newFunc func() runtime.Object) storage.Interface

NewAWSStorage creates a new storage backend based on provided aws config.

Types

type ObjectState

type ObjectState struct {
	Content  []byte
	Revision uint64
}

type Txn

type Txn interface {
	Create(ctx context.Context, key string, value []byte, ttl uint64) error
	Delete(ctx context.Context, key string, origRev uint64) (ObjectState, error)
	Update(ctx context.Context, key string, value []byte, origRev uint64) (state ObjectState, err error)
}

Txn is the interface that wraps mini-transactions.

Jump to

Keyboard shortcuts

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