depository

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConstructQuery

func ConstructQuery(cmd *cobra.Command) string

func NewCreateDepositoryCmd

func NewCreateDepositoryCmd() *cobra.Command

func NewGetDepositoryCmd

func NewGetDepositoryCmd(option common.Options) *cobra.Command

Types

type Depository

type Depository struct {
	Index       string `json:"index" pg:"index"`
	KID         string `json:"kid" pg:"kid,pk"`
	Platform    string `json:"platform" pg:"platform"`
	Operator    string `json:"operator" pg:"operator"`
	Owner       string `json:"owner" pg:"owner"`
	BlockNumber uint64 `json:"blockNumber" pg:"blockNumber"`

	// Content related
	Name             string `json:"name" pg:"name"`
	ContentName      string `json:"contentName" pg:"contentName"`
	ContentID        string `json:"contentID" pg:"contentID"`
	ContentType      string `json:"contentType" pg:"contentType"`
	TrustedTimestamp string `json:"trustedTimestamp" pg:"trustedTimestamp"`
}

func (Depository) GetByHeader

func (d Depository) GetByHeader(s string) string

type ValueDepository

type ValueDepository struct {
	Name             string `json:"name"`
	ContentType      string `json:"contentType"`
	ContentID        string `json:"contentID"` // hash of the file
	TrustedTimestamp string `json:"trustedTimestamp"`
	Platform         string `json:"platform"`
}

Jump to

Keyboard shortcuts

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