tools

package
v0.0.0-...-3986ddd Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2019 License: Apache-2.0 Imports: 24 Imported by: 1

Documentation

Overview

copyright IBM Corp. All Rights Reserved.

SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	OrdererOrgs []OrgSpec `yaml:"OrdererOrgs"`
	PeerOrgs    []OrgSpec `yaml:"PeerOrgs"`
}

type Configtxgen

type Configtxgen struct {
	// contains filtered or unexported fields
}

func NewConfigtxgen

func NewConfigtxgen() *Configtxgen

func (*Configtxgen) Exec

func (c *Configtxgen) Exec()

func (*Configtxgen) SetAsOrg

func (c *Configtxgen) SetAsOrg(asOrg string)

func (*Configtxgen) SetChannelCreateTxBaseProfile

func (c *Configtxgen) SetChannelCreateTxBaseProfile(channelCreateTxBaseProfile string)

func (*Configtxgen) SetChannelID

func (c *Configtxgen) SetChannelID(channelID string)

func (*Configtxgen) SetConfigPath

func (c *Configtxgen) SetConfigPath(configPath string)

func (*Configtxgen) SetInspectBlock

func (c *Configtxgen) SetInspectBlock(inspectBlock string)

func (*Configtxgen) SetInspectChannelCreateTx

func (c *Configtxgen) SetInspectChannelCreateTx(inspectChannelCreateTx string)

func (*Configtxgen) SetOutputAnchorPeersUpdate

func (c *Configtxgen) SetOutputAnchorPeersUpdate(outputAnchorPeersUpdate string)

func (*Configtxgen) SetOutputBlock

func (c *Configtxgen) SetOutputBlock(outputBlock string)

func (*Configtxgen) SetOutputChannelCreateTx

func (c *Configtxgen) SetOutputChannelCreateTx(outputChannelCreateTx string)

func (*Configtxgen) SetPrintOrg

func (c *Configtxgen) SetPrintOrg(printOrg string)

func (*Configtxgen) SetProfile

func (c *Configtxgen) SetProfile(profile string)

type Cryptogen

type Cryptogen struct {
	// contains filtered or unexported fields
}

func NewCryptogen

func NewCryptogen(config, dir string) *Cryptogen

func (*Cryptogen) Exec

func (c *Cryptogen) Exec(command string)

type HostnameData

type HostnameData struct {
	Prefix string
	Index  int
	Domain string
}

type NodeSpec

type NodeSpec struct {
	Hostname           string   `yaml:"Hostname"`
	CommonName         string   `yaml:"CommonName"`
	Country            string   `yaml:"Country"`
	Province           string   `yaml:"Province"`
	Locality           string   `yaml:"Locality"`
	OrganizationalUnit string   `yaml:"OrganizationalUnit"`
	StreetAddress      string   `yaml:"StreetAddress"`
	PostalCode         string   `yaml:"PostalCode"`
	SANS               []string `yaml:"SANS"`
}

type NodeTemplate

type NodeTemplate struct {
	Count    int      `yaml:"Count"`
	Start    int      `yaml:"Start"`
	Hostname string   `yaml:"Hostname"`
	SANS     []string `yaml:"SANS"`
}

type OrgSpec

type OrgSpec struct {
	Name          string       `yaml:"Name"`
	Domain        string       `yaml:"Domain"`
	EnableNodeOUs bool         `yaml:"EnableNodeOUs"`
	CA            NodeSpec     `yaml:"CA"`
	Template      NodeTemplate `yaml:"Template"`
	Specs         []NodeSpec   `yaml:"Specs"`
	Users         UsersSpec    `yaml:"Users"`
}

type SpecData

type SpecData struct {
	Hostname   string
	Domain     string
	CommonName string
}

type UsersSpec

type UsersSpec struct {
	Count int `yaml:"Count"`
}

Jump to

Keyboard shortcuts

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