storage

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2022 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticationSession added in v0.3.0

type AuthenticationSession struct {
	User      string     `json:"uid"`
	TID       gocql.UUID `json:"tid"`
	KID       gocql.UUID `json:"kid"`
	Type      string     `json:"type"`
	Signature string     `json:"signature"`
}

func (AuthenticationSession) String added in v0.3.0

func (a AuthenticationSession) String() string

func (AuthenticationSession) UnhashedString added in v0.3.0

func (a AuthenticationSession) UnhashedString() string

type HashKey added in v0.3.0

type HashKey struct {
	KID gocql.UUID
	K   string
}

type Object

type Object struct {
	Hash    plumbing.Hash
	Type    plumbing.ObjectType
	Content []byte
}

type Reference

type Reference struct {
	Name plumbing.ReferenceName
	Hash plumbing.Hash
}

type Storage

type Storage interface {
	StoreReferences(string, []Reference) error
	StoreObjects(string, []Object) error
	StoreObject(string, Object, int) error
	ListReferences(string) ([]Reference, error)
	ListObjects(string) ([]Object, error)
	GetObject(string, plumbing.Hash) (Object, error)

	GenerateHashKey() error
	GetHashKey() ([]HashKey, error)
}

Directories

Path Synopsis
ent

Jump to

Keyboard shortcuts

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