channel

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewChannelCommand

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

NewChannelCommand creates a new "fabric channel" command

func NewChannelConfigCommand

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

NewChannelConfigCommand creates a new "fabric channel config" command

func NewChannelCreateCommand

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

NewChannelCreateCommand creates a new "fabric channel create" command

func NewChannelJoinCommand

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

NewChannelJoinCommand creates a new "fabric channel join" command

func NewChannelListCommand

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

NewChannelListCommand creates a new "fabric channel list" command

func NewChannelUpdateCommand

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

NewChannelUpdateCommand creates a new "fabric channel update" command

Types

type BaseCommand

type BaseCommand struct {
	common.Command

	Factory            fabric.Factory
	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 ConfigCommand

type ConfigCommand struct {
	BaseCommand

	ChannelID string
}

ConfigCommand implements the channel config command

func (*ConfigCommand) Run

func (c *ConfigCommand) Run() error

Run executes the command

func (*ConfigCommand) Validate

func (c *ConfigCommand) Validate() error

Validate checks the required parameters for run

type CreateCommand

type CreateCommand struct {
	BaseCommand

	ChannelID string
	ChannelTX string
}

CreateCommand implements the channel create command

func (*CreateCommand) Run

func (c *CreateCommand) Run() error

Run executes the command

func (*CreateCommand) Validate

func (c *CreateCommand) Validate() error

Validate checks the required parameters for run

type JoinCommand

type JoinCommand struct {
	BaseCommand

	ChannelID string
}

JoinCommand implements the channel join command

func (*JoinCommand) Run

func (c *JoinCommand) Run() error

Run executes the command

func (*JoinCommand) Validate

func (c *JoinCommand) Validate() error

Validate checks the required parameters for run

type ListCommand

type ListCommand struct {
	BaseCommand
}

ListCommand implements the channel list command

func (*ListCommand) Run

func (c *ListCommand) Run() error

Run executes the command

type UpdateCommand

type UpdateCommand struct {
	BaseCommand

	ChannelID string
	ChannelTX string
}

UpdateCommand implements the channel update command

func (*UpdateCommand) Run

func (c *UpdateCommand) Run() error

Run executes the command

func (*UpdateCommand) Validate

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