simplehttp

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: 29 Imported by: 24

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnqueueRequest

type EnqueueRequest struct {
	EntryHash []byte `json:"entryHash"`
}

type EnqueueResponse

type EnqueueResponse struct {
	V1MergePromise *MergePromise `json:"v1promise"`
}

type InfoResponse

type InfoResponse struct {
	HashScheme string `json:"hashScheme"`
	Version    string `json:"version"`
}

type IterateQueueResponse

type IterateQueueResponse struct {
	Hash             []byte        `json:"hash"`
	NextToken        string        `json:"nextToken"`
	V1SMR            []byte        `json:"v1smr"`
	V1MapInclusion   []byte        `json:"v1mapinclusion"`
	V1MergePromise   *MergePromise `json:"v1promise"`
	V1SLR            []byte        `json:"v1slr"`
	V1LogInclusion   []byte        `json:"v1loginclusion"`
	V1LogConsistency [][]byte      `json:"v1logconsistency"`
}

type MergePromise added in v0.2.0

type MergePromise struct {
	TBS  []byte
	SigR *big.Int
	SigS *big.Int
}

type MergePromiseTBS added in v0.2.0

type MergePromiseTBS struct {
	Key     []byte
	ValHash []byte
	MergeBy int64
}

type NoSuchObjectResponse

type NoSuchObjectResponse struct {
}

type NoSuchQueueEntryResponse

type NoSuchQueueEntryResponse struct {
}

type ObjectResponse

type ObjectResponse struct {
	DER              []byte        `json:"der"`
	V1SMR            []byte        `json:"v1smr"`
	V1MapInclusion   []byte        `json:"v1mapinclusion"`
	V1MergePromise   *MergePromise `json:"v1promise"`
	V1SLR            []byte        `json:"v1slr"`
	V1LogInclusion   []byte        `json:"v1loginclusion"`
	V1LogConsistency [][]byte      `json:"v1logconsistency"`
}

type PutObjectRequest

type PutObjectRequest struct {
	DER []byte `json:"der"`
}

type PutObjectResponse

type PutObjectResponse struct {
	Hash           []byte        `json:"hash"`
	V1MergePromise *MergePromise `json:"v1promise"`
}

type SimpleHTTPStorage

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

func (*SimpleHTTPStorage) Enqueue

func (*SimpleHTTPStorage) Get

func (s *SimpleHTTPStorage) Get(ctx context.Context, hash iapi.HashSchemeInstance) (content []byte, err error)

func (*SimpleHTTPStorage) Initialize

func (s *SimpleHTTPStorage) Initialize(ctx context.Context, name string, config map[string]string) error

func (*SimpleHTTPStorage) IterateQueue

func (s *SimpleHTTPStorage) IterateQueue(ctx context.Context, queueId iapi.HashSchemeInstance, iteratorToken string) (object iapi.HashSchemeInstance, nextToken string, err error)

func (*SimpleHTTPStorage) Location

func (*SimpleHTTPStorage) PreferredHashScheme

func (s *SimpleHTTPStorage) PreferredHashScheme() iapi.HashScheme

func (*SimpleHTTPStorage) Put

func (*SimpleHTTPStorage) Status

func (s *SimpleHTTPStorage) Status(ctx context.Context) (operational bool, info map[string]string, err error)

type V1CertifierSeal added in v0.3.0

type V1CertifierSeal struct {
	//Time in ms since epoch
	Timestamp int64
	Identity  string `json:"identity"`
	SigR      *big.Int
	SigS      *big.Int
}

Jump to

Keyboard shortcuts

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