iamv1

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: MIT Imports: 9 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

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[0]
	// Long-running operations authorization for the service.
	//
	// optional einride.iam.v1.LongRunningOperationsAuthorization long_running_operations_authorization = 201602;
	E_LongRunningOperationsAuthorization = &file_einride_iam_v1_annotations_proto_extTypes[1]
)

Extension fields to descriptorpb.ServiceOptions.

View Source
var (
	// Method authorization options.
	//
	// optional einride.iam.v1.MethodAuthorizationOptions method_authorization = 201600;
	E_MethodAuthorization = &file_einride_iam_v1_annotations_proto_extTypes[2]
)

Extension fields to descriptorpb.MethodOptions.

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 LongRunningOperationPermissions added in v0.18.0

type LongRunningOperationPermissions struct {

	// The long-running operation resource. The type field is required.
	Operation *annotations.ResourceDescriptor `protobuf:"bytes,1,opt,name=operation,proto3" json:"operation,omitempty"`
	// Permission for listing operations.
	List string `protobuf:"bytes,2,opt,name=list,proto3" json:"list,omitempty"`
	// Permission for getting an operation.
	Get string `protobuf:"bytes,3,opt,name=get,proto3" json:"get,omitempty"`
	// Permission for cancelling an operation.
	Cancel string `protobuf:"bytes,4,opt,name=cancel,proto3" json:"cancel,omitempty"`
	// Permission for deleting an operation.
	Delete string `protobuf:"bytes,5,opt,name=delete,proto3" json:"delete,omitempty"`
	// Permission for waiting on an operation.
	Wait string `protobuf:"bytes,6,opt,name=wait,proto3" json:"wait,omitempty"`
	// contains filtered or unexported fields
}

Permissions for a long-running operation.

func (*LongRunningOperationPermissions) Descriptor deprecated added in v0.18.0

func (*LongRunningOperationPermissions) Descriptor() ([]byte, []int)

Deprecated: Use LongRunningOperationPermissions.ProtoReflect.Descriptor instead.

func (*LongRunningOperationPermissions) GetCancel added in v0.18.0

func (x *LongRunningOperationPermissions) GetCancel() string

func (*LongRunningOperationPermissions) GetDelete added in v0.18.0

func (x *LongRunningOperationPermissions) GetDelete() string

func (*LongRunningOperationPermissions) GetGet added in v0.18.0

func (*LongRunningOperationPermissions) GetList added in v0.18.0

func (*LongRunningOperationPermissions) GetOperation added in v0.18.0

func (*LongRunningOperationPermissions) GetWait added in v0.18.0

func (*LongRunningOperationPermissions) ProtoMessage added in v0.18.0

func (*LongRunningOperationPermissions) ProtoMessage()

func (*LongRunningOperationPermissions) ProtoReflect added in v0.18.0

func (*LongRunningOperationPermissions) Reset added in v0.18.0

func (*LongRunningOperationPermissions) String added in v0.18.0

type LongRunningOperationsAuthorization added in v0.18.0

type LongRunningOperationsAuthorization struct {

	// The long-running operation permissions.
	OperationPermissions []*LongRunningOperationPermissions `protobuf:"bytes,1,rep,name=operation_permissions,json=operationPermissions,proto3" json:"operation_permissions,omitempty"`
	// Strategy that decides if the request is authorized.
	//
	// Types that are assignable to Strategy:
	//	*LongRunningOperationsAuthorization_Before
	//	*LongRunningOperationsAuthorization_Custom
	//	*LongRunningOperationsAuthorization_None
	Strategy isLongRunningOperationsAuthorization_Strategy `protobuf_oneof:"strategy"`
	// contains filtered or unexported fields
}

Long-running operations permissions.

func (*LongRunningOperationsAuthorization) Descriptor deprecated added in v0.18.0

func (*LongRunningOperationsAuthorization) Descriptor() ([]byte, []int)

Deprecated: Use LongRunningOperationsAuthorization.ProtoReflect.Descriptor instead.

func (*LongRunningOperationsAuthorization) GetBefore added in v0.18.0

func (*LongRunningOperationsAuthorization) GetCustom added in v0.18.0

func (*LongRunningOperationsAuthorization) GetNone added in v0.18.0

func (*LongRunningOperationsAuthorization) GetOperationPermissions added in v0.18.0

func (*LongRunningOperationsAuthorization) GetStrategy added in v0.18.0

func (m *LongRunningOperationsAuthorization) GetStrategy() isLongRunningOperationsAuthorization_Strategy

func (*LongRunningOperationsAuthorization) ProtoMessage added in v0.18.0

func (*LongRunningOperationsAuthorization) ProtoMessage()

func (*LongRunningOperationsAuthorization) ProtoReflect added in v0.18.0

func (*LongRunningOperationsAuthorization) Reset added in v0.18.0

func (*LongRunningOperationsAuthorization) String added in v0.18.0

type LongRunningOperationsAuthorization_Before added in v0.18.0

type LongRunningOperationsAuthorization_Before struct {
	// A flag indicating if a standard authorization checked is performed before the request.
	Before bool `protobuf:"varint,3,opt,name=before,proto3,oneof"`
}

type LongRunningOperationsAuthorization_Custom added in v0.18.0

type LongRunningOperationsAuthorization_Custom struct {
	// A flag indicating if custom-implemented authorization is required.
	Custom bool `protobuf:"varint,4,opt,name=custom,proto3,oneof"`
}

type LongRunningOperationsAuthorization_None added in v0.18.0

type LongRunningOperationsAuthorization_None struct {
	// A flag indicating if no authorization is required.
	None bool `protobuf:"varint,5,opt,name=none,proto3,oneof"`
}

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_None
	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() bool

func (*MethodAuthorizationOptions) GetNone added in v0.17.0

func (x *MethodAuthorizationOptions) GetNone() 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 flag indicating if the method requires custom-implemented authorization.
	Custom bool `protobuf:"varint,5,opt,name=custom,proto3,oneof"`
}

type MethodAuthorizationOptions_None added in v0.17.0

type MethodAuthorizationOptions_None struct {
	// A flag indicating if the method requires no authorization.
	None bool `protobuf:"varint,6,opt,name=none,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