chaincode

package
v0.0.0-...-7f57805 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewChaincodeCommand

func NewChaincodeCommand(settings *environment.Settings) *cobra.Command

NewChaincodeCommand creates a new "fabric chaincode" command

func NewChaincodeEventsCommand

func NewChaincodeEventsCommand(settings *environment.Settings) *cobra.Command

NewChaincodeEventsCommand creates a new "fabric chaincode events" command

func NewChaincodeInstallCommand

func NewChaincodeInstallCommand(settings *environment.Settings) *cobra.Command

NewChaincodeInstallCommand creates a new "fabric chaincode install" command

func NewChaincodeInstantiateCommand

func NewChaincodeInstantiateCommand(settings *environment.Settings) *cobra.Command

NewChaincodeInstantiateCommand creates a new "fabric chaincode instantiate" command

func NewChaincodeInvokeCommand

func NewChaincodeInvokeCommand(settings *environment.Settings) *cobra.Command

NewChaincodeInvokeCommand creates a new "fabric chaincode invoke" command

func NewChaincodeListCommand

func NewChaincodeListCommand(settings *environment.Settings) *cobra.Command

NewChaincodeListCommand creates a new "fabric chaincode list" command

func NewChaincodePackageCommand

func NewChaincodePackageCommand(settings *environment.Settings) *cobra.Command

NewChaincodePackageCommand creates a new "fabric chaincode package" command

func NewChaincodeQueryCommand

func NewChaincodeQueryCommand(settings *environment.Settings) *cobra.Command

NewChaincodeQueryCommand creates a new "fabric chaincode query" command

func NewChaincodeUpgradeCommand

func NewChaincodeUpgradeCommand(settings *environment.Settings) *cobra.Command

NewChaincodeUpgradeCommand creates a new "fabric chaincode upgrade" command

Types

type BaseCommand

type BaseCommand struct {
	common.Command

	Factory            fabric.Factory
	Channel            fabric.Channel
	ResourceManagement fabric.ResourceManagement
}

BaseCommand implements common channel command functions

func (*BaseCommand) Complete

func (c *BaseCommand) Complete() error

Complete initializes all clients needed for Run

type EventsCommand

type EventsCommand struct {
	BaseCommand

	ChaincodeName string
}

EventsCommand implements the chaincode events command

func (*EventsCommand) Run

func (c *EventsCommand) Run() error

Run executes the command

func (*EventsCommand) Validate

func (c *EventsCommand) Validate() error

Validate checks the required parameters for run

type InstallCommand

type InstallCommand struct {
	BaseCommand

	ChaincodeName    string
	ChaincodeVersion string
	ChaincodePath    string
}

InstallCommand implements the chaincode install command

func (*InstallCommand) Run

func (c *InstallCommand) Run() error

Run executes the command

func (*InstallCommand) Validate

func (c *InstallCommand) Validate() error

Validate checks the required parameters for run

type InstantiateCommand

type InstantiateCommand struct {
	BaseCommand

	ChaincodeName    string
	ChaincodeVersion string
	ChaincodePath    string

	ChaincodeArgs              []string
	ChaincodePolicy            string
	ChaincodeCollectionsConfig string
}

InstantiateCommand implements the chaincode instantiate command

func (*InstantiateCommand) Run

func (c *InstantiateCommand) Run() error

Run executes the command

func (*InstantiateCommand) Validate

func (c *InstantiateCommand) Validate() error

Validate checks the required parameters for run

type InvokeCommand

type InvokeCommand struct {
	BaseCommand

	ChaincodeName string

	ChaincodeFcn  string
	ChaincodeArgs []string
	IsInit        bool
}

InvokeCommand implements the chaincode invoke command

func (*InvokeCommand) Run

func (c *InvokeCommand) Run() error

Run executes the command

func (*InvokeCommand) Validate

func (c *InvokeCommand) Validate() error

Validate checks the required parameters for run

type ListCommand

type ListCommand struct {
	BaseCommand

	Installed    bool
	Instantiated bool
}

ListCommand implements the chaincode list command

func (*ListCommand) Run

func (c *ListCommand) Run() error

Run executes the command

type PackageCommand

type PackageCommand struct {
	BaseCommand

	ChaincodeName string
	ChaincodePath string
}

PackageCommand implements the chaincode package command

func (*PackageCommand) Run

func (c *PackageCommand) Run() error

Run executes the command

func (*PackageCommand) Validate

func (c *PackageCommand) Validate() error

Validate checks the required parameters for run

type QueryCommand

type QueryCommand struct {
	BaseCommand

	ChaincodeName string

	ChaincodeFcn  string
	ChaincodeArgs []string
}

QueryCommand implements the chaincode query command

func (*QueryCommand) Run

func (c *QueryCommand) Run() error

Run executes the command

func (*QueryCommand) Validate

func (c *QueryCommand) Validate() error

Validate checks the required parameters for run

type UpgradeCommand

type UpgradeCommand struct {
	BaseCommand

	ChaincodeName    string
	ChaincodeVersion string
	ChaincodePath    string

	ChaincodeArgs              []string
	ChaincodePolicy            string
	ChaincodeCollectionsConfig string
}

UpgradeCommand implements the chaincode upgrade command

func (*UpgradeCommand) Run

func (c *UpgradeCommand) Run() error

Run executes the command

func (*UpgradeCommand) Validate

func (c *UpgradeCommand) Validate() error

Validate checks the required parameters for run

Jump to

Keyboard shortcuts

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