store

package
v0.0.53 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: BSD-3-Clause Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Type string
	Body []byte
	Spec *util.CommandSpec
}

Command is a Store Command

type ResponseError

type ResponseError struct {
	StatusCode int    `json:"statusCode"`
	Reason     string `json:"error"`
}

ResponseError is an error response from the Store API

func (ResponseError) Error

func (e ResponseError) Error() string

type Store

type Store interface {
	GetCommand() (*Command, error)
	SetVerbose(isVerbose bool)
}

Store is a Store API endpoint

func New

func New(baseURL string, spec *util.CommandSpec, sdToken string) Store

New returns Store object

Jump to

Keyboard shortcuts

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