Documentation ¶
Index ¶
- Variables
- func NewOverlay(config map[string]map[string]string) (iapi.StorageInterface, error)
- type Overlay
- func (ov *Overlay) DefaultLocation(ctx context.Context) iapi.LocationSchemeInstance
- func (ov *Overlay) Enqueue(ctx context.Context, loc iapi.LocationSchemeInstance, ...) error
- func (ov *Overlay) GetAttestation(ctx context.Context, loc iapi.LocationSchemeInstance, ...) (*iapi.Attestation, error)
- func (ov *Overlay) GetAttestationOrDeclaration(ctx context.Context, loc iapi.LocationSchemeInstance, ...) (*iapi.GetResult, error)
- func (ov *Overlay) GetBlob(ctx context.Context, loc iapi.LocationSchemeInstance, ...) ([]byte, error)
- func (ov *Overlay) GetEntity(ctx context.Context, loc iapi.LocationSchemeInstance, ...) (*iapi.Entity, error)
- func (ov *Overlay) HashSchemeFor(loc iapi.LocationSchemeInstance) (iapi.HashScheme, error)
- func (ov *Overlay) IterateQeueue(ctx context.Context, loc iapi.LocationSchemeInstance, ...) (object iapi.HashSchemeInstance, nextToken string, err error)
- func (ov *Overlay) LocationByName(ctx context.Context, name string) (iapi.LocationSchemeInstance, error)
- func (ov *Overlay) PutAttestation(ctx context.Context, loc iapi.LocationSchemeInstance, att *iapi.Attestation) (iapi.HashSchemeInstance, error)
- func (ov *Overlay) PutBlob(ctx context.Context, loc iapi.LocationSchemeInstance, content []byte) (iapi.HashSchemeInstance, error)
- func (ov *Overlay) PutEntity(ctx context.Context, loc iapi.LocationSchemeInstance, ent *iapi.Entity) (iapi.HashSchemeInstance, error)
- func (ov *Overlay) PutNameDeclaration(ctx context.Context, loc iapi.LocationSchemeInstance, nd *iapi.NameDeclaration) (iapi.HashSchemeInstance, error)
- func (ov *Overlay) RegisteredLocations(ctx context.Context) (map[string]iapi.LocationSchemeInstance, error)
- func (ov *Overlay) Status(ctx context.Context) (map[string]iapi.StorageDriverStatus, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnknownLocation = errors.New("unknown location")
View Source
var MaximumTimeout = 5 * time.Second
Functions ¶
func NewOverlay ¶
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 (ov *Overlay) Enqueue(ctx context.Context, loc iapi.LocationSchemeInstance, queueId iapi.HashSchemeInstance, object iapi.HashSchemeInstance) error
func (*Overlay) GetAttestation ¶
func (ov *Overlay) GetAttestation(ctx context.Context, loc iapi.LocationSchemeInstance, hash iapi.HashSchemeInstance) (*iapi.Attestation, error)
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 (ov *Overlay) GetBlob(ctx context.Context, loc iapi.LocationSchemeInstance, hash iapi.HashSchemeInstance) ([]byte, error)
func (*Overlay) GetEntity ¶
func (ov *Overlay) GetEntity(ctx context.Context, loc iapi.LocationSchemeInstance, hash iapi.HashSchemeInstance) (*iapi.Entity, error)
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 (*Overlay) PutAttestation ¶
func (ov *Overlay) PutAttestation(ctx context.Context, loc iapi.LocationSchemeInstance, att *iapi.Attestation) (iapi.HashSchemeInstance, error)
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 (ov *Overlay) PutEntity(ctx context.Context, loc iapi.LocationSchemeInstance, ent *iapi.Entity) (iapi.HashSchemeInstance, error)
func (*Overlay) PutNameDeclaration ¶ added in v0.2.0
func (ov *Overlay) PutNameDeclaration(ctx context.Context, loc iapi.LocationSchemeInstance, nd *iapi.NameDeclaration) (iapi.HashSchemeInstance, error)
func (*Overlay) RegisteredLocations ¶
Click to show internal directories.
Click to hide internal directories.