Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnProfile ¶
type ConnProfile struct { // Client is a struct with info about client Client struct { // Org is a name of organization Org string `yaml:"organization"` // CredentialStore is a struct with info about credential store CredentialStore struct { // Path is a path to credential store Path string `yaml:"path"` // CryptoStore is a struct with info about crypto store CryptoStore struct { // Path is a path to crypto store Path string `yaml:"path"` } `yaml:"cryptoStore"` } `yaml:"credentialStore"` } `yaml:"client"` // Organizations is a map with info about organizations Organizations map[string]struct { // Mspid is a mspid of organization Mspid string `yaml:"mspid"` } `yaml:"organizations"` }
ConnProfile is a struct with info about connection profile
type HlfProfile ¶
type HlfProfile struct { // OrgName is a name of organization OrgName string // MsPID is a mspid of organization MspID string // CredentialStorePath is a path to credential store CredentialStorePath string // CryptoStorePath is a path to crypto store CryptoStorePath string }
HlfProfile is a struct with info about hlf profile
func ParseProfile ¶
func ParseProfile(profilePath string) (*HlfProfile, error)
ParseProfile parses hlf profile from path
Click to show internal directories.
Click to hide internal directories.