types

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	Error string `json:"error"`
}

func NewError

func NewError(err error) *Error

func (*Error) String

func (e *Error) String() string

type LcResult

type LcResult struct {
	api.LcArtifact `yaml:",inline"`
	Verified       bool           `json:"verified" yaml:"verified" cas:"Verified"`
	Verbose        *LcVerboseInfo `yaml:"verbose,omitempty" cas:"Verbose"`
	Errors         []error        `json:"error,omitempty" yaml:"error,omitempty"`
}

func NewLcResult

func NewLcResult(lca *api.LcArtifact, verified bool, verbose *LcVerboseInfo) *LcResult

func (*LcResult) AddError

func (r *LcResult) AddError(err error)

type LcVerboseInfo

type LcVerboseInfo struct {
	LedgerName string `json:"ledgerName" yaml:"ledgerName" cas:"LedgerName"`
	LocalSID   string `json:"localSID" yaml:"localSID" cas:"LocalSID"`
	ApiKey     string `json:"apiKey" yaml:"apiKey" cas:"ApiKey"`
}

type Result

type Result struct {
	api.ArtifactResponse `yaml:",inline"`
	Errors               []error `json:"error,omitempty" yaml:"error,omitempty"`
}

func NewResult

func NewResult(a *api.Artifact, ar *api.ArtifactResponse) *Result

func (*Result) AddError

func (r *Result) AddError(err error)

Jump to

Keyboard shortcuts

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