lifecycle

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: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApproveCommand

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

NewApproveCommand creates a new "fabric lifecycle approve" command

func NewCheckCommitReadinessCommand

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

NewCheckCommitReadinessCommand creates a new "fabric lifecycle checkcommitreadiness" command

func NewCommand

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

NewCommand creates a new "fabric lifecycle" command

func NewCommitCommand

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

NewCommitCommand creates a new "fabric lifecycle commit" command

func NewGetInstalledPkgCommand

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

NewGetInstalledPkgCommand creates a new "fabric lifecycle getinstalledpkg" command

func NewInstallCommand

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

NewInstallCommand creates a new "fabric lifecycle install" command

func NewPackageCommand

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

NewPackageCommand creates a new "fabric lifecycle chaincode package" command

func NewQueryApprovedCommand

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

NewQueryApprovedCommand creates a new "fabric lifecycle queryapproved" command

func NewQueryCommittedCommand

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

NewQueryCommittedCommand creates a new "fabric lifecycle querycommitted" command

func NewQueryInstalledCommand

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

NewQueryInstalledCommand creates a new "fabric lifecycle queryinstalled" command

Types

type ApproveCommand

type ApproveCommand struct {
	BaseCommand

	Name                string
	Version             string
	PackageID           string
	SignaturePolicy     string
	ChannelConfigPolicy string
	CollectionsConfig   string
	Sequence            string
	InitRequired        bool
	EndorsementPlugin   string
	ValidationPlugin    string
}

ApproveCommand implements the lifecycle approve command

func (*ApproveCommand) Run

func (c *ApproveCommand) Run() error

Run executes the command

func (*ApproveCommand) Validate

func (c *ApproveCommand) Validate() error

Validate checks the required parameters for run

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 CheckCommitReadinessCommand

type CheckCommitReadinessCommand struct {
	BaseCommand

	Name                string
	Version             string
	Sequence            string
	SignaturePolicy     string
	ChannelConfigPolicy string
	CollectionsConfig   string
	InitRequired        bool
	EndorsementPlugin   string
	ValidationPlugin    string
	OutputFormat        string
}

CheckCommitReadinessCommand implements the chaincode checkcommitreadiness command

func (*CheckCommitReadinessCommand) Run

Run executes the command

func (*CheckCommitReadinessCommand) Validate

func (c *CheckCommitReadinessCommand) Validate() error

Validate checks the required parameters for run

type CommitCommand

type CommitCommand struct {
	BaseCommand

	Name                string
	Version             string
	Sequence            string
	SignaturePolicy     string
	ChannelConfigPolicy string
	CollectionsConfig   string
	InitRequired        bool
	EndorsementPlugin   string
	ValidationPlugin    string
	Peers               []string
}

CommitCommand implements the lifecycle commit command

func (*CommitCommand) Run

func (c *CommitCommand) Run() error

Run executes the command

func (*CommitCommand) Validate

func (c *CommitCommand) Validate() error

Validate checks the required parameters for run

type GetInstalledPkgCommand

type GetInstalledPkgCommand struct {
	BaseCommand

	Peer            string
	PackageID       string
	OutputDirectory string
	WriteFile       fileWriter
}

GetInstalledPkgCommand implements the chaincode getinstalledpackage command

func (*GetInstalledPkgCommand) Run

func (c *GetInstalledPkgCommand) Run() error

Run executes the command

func (*GetInstalledPkgCommand) Validate

func (c *GetInstalledPkgCommand) Validate() error

Validate checks the required parameters for run

type InstallCommand

type InstallCommand struct {
	BaseCommand

	Label string
	Path  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 PackageCommand

type PackageCommand struct {
	BaseCommand

	Path  string
	Label string
	Type  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 QueryApprovedCommand

type QueryApprovedCommand struct {
	BaseCommand

	ChaincodeName string
	Sequence      string
	OutputFormat  string
}

QueryApprovedCommand implements the chaincode queryapproved command

func (*QueryApprovedCommand) Run

func (c *QueryApprovedCommand) Run() error

Run executes the command

func (*QueryApprovedCommand) Validate

func (c *QueryApprovedCommand) Validate() error

Validate checks the required parameters for run

type QueryCommittedCommand

type QueryCommittedCommand struct {
	BaseCommand

	ChaincodeName string
	OutputFormat  string
}

QueryCommittedCommand implements the chaincode queryapproved command

func (*QueryCommittedCommand) Run

func (c *QueryCommittedCommand) Run() error

Run executes the command

func (*QueryCommittedCommand) Validate

func (c *QueryCommittedCommand) Validate() error

Validate checks the required parameters for run

type QueryInstalledCommand

type QueryInstalledCommand struct {
	BaseCommand

	Peer         string
	OutputFormat string
}

QueryInstalledCommand implements the chaincode queryinstalled command

func (*QueryInstalledCommand) Run

func (c *QueryInstalledCommand) Run() error

Run executes the command

func (*QueryInstalledCommand) Validate

func (c *QueryInstalledCommand) 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