fabric-sdk-go: github.com/hyperledger/fabric-sdk-go/pkg/fab/resource/genesisconfig Index | Files

package genesisconfig

import "github.com/hyperledger/fabric-sdk-go/pkg/fab/resource/genesisconfig"

Index

Package Files

config.go

type AnchorPeer Uses

type AnchorPeer struct {
    Host string `yaml:"Host"`
    Port int    `yaml:"Port"`
}

AnchorPeer encodes the necessary fields to identify an anchor peer.

type Application Uses

type Application struct {
    Organizations []*Organization    `yaml:"Organizations"`
    Capabilities  map[string]bool    `yaml:"Capabilities"`
    Resources     *Resources         `yaml:"Resources"`
    Policies      map[string]*Policy `yaml:"Policies"`
    ACLs          map[string]string  `yaml:"ACLs"`
}

Application encodes the application-level configuration needed in config transactions.

type BatchSize Uses

type BatchSize struct {
    MaxMessageCount   uint32 `yaml:"MaxMessageCount"`
    AbsoluteMaxBytes  uint32 `yaml:"AbsoluteMaxBytes"`
    PreferredMaxBytes uint32 `yaml:"PreferredMaxBytes"`
}

BatchSize contains configuration affecting the size of batches.

type Consortium Uses

type Consortium struct {
    Organizations []*Organization `yaml:"Organizations"`
}

Consortium represents a group of organizations which may create channels with each other

type Kafka Uses

type Kafka struct {
    Brokers []string `yaml:"Brokers"`
}

Kafka contains configuration for the Kafka-based orderer.

type Orderer Uses

type Orderer struct {
    OrdererType   string                   `yaml:"OrdererType"`
    Addresses     []string                 `yaml:"Addresses"`
    BatchTimeout  time.Duration            `yaml:"BatchTimeout"`
    BatchSize     BatchSize                `yaml:"BatchSize"`
    Kafka         Kafka                    `yaml:"Kafka"`
    EtcdRaft      *etcdraft.ConfigMetadata `yaml:"EtcdRaft"`
    Organizations []*Organization          `yaml:"Organizations"`
    MaxChannels   uint64                   `yaml:"MaxChannels"`
    Capabilities  map[string]bool          `yaml:"Capabilities"`
    Policies      map[string]*Policy       `yaml:"Policies"`
}

Orderer contains configuration which is used for the bootstrapping of an orderer by the provisional bootstrapper.

type Organization Uses

type Organization struct {
    Name     string             `yaml:"Name"`
    ID       string             `yaml:"ID"`
    MSPDir   string             `yaml:"MSPDir"`
    MSPType  string             `yaml:"MSPType"`
    Policies map[string]*Policy `yaml:"Policies"`

    // Note: Viper deserialization does not seem to care for
    // embedding of types, so we use one organization struct
    // for both orderers and applications.
    AnchorPeers []*AnchorPeer `yaml:"AnchorPeers"`

    // AdminPrincipal is deprecated and may be removed in a future release
    // it was used for modifying the default policy generation, but policies
    // may now be specified explicitly so it is redundant and unnecessary
    AdminPrincipal string `yaml:"AdminPrincipal"`

    // SkipAsForeign indicates that this org definition is actually unknown to this
    // instance of the tool, so, parsing of this org's parameters should be ignored.
    SkipAsForeign bool
}

Organization encodes the organization-level configuration needed in config transactions.

type Policy Uses

type Policy struct {
    Type string `yaml:"Type"`
    Rule string `yaml:"Rule"`
}

Policy encodes a channel config policy

type Profile Uses

type Profile struct {
    Consortium   string                 `yaml:"Consortium"`
    Application  *Application           `yaml:"Application"`
    Orderer      *Orderer               `yaml:"Orderer"`
    Consortiums  map[string]*Consortium `yaml:"Consortiums"`
    Capabilities map[string]bool        `yaml:"Capabilities"`
    Policies     map[string]*Policy     `yaml:"Policies"`
}

Profile encodes orderer/application configuration combinations

type Resources Uses

type Resources struct {
    DefaultModPolicy string
}

Resources encodes the application-level resources configuration needed to seed the resource tree

Package genesisconfig imports 2 packages (graph) and is imported by 1 packages. Updated 2019-09-16. Refresh now. Tools for package owners.