Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdCreate ¶
NewCmdCreate returns a cobra.Command to run the create command.
func NewCmdCreateFabric ¶
NewCmdCreateFabric returns a cobra.Command to run the 'create fabric' subcommand.
func NewCmdCreatePeerCert ¶
NewCmdCreatePeerCert returns a cobra.Command to run the 'create peer-cert' subcommand.
Types ¶
type FabricOptions ¶
type FabricOptions struct { // Name of the fabric to create. Name string // Path where the certificates will be created. Path string }
FabricOptions contains everything necessary to create and run a 'createfabric' subcommand.
func (*FabricOptions) AddFlags ¶
func (o *FabricOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags to fs and binds them to options.
type PeerOptions ¶
type PeerOptions struct { // Name of the peer to create. Name string // Name of the fabric that the peer belongs to. Fabric string // Path where the certificates will be created. Path string }
PeerOptions contains everything necessary to create and run a 'create peer-cert' subcommand.
func (*PeerOptions) AddFlags ¶
func (o *PeerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags to fs and binds them to options.
func (*PeerOptions) RequiredFlags ¶
func (o *PeerOptions) RequiredFlags() []string
RequiredFlags are the names of flags that must be explicitly specified.
Click to show internal directories.
Click to hide internal directories.