bvmcom

package
v1.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CAMode

type CAMode int

CAMode define supported ca mode.

const (
	// Nil default zero value for CAMode.
	Nil CAMode = iota // nil value
	// Center means center ca mode.
	Center // certer ca
	// Distributed means distributed ca mode.
	Distributed // distributed ca
	// None means none ca mode.
	None // none ca
)

func ConvertCAMode

func ConvertCAMode(mode string) (CAMode, error)

ConvertCAMode convert string mode to CAMode. if mode is valid, return CAMode and nil; if mode is invalid, return 0 and error.

func GetCAMode

func GetCAMode(mode int) (CAMode, error)

GetCAMode get ca mode with given int mode. if mode is valid, return CAMode and nil; if mode is invalid, return 0 and error.

func (CAMode) String

func (cm CAMode) String() string

type FileInfo

type FileInfo struct {
	Path    string
	Content []byte
}

FileInfo define file info filed.

type GenesisInfo

type GenesisInfo struct {
	GenesisAccount map[string]string `json:"genesisAccount,omitempty"`
	GenesisNodes   interface{}       `json:"genesisNodes,omitempty"`
	GenesisCAMode  string            `json:"genesisCAMode,omitempty"`
	GenesisRootCA  []string          `json:"genesisRootCA,omitempty"`
}

GenesisInfo define the filed in genesis info.

Jump to

Keyboard shortcuts

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