github.com/jlmucb/cloudproxy@v0.0.0-20170830161738-b5aa0b619bc4/go/apps/newfileproxy/common/services_rpc.pb.go (about)

     1  // Code generated by protoc-gen-go.
     2  // source: services_rpc.proto
     3  // DO NOT EDIT!
     4  
     5  /*
     6  Package common is a generated protocol buffer package.
     7  
     8  It is generated from these files:
     9  	services_rpc.proto
    10  
    11  It has these top-level messages:
    12  	FileproxyMessage
    13  	UserKeyDataMessage
    14  	UserKeysMessage
    15  */
    16  package common
    17  
    18  import proto "github.com/golang/protobuf/proto"
    19  import fmt "fmt"
    20  import math "math"
    21  
    22  // Reference imports to suppress errors if they are not otherwise used.
    23  var _ = proto.Marshal
    24  var _ = fmt.Errorf
    25  var _ = math.Inf
    26  
    27  // This is a compile-time assertion to ensure that this generated file
    28  // is compatible with the proto package it is being compiled against.
    29  // A compilation error at this line likely means your copy of the
    30  // proto package needs to be updated.
    31  const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
    32  
    33  type ServiceType int32
    34  
    35  const (
    36  	ServiceType_REQUEST_CHALLENGE  ServiceType = 1
    37  	ServiceType_CHALLENGE_RESPONSE ServiceType = 2
    38  	ServiceType_SIGNED_CHALLENGE   ServiceType = 3
    39  	ServiceType_CREATE             ServiceType = 4
    40  	ServiceType_DELETE             ServiceType = 5
    41  	ServiceType_ADDREADER          ServiceType = 6
    42  	ServiceType_ADDOWNER           ServiceType = 7
    43  	ServiceType_ADDWRITER          ServiceType = 8
    44  	ServiceType_DELETEREADER       ServiceType = 9
    45  	ServiceType_DELETEOWNER        ServiceType = 10
    46  	ServiceType_DELETEWRITER       ServiceType = 11
    47  	ServiceType_READ               ServiceType = 12
    48  	ServiceType_WRITE              ServiceType = 13
    49  	ServiceType_SAVESTATE          ServiceType = 14
    50  	ServiceType_NONE               ServiceType = 15
    51  )
    52  
    53  var ServiceType_name = map[int32]string{
    54  	1:  "REQUEST_CHALLENGE",
    55  	2:  "CHALLENGE_RESPONSE",
    56  	3:  "SIGNED_CHALLENGE",
    57  	4:  "CREATE",
    58  	5:  "DELETE",
    59  	6:  "ADDREADER",
    60  	7:  "ADDOWNER",
    61  	8:  "ADDWRITER",
    62  	9:  "DELETEREADER",
    63  	10: "DELETEOWNER",
    64  	11: "DELETEWRITER",
    65  	12: "READ",
    66  	13: "WRITE",
    67  	14: "SAVESTATE",
    68  	15: "NONE",
    69  }
    70  var ServiceType_value = map[string]int32{
    71  	"REQUEST_CHALLENGE":  1,
    72  	"CHALLENGE_RESPONSE": 2,
    73  	"SIGNED_CHALLENGE":   3,
    74  	"CREATE":             4,
    75  	"DELETE":             5,
    76  	"ADDREADER":          6,
    77  	"ADDOWNER":           7,
    78  	"ADDWRITER":          8,
    79  	"DELETEREADER":       9,
    80  	"DELETEOWNER":        10,
    81  	"DELETEWRITER":       11,
    82  	"READ":               12,
    83  	"WRITE":              13,
    84  	"SAVESTATE":          14,
    85  	"NONE":               15,
    86  }
    87  
    88  func (x ServiceType) Enum() *ServiceType {
    89  	p := new(ServiceType)
    90  	*p = x
    91  	return p
    92  }
    93  func (x ServiceType) String() string {
    94  	return proto.EnumName(ServiceType_name, int32(x))
    95  }
    96  func (x *ServiceType) UnmarshalJSON(data []byte) error {
    97  	value, err := proto.UnmarshalJSONEnum(ServiceType_value, data, "ServiceType")
    98  	if err != nil {
    99  		return err
   100  	}
   101  	*x = ServiceType(value)
   102  	return nil
   103  }
   104  func (ServiceType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
   105  
   106  // A FileproxyMessage is a message sent between fileproxy programs
   107  // as the data payload of a taosupport SimpleMessage.
   108  type FileproxyMessage struct {
   109  	TypeOfService *ServiceType `protobuf:"varint,1,req,name=type_of_service,json=typeOfService,enum=common.ServiceType" json:"type_of_service,omitempty"`
   110  	Err           *string      `protobuf:"bytes,2,opt,name=err" json:"err,omitempty"`
   111  	// For READ and WRITE, this is the total number of buffers constituting file.
   112  	NumTotalBuffers *int32 `protobuf:"varint,3,opt,name=num_total_buffers,json=numTotalBuffers" json:"num_total_buffers,omitempty"`
   113  	// For READ and WRITE, this is the sequence number of this buffer.
   114  	CurrentBuffer *int32 `protobuf:"varint,4,opt,name=current_buffer,json=currentBuffer" json:"current_buffer,omitempty"`
   115  	// Arguments apply to the following calls and are call dependent.
   116  	// For CREATE, resourcename, type ("file" or "directory")
   117  	// For DELETE, resource name
   118  	// For READ, resource name
   119  	// For WRITE, resource name
   120  	// For ADDREADER, resource name
   121  	// For ADDOWNER, resource name
   122  	// For ADDWRITER, resource name
   123  	// For DELETEREADER, resource name
   124  	// For DELETEOWNER, resource name
   125  	// For DELETEWRITER, resource name
   126  	Arguments []string `protobuf:"bytes,5,rep,name=arguments" json:"arguments,omitempty"`
   127  	// data is message specific
   128  	// For REQUEST_CHALLENGE, no data or arguments.
   129  	// For CHALLENGE, there should be one data blob which is the user x509 cert.
   130  	// For SIGNED_CHALLENGE, there should be two data blobs: a x509 cert and the signed nonce.
   131  	// For CREATE, list of compound certs
   132  	// For ADDREADER, list of compound certs
   133  	// For ADDOWNER, list of compound certs
   134  	// For ADDWRITER, list of compound certs
   135  	Data             [][]byte `protobuf:"bytes,6,rep,name=data" json:"data,omitempty"`
   136  	XXX_unrecognized []byte   `json:"-"`
   137  }
   138  
   139  func (m *FileproxyMessage) Reset()                    { *m = FileproxyMessage{} }
   140  func (m *FileproxyMessage) String() string            { return proto.CompactTextString(m) }
   141  func (*FileproxyMessage) ProtoMessage()               {}
   142  func (*FileproxyMessage) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
   143  
   144  func (m *FileproxyMessage) GetTypeOfService() ServiceType {
   145  	if m != nil && m.TypeOfService != nil {
   146  		return *m.TypeOfService
   147  	}
   148  	return ServiceType_REQUEST_CHALLENGE
   149  }
   150  
   151  func (m *FileproxyMessage) GetErr() string {
   152  	if m != nil && m.Err != nil {
   153  		return *m.Err
   154  	}
   155  	return ""
   156  }
   157  
   158  func (m *FileproxyMessage) GetNumTotalBuffers() int32 {
   159  	if m != nil && m.NumTotalBuffers != nil {
   160  		return *m.NumTotalBuffers
   161  	}
   162  	return 0
   163  }
   164  
   165  func (m *FileproxyMessage) GetCurrentBuffer() int32 {
   166  	if m != nil && m.CurrentBuffer != nil {
   167  		return *m.CurrentBuffer
   168  	}
   169  	return 0
   170  }
   171  
   172  func (m *FileproxyMessage) GetArguments() []string {
   173  	if m != nil {
   174  		return m.Arguments
   175  	}
   176  	return nil
   177  }
   178  
   179  func (m *FileproxyMessage) GetData() [][]byte {
   180  	if m != nil {
   181  		return m.Data
   182  	}
   183  	return nil
   184  }
   185  
   186  type UserKeyDataMessage struct {
   187  	Cert             []byte `protobuf:"bytes,1,opt,name=cert" json:"cert,omitempty"`
   188  	DerKey           []byte `protobuf:"bytes,2,opt,name=der_key,json=derKey" json:"der_key,omitempty"`
   189  	XXX_unrecognized []byte `json:"-"`
   190  }
   191  
   192  func (m *UserKeyDataMessage) Reset()                    { *m = UserKeyDataMessage{} }
   193  func (m *UserKeyDataMessage) String() string            { return proto.CompactTextString(m) }
   194  func (*UserKeyDataMessage) ProtoMessage()               {}
   195  func (*UserKeyDataMessage) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
   196  
   197  func (m *UserKeyDataMessage) GetCert() []byte {
   198  	if m != nil {
   199  		return m.Cert
   200  	}
   201  	return nil
   202  }
   203  
   204  func (m *UserKeyDataMessage) GetDerKey() []byte {
   205  	if m != nil {
   206  		return m.DerKey
   207  	}
   208  	return nil
   209  }
   210  
   211  // User keys
   212  type UserKeysMessage struct {
   213  	SerializedKeys   [][]byte `protobuf:"bytes,1,rep,name=serialized_keys,json=serializedKeys" json:"serialized_keys,omitempty"`
   214  	XXX_unrecognized []byte   `json:"-"`
   215  }
   216  
   217  func (m *UserKeysMessage) Reset()                    { *m = UserKeysMessage{} }
   218  func (m *UserKeysMessage) String() string            { return proto.CompactTextString(m) }
   219  func (*UserKeysMessage) ProtoMessage()               {}
   220  func (*UserKeysMessage) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
   221  
   222  func (m *UserKeysMessage) GetSerializedKeys() [][]byte {
   223  	if m != nil {
   224  		return m.SerializedKeys
   225  	}
   226  	return nil
   227  }
   228  
   229  func init() {
   230  	proto.RegisterType((*FileproxyMessage)(nil), "common.FileproxyMessage")
   231  	proto.RegisterType((*UserKeyDataMessage)(nil), "common.UserKeyDataMessage")
   232  	proto.RegisterType((*UserKeysMessage)(nil), "common.UserKeysMessage")
   233  	proto.RegisterEnum("common.ServiceType", ServiceType_name, ServiceType_value)
   234  }
   235  
   236  func init() { proto.RegisterFile("services_rpc.proto", fileDescriptor0) }
   237  
   238  var fileDescriptor0 = []byte{
   239  	// 431 bytes of a gzipped FileDescriptorProto
   240  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x4c, 0x91, 0x4d, 0x6f, 0xd3, 0x40,
   241  	0x10, 0x86, 0xe5, 0x7c, 0xb8, 0xf1, 0xc4, 0x89, 0xb7, 0xc3, 0x97, 0x0f, 0x1c, 0xa2, 0x48, 0x88,
   242  	0xaa, 0x87, 0x1c, 0x38, 0xc2, 0xc9, 0xd4, 0x4b, 0xa9, 0x08, 0x0e, 0xac, 0x5d, 0x7a, 0xb4, 0x8c,
   243  	0xb3, 0xa9, 0x22, 0x92, 0x38, 0xda, 0x75, 0x10, 0xe1, 0x07, 0xf3, 0x1f, 0xb8, 0x31, 0x6b, 0x6f,
   244  	0x49, 0x6f, 0x33, 0xcf, 0x3c, 0xef, 0x6c, 0x26, 0x06, 0xd4, 0x52, 0xfd, 0x5c, 0x97, 0x52, 0xe7,
   245  	0x6a, 0x5f, 0xce, 0xf6, 0xaa, 0xaa, 0x2b, 0x74, 0xcb, 0x6a, 0xbb, 0xad, 0x76, 0xd3, 0x3f, 0x0e,
   246  	0xb0, 0x0f, 0xeb, 0x8d, 0x24, 0xfa, 0xeb, 0xf8, 0x59, 0x6a, 0x5d, 0xdc, 0x4b, 0x7c, 0x07, 0x41,
   247  	0x7d, 0xdc, 0xcb, 0xbc, 0x5a, 0xe5, 0x36, 0x1a, 0x3a, 0x93, 0xce, 0xc5, 0xf8, 0xcd, 0x93, 0x59,
   248  	0x1b, 0x9b, 0xa5, 0x2d, 0xce, 0xc8, 0x12, 0x23, 0xe3, 0x2e, 0x56, 0x16, 0x21, 0x83, 0xae, 0x54,
   249  	0x2a, 0xec, 0x4c, 0x9c, 0x0b, 0x4f, 0x98, 0x12, 0x2f, 0xe1, 0x7c, 0x77, 0xd8, 0xe6, 0x75, 0x55,
   250  	0x17, 0x9b, 0xfc, 0xfb, 0x61, 0xb5, 0x92, 0x4a, 0x87, 0x5d, 0x9a, 0xf7, 0x45, 0x40, 0x83, 0xcc,
   251  	0xf0, 0xf7, 0x2d, 0xc6, 0x57, 0x30, 0x2e, 0x0f, 0x4a, 0xc9, 0x5d, 0x6d, 0xcd, 0xb0, 0xd7, 0x88,
   252  	0x23, 0x4b, 0x5b, 0x0f, 0x5f, 0x82, 0x57, 0xa8, 0xfb, 0xc3, 0x96, 0x88, 0x0e, 0xfb, 0x93, 0x2e,
   253  	0x3d, 0x75, 0x02, 0x88, 0xd0, 0x5b, 0x16, 0x75, 0x11, 0xba, 0x34, 0xf0, 0x45, 0x53, 0x4f, 0x23,
   254  	0xc0, 0x5b, 0x3a, 0xe6, 0x93, 0x3c, 0xc6, 0xd4, 0x3e, 0x5c, 0x4a, 0x66, 0x29, 0x55, 0x4d, 0xe7,
   255  	0x39, 0xc6, 0x34, 0x35, 0xbe, 0x80, 0xb3, 0xa5, 0x54, 0xf9, 0x0f, 0x79, 0x6c, 0x8e, 0xf0, 0x85,
   256  	0xbb, 0x6c, 0x72, 0xd3, 0xb7, 0x10, 0xd8, 0x15, 0xfa, 0x21, 0xff, 0x1a, 0x02, 0x22, 0xeb, 0x62,
   257  	0xb3, 0xfe, 0x2d, 0x97, 0x26, 0xa2, 0x69, 0x95, 0x79, 0x74, 0x7c, 0xc2, 0xc6, 0xbf, 0xfc, 0xeb,
   258  	0xc0, 0xf0, 0xd1, 0x9f, 0x86, 0xcf, 0xe0, 0x5c, 0xf0, 0xaf, 0xb7, 0x3c, 0xcd, 0xf2, 0xab, 0x8f,
   259  	0xd1, 0x7c, 0xce, 0x93, 0x6b, 0xce, 0x1c, 0x7c, 0x0e, 0xf8, 0xbf, 0xcd, 0x05, 0x4f, 0xbf, 0x2c,
   260  	0x92, 0x94, 0xb3, 0x0e, 0x3e, 0x05, 0x96, 0xde, 0x5c, 0x27, 0x3c, 0x7e, 0x64, 0x77, 0x11, 0xc0,
   261  	0xbd, 0x12, 0x3c, 0xca, 0x38, 0xeb, 0x99, 0x3a, 0xe6, 0x73, 0x4e, 0x75, 0x1f, 0x47, 0xe0, 0x45,
   262  	0x71, 0x4c, 0x93, 0x98, 0x0b, 0xe6, 0xa2, 0x0f, 0x03, 0x6a, 0x17, 0x77, 0x09, 0x75, 0x67, 0x76,
   263  	0x78, 0x27, 0x6e, 0x32, 0x6a, 0x07, 0xf4, 0xb9, 0xfc, 0x36, 0x67, 0x75, 0x0f, 0x03, 0x18, 0xb6,
   264  	0xa4, 0x4d, 0xc0, 0x49, 0xb1, 0xa1, 0x21, 0x0e, 0xa0, 0x67, 0x74, 0xe6, 0xa3, 0x07, 0xfd, 0x86,
   265  	0xb2, 0x91, 0x59, 0x9c, 0x46, 0xdf, 0xe8, 0x22, 0xf3, 0x83, 0xc6, 0xc6, 0x49, 0x16, 0x09, 0x67,
   266  	0xc1, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xf6, 0xf8, 0x5c, 0x84, 0x80, 0x02, 0x00, 0x00,
   267  
   268  }