github.com/adnan-c/fabric_e2e_couchdb@v0.6.1-preview.0.20170228180935-21ce6b23cf91/protos/peer/query.proto (about)

     1  /*
     2  Copyright IBM Corp. 2017 All Rights Reserved.
     3  
     4  Licensed under the Apache License, Version 2.0 (the "License");
     5  you may not use this file except in compliance with the License.
     6  You may obtain a copy of the License at
     7  
     8                   http://www.apache.org/licenses/LICENSE-2.0
     9  
    10  Unless required by applicable law or agreed to in writing, software
    11  distributed under the License is distributed on an "AS IS" BASIS,
    12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  See the License for the specific language governing permissions and
    14  limitations under the License.
    15  */
    16  
    17  syntax = "proto3";
    18  
    19  option go_package = "github.com/hyperledger/fabric/protos/peer";
    20  
    21  package protos;
    22  
    23  // ChaincodeQueryResponse returns information about each chaincode that pertains
    24  // to a query in lccc.go, such as GetChaincodes (returns all chaincodes
    25  // instantiated on a channel), and GetInstalledChaincodes (returns all chaincodes
    26  // installed on a peer)
    27  message ChaincodeQueryResponse {
    28    repeated ChaincodeInfo chaincodes = 1;
    29  }
    30  
    31  // ChaincodeInfo contains general information about an installed/instantiated
    32  // chaincode
    33  message ChaincodeInfo {
    34    string name = 1;
    35    string version = 2;
    36    // the path as specified by the install/instantiate transaction
    37    string path = 3;
    38    // the chaincode function upon instantiation and its arguments. This will be
    39    // blank if the query is returning information about installed chaincodes.
    40    string input = 4;
    41    // the name of the ESCC for this chaincode. This will be
    42    // blank if the query is returning information about installed chaincodes.
    43    string escc = 5;
    44    // the name of the VSCC for this chaincode. This will be
    45    // blank if the query is returning information about installed chaincodes.
    46    string vscc = 6;
    47  }
    48  
    49  // ChannelQueryResponse returns information about each channel that pertains
    50  // to a query in lccc.go, such as GetChannels (returns all channels for a
    51  // given peer)
    52  message ChannelQueryResponse {
    53    repeated ChannelInfo channels = 1;
    54  }
    55  
    56  // ChannelInfo contains general information about channels
    57  message ChannelInfo {
    58    string channel_id = 1;
    59  }