config

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMSPIDEmpty   = errors.New(`MSP ID is empty`)
	ErrMSPPathEmpty = errors.New(`MSP path is empty`)

	ErrMSPSignCertPathEmpty = errors.New(`MSP signcert path is empty`)
	ErrMSPSignKeyPathEmpty  = errors.New(`MSP signkey path is empty`)

	ErrMSPSignCertEmpty = errors.New(`MSP signcert is empty`)
	ErrMSPSignKeyEmpty  = errors.New(`MSP signkey is empty`)

	ErrSignerNotFound = errors.New(`signer not found`)
)

Functions

This section is empty.

Types

type MSP

type MSP struct {
	ID   string `yaml:"id"`
	Path string `yaml:"path"`

	// SignCertPath and SignKeyPath take precedence over Path. If they are present, Path will be ignored
	SignCertPath string `yaml:"signcert_path"`
	SignKeyPath  string `yaml:"signkey_path"`

	// if SignCert and SignKey are present, Path, SignCertPath and SignKeyPath will be ignored
	SignCert []byte `yaml:"signcert"`
	SignKey  []byte `yaml:"signkey"`
}

func (MSP) MSP

func (m MSP) MSP(opts ...identity.MSPOpt) (identity.MSP, error)

func (MSP) MustSigner

func (m MSP) MustSigner() api.Identity

func (MSP) Signer

func (m MSP) Signer() (api.Identity, error)

Jump to

Keyboard shortcuts

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