Documentation ¶
Index ¶
- func NewChaincodeCommand(settings *environment.Settings) *cobra.Command
- func NewChaincodeEventsCommand(settings *environment.Settings) *cobra.Command
- func NewChaincodeInstallCommand(settings *environment.Settings) *cobra.Command
- func NewChaincodeInstantiateCommand(settings *environment.Settings) *cobra.Command
- func NewChaincodeInvokeCommand(settings *environment.Settings) *cobra.Command
- func NewChaincodeListCommand(settings *environment.Settings) *cobra.Command
- func NewChaincodePackageCommand(settings *environment.Settings) *cobra.Command
- func NewChaincodeQueryCommand(settings *environment.Settings) *cobra.Command
- func NewChaincodeUpgradeCommand(settings *environment.Settings) *cobra.Command
- type BaseCommand
- type EventsCommand
- type InstallCommand
- type InstantiateCommand
- type InvokeCommand
- type ListCommand
- type PackageCommand
- type QueryCommand
- type UpgradeCommand
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) 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) 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) 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) 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
type PackageCommand ¶
type PackageCommand struct { BaseCommand ChaincodeName string ChaincodePath string }
PackageCommand implements the chaincode package 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) 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) Validate ¶
func (c *UpgradeCommand) Validate() error
Validate checks the required parameters for run