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

     1  // Code generated by protoc-gen-go.
     2  // source: resources.proto
     3  // DO NOT EDIT!
     4  
     5  /*
     6  Package resourcemanager is a generated protocol buffer package.
     7  
     8  It is generated from these files:
     9  	resources.proto
    10  
    11  It has these top-level messages:
    12  	PrincipalInfo
    13  	CombinedPrincipal
    14  	ResourceInfo
    15  	ResourceMasterInfo
    16  */
    17  package resourcemanager
    18  
    19  import proto "github.com/golang/protobuf/proto"
    20  import fmt "fmt"
    21  import math "math"
    22  
    23  // Reference imports to suppress errors if they are not otherwise used.
    24  var _ = proto.Marshal
    25  var _ = fmt.Errorf
    26  var _ = math.Inf
    27  
    28  // This is a compile-time assertion to ensure that this generated file
    29  // is compatible with the proto package it is being compiled against.
    30  // A compilation error at this line likely means your copy of the
    31  // proto package needs to be updated.
    32  const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
    33  
    34  type ResourceType int32
    35  
    36  const (
    37  	ResourceType_FILE      ResourceType = 1
    38  	ResourceType_DIRECTORY ResourceType = 2
    39  )
    40  
    41  var ResourceType_name = map[int32]string{
    42  	1: "FILE",
    43  	2: "DIRECTORY",
    44  }
    45  var ResourceType_value = map[string]int32{
    46  	"FILE":      1,
    47  	"DIRECTORY": 2,
    48  }
    49  
    50  func (x ResourceType) Enum() *ResourceType {
    51  	p := new(ResourceType)
    52  	*p = x
    53  	return p
    54  }
    55  func (x ResourceType) String() string {
    56  	return proto.EnumName(ResourceType_name, int32(x))
    57  }
    58  func (x *ResourceType) UnmarshalJSON(data []byte) error {
    59  	value, err := proto.UnmarshalJSONEnum(ResourceType_value, data, "ResourceType")
    60  	if err != nil {
    61  		return err
    62  	}
    63  	*x = ResourceType(value)
    64  	return nil
    65  }
    66  func (ResourceType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
    67  
    68  type PrincipalInfo struct {
    69  	// Principal name (should match common name in cert, if user, OU if application).
    70  	Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
    71  	// Signed certificate.
    72  	Cert             []byte `protobuf:"bytes,2,opt,name=cert" json:"cert,omitempty"`
    73  	XXX_unrecognized []byte `json:"-"`
    74  }
    75  
    76  func (m *PrincipalInfo) Reset()                    { *m = PrincipalInfo{} }
    77  func (m *PrincipalInfo) String() string            { return proto.CompactTextString(m) }
    78  func (*PrincipalInfo) ProtoMessage()               {}
    79  func (*PrincipalInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
    80  
    81  func (m *PrincipalInfo) GetName() string {
    82  	if m != nil && m.Name != nil {
    83  		return *m.Name
    84  	}
    85  	return ""
    86  }
    87  
    88  func (m *PrincipalInfo) GetCert() []byte {
    89  	if m != nil {
    90  		return m.Cert
    91  	}
    92  	return nil
    93  }
    94  
    95  // A combined principal is several principals like application, user, all of
    96  // which have to be authenticated to constitute an authorization.
    97  type CombinedPrincipal struct {
    98  	Principals       []*PrincipalInfo `protobuf:"bytes,1,rep,name=principals" json:"principals,omitempty"`
    99  	XXX_unrecognized []byte           `json:"-"`
   100  }
   101  
   102  func (m *CombinedPrincipal) Reset()                    { *m = CombinedPrincipal{} }
   103  func (m *CombinedPrincipal) String() string            { return proto.CompactTextString(m) }
   104  func (*CombinedPrincipal) ProtoMessage()               {}
   105  func (*CombinedPrincipal) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
   106  
   107  func (m *CombinedPrincipal) GetPrincipals() []*PrincipalInfo {
   108  	if m != nil {
   109  		return m.Principals
   110  	}
   111  	return nil
   112  }
   113  
   114  // Readers and writers can delegate writes.
   115  // Writers to a directory can create and delete files in the directory.
   116  type ResourceInfo struct {
   117  	// Resource name,  e.g. - directory1/directory2/filename.
   118  	Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
   119  	// Always ResourceType.FILE.
   120  	Type *int32 `protobuf:"varint,2,opt,name=type" json:"type,omitempty"`
   121  	// Encoded created time.
   122  	DateCreated *string `protobuf:"bytes,3,opt,name=date_created,json=dateCreated" json:"date_created,omitempty"`
   123  	// Encoded modified time.
   124  	DateModified *string `protobuf:"bytes,4,opt,name=date_modified,json=dateModified" json:"date_modified,omitempty"`
   125  	// Size in bytes.
   126  	Size *int32 `protobuf:"varint,5,opt,name=size" json:"size,omitempty"`
   127  	// File encryption and integrity keys.
   128  	Keys []byte `protobuf:"bytes,6,opt,name=keys" json:"keys,omitempty"`
   129  	// List of owners.
   130  	Owners []*CombinedPrincipal `protobuf:"bytes,7,rep,name=owners" json:"owners,omitempty"`
   131  	// List of writers.
   132  	Writers []*CombinedPrincipal `protobuf:"bytes,8,rep,name=writers" json:"writers,omitempty"`
   133  	// List of readers.
   134  	Readers          []*CombinedPrincipal `protobuf:"bytes,9,rep,name=readers" json:"readers,omitempty"`
   135  	XXX_unrecognized []byte               `json:"-"`
   136  }
   137  
   138  func (m *ResourceInfo) Reset()                    { *m = ResourceInfo{} }
   139  func (m *ResourceInfo) String() string            { return proto.CompactTextString(m) }
   140  func (*ResourceInfo) ProtoMessage()               {}
   141  func (*ResourceInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
   142  
   143  func (m *ResourceInfo) GetName() string {
   144  	if m != nil && m.Name != nil {
   145  		return *m.Name
   146  	}
   147  	return ""
   148  }
   149  
   150  func (m *ResourceInfo) GetType() int32 {
   151  	if m != nil && m.Type != nil {
   152  		return *m.Type
   153  	}
   154  	return 0
   155  }
   156  
   157  func (m *ResourceInfo) GetDateCreated() string {
   158  	if m != nil && m.DateCreated != nil {
   159  		return *m.DateCreated
   160  	}
   161  	return ""
   162  }
   163  
   164  func (m *ResourceInfo) GetDateModified() string {
   165  	if m != nil && m.DateModified != nil {
   166  		return *m.DateModified
   167  	}
   168  	return ""
   169  }
   170  
   171  func (m *ResourceInfo) GetSize() int32 {
   172  	if m != nil && m.Size != nil {
   173  		return *m.Size
   174  	}
   175  	return 0
   176  }
   177  
   178  func (m *ResourceInfo) GetKeys() []byte {
   179  	if m != nil {
   180  		return m.Keys
   181  	}
   182  	return nil
   183  }
   184  
   185  func (m *ResourceInfo) GetOwners() []*CombinedPrincipal {
   186  	if m != nil {
   187  		return m.Owners
   188  	}
   189  	return nil
   190  }
   191  
   192  func (m *ResourceInfo) GetWriters() []*CombinedPrincipal {
   193  	if m != nil {
   194  		return m.Writers
   195  	}
   196  	return nil
   197  }
   198  
   199  func (m *ResourceInfo) GetReaders() []*CombinedPrincipal {
   200  	if m != nil {
   201  		return m.Readers
   202  	}
   203  	return nil
   204  }
   205  
   206  type ResourceMasterInfo struct {
   207  	// Service name owning resources (files).
   208  	ServiceName *string `protobuf:"bytes,1,opt,name=service_name,json=serviceName" json:"service_name,omitempty"`
   209  	// Directory files are stored.
   210  	BaseDirectoryName *string `protobuf:"bytes,2,opt,name=base_directory_name,json=baseDirectoryName" json:"base_directory_name,omitempty"`
   211  	// Policy key used to sign user certs, etc.
   212  	PolicyCert []byte `protobuf:"bytes,3,opt,name=policy_cert,json=policyCert" json:"policy_cert,omitempty"`
   213  	// Resources.
   214  	Resources        []*ResourceInfo `protobuf:"bytes,4,rep,name=resources" json:"resources,omitempty"`
   215  	XXX_unrecognized []byte          `json:"-"`
   216  }
   217  
   218  func (m *ResourceMasterInfo) Reset()                    { *m = ResourceMasterInfo{} }
   219  func (m *ResourceMasterInfo) String() string            { return proto.CompactTextString(m) }
   220  func (*ResourceMasterInfo) ProtoMessage()               {}
   221  func (*ResourceMasterInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
   222  
   223  func (m *ResourceMasterInfo) GetServiceName() string {
   224  	if m != nil && m.ServiceName != nil {
   225  		return *m.ServiceName
   226  	}
   227  	return ""
   228  }
   229  
   230  func (m *ResourceMasterInfo) GetBaseDirectoryName() string {
   231  	if m != nil && m.BaseDirectoryName != nil {
   232  		return *m.BaseDirectoryName
   233  	}
   234  	return ""
   235  }
   236  
   237  func (m *ResourceMasterInfo) GetPolicyCert() []byte {
   238  	if m != nil {
   239  		return m.PolicyCert
   240  	}
   241  	return nil
   242  }
   243  
   244  func (m *ResourceMasterInfo) GetResources() []*ResourceInfo {
   245  	if m != nil {
   246  		return m.Resources
   247  	}
   248  	return nil
   249  }
   250  
   251  func init() {
   252  	proto.RegisterType((*PrincipalInfo)(nil), "resourcemanager.PrincipalInfo")
   253  	proto.RegisterType((*CombinedPrincipal)(nil), "resourcemanager.CombinedPrincipal")
   254  	proto.RegisterType((*ResourceInfo)(nil), "resourcemanager.ResourceInfo")
   255  	proto.RegisterType((*ResourceMasterInfo)(nil), "resourcemanager.ResourceMasterInfo")
   256  	proto.RegisterEnum("resourcemanager.ResourceType", ResourceType_name, ResourceType_value)
   257  }
   258  
   259  func init() { proto.RegisterFile("resources.proto", fileDescriptor0) }
   260  
   261  var fileDescriptor0 = []byte{
   262  	// 398 bytes of a gzipped FileDescriptorProto
   263  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x8c, 0x52, 0x4d, 0xaf, 0x93, 0x40,
   264  	0x14, 0x0d, 0xf4, 0x93, 0x4b, 0x1b, 0xdb, 0x71, 0xc3, 0xc6, 0x2f, 0x5c, 0xd8, 0xb8, 0x60, 0xe1,
   265  	0xc6, 0x44, 0x8d, 0x1b, 0x5a, 0x93, 0x26, 0x56, 0xcd, 0xd8, 0x8d, 0x2b, 0x42, 0xe1, 0xd6, 0x4c,
   266  	0x2c, 0x0c, 0x99, 0x41, 0x1b, 0xfc, 0x7f, 0xef, 0x6f, 0xbc, 0xdf, 0xf2, 0x66, 0x06, 0x68, 0x79,
   267  	0xed, 0xa6, 0x2b, 0x2e, 0x67, 0xce, 0xb9, 0x73, 0xcf, 0x99, 0x0b, 0x4f, 0x04, 0x4a, 0xfe, 0x57,
   268  	0x24, 0x28, 0x83, 0x42, 0xf0, 0x92, 0x93, 0x13, 0x90, 0xc5, 0x79, 0xfc, 0x1b, 0x85, 0xff, 0x1e,
   269  	0xa6, 0x3f, 0x04, 0xcb, 0x13, 0x56, 0xc4, 0x87, 0x75, 0xbe, 0xe7, 0x84, 0x40, 0x3f, 0x8f, 0x33,
   270  	0xf4, 0xac, 0x97, 0xd6, 0xc2, 0xa1, 0xa6, 0xd6, 0x58, 0x82, 0xa2, 0xf4, 0x6c, 0x85, 0x4d, 0xa8,
   271  	0xa9, 0xfd, 0x9f, 0x30, 0x0f, 0x79, 0xb6, 0x63, 0x39, 0xa6, 0xa7, 0x06, 0xe4, 0x33, 0x40, 0xd1,
   272  	0xfe, 0x48, 0xd5, 0xa2, 0xb7, 0x70, 0xdf, 0x3d, 0x0f, 0x2e, 0xee, 0x0c, 0x1e, 0x5d, 0x48, 0x3b,
   273  	0x0a, 0xff, 0xde, 0x86, 0x09, 0x6d, 0xd8, 0x17, 0xd3, 0xd8, 0xdd, 0x69, 0xca, 0xaa, 0x40, 0x33,
   274  	0xcd, 0x80, 0x9a, 0x9a, 0xbc, 0x82, 0x49, 0x1a, 0x97, 0x18, 0x25, 0x02, 0xd5, 0x27, 0xf5, 0x7a,
   275  	0x66, 0x7a, 0x57, 0x63, 0x61, 0x0d, 0x91, 0xd7, 0x30, 0x35, 0x94, 0x8c, 0xa7, 0x6c, 0xcf, 0x14,
   276  	0xa7, 0x6f, 0x38, 0x46, 0xb7, 0x69, 0x30, 0xdd, 0x5b, 0xb2, 0xff, 0xe8, 0x0d, 0xea, 0xde, 0xba,
   277  	0xd6, 0xd8, 0x1f, 0xac, 0xa4, 0x37, 0xac, 0xdd, 0xeb, 0x9a, 0x7c, 0x80, 0x21, 0x3f, 0xe6, 0x28,
   278  	0xa4, 0x37, 0x32, 0x26, 0xfd, 0x2b, 0x93, 0x57, 0xe1, 0xd0, 0x46, 0x41, 0x3e, 0xc1, 0xe8, 0x28,
   279  	0x58, 0xa9, 0xc5, 0xe3, 0x9b, 0xc5, 0xad, 0x44, 0xab, 0x95, 0xa1, 0x54, 0xab, 0x9d, 0xdb, 0xd5,
   280  	0x8d, 0xc4, 0xbf, 0xb3, 0x80, 0xb4, 0x01, 0x6f, 0x62, 0xa9, 0x3a, 0x9a, 0x98, 0x55, 0x7c, 0x12,
   281  	0xc5, 0x3f, 0x96, 0x60, 0xd4, 0x79, 0x7c, 0xb7, 0xc1, 0xbe, 0xe9, 0xd4, 0x03, 0x78, 0xba, 0x8b,
   282  	0x25, 0x46, 0x29, 0x13, 0x98, 0x94, 0x5c, 0x54, 0x35, 0xd3, 0x36, 0xcc, 0xb9, 0x3e, 0x5a, 0xb6,
   283  	0x27, 0x86, 0xff, 0x02, 0xdc, 0x82, 0x1f, 0x58, 0x52, 0x45, 0x66, 0x75, 0x7a, 0x26, 0x3c, 0xa8,
   284  	0xa1, 0x50, 0x21, 0xe4, 0x23, 0x38, 0xa7, 0xed, 0x54, 0x6f, 0xa1, 0xad, 0x3c, 0xbb, 0xb2, 0xd2,
   285  	0x5d, 0x06, 0x7a, 0xe6, 0xbf, 0x7d, 0x73, 0xde, 0x93, 0xad, 0x7e, 0xff, 0x31, 0xf4, 0xbf, 0xac,
   286  	0xbf, 0xae, 0x66, 0x16, 0x99, 0x82, 0xb3, 0x5c, 0xd3, 0x55, 0xb8, 0xfd, 0x4e, 0x7f, 0xcd, 0xec,
   287  	0x87, 0x00, 0x00, 0x00, 0xff, 0xff, 0xb2, 0x5e, 0x9e, 0x11, 0x02, 0x03, 0x00, 0x00,
   288  }