simplehttp

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2018 License: GPL-3.0 Imports: 7 Imported by: 0

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 {
}

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"`
}

type NoSuchObjectResponse

type NoSuchObjectResponse struct {
}

type NoSuchQueueEntryResponse

type NoSuchQueueEntryResponse struct {
}

type ObjectResponse

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

type PutObjectRequest

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

type PutObjectResponse

type PutObjectResponse struct {
	Hash []byte `json:"hash"`
}

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)

Jump to

Keyboard shortcuts

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