Help us shape the future of Go! Take the 2026 Go Developer Survey

overlay

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnknownLocation = errors.New("unknown location")
View Source
var MaximumTimeout = 5 * time.Second

Functions

func NewOverlay

func NewOverlay(config map[string]map[string]string) (iapi.StorageInterface, error)

config is a map of name->config map

Types

type Overlay

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

func (*Overlay) DefaultLocation added in v0.2.0

func (ov *Overlay) DefaultLocation(ctx context.Context) iapi.LocationSchemeInstance

func (*Overlay) Enqueue

func (*Overlay) GetAttestation

func (*Overlay) GetAttestationOrDeclaration added in v0.2.0

func (ov *Overlay) GetAttestationOrDeclaration(ctx context.Context, loc iapi.LocationSchemeInstance, hash iapi.HashSchemeInstance) (*iapi.GetResult, error)

func (*Overlay) GetBlob added in v0.2.1

func (*Overlay) GetEntity

func (*Overlay) HashSchemeFor

func (ov *Overlay) HashSchemeFor(loc iapi.LocationSchemeInstance) (iapi.HashScheme, error)

func (*Overlay) IterateQeueue

func (ov *Overlay) IterateQeueue(ctx context.Context, loc iapi.LocationSchemeInstance, queueId iapi.HashSchemeInstance, token string) (object iapi.HashSchemeInstance, nextToken string, err error)

func (*Overlay) LocationByName

func (ov *Overlay) LocationByName(ctx context.Context, name string) (iapi.LocationSchemeInstance, error)

func (*Overlay) PutAttestation

func (*Overlay) PutBlob added in v0.2.1

func (ov *Overlay) PutBlob(ctx context.Context, loc iapi.LocationSchemeInstance, content []byte) (iapi.HashSchemeInstance, error)

func (*Overlay) PutEntity

func (*Overlay) PutNameDeclaration added in v0.2.0

func (*Overlay) RegisteredLocations

func (ov *Overlay) RegisteredLocations(ctx context.Context) (map[string]iapi.LocationSchemeInstance, error)

func (*Overlay) Status

func (ov *Overlay) Status(ctx context.Context) (map[string]iapi.StorageDriverStatus, error)

Jump to

Keyboard shortcuts

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