user

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	MSP MSPConfig `yaml:"msp"`
	TLS TLSConfig `yaml:"tls"`
}

Config is the user identity and client-TLS material read from the user configuration YAML. For reconfiguration the identity must be an admin recognized by the orderer's channel policies.

func LoadConfig

func LoadConfig(path string) (*Config, error)

LoadConfig reads and validates the user configuration YAML at path.

type MSPConfig

type MSPConfig struct {
	LocalMspID  string `yaml:"localMspID"`
	LocalMspDir string `yaml:"localMspDir"`
}

MSPConfig identifies the local MSP used to sign the seek requests.

type TLSConfig

type TLSConfig struct {
	Enabled    *bool  `yaml:"enabled"`
	ClientCert string `yaml:"clientCert"`
	ClientKey  string `yaml:"clientKey"`
}

TLSConfig holds the client-side TLS material. When Enabled is true the client dials the router and assembler over TLS; ClientCert and ClientKey enable mutual TLS.

func (*TLSConfig) IsEnabled

func (c *TLSConfig) IsEnabled() bool

IsEnabled reports whether TLS is enabled. A nil TLSConfig or an unset Enabled flag defaults to false.

Jump to

Keyboard shortcuts

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