iamv1

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2021 License: MIT Imports: 8 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Authorization for the method.
	//
	// optional einride.iam.v1.Authorization authorization = 201600;
	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 = 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 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_After struct {
	// Expression that decides after the request if the caller is authorized.
	After *expr.Expr `protobuf:"bytes,4,opt,name=after,proto3,oneof"`
}

type Authorization_Before

type Authorization_Before struct {
	// Expression that decides before the request if the caller is authorized.
	Before *expr.Expr `protobuf:"bytes,3,opt,name=before,proto3,oneof"`
}

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 (*Authorization_ResourcePermission) ProtoMessage

func (*Authorization_ResourcePermission) ProtoMessage()

func (*Authorization_ResourcePermission) ProtoReflect

func (*Authorization_ResourcePermission) Reset

func (*Authorization_ResourcePermission) 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 (*Authorization_ResourcePermissions) ProtoMessage

func (*Authorization_ResourcePermissions) ProtoMessage()

func (*Authorization_ResourcePermissions) ProtoReflect

func (*Authorization_ResourcePermissions) Reset

func (*Authorization_ResourcePermissions) 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) Descriptor() ([]byte, []int)

Deprecated: Use Caller.ProtoReflect.Descriptor instead.

func (*Caller) GetMember

func (x *Caller) GetMember() string

func (*Caller) ProtoMessage

func (*Caller) ProtoMessage()

func (*Caller) ProtoReflect

func (x *Caller) ProtoReflect() protoreflect.Message

func (*Caller) Reset

func (x *Caller) Reset()

func (*Caller) String

func (x *Caller) 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) Descriptor() ([]byte, []int)

Deprecated: Use Roles.ProtoReflect.Descriptor instead.

func (*Roles) GetRole

func (x *Roles) GetRole() []*v1.Role

func (*Roles) ProtoMessage

func (*Roles) ProtoMessage()

func (*Roles) ProtoReflect

func (x *Roles) ProtoReflect() protoreflect.Message

func (*Roles) Reset

func (x *Roles) Reset()

func (*Roles) String

func (x *Roles) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL