github.com/IBM-Blockchain/fabric-operator@v1.0.4/pkg/apis/orderer/v2/orderer.go (about) 1 /* 2 * Copyright contributors to the Hyperledger Fabric Operator project 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * Licensed under the Apache License, Version 2.0 (the "License"); 7 * you may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at: 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an "AS IS" BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 */ 18 19 package v2 20 21 import ( 22 commonapi "github.com/IBM-Blockchain/fabric-operator/pkg/apis/common" 23 v1 "github.com/IBM-Blockchain/fabric-operator/pkg/apis/orderer/v1" 24 ) 25 26 type Orderer struct { 27 General General `json:"general,omitempty"` 28 FileLedger v1.FileLedger `json:"fileLedger,omitempty"` 29 Debug v1.Debug `json:"debug,omitempty"` 30 Consensus interface{} `json:"consensus,omitempty"` 31 Operations v1.Operations `json:"operations,omitempty"` 32 Metrics v1.Metrics `json:"metrics,omitempty"` 33 } 34 35 type General struct { 36 ListenAddress string `json:"listenAddress,omitempty"` 37 ListenPort uint16 `json:"listenPort,omitempty"` 38 TLS v1.TLS `json:"tls,omitempty"` 39 Cluster v1.Cluster `json:"cluster,omitempty"` 40 Keepalive v1.Keepalive `json:"keepalive,omitempty"` 41 ConnectionTimeout commonapi.Duration `json:"connectionTimeout,omitempty"` 42 GenesisFile string `json:"genesisFile,omitempty"` // For compatibility only, will be replaced by BootstrapFile 43 BootstrapFile string `json:"bootstrapFile,omitempty"` 44 BootstrapMethod string `json:"bootstrapMethod,omitempty"` 45 Profile v1.Profile `json:"profile,omitempty"` 46 LocalMSPDir string `json:"localMspDir,omitempty"` 47 LocalMSPID string `json:"localMspId,omitempty"` 48 BCCSP *commonapi.BCCSP `json:"BCCSP,omitempty"` 49 Authentication v1.Authentication `json:"authentication,omitempty"` 50 }