Documentation ¶
Index ¶
- Constants
- func RunMain(args []string) error
- type ClientCmd
- func (c *ClientCmd) ConfigInit() error
- func (c *ClientCmd) Execute() error
- func (c *ClientCmd) GetCfgFileName() string
- func (c *ClientCmd) GetClientCfg() *lib.ClientConfig
- func (c *ClientCmd) GetHomeDirectory() string
- func (c *ClientCmd) GetViper() *viper.Viper
- func (c *ClientCmd) LoadMyIdentity() (*lib.Identity, error)
- func (c *ClientCmd) SetDefaultLogLevel(logLevel string)
- type Command
Constants ¶
View Source
const ( // GetCAInfoCmdUsage is the usage text for getCACert command GetCAInfoCmdUsage = "getcainfo -u http://serverAddr:serverPort -M <MSP-directory>" // GetCAInfoCmdShortDesc is the short description for getCACert command GetCAInfoCmdShortDesc = "Get CA certificate chain and Idemix public key" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClientCmd ¶
type ClientCmd struct {
// contains filtered or unexported fields
}
ClientCmd encapsulates cobra command that provides command line interface for the Fabric CA client and the configuration used by the Fabric CA client
func NewCommand ¶
NewCommand returns new ClientCmd ready for running
func (*ClientCmd) ConfigInit ¶
ConfigInit initializes the configuration for the fabric-ca-client command
func (*ClientCmd) GetCfgFileName ¶
GetCfgFileName returns name of the client command configuration file
func (*ClientCmd) GetClientCfg ¶
func (c *ClientCmd) GetClientCfg() *lib.ClientConfig
GetClientCfg returns client configuration
func (*ClientCmd) GetHomeDirectory ¶
GetHomeDirectory returns the client's home directory
func (*ClientCmd) LoadMyIdentity ¶
LoadMyIdentity loads the client's identity
func (*ClientCmd) SetDefaultLogLevel ¶ added in v1.4.0
SetDefaultLogLevel sets the default log level for a command to a specific level
type Command ¶
type Command interface { // Initializes the client command configuration ConfigInit() error // Returns the name of the configuration file GetCfgFileName() string // Loads the credentials of an identity that are in the msp directory specified to this command LoadMyIdentity() (*lib.Identity, error) // Returns lib.ClientCfg instance associated with this comamnd GetClientCfg() *lib.ClientConfig // Returns viper instance associated with this comamnd GetViper() *viper.Viper // Returns the client's home directoty GetHomeDirectory() string // Set the default level to be something other than 'info' SetDefaultLogLevel(string) }
Command interface initializes client command and loads an identity
Source Files ¶
Click to show internal directories.
Click to hide internal directories.