hlfprofile

package
v0.0.0-...-7107d2d Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 3 Imported by: 0

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

Jump to

Keyboard shortcuts

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