github.com/IBM-Blockchain/fabric-operator@v1.0.4/operatorconfig/config.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 operatorconfig
    20  
    21  import (
    22  	cainit "github.com/IBM-Blockchain/fabric-operator/pkg/initializer/ca"
    23  	ordererinit "github.com/IBM-Blockchain/fabric-operator/pkg/initializer/orderer"
    24  	peerinit "github.com/IBM-Blockchain/fabric-operator/pkg/initializer/peer"
    25  	"github.com/IBM-Blockchain/fabric-operator/pkg/offering"
    26  	"github.com/go-logr/logr"
    27  )
    28  
    29  type Config struct {
    30  	CAInitConfig      *cainit.Config
    31  	PeerInitConfig    *peerinit.Config
    32  	OrdererInitConfig *ordererinit.Config
    33  	ConsoleInitConfig *ConsoleConfig
    34  	Offering          offering.Type
    35  	Operator          Operator
    36  	Logger            *logr.Logger
    37  }
    38  
    39  type ConsoleConfig struct {
    40  	DeploymentFile           string
    41  	NetworkPolicyIngressFile string
    42  	NetworkPolicyDenyAllFile string
    43  	ServiceFile              string
    44  	DeployerServiceFile      string
    45  	PVCFile                  string
    46  	CMFile                   string
    47  	ConsoleCMFile            string
    48  	DeployerCMFile           string
    49  	RoleFile                 string
    50  	RoleBindingFile          string
    51  	ServiceAccountFile       string
    52  	IngressFile              string
    53  	Ingressv1beta1File       string
    54  	RouteFile                string
    55  }