2020-10-19 18:51:59 +00:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
// versions:
|
2023-08-17 08:08:14 +00:00
|
|
|
// protoc-gen-go v1.30.0
|
|
|
|
// protoc v4.23.4
|
2021-11-17 09:35:56 +00:00
|
|
|
// source: acl/grpc/types.proto
|
2020-08-12 09:57:28 +00:00
|
|
|
|
2020-08-13 12:43:47 +00:00
|
|
|
package acl
|
2020-08-12 09:57:28 +00:00
|
|
|
|
|
|
|
import (
|
2023-03-07 10:38:56 +00:00
|
|
|
grpc "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/refs/grpc"
|
2020-10-19 18:51:59 +00:00
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
|
|
reflect "reflect"
|
|
|
|
sync "sync"
|
2020-08-12 09:57:28 +00:00
|
|
|
)
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
const (
|
|
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
|
|
)
|
2020-08-12 09:57:28 +00:00
|
|
|
|
2020-09-04 07:50:09 +00:00
|
|
|
// Target role of the access control rule in access control list.
|
|
|
|
type Role int32
|
2020-08-12 09:57:28 +00:00
|
|
|
|
|
|
|
const (
|
2020-10-19 12:34:51 +00:00
|
|
|
// Unspecified role, default value
|
2020-09-04 07:50:09 +00:00
|
|
|
Role_ROLE_UNSPECIFIED Role = 0
|
2020-10-19 12:34:51 +00:00
|
|
|
// User target rule is applied if sender is the owner of the container
|
2020-09-04 07:50:09 +00:00
|
|
|
Role_USER Role = 1
|
2022-06-15 17:30:22 +00:00
|
|
|
// System target rule is applied if sender is a storage node within the
|
|
|
|
// container or an inner ring node
|
2020-09-04 07:50:09 +00:00
|
|
|
Role_SYSTEM Role = 2
|
2022-06-15 17:30:22 +00:00
|
|
|
// Others target rule is applied if sender is neither a user nor a system target
|
2020-09-04 07:50:09 +00:00
|
|
|
Role_OTHERS Role = 3
|
2020-08-12 09:57:28 +00:00
|
|
|
)
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
// Enum value maps for Role.
|
|
|
|
var (
|
|
|
|
Role_name = map[int32]string{
|
|
|
|
0: "ROLE_UNSPECIFIED",
|
|
|
|
1: "USER",
|
|
|
|
2: "SYSTEM",
|
|
|
|
3: "OTHERS",
|
|
|
|
}
|
|
|
|
Role_value = map[string]int32{
|
|
|
|
"ROLE_UNSPECIFIED": 0,
|
|
|
|
"USER": 1,
|
|
|
|
"SYSTEM": 2,
|
|
|
|
"OTHERS": 3,
|
|
|
|
}
|
|
|
|
)
|
2020-08-12 09:57:28 +00:00
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x Role) Enum() *Role {
|
|
|
|
p := new(Role)
|
|
|
|
*p = x
|
|
|
|
return p
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-09-04 07:50:09 +00:00
|
|
|
func (x Role) String() string {
|
2020-10-19 18:51:59 +00:00
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (Role) Descriptor() protoreflect.EnumDescriptor {
|
2021-11-17 09:35:56 +00:00
|
|
|
return file_acl_grpc_types_proto_enumTypes[0].Descriptor()
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (Role) Type() protoreflect.EnumType {
|
2021-11-17 09:35:56 +00:00
|
|
|
return &file_acl_grpc_types_proto_enumTypes[0]
|
2020-10-19 18:51:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x Role) Number() protoreflect.EnumNumber {
|
|
|
|
return protoreflect.EnumNumber(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use Role.Descriptor instead.
|
2020-09-04 07:50:09 +00:00
|
|
|
func (Role) EnumDescriptor() ([]byte, []int) {
|
2021-11-17 09:35:56 +00:00
|
|
|
return file_acl_grpc_types_proto_rawDescGZIP(), []int{0}
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-08-17 11:29:50 +00:00
|
|
|
// MatchType is an enumeration of match types.
|
|
|
|
type MatchType int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
// Unspecified match type, default value.
|
|
|
|
MatchType_MATCH_TYPE_UNSPECIFIED MatchType = 0
|
|
|
|
// Return true if strings are equal
|
|
|
|
MatchType_STRING_EQUAL MatchType = 1
|
|
|
|
// Return true if strings are different
|
|
|
|
MatchType_STRING_NOT_EQUAL MatchType = 2
|
|
|
|
)
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
// Enum value maps for MatchType.
|
|
|
|
var (
|
|
|
|
MatchType_name = map[int32]string{
|
|
|
|
0: "MATCH_TYPE_UNSPECIFIED",
|
|
|
|
1: "STRING_EQUAL",
|
|
|
|
2: "STRING_NOT_EQUAL",
|
|
|
|
}
|
|
|
|
MatchType_value = map[string]int32{
|
|
|
|
"MATCH_TYPE_UNSPECIFIED": 0,
|
|
|
|
"STRING_EQUAL": 1,
|
|
|
|
"STRING_NOT_EQUAL": 2,
|
|
|
|
}
|
|
|
|
)
|
2020-08-17 11:29:50 +00:00
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x MatchType) Enum() *MatchType {
|
|
|
|
p := new(MatchType)
|
|
|
|
*p = x
|
|
|
|
return p
|
2020-08-17 11:29:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x MatchType) String() string {
|
2020-10-19 18:51:59 +00:00
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (MatchType) Descriptor() protoreflect.EnumDescriptor {
|
2021-11-17 09:35:56 +00:00
|
|
|
return file_acl_grpc_types_proto_enumTypes[1].Descriptor()
|
2020-10-19 18:51:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (MatchType) Type() protoreflect.EnumType {
|
2021-11-17 09:35:56 +00:00
|
|
|
return &file_acl_grpc_types_proto_enumTypes[1]
|
2020-10-19 18:51:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x MatchType) Number() protoreflect.EnumNumber {
|
|
|
|
return protoreflect.EnumNumber(x)
|
2020-08-17 11:29:50 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
// Deprecated: Use MatchType.Descriptor instead.
|
2020-08-17 11:29:50 +00:00
|
|
|
func (MatchType) EnumDescriptor() ([]byte, []int) {
|
2021-11-17 09:35:56 +00:00
|
|
|
return file_acl_grpc_types_proto_rawDescGZIP(), []int{1}
|
2020-08-17 11:29:50 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 12:34:51 +00:00
|
|
|
// Request's operation type to match if the rule is applicable to a particular
|
|
|
|
// request.
|
2020-08-17 11:29:50 +00:00
|
|
|
type Operation int32
|
2020-08-12 09:57:28 +00:00
|
|
|
|
|
|
|
const (
|
2020-10-19 12:34:51 +00:00
|
|
|
// Unspecified operation, default value
|
2020-08-17 11:29:50 +00:00
|
|
|
Operation_OPERATION_UNSPECIFIED Operation = 0
|
2020-08-14 06:49:05 +00:00
|
|
|
// Get
|
2020-08-17 11:29:50 +00:00
|
|
|
Operation_GET Operation = 1
|
2020-08-14 06:49:05 +00:00
|
|
|
// Head
|
2020-08-17 11:29:50 +00:00
|
|
|
Operation_HEAD Operation = 2
|
2020-08-14 06:49:05 +00:00
|
|
|
// Put
|
2020-08-17 11:29:50 +00:00
|
|
|
Operation_PUT Operation = 3
|
2020-08-14 06:49:05 +00:00
|
|
|
// Delete
|
2020-08-17 11:29:50 +00:00
|
|
|
Operation_DELETE Operation = 4
|
2020-08-14 06:49:05 +00:00
|
|
|
// Search
|
2020-08-17 11:29:50 +00:00
|
|
|
Operation_SEARCH Operation = 5
|
2020-08-14 06:49:05 +00:00
|
|
|
// GetRange
|
2020-08-17 11:29:50 +00:00
|
|
|
Operation_GETRANGE Operation = 6
|
2020-08-14 06:49:05 +00:00
|
|
|
// GetRangeHash
|
2020-08-17 11:29:50 +00:00
|
|
|
Operation_GETRANGEHASH Operation = 7
|
2020-08-12 09:57:28 +00:00
|
|
|
)
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
// Enum value maps for Operation.
|
|
|
|
var (
|
|
|
|
Operation_name = map[int32]string{
|
|
|
|
0: "OPERATION_UNSPECIFIED",
|
|
|
|
1: "GET",
|
|
|
|
2: "HEAD",
|
|
|
|
3: "PUT",
|
|
|
|
4: "DELETE",
|
|
|
|
5: "SEARCH",
|
|
|
|
6: "GETRANGE",
|
|
|
|
7: "GETRANGEHASH",
|
|
|
|
}
|
|
|
|
Operation_value = map[string]int32{
|
|
|
|
"OPERATION_UNSPECIFIED": 0,
|
|
|
|
"GET": 1,
|
|
|
|
"HEAD": 2,
|
|
|
|
"PUT": 3,
|
|
|
|
"DELETE": 4,
|
|
|
|
"SEARCH": 5,
|
|
|
|
"GETRANGE": 6,
|
|
|
|
"GETRANGEHASH": 7,
|
|
|
|
}
|
|
|
|
)
|
2020-08-12 09:57:28 +00:00
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x Operation) Enum() *Operation {
|
|
|
|
p := new(Operation)
|
|
|
|
*p = x
|
|
|
|
return p
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-08-17 11:29:50 +00:00
|
|
|
func (x Operation) String() string {
|
2020-10-19 18:51:59 +00:00
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (Operation) Descriptor() protoreflect.EnumDescriptor {
|
2021-11-17 09:35:56 +00:00
|
|
|
return file_acl_grpc_types_proto_enumTypes[2].Descriptor()
|
2020-10-19 18:51:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (Operation) Type() protoreflect.EnumType {
|
2021-11-17 09:35:56 +00:00
|
|
|
return &file_acl_grpc_types_proto_enumTypes[2]
|
2020-10-19 18:51:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x Operation) Number() protoreflect.EnumNumber {
|
|
|
|
return protoreflect.EnumNumber(x)
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
// Deprecated: Use Operation.Descriptor instead.
|
2020-08-17 11:29:50 +00:00
|
|
|
func (Operation) EnumDescriptor() ([]byte, []int) {
|
2021-11-17 09:35:56 +00:00
|
|
|
return file_acl_grpc_types_proto_rawDescGZIP(), []int{2}
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 12:34:51 +00:00
|
|
|
// Rule execution result action. Either allows or denies access if the rule's
|
|
|
|
// filters match.
|
2020-08-17 11:29:50 +00:00
|
|
|
type Action int32
|
2020-08-12 09:57:28 +00:00
|
|
|
|
|
|
|
const (
|
2020-10-19 12:34:51 +00:00
|
|
|
// Unspecified action, default value
|
2020-08-17 11:29:50 +00:00
|
|
|
Action_ACTION_UNSPECIFIED Action = 0
|
2020-08-14 06:49:05 +00:00
|
|
|
// Allow action
|
2020-08-17 11:29:50 +00:00
|
|
|
Action_ALLOW Action = 1
|
2020-08-14 06:49:05 +00:00
|
|
|
// Deny action
|
2020-08-17 11:29:50 +00:00
|
|
|
Action_DENY Action = 2
|
2020-08-12 09:57:28 +00:00
|
|
|
)
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
// Enum value maps for Action.
|
|
|
|
var (
|
|
|
|
Action_name = map[int32]string{
|
|
|
|
0: "ACTION_UNSPECIFIED",
|
|
|
|
1: "ALLOW",
|
|
|
|
2: "DENY",
|
|
|
|
}
|
|
|
|
Action_value = map[string]int32{
|
|
|
|
"ACTION_UNSPECIFIED": 0,
|
|
|
|
"ALLOW": 1,
|
|
|
|
"DENY": 2,
|
|
|
|
}
|
|
|
|
)
|
2020-08-12 09:57:28 +00:00
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x Action) Enum() *Action {
|
|
|
|
p := new(Action)
|
|
|
|
*p = x
|
|
|
|
return p
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-08-17 11:29:50 +00:00
|
|
|
func (x Action) String() string {
|
2020-10-19 18:51:59 +00:00
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (Action) Descriptor() protoreflect.EnumDescriptor {
|
2021-11-17 09:35:56 +00:00
|
|
|
return file_acl_grpc_types_proto_enumTypes[3].Descriptor()
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (Action) Type() protoreflect.EnumType {
|
2021-11-17 09:35:56 +00:00
|
|
|
return &file_acl_grpc_types_proto_enumTypes[3]
|
2020-10-19 18:51:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x Action) Number() protoreflect.EnumNumber {
|
|
|
|
return protoreflect.EnumNumber(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use Action.Descriptor instead.
|
2020-08-17 11:29:50 +00:00
|
|
|
func (Action) EnumDescriptor() ([]byte, []int) {
|
2021-11-17 09:35:56 +00:00
|
|
|
return file_acl_grpc_types_proto_rawDescGZIP(), []int{3}
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 12:34:51 +00:00
|
|
|
// Enumeration of possible sources of Headers to apply filters.
|
2020-08-17 11:29:50 +00:00
|
|
|
type HeaderType int32
|
2020-08-12 09:57:28 +00:00
|
|
|
|
|
|
|
const (
|
2020-08-14 06:49:05 +00:00
|
|
|
// Unspecified header, default value.
|
2020-08-17 11:29:50 +00:00
|
|
|
HeaderType_HEADER_UNSPECIFIED HeaderType = 0
|
2020-08-14 06:49:05 +00:00
|
|
|
// Filter request headers
|
2020-08-17 11:29:50 +00:00
|
|
|
HeaderType_REQUEST HeaderType = 1
|
2020-08-14 06:49:05 +00:00
|
|
|
// Filter object headers
|
2020-08-17 11:29:50 +00:00
|
|
|
HeaderType_OBJECT HeaderType = 2
|
2021-09-14 10:51:20 +00:00
|
|
|
// Filter service headers. These are not processed by NeoFS nodes and
|
|
|
|
// exist for service use only.
|
|
|
|
HeaderType_SERVICE HeaderType = 3
|
2020-08-12 09:57:28 +00:00
|
|
|
)
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
// Enum value maps for HeaderType.
|
|
|
|
var (
|
|
|
|
HeaderType_name = map[int32]string{
|
|
|
|
0: "HEADER_UNSPECIFIED",
|
|
|
|
1: "REQUEST",
|
|
|
|
2: "OBJECT",
|
2021-09-14 10:51:20 +00:00
|
|
|
3: "SERVICE",
|
2020-10-19 18:51:59 +00:00
|
|
|
}
|
|
|
|
HeaderType_value = map[string]int32{
|
|
|
|
"HEADER_UNSPECIFIED": 0,
|
|
|
|
"REQUEST": 1,
|
|
|
|
"OBJECT": 2,
|
2021-09-14 10:51:20 +00:00
|
|
|
"SERVICE": 3,
|
2020-10-19 18:51:59 +00:00
|
|
|
}
|
|
|
|
)
|
2020-08-12 09:57:28 +00:00
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x HeaderType) Enum() *HeaderType {
|
|
|
|
p := new(HeaderType)
|
|
|
|
*p = x
|
|
|
|
return p
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-08-17 11:29:50 +00:00
|
|
|
func (x HeaderType) String() string {
|
2020-10-19 18:51:59 +00:00
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (HeaderType) Descriptor() protoreflect.EnumDescriptor {
|
2021-11-17 09:35:56 +00:00
|
|
|
return file_acl_grpc_types_proto_enumTypes[4].Descriptor()
|
2020-10-19 18:51:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (HeaderType) Type() protoreflect.EnumType {
|
2021-11-17 09:35:56 +00:00
|
|
|
return &file_acl_grpc_types_proto_enumTypes[4]
|
2020-10-19 18:51:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x HeaderType) Number() protoreflect.EnumNumber {
|
|
|
|
return protoreflect.EnumNumber(x)
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
// Deprecated: Use HeaderType.Descriptor instead.
|
2020-08-17 11:29:50 +00:00
|
|
|
func (HeaderType) EnumDescriptor() ([]byte, []int) {
|
2021-11-17 09:35:56 +00:00
|
|
|
return file_acl_grpc_types_proto_rawDescGZIP(), []int{4}
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 12:34:51 +00:00
|
|
|
// Describes a single eACL rule.
|
2020-08-12 09:57:28 +00:00
|
|
|
type EACLRecord struct {
|
2020-10-19 18:51:59 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2020-10-19 12:34:51 +00:00
|
|
|
// NeoFS request Verb to match
|
|
|
|
Operation Operation `protobuf:"varint,1,opt,name=operation,proto3,enum=neo.fs.v2.acl.Operation" json:"operation,omitempty"`
|
|
|
|
// Rule execution result. Either allows or denies access if filters match.
|
|
|
|
Action Action `protobuf:"varint,2,opt,name=action,proto3,enum=neo.fs.v2.acl.Action" json:"action,omitempty"`
|
|
|
|
// List of filters to match and see if rule is applicable
|
|
|
|
Filters []*EACLRecord_Filter `protobuf:"bytes,3,rep,name=filters,proto3" json:"filters,omitempty"`
|
|
|
|
// List of target subjects to apply ACL rule to
|
2020-10-19 18:51:59 +00:00
|
|
|
Targets []*EACLRecord_Target `protobuf:"bytes,4,rep,name=targets,proto3" json:"targets,omitempty"`
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *EACLRecord) Reset() {
|
|
|
|
*x = EACLRecord{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2021-11-17 09:35:56 +00:00
|
|
|
mi := &file_acl_grpc_types_proto_msgTypes[0]
|
2020-10-19 18:51:59 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
|
|
|
|
func (x *EACLRecord) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
|
|
|
|
func (*EACLRecord) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *EACLRecord) ProtoReflect() protoreflect.Message {
|
2021-11-17 09:35:56 +00:00
|
|
|
mi := &file_acl_grpc_types_proto_msgTypes[0]
|
2020-10-19 18:51:59 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
// Deprecated: Use EACLRecord.ProtoReflect.Descriptor instead.
|
|
|
|
func (*EACLRecord) Descriptor() ([]byte, []int) {
|
2021-11-17 09:35:56 +00:00
|
|
|
return file_acl_grpc_types_proto_rawDescGZIP(), []int{0}
|
2020-10-19 18:51:59 +00:00
|
|
|
}
|
2020-08-12 09:57:28 +00:00
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *EACLRecord) GetOperation() Operation {
|
|
|
|
if x != nil {
|
|
|
|
return x.Operation
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-08-17 11:29:50 +00:00
|
|
|
return Operation_OPERATION_UNSPECIFIED
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *EACLRecord) GetAction() Action {
|
|
|
|
if x != nil {
|
|
|
|
return x.Action
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-08-17 11:29:50 +00:00
|
|
|
return Action_ACTION_UNSPECIFIED
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *EACLRecord) GetFilters() []*EACLRecord_Filter {
|
|
|
|
if x != nil {
|
|
|
|
return x.Filters
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *EACLRecord) GetTargets() []*EACLRecord_Target {
|
|
|
|
if x != nil {
|
|
|
|
return x.Targets
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2022-06-15 17:30:22 +00:00
|
|
|
// Extended ACL rules table. A list of ACL rules defined additionally to Basic
|
|
|
|
// ACL. Extended ACL rules can be attached to a container and can be updated
|
2020-10-19 18:51:59 +00:00
|
|
|
// or may be defined in `BearerToken` structure. Please see the corresponding
|
2022-06-15 17:30:22 +00:00
|
|
|
// NeoFS Technical Specification section for detailed description.
|
2020-10-19 18:51:59 +00:00
|
|
|
type EACLTable struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2022-06-15 17:30:22 +00:00
|
|
|
// eACL format version. Effectively, the version of API library used to create
|
2020-10-19 18:51:59 +00:00
|
|
|
// eACL Table.
|
|
|
|
Version *grpc.Version `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
|
|
|
|
// Identifier of the container that should use given access control rules
|
|
|
|
ContainerId *grpc.ContainerID `protobuf:"bytes,2,opt,name=container_id,json=containerID,proto3" json:"container_id,omitempty"`
|
|
|
|
// List of Extended ACL rules
|
|
|
|
Records []*EACLRecord `protobuf:"bytes,3,rep,name=records,proto3" json:"records,omitempty"`
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *EACLTable) Reset() {
|
|
|
|
*x = EACLTable{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2021-11-17 09:35:56 +00:00
|
|
|
mi := &file_acl_grpc_types_proto_msgTypes[1]
|
2020-10-19 18:51:59 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
|
|
|
|
func (x *EACLTable) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (*EACLTable) ProtoMessage() {}
|
2020-08-12 09:57:28 +00:00
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *EACLTable) ProtoReflect() protoreflect.Message {
|
2021-11-17 09:35:56 +00:00
|
|
|
mi := &file_acl_grpc_types_proto_msgTypes[1]
|
2020-10-19 18:51:59 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use EACLTable.ProtoReflect.Descriptor instead.
|
|
|
|
func (*EACLTable) Descriptor() ([]byte, []int) {
|
2021-11-17 09:35:56 +00:00
|
|
|
return file_acl_grpc_types_proto_rawDescGZIP(), []int{1}
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *EACLTable) GetVersion() *grpc.Version {
|
|
|
|
if x != nil {
|
|
|
|
return x.Version
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
return nil
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *EACLTable) GetContainerId() *grpc.ContainerID {
|
|
|
|
if x != nil {
|
|
|
|
return x.ContainerId
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
return nil
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *EACLTable) GetRecords() []*EACLRecord {
|
|
|
|
if x != nil {
|
|
|
|
return x.Records
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
return nil
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
// BearerToken allows to attach signed Extended ACL rules to the request in
|
|
|
|
// `RequestMetaHeader`. If container's Basic ACL rules allow, the attached rule
|
|
|
|
// set will be checked instead of one attached to the container itself. Just
|
|
|
|
// like [JWT](https://jwt.io), it has a limited lifetime and scope, hence can be
|
|
|
|
// used in the similar use cases, like providing authorisation to externally
|
|
|
|
// authenticated party.
|
2020-10-27 13:48:17 +00:00
|
|
|
//
|
2022-06-15 17:30:22 +00:00
|
|
|
// BearerToken can be issued only by the container's owner and must be signed using
|
|
|
|
// the key associated with the container's `OwnerID`.
|
2020-10-19 18:51:59 +00:00
|
|
|
type BearerToken struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
// Bearer Token body
|
|
|
|
Body *BearerToken_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
|
|
|
|
// Signature of BearerToken body
|
|
|
|
Signature *grpc.Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *BearerToken) Reset() {
|
|
|
|
*x = BearerToken{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2021-11-17 09:35:56 +00:00
|
|
|
mi := &file_acl_grpc_types_proto_msgTypes[2]
|
2020-10-19 18:51:59 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
|
|
|
|
func (x *BearerToken) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
|
|
|
|
func (*BearerToken) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *BearerToken) ProtoReflect() protoreflect.Message {
|
2021-11-17 09:35:56 +00:00
|
|
|
mi := &file_acl_grpc_types_proto_msgTypes[2]
|
2020-10-19 18:51:59 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
// Deprecated: Use BearerToken.ProtoReflect.Descriptor instead.
|
|
|
|
func (*BearerToken) Descriptor() ([]byte, []int) {
|
2021-11-17 09:35:56 +00:00
|
|
|
return file_acl_grpc_types_proto_rawDescGZIP(), []int{2}
|
2020-10-19 18:51:59 +00:00
|
|
|
}
|
2020-08-12 09:57:28 +00:00
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *BearerToken) GetBody() *BearerToken_Body {
|
|
|
|
if x != nil {
|
|
|
|
return x.Body
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
return nil
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *BearerToken) GetSignature() *grpc.Signature {
|
|
|
|
if x != nil {
|
|
|
|
return x.Signature
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2022-06-15 17:30:22 +00:00
|
|
|
// Filter to check particular properties of the request or the object.
|
2020-10-27 13:48:17 +00:00
|
|
|
//
|
|
|
|
// By default `key` field refers to the corresponding object's `Attribute`.
|
|
|
|
// Some Object's header fields can also be accessed by adding `$Object:`
|
|
|
|
// prefix to the name. Here is the list of fields available via this prefix:
|
|
|
|
//
|
2022-09-15 05:21:44 +00:00
|
|
|
// - $Object:version \
|
|
|
|
// version
|
|
|
|
// - $Object:objectID \
|
|
|
|
// object_id
|
|
|
|
// - $Object:containerID \
|
|
|
|
// container_id
|
|
|
|
// - $Object:ownerID \
|
|
|
|
// owner_id
|
|
|
|
// - $Object:creationEpoch \
|
|
|
|
// creation_epoch
|
|
|
|
// - $Object:payloadLength \
|
|
|
|
// payload_length
|
|
|
|
// - $Object:payloadHash \
|
|
|
|
// payload_hash
|
|
|
|
// - $Object:objectType \
|
|
|
|
// object_type
|
|
|
|
// - $Object:homomorphicHash \
|
|
|
|
// homomorphic_hash
|
2020-10-27 13:48:17 +00:00
|
|
|
//
|
2022-09-17 09:59:54 +00:00
|
|
|
// Please note, that if request or response does not have object's headers of
|
2020-12-18 13:00:50 +00:00
|
|
|
// full object (Range, RangeHash, Search, Delete), it will not be possible to
|
|
|
|
// filter by object header fields or user attributes. From the well-known list
|
|
|
|
// only `$Object:objectID` and `$Object:containerID` will be available, as
|
|
|
|
// it's possible to take that information from the requested address.
|
2020-10-19 18:51:59 +00:00
|
|
|
type EACLRecord_Filter struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
// Define if Object or Request header will be used
|
|
|
|
HeaderType HeaderType `protobuf:"varint,1,opt,name=header_type,json=headerType,proto3,enum=neo.fs.v2.acl.HeaderType" json:"header_type,omitempty"`
|
|
|
|
// Match operation type
|
|
|
|
MatchType MatchType `protobuf:"varint,2,opt,name=match_type,json=matchType,proto3,enum=neo.fs.v2.acl.MatchType" json:"match_type,omitempty"`
|
|
|
|
// Name of the Header to use
|
2020-10-27 13:48:17 +00:00
|
|
|
Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
|
2020-10-19 18:51:59 +00:00
|
|
|
// Expected Header Value or pattern to match
|
2020-10-27 13:48:17 +00:00
|
|
|
Value string `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *EACLRecord_Filter) Reset() {
|
|
|
|
*x = EACLRecord_Filter{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2021-11-17 09:35:56 +00:00
|
|
|
mi := &file_acl_grpc_types_proto_msgTypes[3]
|
2020-10-19 18:51:59 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
|
|
|
|
func (x *EACLRecord_Filter) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
|
|
|
|
func (*EACLRecord_Filter) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *EACLRecord_Filter) ProtoReflect() protoreflect.Message {
|
2021-11-17 09:35:56 +00:00
|
|
|
mi := &file_acl_grpc_types_proto_msgTypes[3]
|
2020-10-19 18:51:59 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
|
|
|
|
// Deprecated: Use EACLRecord_Filter.ProtoReflect.Descriptor instead.
|
|
|
|
func (*EACLRecord_Filter) Descriptor() ([]byte, []int) {
|
2021-11-17 09:35:56 +00:00
|
|
|
return file_acl_grpc_types_proto_rawDescGZIP(), []int{0, 0}
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *EACLRecord_Filter) GetHeaderType() HeaderType {
|
|
|
|
if x != nil {
|
|
|
|
return x.HeaderType
|
|
|
|
}
|
|
|
|
return HeaderType_HEADER_UNSPECIFIED
|
|
|
|
}
|
2020-08-12 09:57:28 +00:00
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *EACLRecord_Filter) GetMatchType() MatchType {
|
|
|
|
if x != nil {
|
|
|
|
return x.MatchType
|
2020-09-04 07:50:09 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
return MatchType_MATCH_TYPE_UNSPECIFIED
|
2020-09-04 07:50:09 +00:00
|
|
|
}
|
|
|
|
|
2020-10-27 13:48:17 +00:00
|
|
|
func (x *EACLRecord_Filter) GetKey() string {
|
2020-10-19 18:51:59 +00:00
|
|
|
if x != nil {
|
2020-10-27 13:48:17 +00:00
|
|
|
return x.Key
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
return ""
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-27 13:48:17 +00:00
|
|
|
func (x *EACLRecord_Filter) GetValue() string {
|
2020-10-19 18:51:59 +00:00
|
|
|
if x != nil {
|
2020-10-27 13:48:17 +00:00
|
|
|
return x.Value
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
return ""
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
// Target to apply ACL rule. Can be a subject's role class or a list of public
|
|
|
|
// keys to match.
|
|
|
|
type EACLRecord_Target struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
// Target subject's role class
|
|
|
|
Role Role `protobuf:"varint,1,opt,name=role,proto3,enum=neo.fs.v2.acl.Role" json:"role,omitempty"`
|
|
|
|
// List of public keys to identify target subject
|
|
|
|
Keys [][]byte `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"`
|
2020-08-20 07:49:12 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *EACLRecord_Target) Reset() {
|
|
|
|
*x = EACLRecord_Target{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2021-11-17 09:35:56 +00:00
|
|
|
mi := &file_acl_grpc_types_proto_msgTypes[4]
|
2020-10-19 18:51:59 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
2020-08-20 07:49:12 +00:00
|
|
|
}
|
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
|
|
|
|
func (x *EACLRecord_Target) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2020-08-20 07:49:12 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
|
|
|
|
func (*EACLRecord_Target) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *EACLRecord_Target) ProtoReflect() protoreflect.Message {
|
2021-11-17 09:35:56 +00:00
|
|
|
mi := &file_acl_grpc_types_proto_msgTypes[4]
|
2020-10-19 18:51:59 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2020-08-20 07:49:12 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
// Deprecated: Use EACLRecord_Target.ProtoReflect.Descriptor instead.
|
|
|
|
func (*EACLRecord_Target) Descriptor() ([]byte, []int) {
|
2021-11-17 09:35:56 +00:00
|
|
|
return file_acl_grpc_types_proto_rawDescGZIP(), []int{0, 1}
|
2020-10-19 18:51:59 +00:00
|
|
|
}
|
2020-08-20 07:49:12 +00:00
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *EACLRecord_Target) GetRole() Role {
|
|
|
|
if x != nil {
|
|
|
|
return x.Role
|
2020-08-20 07:49:12 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
return Role_ROLE_UNSPECIFIED
|
2020-08-20 07:49:12 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *EACLRecord_Target) GetKeys() [][]byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.Keys
|
2020-08-20 07:49:12 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2022-06-15 17:30:22 +00:00
|
|
|
// Bearer Token body structure contains Extended ACL table issued by the container
|
|
|
|
// owner with additional information preventing token abuse.
|
2020-08-20 07:49:12 +00:00
|
|
|
type BearerToken_Body struct {
|
2020-10-19 18:51:59 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2020-10-19 12:34:51 +00:00
|
|
|
// Table of Extended ACL rules to use instead of the ones attached to the
|
2022-06-15 17:30:22 +00:00
|
|
|
// container. If it contains `container_id` field, bearer token is only
|
|
|
|
// valid for this specific container. Otherwise, any container of the same owner
|
|
|
|
// is allowed.
|
2020-08-20 07:49:12 +00:00
|
|
|
EaclTable *EACLTable `protobuf:"bytes,1,opt,name=eacl_table,json=eaclTable,proto3" json:"eacl_table,omitempty"`
|
2022-06-15 17:30:22 +00:00
|
|
|
// `OwnerID` defines to whom the token was issued. It must match the request
|
2020-10-27 13:48:17 +00:00
|
|
|
// originator's `OwnerID`. If empty, any token bearer will be accepted.
|
2020-10-19 12:34:51 +00:00
|
|
|
OwnerId *grpc.OwnerID `protobuf:"bytes,2,opt,name=owner_id,json=ownerID,proto3" json:"owner_id,omitempty"`
|
2020-08-20 07:49:12 +00:00
|
|
|
// Token expiration and valid time period parameters
|
2020-10-19 18:51:59 +00:00
|
|
|
Lifetime *BearerToken_Body_TokenLifetime `protobuf:"bytes,3,opt,name=lifetime,proto3" json:"lifetime,omitempty"`
|
2023-02-21 08:23:08 +00:00
|
|
|
// AllowImpersonate flag to consider token signer as request owner.
|
|
|
|
// If this field is true extended ACL table in token body isn't processed.
|
|
|
|
AllowImpersonate bool `protobuf:"varint,4,opt,name=allow_impersonate,json=allowImpersonate,proto3" json:"allow_impersonate,omitempty"`
|
2020-08-20 07:49:12 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *BearerToken_Body) Reset() {
|
|
|
|
*x = BearerToken_Body{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2021-11-17 09:35:56 +00:00
|
|
|
mi := &file_acl_grpc_types_proto_msgTypes[5]
|
2020-10-19 18:51:59 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
2020-08-20 07:49:12 +00:00
|
|
|
}
|
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
|
|
|
|
func (x *BearerToken_Body) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2020-08-20 07:49:12 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
|
|
|
|
func (*BearerToken_Body) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *BearerToken_Body) ProtoReflect() protoreflect.Message {
|
2021-11-17 09:35:56 +00:00
|
|
|
mi := &file_acl_grpc_types_proto_msgTypes[5]
|
2020-10-19 18:51:59 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2020-08-20 07:49:12 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
// Deprecated: Use BearerToken_Body.ProtoReflect.Descriptor instead.
|
|
|
|
func (*BearerToken_Body) Descriptor() ([]byte, []int) {
|
2021-11-17 09:35:56 +00:00
|
|
|
return file_acl_grpc_types_proto_rawDescGZIP(), []int{2, 0}
|
2020-10-19 18:51:59 +00:00
|
|
|
}
|
2020-08-20 07:49:12 +00:00
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *BearerToken_Body) GetEaclTable() *EACLTable {
|
|
|
|
if x != nil {
|
|
|
|
return x.EaclTable
|
2020-08-20 07:49:12 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *BearerToken_Body) GetOwnerId() *grpc.OwnerID {
|
|
|
|
if x != nil {
|
|
|
|
return x.OwnerId
|
2020-08-20 07:49:12 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *BearerToken_Body) GetLifetime() *BearerToken_Body_TokenLifetime {
|
|
|
|
if x != nil {
|
|
|
|
return x.Lifetime
|
2020-08-20 07:49:12 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-02-21 08:23:08 +00:00
|
|
|
func (x *BearerToken_Body) GetAllowImpersonate() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.AllowImpersonate
|
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2020-11-24 17:12:45 +00:00
|
|
|
// Lifetime parameters of the token. Field names taken from
|
2020-10-19 12:34:51 +00:00
|
|
|
// [rfc7519](https://tools.ietf.org/html/rfc7519).
|
2020-08-20 07:49:12 +00:00
|
|
|
type BearerToken_Body_TokenLifetime struct {
|
2020-10-19 18:51:59 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2020-08-20 07:49:12 +00:00
|
|
|
// Expiration Epoch
|
|
|
|
Exp uint64 `protobuf:"varint,1,opt,name=exp,proto3" json:"exp,omitempty"`
|
|
|
|
// Not valid before Epoch
|
|
|
|
Nbf uint64 `protobuf:"varint,2,opt,name=nbf,proto3" json:"nbf,omitempty"`
|
|
|
|
// Issued at Epoch
|
2020-10-19 18:51:59 +00:00
|
|
|
Iat uint64 `protobuf:"varint,3,opt,name=iat,proto3" json:"iat,omitempty"`
|
2020-08-20 07:49:12 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *BearerToken_Body_TokenLifetime) Reset() {
|
|
|
|
*x = BearerToken_Body_TokenLifetime{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2021-11-17 09:35:56 +00:00
|
|
|
mi := &file_acl_grpc_types_proto_msgTypes[6]
|
2020-10-19 18:51:59 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
2020-08-20 07:49:12 +00:00
|
|
|
}
|
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
|
|
|
|
func (x *BearerToken_Body_TokenLifetime) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2020-08-20 07:49:12 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (*BearerToken_Body_TokenLifetime) ProtoMessage() {}
|
2020-08-20 07:49:12 +00:00
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *BearerToken_Body_TokenLifetime) ProtoReflect() protoreflect.Message {
|
2021-11-17 09:35:56 +00:00
|
|
|
mi := &file_acl_grpc_types_proto_msgTypes[6]
|
2020-10-19 18:51:59 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
2020-08-20 07:49:12 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use BearerToken_Body_TokenLifetime.ProtoReflect.Descriptor instead.
|
|
|
|
func (*BearerToken_Body_TokenLifetime) Descriptor() ([]byte, []int) {
|
2021-11-17 09:35:56 +00:00
|
|
|
return file_acl_grpc_types_proto_rawDescGZIP(), []int{2, 0, 0}
|
2020-08-20 07:49:12 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *BearerToken_Body_TokenLifetime) GetExp() uint64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Exp
|
2020-08-20 07:49:12 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *BearerToken_Body_TokenLifetime) GetNbf() uint64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Nbf
|
2020-08-20 07:49:12 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
func (x *BearerToken_Body_TokenLifetime) GetIat() uint64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Iat
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
return 0
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2021-11-17 09:35:56 +00:00
|
|
|
var File_acl_grpc_types_proto protoreflect.FileDescriptor
|
|
|
|
|
|
|
|
var file_acl_grpc_types_proto_rawDesc = []byte{
|
|
|
|
0x0a, 0x14, 0x61, 0x63, 0x6c, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73,
|
|
|
|
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76,
|
|
|
|
0x32, 0x2e, 0x61, 0x63, 0x6c, 0x1a, 0x15, 0x72, 0x65, 0x66, 0x73, 0x2f, 0x67, 0x72, 0x70, 0x63,
|
|
|
|
0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xda, 0x03, 0x0a,
|
|
|
|
0x0a, 0x45, 0x41, 0x43, 0x4c, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x36, 0x0a, 0x09, 0x6f,
|
|
|
|
0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18,
|
|
|
|
0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x61, 0x63, 0x6c, 0x2e, 0x4f,
|
|
|
|
0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74,
|
|
|
|
0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20,
|
|
|
|
0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e,
|
|
|
|
0x61, 0x63, 0x6c, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69,
|
|
|
|
0x6f, 0x6e, 0x12, 0x3a, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20,
|
|
|
|
0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e,
|
|
|
|
0x61, 0x63, 0x6c, 0x2e, 0x45, 0x41, 0x43, 0x4c, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x2e, 0x46,
|
|
|
|
0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x3a,
|
|
|
|
0x0a, 0x07, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32,
|
|
|
|
0x20, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x61, 0x63, 0x6c, 0x2e,
|
|
|
|
0x45, 0x41, 0x43, 0x4c, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65,
|
|
|
|
0x74, 0x52, 0x07, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x1a, 0xa5, 0x01, 0x0a, 0x06, 0x46,
|
|
|
|
0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x3a, 0x0a, 0x0b, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x5f,
|
|
|
|
0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x6e, 0x65, 0x6f,
|
|
|
|
0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x61, 0x63, 0x6c, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65,
|
|
|
|
0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x54, 0x79, 0x70,
|
|
|
|
0x65, 0x12, 0x37, 0x0a, 0x0a, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18,
|
|
|
|
0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76,
|
|
|
|
0x32, 0x2e, 0x61, 0x63, 0x6c, 0x2e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x54, 0x79, 0x70, 0x65, 0x52,
|
|
|
|
0x09, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65,
|
|
|
|
0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05,
|
|
|
|
0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c,
|
|
|
|
0x75, 0x65, 0x1a, 0x45, 0x0a, 0x06, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x27, 0x0a, 0x04,
|
|
|
|
0x72, 0x6f, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x6e, 0x65, 0x6f,
|
|
|
|
0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x61, 0x63, 0x6c, 0x2e, 0x52, 0x6f, 0x6c, 0x65, 0x52,
|
|
|
|
0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x02, 0x20,
|
|
|
|
0x03, 0x28, 0x0c, 0x52, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x22, 0xb3, 0x01, 0x0a, 0x09, 0x45, 0x41,
|
|
|
|
0x43, 0x4c, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x31, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69,
|
|
|
|
0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66,
|
|
|
|
0x73, 0x2e, 0x76, 0x32, 0x2e, 0x72, 0x65, 0x66, 0x73, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f,
|
|
|
|
0x6e, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x3e, 0x0a, 0x0c, 0x63, 0x6f,
|
|
|
|
0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
|
|
|
|
0x32, 0x1b, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x72, 0x65, 0x66,
|
|
|
|
0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x49, 0x44, 0x52, 0x0b, 0x63,
|
|
|
|
0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x49, 0x44, 0x12, 0x33, 0x0a, 0x07, 0x72, 0x65,
|
|
|
|
0x63, 0x6f, 0x72, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6e, 0x65,
|
|
|
|
0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x61, 0x63, 0x6c, 0x2e, 0x45, 0x41, 0x43, 0x4c,
|
|
|
|
0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x07, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x22,
|
2023-02-21 08:23:08 +00:00
|
|
|
0xb0, 0x03, 0x0a, 0x0b, 0x42, 0x65, 0x61, 0x72, 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12,
|
2021-11-17 09:35:56 +00:00
|
|
|
0x33, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e,
|
|
|
|
0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x61, 0x63, 0x6c, 0x2e, 0x42, 0x65,
|
|
|
|
0x61, 0x72, 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x42, 0x6f, 0x64, 0x79, 0x52, 0x04,
|
|
|
|
0x62, 0x6f, 0x64, 0x79, 0x12, 0x37, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72,
|
|
|
|
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73,
|
|
|
|
0x2e, 0x76, 0x32, 0x2e, 0x72, 0x65, 0x66, 0x73, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75,
|
2023-02-21 08:23:08 +00:00
|
|
|
0x72, 0x65, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x1a, 0xb2, 0x02,
|
2021-11-17 09:35:56 +00:00
|
|
|
0x0a, 0x04, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x37, 0x0a, 0x0a, 0x65, 0x61, 0x63, 0x6c, 0x5f, 0x74,
|
|
|
|
0x61, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6e, 0x65, 0x6f,
|
|
|
|
0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x61, 0x63, 0x6c, 0x2e, 0x45, 0x41, 0x43, 0x4c, 0x54,
|
|
|
|
0x61, 0x62, 0x6c, 0x65, 0x52, 0x09, 0x65, 0x61, 0x63, 0x6c, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12,
|
|
|
|
0x32, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
|
|
|
|
0x0b, 0x32, 0x17, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x72, 0x65,
|
|
|
|
0x66, 0x73, 0x2e, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x44, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65,
|
|
|
|
0x72, 0x49, 0x44, 0x12, 0x49, 0x0a, 0x08, 0x6c, 0x69, 0x66, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x18,
|
|
|
|
0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76,
|
|
|
|
0x32, 0x2e, 0x61, 0x63, 0x6c, 0x2e, 0x42, 0x65, 0x61, 0x72, 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65,
|
|
|
|
0x6e, 0x2e, 0x42, 0x6f, 0x64, 0x79, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4c, 0x69, 0x66, 0x65,
|
2023-02-21 08:23:08 +00:00
|
|
|
0x74, 0x69, 0x6d, 0x65, 0x52, 0x08, 0x6c, 0x69, 0x66, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x2b,
|
|
|
|
0x0a, 0x11, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x69, 0x6d, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e,
|
|
|
|
0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x61, 0x6c, 0x6c, 0x6f, 0x77,
|
|
|
|
0x49, 0x6d, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x61, 0x74, 0x65, 0x1a, 0x45, 0x0a, 0x0d, 0x54,
|
|
|
|
0x6f, 0x6b, 0x65, 0x6e, 0x4c, 0x69, 0x66, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03,
|
|
|
|
0x65, 0x78, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x65, 0x78, 0x70, 0x12, 0x10,
|
|
|
|
0x0a, 0x03, 0x6e, 0x62, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x6e, 0x62, 0x66,
|
|
|
|
0x12, 0x10, 0x0a, 0x03, 0x69, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x69,
|
|
|
|
0x61, 0x74, 0x2a, 0x3e, 0x0a, 0x04, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x52, 0x4f,
|
|
|
|
0x4c, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00,
|
|
|
|
0x12, 0x08, 0x0a, 0x04, 0x55, 0x53, 0x45, 0x52, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x59,
|
|
|
|
0x53, 0x54, 0x45, 0x4d, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x4f, 0x54, 0x48, 0x45, 0x52, 0x53,
|
|
|
|
0x10, 0x03, 0x2a, 0x4f, 0x0a, 0x09, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x54, 0x79, 0x70, 0x65, 0x12,
|
|
|
|
0x1a, 0x0a, 0x16, 0x4d, 0x41, 0x54, 0x43, 0x48, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e,
|
|
|
|
0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x53,
|
|
|
|
0x54, 0x52, 0x49, 0x4e, 0x47, 0x5f, 0x45, 0x51, 0x55, 0x41, 0x4c, 0x10, 0x01, 0x12, 0x14, 0x0a,
|
|
|
|
0x10, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x45, 0x51, 0x55, 0x41,
|
|
|
|
0x4c, 0x10, 0x02, 0x2a, 0x7a, 0x0a, 0x09, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
|
|
|
|
0x12, 0x19, 0x0a, 0x15, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e,
|
|
|
|
0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x47,
|
|
|
|
0x45, 0x54, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x45, 0x41, 0x44, 0x10, 0x02, 0x12, 0x07,
|
|
|
|
0x0a, 0x03, 0x50, 0x55, 0x54, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x44, 0x45, 0x4c, 0x45, 0x54,
|
|
|
|
0x45, 0x10, 0x04, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x10, 0x05, 0x12,
|
|
|
|
0x0c, 0x0a, 0x08, 0x47, 0x45, 0x54, 0x52, 0x41, 0x4e, 0x47, 0x45, 0x10, 0x06, 0x12, 0x10, 0x0a,
|
|
|
|
0x0c, 0x47, 0x45, 0x54, 0x52, 0x41, 0x4e, 0x47, 0x45, 0x48, 0x41, 0x53, 0x48, 0x10, 0x07, 0x2a,
|
|
|
|
0x35, 0x0a, 0x06, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x12, 0x41, 0x43, 0x54,
|
|
|
|
0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10,
|
|
|
|
0x00, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x4c, 0x4c, 0x4f, 0x57, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04,
|
|
|
|
0x44, 0x45, 0x4e, 0x59, 0x10, 0x02, 0x2a, 0x4a, 0x0a, 0x0a, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72,
|
|
|
|
0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x12, 0x48, 0x45, 0x41, 0x44, 0x45, 0x52, 0x5f, 0x55,
|
|
|
|
0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07,
|
|
|
|
0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x4f, 0x42, 0x4a,
|
|
|
|
0x45, 0x43, 0x54, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x45, 0x52, 0x56, 0x49, 0x43, 0x45,
|
|
|
|
0x10, 0x03, 0x42, 0x58, 0x5a, 0x3c, 0x67, 0x69, 0x74, 0x2e, 0x66, 0x72, 0x6f, 0x73, 0x74, 0x66,
|
|
|
|
0x73, 0x2e, 0x69, 0x6e, 0x66, 0x6f, 0x2f, 0x54, 0x72, 0x75, 0x65, 0x43, 0x6c, 0x6f, 0x75, 0x64,
|
|
|
|
0x4c, 0x61, 0x62, 0x2f, 0x66, 0x72, 0x6f, 0x73, 0x74, 0x66, 0x73, 0x2d, 0x61, 0x70, 0x69, 0x2d,
|
|
|
|
0x67, 0x6f, 0x2f, 0x76, 0x32, 0x2f, 0x61, 0x63, 0x6c, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x3b, 0x61,
|
|
|
|
0x63, 0x6c, 0xaa, 0x02, 0x17, 0x4e, 0x65, 0x6f, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x74, 0x6f,
|
|
|
|
0x72, 0x61, 0x67, 0x65, 0x2e, 0x41, 0x50, 0x49, 0x2e, 0x41, 0x63, 0x6c, 0x62, 0x06, 0x70, 0x72,
|
|
|
|
0x6f, 0x74, 0x6f, 0x33,
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-10-19 18:51:59 +00:00
|
|
|
var (
|
2021-11-17 09:35:56 +00:00
|
|
|
file_acl_grpc_types_proto_rawDescOnce sync.Once
|
|
|
|
file_acl_grpc_types_proto_rawDescData = file_acl_grpc_types_proto_rawDesc
|
2020-10-19 18:51:59 +00:00
|
|
|
)
|
|
|
|
|
2021-11-17 09:35:56 +00:00
|
|
|
func file_acl_grpc_types_proto_rawDescGZIP() []byte {
|
|
|
|
file_acl_grpc_types_proto_rawDescOnce.Do(func() {
|
|
|
|
file_acl_grpc_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_acl_grpc_types_proto_rawDescData)
|
2020-10-19 18:51:59 +00:00
|
|
|
})
|
2021-11-17 09:35:56 +00:00
|
|
|
return file_acl_grpc_types_proto_rawDescData
|
2020-10-19 18:51:59 +00:00
|
|
|
}
|
|
|
|
|
2021-11-17 09:35:56 +00:00
|
|
|
var file_acl_grpc_types_proto_enumTypes = make([]protoimpl.EnumInfo, 5)
|
|
|
|
var file_acl_grpc_types_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
|
|
|
var file_acl_grpc_types_proto_goTypes = []interface{}{
|
2020-10-19 18:51:59 +00:00
|
|
|
(Role)(0), // 0: neo.fs.v2.acl.Role
|
|
|
|
(MatchType)(0), // 1: neo.fs.v2.acl.MatchType
|
|
|
|
(Operation)(0), // 2: neo.fs.v2.acl.Operation
|
|
|
|
(Action)(0), // 3: neo.fs.v2.acl.Action
|
|
|
|
(HeaderType)(0), // 4: neo.fs.v2.acl.HeaderType
|
|
|
|
(*EACLRecord)(nil), // 5: neo.fs.v2.acl.EACLRecord
|
|
|
|
(*EACLTable)(nil), // 6: neo.fs.v2.acl.EACLTable
|
|
|
|
(*BearerToken)(nil), // 7: neo.fs.v2.acl.BearerToken
|
|
|
|
(*EACLRecord_Filter)(nil), // 8: neo.fs.v2.acl.EACLRecord.Filter
|
|
|
|
(*EACLRecord_Target)(nil), // 9: neo.fs.v2.acl.EACLRecord.Target
|
|
|
|
(*BearerToken_Body)(nil), // 10: neo.fs.v2.acl.BearerToken.Body
|
|
|
|
(*BearerToken_Body_TokenLifetime)(nil), // 11: neo.fs.v2.acl.BearerToken.Body.TokenLifetime
|
|
|
|
(*grpc.Version)(nil), // 12: neo.fs.v2.refs.Version
|
|
|
|
(*grpc.ContainerID)(nil), // 13: neo.fs.v2.refs.ContainerID
|
|
|
|
(*grpc.Signature)(nil), // 14: neo.fs.v2.refs.Signature
|
|
|
|
(*grpc.OwnerID)(nil), // 15: neo.fs.v2.refs.OwnerID
|
|
|
|
}
|
2021-11-17 09:35:56 +00:00
|
|
|
var file_acl_grpc_types_proto_depIdxs = []int32{
|
2020-10-19 18:51:59 +00:00
|
|
|
2, // 0: neo.fs.v2.acl.EACLRecord.operation:type_name -> neo.fs.v2.acl.Operation
|
|
|
|
3, // 1: neo.fs.v2.acl.EACLRecord.action:type_name -> neo.fs.v2.acl.Action
|
|
|
|
8, // 2: neo.fs.v2.acl.EACLRecord.filters:type_name -> neo.fs.v2.acl.EACLRecord.Filter
|
|
|
|
9, // 3: neo.fs.v2.acl.EACLRecord.targets:type_name -> neo.fs.v2.acl.EACLRecord.Target
|
|
|
|
12, // 4: neo.fs.v2.acl.EACLTable.version:type_name -> neo.fs.v2.refs.Version
|
|
|
|
13, // 5: neo.fs.v2.acl.EACLTable.container_id:type_name -> neo.fs.v2.refs.ContainerID
|
|
|
|
5, // 6: neo.fs.v2.acl.EACLTable.records:type_name -> neo.fs.v2.acl.EACLRecord
|
|
|
|
10, // 7: neo.fs.v2.acl.BearerToken.body:type_name -> neo.fs.v2.acl.BearerToken.Body
|
|
|
|
14, // 8: neo.fs.v2.acl.BearerToken.signature:type_name -> neo.fs.v2.refs.Signature
|
|
|
|
4, // 9: neo.fs.v2.acl.EACLRecord.Filter.header_type:type_name -> neo.fs.v2.acl.HeaderType
|
|
|
|
1, // 10: neo.fs.v2.acl.EACLRecord.Filter.match_type:type_name -> neo.fs.v2.acl.MatchType
|
|
|
|
0, // 11: neo.fs.v2.acl.EACLRecord.Target.role:type_name -> neo.fs.v2.acl.Role
|
|
|
|
6, // 12: neo.fs.v2.acl.BearerToken.Body.eacl_table:type_name -> neo.fs.v2.acl.EACLTable
|
|
|
|
15, // 13: neo.fs.v2.acl.BearerToken.Body.owner_id:type_name -> neo.fs.v2.refs.OwnerID
|
|
|
|
11, // 14: neo.fs.v2.acl.BearerToken.Body.lifetime:type_name -> neo.fs.v2.acl.BearerToken.Body.TokenLifetime
|
|
|
|
15, // [15:15] is the sub-list for method output_type
|
|
|
|
15, // [15:15] is the sub-list for method input_type
|
|
|
|
15, // [15:15] is the sub-list for extension type_name
|
|
|
|
15, // [15:15] is the sub-list for extension extendee
|
|
|
|
0, // [0:15] is the sub-list for field type_name
|
|
|
|
}
|
|
|
|
|
2021-11-17 09:35:56 +00:00
|
|
|
func init() { file_acl_grpc_types_proto_init() }
|
|
|
|
func file_acl_grpc_types_proto_init() {
|
|
|
|
if File_acl_grpc_types_proto != nil {
|
2020-10-19 18:51:59 +00:00
|
|
|
return
|
|
|
|
}
|
|
|
|
if !protoimpl.UnsafeEnabled {
|
2021-11-17 09:35:56 +00:00
|
|
|
file_acl_grpc_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
2020-10-19 18:51:59 +00:00
|
|
|
switch v := v.(*EACLRecord); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
}
|
2021-11-17 09:35:56 +00:00
|
|
|
file_acl_grpc_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
2020-10-19 18:51:59 +00:00
|
|
|
switch v := v.(*EACLTable); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2021-11-17 09:35:56 +00:00
|
|
|
file_acl_grpc_types_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
2020-10-19 18:51:59 +00:00
|
|
|
switch v := v.(*BearerToken); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2021-11-17 09:35:56 +00:00
|
|
|
file_acl_grpc_types_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
2020-10-19 18:51:59 +00:00
|
|
|
switch v := v.(*EACLRecord_Filter); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2021-11-17 09:35:56 +00:00
|
|
|
file_acl_grpc_types_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
2020-10-19 18:51:59 +00:00
|
|
|
switch v := v.(*EACLRecord_Target); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2021-11-17 09:35:56 +00:00
|
|
|
file_acl_grpc_types_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
2020-10-19 18:51:59 +00:00
|
|
|
switch v := v.(*BearerToken_Body); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2021-11-17 09:35:56 +00:00
|
|
|
file_acl_grpc_types_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
2020-10-19 18:51:59 +00:00
|
|
|
switch v := v.(*BearerToken_Body_TokenLifetime); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-10-19 18:51:59 +00:00
|
|
|
type x struct{}
|
|
|
|
out := protoimpl.TypeBuilder{
|
|
|
|
File: protoimpl.DescBuilder{
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
2021-11-17 09:35:56 +00:00
|
|
|
RawDescriptor: file_acl_grpc_types_proto_rawDesc,
|
2020-10-19 18:51:59 +00:00
|
|
|
NumEnums: 5,
|
|
|
|
NumMessages: 7,
|
|
|
|
NumExtensions: 0,
|
|
|
|
NumServices: 0,
|
|
|
|
},
|
2021-11-17 09:35:56 +00:00
|
|
|
GoTypes: file_acl_grpc_types_proto_goTypes,
|
|
|
|
DependencyIndexes: file_acl_grpc_types_proto_depIdxs,
|
|
|
|
EnumInfos: file_acl_grpc_types_proto_enumTypes,
|
|
|
|
MessageInfos: file_acl_grpc_types_proto_msgTypes,
|
2020-10-19 18:51:59 +00:00
|
|
|
}.Build()
|
2021-11-17 09:35:56 +00:00
|
|
|
File_acl_grpc_types_proto = out.File
|
|
|
|
file_acl_grpc_types_proto_rawDesc = nil
|
|
|
|
file_acl_grpc_types_proto_goTypes = nil
|
|
|
|
file_acl_grpc_types_proto_depIdxs = nil
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|