Documentation ¶
Index ¶
- Variables
- type Caller
- type MethodAuthorizationOptions
- func (*MethodAuthorizationOptions) Descriptor() ([]byte, []int)deprecated
- func (x *MethodAuthorizationOptions) GetAfter() *expr.Expr
- func (x *MethodAuthorizationOptions) GetBefore() *expr.Expr
- func (x *MethodAuthorizationOptions) GetCustom() string
- func (x *MethodAuthorizationOptions) GetOpen() bool
- func (x *MethodAuthorizationOptions) GetPermission() string
- func (m *MethodAuthorizationOptions) GetPermissions() isMethodAuthorizationOptions_Permissions
- func (x *MethodAuthorizationOptions) GetResourcePermissions() *ResourcePermissions
- func (m *MethodAuthorizationOptions) GetStrategy() isMethodAuthorizationOptions_Strategy
- func (*MethodAuthorizationOptions) ProtoMessage()
- func (x *MethodAuthorizationOptions) ProtoReflect() protoreflect.Message
- func (x *MethodAuthorizationOptions) Reset()
- func (x *MethodAuthorizationOptions) String() string
- type MethodAuthorizationOptions_After
- type MethodAuthorizationOptions_Before
- type MethodAuthorizationOptions_Custom
- type MethodAuthorizationOptions_Open
- type MethodAuthorizationOptions_Permission
- type MethodAuthorizationOptions_ResourcePermissions
- type ResourcePermission
- func (*ResourcePermission) Descriptor() ([]byte, []int)deprecated
- func (x *ResourcePermission) GetPermission() string
- func (x *ResourcePermission) GetResource() *annotations.ResourceDescriptor
- func (*ResourcePermission) ProtoMessage()
- func (x *ResourcePermission) ProtoReflect() protoreflect.Message
- func (x *ResourcePermission) Reset()
- func (x *ResourcePermission) String() string
- type ResourcePermissions
- func (*ResourcePermissions) Descriptor() ([]byte, []int)deprecated
- func (x *ResourcePermissions) GetResourcePermission() []*ResourcePermission
- func (*ResourcePermissions) ProtoMessage()
- func (x *ResourcePermissions) ProtoReflect() protoreflect.Message
- func (x *ResourcePermissions) Reset()
- func (x *ResourcePermissions) String() string
- type Roles
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Method authorization options. // // optional einride.iam.v1.MethodAuthorizationOptions method_authorization = 201600; E_MethodAuthorization = &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 = 201601; 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 Caller ¶
type Caller struct { // The authenticated IAM policy members of the caller. Members []string `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty"` // contains filtered or unexported fields }
Caller identity.
func (*Caller) Descriptor
deprecated
func (*Caller) GetMembers ¶ added in v0.15.0
func (*Caller) ProtoMessage ¶
func (*Caller) ProtoMessage()
func (*Caller) ProtoReflect ¶
func (x *Caller) ProtoReflect() protoreflect.Message
type MethodAuthorizationOptions ¶ added in v0.14.0
type MethodAuthorizationOptions struct { // Permission to use for authorization. // // Types that are assignable to Permissions: // *MethodAuthorizationOptions_Permission // *MethodAuthorizationOptions_ResourcePermissions Permissions isMethodAuthorizationOptions_Permissions `protobuf_oneof:"permissions"` // Strategy that decides if the request is authorized. // // Types that are assignable to Strategy: // *MethodAuthorizationOptions_Before // *MethodAuthorizationOptions_After // *MethodAuthorizationOptions_Custom // *MethodAuthorizationOptions_Open Strategy isMethodAuthorizationOptions_Strategy `protobuf_oneof:"strategy"` // contains filtered or unexported fields }
Method authorization options.
func (*MethodAuthorizationOptions) Descriptor
deprecated
added in
v0.14.0
func (*MethodAuthorizationOptions) Descriptor() ([]byte, []int)
Deprecated: Use MethodAuthorizationOptions.ProtoReflect.Descriptor instead.
func (*MethodAuthorizationOptions) GetAfter ¶ added in v0.14.0
func (x *MethodAuthorizationOptions) GetAfter() *expr.Expr
func (*MethodAuthorizationOptions) GetBefore ¶ added in v0.14.0
func (x *MethodAuthorizationOptions) GetBefore() *expr.Expr
func (*MethodAuthorizationOptions) GetCustom ¶ added in v0.14.0
func (x *MethodAuthorizationOptions) GetCustom() string
func (*MethodAuthorizationOptions) GetOpen ¶ added in v0.14.0
func (x *MethodAuthorizationOptions) GetOpen() bool
func (*MethodAuthorizationOptions) GetPermission ¶ added in v0.14.0
func (x *MethodAuthorizationOptions) GetPermission() string
func (*MethodAuthorizationOptions) GetPermissions ¶ added in v0.14.0
func (m *MethodAuthorizationOptions) GetPermissions() isMethodAuthorizationOptions_Permissions
func (*MethodAuthorizationOptions) GetResourcePermissions ¶ added in v0.14.0
func (x *MethodAuthorizationOptions) GetResourcePermissions() *ResourcePermissions
func (*MethodAuthorizationOptions) GetStrategy ¶ added in v0.14.0
func (m *MethodAuthorizationOptions) GetStrategy() isMethodAuthorizationOptions_Strategy
func (*MethodAuthorizationOptions) ProtoMessage ¶ added in v0.14.0
func (*MethodAuthorizationOptions) ProtoMessage()
func (*MethodAuthorizationOptions) ProtoReflect ¶ added in v0.14.0
func (x *MethodAuthorizationOptions) ProtoReflect() protoreflect.Message
func (*MethodAuthorizationOptions) Reset ¶ added in v0.14.0
func (x *MethodAuthorizationOptions) Reset()
func (*MethodAuthorizationOptions) String ¶ added in v0.14.0
func (x *MethodAuthorizationOptions) String() string
type MethodAuthorizationOptions_After ¶ added in v0.14.0
type MethodAuthorizationOptions_Before ¶ added in v0.14.0
type MethodAuthorizationOptions_Custom ¶ added in v0.14.0
type MethodAuthorizationOptions_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 MethodAuthorizationOptions_Open ¶ added in v0.14.0
type MethodAuthorizationOptions_Open struct { // A flag indicating if the method is open. Open bool `protobuf:"varint,6,opt,name=open,proto3,oneof"` }
type MethodAuthorizationOptions_Permission ¶ added in v0.14.0
type MethodAuthorizationOptions_Permission struct { // A single permission used by the method. Permission string `protobuf:"bytes,1,opt,name=permission,proto3,oneof"` }
type MethodAuthorizationOptions_ResourcePermissions ¶ added in v0.14.0
type MethodAuthorizationOptions_ResourcePermissions struct { // Resource permissions used by the method. ResourcePermissions *ResourcePermissions `protobuf:"bytes,2,opt,name=resource_permissions,json=resourcePermissions,proto3,oneof"` }
type ResourcePermission ¶ added in v0.12.0
type ResourcePermission struct { // The resource. // When used for authorization method options, only the type must be provided. Resource *annotations.ResourceDescriptor `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,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 (*ResourcePermission) Descriptor
deprecated
added in
v0.12.0
func (*ResourcePermission) Descriptor() ([]byte, []int)
Deprecated: Use ResourcePermission.ProtoReflect.Descriptor instead.
func (*ResourcePermission) GetPermission ¶ added in v0.12.0
func (x *ResourcePermission) GetPermission() string
func (*ResourcePermission) GetResource ¶ added in v0.14.0
func (x *ResourcePermission) GetResource() *annotations.ResourceDescriptor
func (*ResourcePermission) ProtoMessage ¶ added in v0.12.0
func (*ResourcePermission) ProtoMessage()
func (*ResourcePermission) ProtoReflect ¶ added in v0.12.0
func (x *ResourcePermission) ProtoReflect() protoreflect.Message
func (*ResourcePermission) Reset ¶ added in v0.12.0
func (x *ResourcePermission) Reset()
func (*ResourcePermission) String ¶ added in v0.12.0
func (x *ResourcePermission) String() string
type ResourcePermissions ¶ added in v0.12.0
type ResourcePermissions struct { // The resource permissions. ResourcePermission []*ResourcePermission `protobuf:"bytes,1,rep,name=resource_permission,json=resourcePermission,proto3" json:"resource_permission,omitempty"` // contains filtered or unexported fields }
Resource permissions.
func (*ResourcePermissions) Descriptor
deprecated
added in
v0.12.0
func (*ResourcePermissions) Descriptor() ([]byte, []int)
Deprecated: Use ResourcePermissions.ProtoReflect.Descriptor instead.
func (*ResourcePermissions) GetResourcePermission ¶ added in v0.14.0
func (x *ResourcePermissions) GetResourcePermission() []*ResourcePermission
func (*ResourcePermissions) ProtoMessage ¶ added in v0.12.0
func (*ResourcePermissions) ProtoMessage()
func (*ResourcePermissions) ProtoReflect ¶ added in v0.12.0
func (x *ResourcePermissions) ProtoReflect() protoreflect.Message
func (*ResourcePermissions) Reset ¶ added in v0.12.0
func (x *ResourcePermissions) Reset()
func (*ResourcePermissions) String ¶ added in v0.12.0
func (x *ResourcePermissions) String() string
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.