Documentation ¶
Index ¶
- Constants
- func InitAppName(flags *pflag.FlagSet)
- func InitChannelID(flags *pflag.FlagSet)
- func InitClientConfigFile(flags *pflag.FlagSet)
- func InitConfig() error
- func InitConfigFile(flags *pflag.FlagSet)
- func InitConfigKey(flags *pflag.FlagSet)
- func InitConfigString(flags *pflag.FlagSet)
- func InitLoggingLevel(flags *pflag.FlagSet)
- func InitMspID(flags *pflag.FlagSet)
- func InitNoPrompt(flags *pflag.FlagSet)
- func InitOrgID(flags *pflag.FlagSet)
- func InitOutputFormat(flags *pflag.FlagSet)
- func InitPeerID(flags *pflag.FlagSet)
- func InitPeerURL(flags *pflag.FlagSet)
- func InitTimeout(flags *pflag.FlagSet)
- func InitUserName(flags *pflag.FlagSet)
- func InitUserPassword(flags *pflag.FlagSet)
- type CLIConfig
- func (c *CLIConfig) AppName() string
- func (c *CLIConfig) ChannelID() string
- func (c *CLIConfig) ConfigFile() string
- func (c *CLIConfig) ConfigKey() string
- func (c *CLIConfig) ConfigString() string
- func (c *CLIConfig) GetMspID() string
- func (c *CLIConfig) IsLoggingEnabledFor(level apilogging.Level) bool
- func (c *CLIConfig) Logger() *logging.Logger
- func (c *CLIConfig) LoggingLevel() string
- func (c *CLIConfig) NoPrompt() bool
- func (c *CLIConfig) OrgID() string
- func (c *CLIConfig) OutputFormat() string
- func (c *CLIConfig) PeerID() string
- func (c *CLIConfig) PeerURL() string
- func (c *CLIConfig) Timeout() time.Duration
- func (c *CLIConfig) UserName() string
- func (c *CLIConfig) UserPassword() string
Constants ¶
const (
// ConfigSnapID is the name/ID of the configuraton snap
ConfigSnapID = "configurationsnap"
)
Variables ¶
This section is empty.
Functions ¶
func InitAppName ¶
InitAppName initializes the application name from the provided arguments
func InitChannelID ¶
InitChannelID initializes the channel ID from the provided arguments
func InitClientConfigFile ¶
InitClientConfigFile initializes the config file path from the provided arguments
func InitConfigFile ¶
InitConfigFile initializes the org configuration file from the provided arguments
func InitConfigKey ¶
InitConfigKey initializes the config key from the provided arguments
func InitConfigString ¶
InitConfigString initializes the config string from the provided arguments
func InitLoggingLevel ¶
InitLoggingLevel initializes the logging level from the provided arguments
func InitNoPrompt ¶
InitNoPrompt initializes the "no-prompt" flag from the provided arguments
func InitOutputFormat ¶
InitOutputFormat initializes the print format from the provided arguments
func InitPeerID ¶
InitPeerID initializes the peer ID from the provided arguments
func InitPeerURL ¶
InitPeerURL initializes the peer URL from the provided arguments
func InitTimeout ¶
InitTimeout initializes the timeout from the provided arguments
func InitUserName ¶
InitUserName initializes the user name from the provided arguments
func InitUserPassword ¶
InitUserPassword initializes the user password from the provided arguments
Types ¶
type CLIConfig ¶
CLIConfig overrides certain configuration values with those supplied on the command-line
func (*CLIConfig) ConfigFile ¶
ConfigFile returns the org config file
func (*CLIConfig) ConfigString ¶
ConfigString returns the config string in JSON format
func (*CLIConfig) IsLoggingEnabledFor ¶
func (c *CLIConfig) IsLoggingEnabledFor(level apilogging.Level) bool
IsLoggingEnabledFor indicates whether the logger is enabled for the given logging level
func (*CLIConfig) LoggingLevel ¶
LoggingLevel specifies the logging level (DEBUG, INFO, WARNING, ERROR, or CRITICAL)
func (*CLIConfig) NoPrompt ¶
NoPrompt is true if the user does not want top be prompted to confirm an update or delete
func (*CLIConfig) OrgID ¶
OrgID specifies the ID of the current organization. If multiple org IDs are specified then the first one is returned.
func (*CLIConfig) OutputFormat ¶
OutputFormat returns the print (output) format for a block
func (*CLIConfig) PeerURL ¶
PeerURL returns a comma-separated list of peers in the format host1:port1,host2:port2,...
func (*CLIConfig) UserPassword ¶
UserPassword is the password to use when enrolling a user