iamv1

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: MIT Imports: 9 Imported by: 5

Documentation

Index

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

Deprecated: Use Caller.ProtoReflect.Descriptor instead.

func (*Caller) GetMembers added in v0.15.0

func (x *Caller) GetMembers() []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 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 (*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_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 MethodAuthorizationOptions_Before added in v0.14.0

type MethodAuthorizationOptions_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 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 (*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) 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