Documentation ¶
Index ¶
- Variables
- type Authorization
- func (*Authorization) Descriptor() ([]byte, []int)deprecated
- func (x *Authorization) GetAfter() *expr.Expr
- func (x *Authorization) GetBefore() *expr.Expr
- func (x *Authorization) GetCustom() string
- func (x *Authorization) GetOpen() bool
- func (x *Authorization) GetPermission() string
- func (m *Authorization) GetPermissions() isAuthorization_Permissions
- func (x *Authorization) GetResourcePermissions() *Authorization_ResourcePermissions
- func (m *Authorization) GetStrategy() isAuthorization_Strategy
- func (*Authorization) ProtoMessage()
- func (x *Authorization) ProtoReflect() protoreflect.Message
- func (x *Authorization) Reset()
- func (x *Authorization) String() string
- type Authorization_After
- type Authorization_Before
- type Authorization_Custom
- type Authorization_Open
- type Authorization_Permission
- type Authorization_ResourcePermission
- func (*Authorization_ResourcePermission) Descriptor() ([]byte, []int)deprecated
- func (x *Authorization_ResourcePermission) GetPermission() string
- func (x *Authorization_ResourcePermission) GetType() string
- func (*Authorization_ResourcePermission) ProtoMessage()
- func (x *Authorization_ResourcePermission) ProtoReflect() protoreflect.Message
- func (x *Authorization_ResourcePermission) Reset()
- func (x *Authorization_ResourcePermission) String() string
- type Authorization_ResourcePermissions
- func (*Authorization_ResourcePermissions) Descriptor() ([]byte, []int)deprecated
- func (x *Authorization_ResourcePermissions) GetResource() []*Authorization_ResourcePermission
- func (*Authorization_ResourcePermissions) ProtoMessage()
- func (x *Authorization_ResourcePermissions) ProtoReflect() protoreflect.Message
- func (x *Authorization_ResourcePermissions) Reset()
- func (x *Authorization_ResourcePermissions) String() string
- type Authorization_ResourcePermissions_
- type Caller
- type Roles
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Authorization for the method. // // optional einride.iam.v1.Authorization authorization = 11000; E_Authorization = &file_einride_iam_v1_annotations_proto_extTypes[0] )
Extension fields to descriptorpb.MethodOptions.
View Source
var ( // Predefined roles for the service. // // optional einride.iam.v1.Roles predefined_roles = 11001; E_PredefinedRoles = &file_einride_iam_v1_annotations_proto_extTypes[1] )
Extension fields to descriptorpb.ServiceOptions.
View Source
var File_einride_iam_v1_annotations_proto protoreflect.FileDescriptor
View Source
var File_einride_iam_v1_caller_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Authorization ¶
type Authorization struct { // Permission to use for authorization. // // Types that are assignable to Permissions: // *Authorization_Permission // *Authorization_ResourcePermissions_ Permissions isAuthorization_Permissions `protobuf_oneof:"permissions"` // Strategy that decides if the request is authorized. // // Types that are assignable to Strategy: // *Authorization_Before // *Authorization_After // *Authorization_Custom // *Authorization_Open Strategy isAuthorization_Strategy `protobuf_oneof:"strategy"` // contains filtered or unexported fields }
Authorization options for a gRPC method.
func (*Authorization) Descriptor
deprecated
func (*Authorization) Descriptor() ([]byte, []int)
Deprecated: Use Authorization.ProtoReflect.Descriptor instead.
func (*Authorization) GetAfter ¶
func (x *Authorization) GetAfter() *expr.Expr
func (*Authorization) GetBefore ¶
func (x *Authorization) GetBefore() *expr.Expr
func (*Authorization) GetCustom ¶
func (x *Authorization) GetCustom() string
func (*Authorization) GetOpen ¶
func (x *Authorization) GetOpen() bool
func (*Authorization) GetPermission ¶
func (x *Authorization) GetPermission() string
func (*Authorization) GetPermissions ¶
func (m *Authorization) GetPermissions() isAuthorization_Permissions
func (*Authorization) GetResourcePermissions ¶
func (x *Authorization) GetResourcePermissions() *Authorization_ResourcePermissions
func (*Authorization) GetStrategy ¶
func (m *Authorization) GetStrategy() isAuthorization_Strategy
func (*Authorization) ProtoMessage ¶
func (*Authorization) ProtoMessage()
func (*Authorization) ProtoReflect ¶
func (x *Authorization) ProtoReflect() protoreflect.Message
func (*Authorization) Reset ¶
func (x *Authorization) Reset()
func (*Authorization) String ¶
func (x *Authorization) String() string
type Authorization_After ¶
type Authorization_Before ¶
type Authorization_Custom ¶
type Authorization_Custom struct { // A comment explaining a custom way of determining if the caller is authorized. Custom string `protobuf:"bytes,5,opt,name=custom,proto3,oneof"` }
type Authorization_Open ¶
type Authorization_Open struct { // A flag indicating if the method is open. Open bool `protobuf:"varint,6,opt,name=open,proto3,oneof"` }
type Authorization_Permission ¶
type Authorization_Permission struct { // A single permission used by the method. Permission string `protobuf:"bytes,1,opt,name=permission,proto3,oneof"` }
type Authorization_ResourcePermission ¶
type Authorization_ResourcePermission struct { // The resource type. Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // The permission. Permission string `protobuf:"bytes,2,opt,name=permission,proto3" json:"permission,omitempty"` // contains filtered or unexported fields }
A resource type and a permission.
func (*Authorization_ResourcePermission) Descriptor
deprecated
func (*Authorization_ResourcePermission) Descriptor() ([]byte, []int)
Deprecated: Use Authorization_ResourcePermission.ProtoReflect.Descriptor instead.
func (*Authorization_ResourcePermission) GetPermission ¶
func (x *Authorization_ResourcePermission) GetPermission() string
func (*Authorization_ResourcePermission) GetType ¶
func (x *Authorization_ResourcePermission) GetType() string
func (*Authorization_ResourcePermission) ProtoMessage ¶
func (*Authorization_ResourcePermission) ProtoMessage()
func (*Authorization_ResourcePermission) ProtoReflect ¶
func (x *Authorization_ResourcePermission) ProtoReflect() protoreflect.Message
func (*Authorization_ResourcePermission) Reset ¶
func (x *Authorization_ResourcePermission) Reset()
func (*Authorization_ResourcePermission) String ¶
func (x *Authorization_ResourcePermission) String() string
type Authorization_ResourcePermissions ¶
type Authorization_ResourcePermissions struct { // The resource permissions. Resource []*Authorization_ResourcePermission `protobuf:"bytes,1,rep,name=resource,proto3" json:"resource,omitempty"` // contains filtered or unexported fields }
Resource permissions.
func (*Authorization_ResourcePermissions) Descriptor
deprecated
func (*Authorization_ResourcePermissions) Descriptor() ([]byte, []int)
Deprecated: Use Authorization_ResourcePermissions.ProtoReflect.Descriptor instead.
func (*Authorization_ResourcePermissions) GetResource ¶
func (x *Authorization_ResourcePermissions) GetResource() []*Authorization_ResourcePermission
func (*Authorization_ResourcePermissions) ProtoMessage ¶
func (*Authorization_ResourcePermissions) ProtoMessage()
func (*Authorization_ResourcePermissions) ProtoReflect ¶
func (x *Authorization_ResourcePermissions) ProtoReflect() protoreflect.Message
func (*Authorization_ResourcePermissions) Reset ¶
func (x *Authorization_ResourcePermissions) Reset()
func (*Authorization_ResourcePermissions) String ¶
func (x *Authorization_ResourcePermissions) String() string
type Authorization_ResourcePermissions_ ¶
type Authorization_ResourcePermissions_ struct { // Resource permissions used by the method. ResourcePermissions *Authorization_ResourcePermissions `protobuf:"bytes,2,opt,name=resource_permissions,json=resourcePermissions,proto3,oneof"` }
type Caller ¶
type Caller struct { // The caller's IAM policy member identity. Member string `protobuf:"bytes,1,opt,name=member,proto3" json:"member,omitempty"` // contains filtered or unexported fields }
Caller identity.
func (*Caller) Descriptor
deprecated
func (*Caller) ProtoMessage ¶
func (*Caller) ProtoMessage()
func (*Caller) ProtoReflect ¶
func (x *Caller) ProtoReflect() protoreflect.Message
type Roles ¶
type Roles struct { Role []*v1.Role `protobuf:"bytes,1,rep,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
A list of roles.
func (*Roles) Descriptor
deprecated
func (*Roles) ProtoMessage ¶
func (*Roles) ProtoMessage()
func (*Roles) ProtoReflect ¶
func (x *Roles) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.