file

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Params

type Params struct {
	RootPath string `mapstructure:"root_path"`
}

type Store

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

func New

func New(ps Params) *Store

func (*Store) Close

func (s *Store) Close() error

func (*Store) Fetch

func (s *Store) Fetch(ctx context.Context, id *ccpackage.PackageID) (io.ReadCloser, error)

Fetch fetches chaincode package.

func (*Store) Get

Get gets chaincode package info from storage.

func (*Store) List

func (s *Store) List(ctx context.Context) ([]*ccpackage.Package, error)

List gets stored chaincode packages' infos.

func (*Store) Put

Jump to

Keyboard shortcuts

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