Documentation ¶
Index ¶
- Constants
- func InitAppName(flags *pflag.FlagSet)
- func InitAppVer(flags *pflag.FlagSet)
- func InitCSRCommonName(flags *pflag.FlagSet)
- func InitChannelID(flags *pflag.FlagSet)
- func InitClientConfigFile(flags *pflag.FlagSet)
- func InitComponentName(flags *pflag.FlagSet)
- func InitComponentVer(flags *pflag.FlagSet)
- func InitConfig() error
- func InitConfigFile(flags *pflag.FlagSet)
- func InitConfigKey(flags *pflag.FlagSet)
- func InitConfigString(flags *pflag.FlagSet)
- func InitEphemeralFlag(flags *pflag.FlagSet)
- func InitKeyType(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 InitSigAlg(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) AppVer() string
- func (c *CLIConfig) CSRCommonName() string
- func (c *CLIConfig) ChannelID() string
- func (c *CLIConfig) ClientConfigFile() string
- func (c *CLIConfig) ComponentName() string
- func (c *CLIConfig) ComponentVer() string
- func (c *CLIConfig) ConfigFile() string
- func (c *CLIConfig) ConfigKey() string
- func (c *CLIConfig) ConfigString() string
- func (c *CLIConfig) EphemeralFlag() string
- func (c *CLIConfig) GetMspID() string
- func (c *CLIConfig) IsLoggingEnabledFor(level logging.Level) bool
- func (c *CLIConfig) KeyType() string
- 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) Peers() []string
- func (c *CLIConfig) SigAlg() string
- func (c *CLIConfig) Timeout(conn fabApi.TimeoutType) time.Duration
- func (c *CLIConfig) UserName() string
- func (c *CLIConfig) UserPassword() string
Constants ¶
const (
// ConfigSnapID is the name/ID of the configuration snap
ConfigSnapID = "configurationsnap"
)
Variables ¶
This section is empty.
Functions ¶
func InitAppName ¶
InitAppName initializes the application name from the provided arguments
func InitAppVer ¶ added in v0.2.0
InitAppVer initializes the app ver from the provided arguments
func InitCSRCommonName ¶ added in v0.1.9
InitCSRCommonName initializes the CSR common name field
func InitChannelID ¶
InitChannelID initializes the channel ID from the provided arguments
func InitClientConfigFile ¶
InitClientConfigFile initializes the config file path from the provided arguments
func InitComponentName ¶ added in v0.2.0
InitComponentName initializes the component name from the provided arguments
func InitComponentVer ¶ added in v0.2.0
InitComponentVer initializes the component ver 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 InitEphemeralFlag ¶ added in v0.1.6
InitEphemeralFlag initializes the ephemeral flag from the provided arguments
func InitKeyType ¶ added in v0.1.6
InitKeyType initializes the KeyType 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 InitSigAlg ¶ added in v0.1.6
InitSigAlg initializes the signature algorithm 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 ¶
type CLIConfig struct { fabApi.EndpointConfig mspApi.IdentityConfig core.CryptoSuiteConfig // contains filtered or unexported fields }
CLIConfig overrides certain configuration values with those supplied on the command-line
func (*CLIConfig) AppVer ¶ added in v0.2.0
AppVer returns an app ver (used in the config query command)
func (*CLIConfig) CSRCommonName ¶ added in v0.1.9
CSRCommonName returns CSR common name (used in the config generteCSR command)
func (*CLIConfig) ClientConfigFile ¶ added in v0.2.0
ClientConfigFile returns the org config file
func (*CLIConfig) ComponentName ¶ added in v0.2.0
ComponentName returns an component name (used in the config query command)
func (*CLIConfig) ComponentVer ¶ added in v0.2.0
ComponentVer returns an component ver (used in the config query command)
func (*CLIConfig) ConfigFile ¶
ConfigFile returns the org config file
func (*CLIConfig) ConfigString ¶
ConfigString returns the config string in JSON format
func (*CLIConfig) EphemeralFlag ¶ added in v0.1.6
EphemeralFlag returns an ephemeral flag (used in the config generteCSR command)
func (*CLIConfig) IsLoggingEnabledFor ¶
IsLoggingEnabledFor indicates whether the logger is enabled for the given logging level
func (*CLIConfig) KeyType ¶ added in v0.1.6
KeyType returns an KeyType name (used in the config generteCSR command)
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) SigAlg ¶ added in v0.1.6
SigAlg returns an signature algorithm (used in the config generteCSR command)
func (*CLIConfig) Timeout ¶
func (c *CLIConfig) Timeout(conn fabApi.TimeoutType) time.Duration
Timeout returns the timeout (in milliseconds) for various operations
func (*CLIConfig) UserPassword ¶
UserPassword is the password to use when enrolling a user