model

package
v0.0.0-...-4665a1d Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainDomain

type ChainDomain struct {
	NodeIps   []string          `json:"nodeIps"`
	NodePorts map[string]string `json:"nodePorts"`
}

type ChainPod

type ChainPod struct {
	Status     string `json:"status"`
	CreateTime string `json:"createTime"`
	Name       string `json:"name"`
	Port       int32  `json:"port"`
	HostIP     string `json:"hostIP"`
	Type       string `json:"type"`
	Cpu        string `json:"cpu"`
	Memory     string `json:"memory"`
}

type FabricChain

type FabricChain struct {
	ChainName   string   `json:"chainName"`
	Account     string   `json:"account"`     //用户帐号
	Consensus   string   `json:"consensus"`   //共识
	PeersOrgs   []string `json:"peersOrgs"`   //参与组织 除了orderer
	OrderCount  int      `json:"orderCount"`  //orderer节点个数
	PeerCount   int      `json:"peerCount"`   //每个组织节点个数
	ChannelName string   `json:"channelName"` //channel 名
	TlsEnabled  string   `json:"tlsEnabled"`  //是否开启tls  true or false
}

func (FabricChain) GetHostDomain

func (f FabricChain) GetHostDomain(org string) string

type FabricChannel

type FabricChannel struct {
	FabricChain
	ChaincodeId    string   `json:"chaincodeId"`
	ChaincodePath  string   `json:"chaincodePath"`
	ChaincodeBytes []byte   `json:"chaincodeBytes"`
	Version        string   `json:"version"`
	Policy         string   `json:"policy"`
	Args           [][]byte `json:"args"`
}

func (FabricChannel) GetChain

func (f FabricChannel) GetChain() FabricChain

type K8sData

type K8sData struct {
	Data [][]byte `json:"data"`
}

type Resources

type Resources struct {
	Node   string  `json:"node"`
	CPU    float64 `json:"cpu"`
	Memory int     `json:"memory"`
}

Jump to

Keyboard shortcuts

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