peer

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPeerCmd

func NewPeerCmd(out io.Writer, errOut io.Writer) *cobra.Command

func ParseEnv added in v1.10.0

func ParseEnv(source string) (keyName, value string, err error)

ParseEnv parses the source key=val pair into its component pieces. This functionality is distinguished from strings.SplitN(source, "=", 2) since it returns an error in the case of empty keys, values, or a missing equals sign.

Types

type Options

type Options struct {
	Name                            string
	StorageClass                    string
	PeerCapacity                    string
	DbCapacity                      string
	ChaincodeCapacity               string
	NS                              string
	Image                           string
	Version                         string
	MspID                           string
	StateDB                         string
	IngressGateway                  string
	IngressPort                     int
	EnrollPW                        string
	CAName                          string
	EnrollID                        string
	Hosts                           []string
	GatewayApiName                  string
	GatewayApiNamespace             string
	GatewayApiPort                  int
	GatewayApiHosts                 []string
	HostAliases                     []string
	BootstrapPeers                  []string
	Leader                          bool
	Output                          bool
	KubernetesBuilder               bool
	ExternalChaincodeServiceBuilder bool
	CouchDBImage                    string
	CouchDBTag                      string
	CouchDBPassword                 string
	CAPort                          int
	CAHost                          string
	ImagePullSecrets                []string
	Env                             []string
}

func (Options) Validate

func (o Options) Validate() error

Jump to

Keyboard shortcuts

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