Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterAccessServiceServer(s grpc.ServiceRegistrar, srv AccessServiceServer)
- type AccessServiceClient
- type AccessServiceServer
- type Account
- func (*Account) Descriptor() ([]byte, []int)deprecated
- func (x *Account) GetAnonymousAccount() *Account_AnonymousAccount
- func (x *Account) GetServiceAccount() *Account_ServiceAccount
- func (m *Account) GetType() isAccount_Type
- func (x *Account) GetUserAccount() *Account_UserAccount
- func (*Account) ProtoMessage()
- func (x *Account) ProtoReflect() protoreflect.Message
- func (x *Account) Reset()
- func (x *Account) String() string
- type Account_AnonymousAccount
- type Account_AnonymousAccount_
- type Account_ServiceAccount
- func (*Account_ServiceAccount) Descriptor() ([]byte, []int)deprecated
- func (x *Account_ServiceAccount) GetId() string
- func (*Account_ServiceAccount) ProtoMessage()
- func (x *Account_ServiceAccount) ProtoReflect() protoreflect.Message
- func (x *Account_ServiceAccount) Reset()
- func (x *Account_ServiceAccount) String() string
- type Account_ServiceAccount_
- type Account_UserAccount
- func (*Account_UserAccount) Descriptor() ([]byte, []int)deprecated
- func (x *Account_UserAccount) GetId() string
- func (*Account_UserAccount) ProtoMessage()
- func (x *Account_UserAccount) ProtoReflect() protoreflect.Message
- func (x *Account_UserAccount) Reset()
- func (x *Account_UserAccount) String() string
- type Account_UserAccount_
- type AmzSignatureV4KeyParams
- func (*AmzSignatureV4KeyParams) Descriptor() ([]byte, []int)deprecated
- func (x *AmzSignatureV4KeyParams) GetAmzDate() *timestamppb.Timestamp
- func (x *AmzSignatureV4KeyParams) GetAmzRegion() string
- func (x *AmzSignatureV4KeyParams) GetAmzService() string
- func (*AmzSignatureV4KeyParams) ProtoMessage()
- func (x *AmzSignatureV4KeyParams) ProtoReflect() protoreflect.Message
- func (x *AmzSignatureV4KeyParams) Reset()
- func (x *AmzSignatureV4KeyParams) String() string
- type AnonymousCredential
- type AuthorizeCheck
- func (*AuthorizeCheck) Descriptor() ([]byte, []int)deprecated
- func (x *AuthorizeCheck) GetAccount() *Account
- func (x *AuthorizeCheck) GetAnonymousCredential() *AnonymousCredential
- func (x *AuthorizeCheck) GetAwsCompatibleSignature() *AwsCompatibleSignature
- func (x *AuthorizeCheck) GetContainerId() string
- func (x *AuthorizeCheck) GetIamToken() string
- func (m *AuthorizeCheck) GetIdentifier() isAuthorizeCheck_Identifier
- func (x *AuthorizeCheck) GetPermission() *Permission
- func (x *AuthorizeCheck) GetResourcePath() *ResourcePath
- func (*AuthorizeCheck) ProtoMessage()
- func (x *AuthorizeCheck) ProtoReflect() protoreflect.Message
- func (x *AuthorizeCheck) Reset()
- func (x *AuthorizeCheck) String() string
- type AuthorizeCheck_Account
- type AuthorizeCheck_AnonymousCredential
- type AuthorizeCheck_AwsCompatibleSignature
- type AuthorizeCheck_IamToken
- type AuthorizeRequest
- func (*AuthorizeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthorizeRequest) GetChecks() map[int64]*AuthorizeCheck
- func (*AuthorizeRequest) ProtoMessage()
- func (x *AuthorizeRequest) ProtoReflect() protoreflect.Message
- func (x *AuthorizeRequest) Reset()
- func (x *AuthorizeRequest) String() string
- type AuthorizeResponse
- func (*AuthorizeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthorizeResponse) GetResults() map[int64]*AuthorizeResult
- func (*AuthorizeResponse) ProtoMessage()
- func (x *AuthorizeResponse) ProtoReflect() protoreflect.Message
- func (x *AuthorizeResponse) Reset()
- func (x *AuthorizeResponse) String() string
- type AuthorizeResult
- func (*AuthorizeResult) Descriptor() ([]byte, []int)deprecated
- func (x *AuthorizeResult) GetAccount() *Account
- func (x *AuthorizeResult) GetResultCode() AuthorizeResult_ResultCode
- func (x *AuthorizeResult) GetStatus() *AuthorizeResult_AuthorizeStatus
- func (*AuthorizeResult) ProtoMessage()
- func (x *AuthorizeResult) ProtoReflect() protoreflect.Message
- func (x *AuthorizeResult) Reset()
- func (x *AuthorizeResult) String() string
- type AuthorizeResult_AuthorizeStatus
- func (*AuthorizeResult_AuthorizeStatus) Descriptor() ([]byte, []int)deprecated
- func (x *AuthorizeResult_AuthorizeStatus) GetCode() AuthorizeResult_AuthorizeStatus_AuthorizeStatusCode
- func (x *AuthorizeResult_AuthorizeStatus) GetMessage() string
- func (*AuthorizeResult_AuthorizeStatus) ProtoMessage()
- func (x *AuthorizeResult_AuthorizeStatus) ProtoReflect() protoreflect.Message
- func (x *AuthorizeResult_AuthorizeStatus) Reset()
- func (x *AuthorizeResult_AuthorizeStatus) String() string
- type AuthorizeResult_AuthorizeStatus_AuthorizeStatusCode
- func (AuthorizeResult_AuthorizeStatus_AuthorizeStatusCode) Descriptor() protoreflect.EnumDescriptor
- func (x AuthorizeResult_AuthorizeStatus_AuthorizeStatusCode) Enum() *AuthorizeResult_AuthorizeStatus_AuthorizeStatusCode
- func (AuthorizeResult_AuthorizeStatus_AuthorizeStatusCode) EnumDescriptor() ([]byte, []int)deprecated
- func (x AuthorizeResult_AuthorizeStatus_AuthorizeStatusCode) Number() protoreflect.EnumNumber
- func (x AuthorizeResult_AuthorizeStatus_AuthorizeStatusCode) String() string
- func (AuthorizeResult_AuthorizeStatus_AuthorizeStatusCode) Type() protoreflect.EnumType
- type AuthorizeResult_ResultCode
- func (AuthorizeResult_ResultCode) Descriptor() protoreflect.EnumDescriptor
- func (x AuthorizeResult_ResultCode) Enum() *AuthorizeResult_ResultCode
- func (AuthorizeResult_ResultCode) EnumDescriptor() ([]byte, []int)deprecated
- func (x AuthorizeResult_ResultCode) Number() protoreflect.EnumNumber
- func (x AuthorizeResult_ResultCode) String() string
- func (AuthorizeResult_ResultCode) Type() protoreflect.EnumType
- type AwsCompatibleSignature
- func (*AwsCompatibleSignature) Descriptor() ([]byte, []int)deprecated
- func (x *AwsCompatibleSignature) GetAwsAccessKeyId() string
- func (x *AwsCompatibleSignature) GetSignKeyParams() *AmzSignatureV4KeyParams
- func (x *AwsCompatibleSignature) GetSignature() string
- func (x *AwsCompatibleSignature) GetStringToSign() string
- func (*AwsCompatibleSignature) ProtoMessage()
- func (x *AwsCompatibleSignature) ProtoReflect() protoreflect.Message
- func (x *AwsCompatibleSignature) Reset()
- func (x *AwsCompatibleSignature) String() string
- type Permission
- type Resource
- type ResourcePath
- type UnimplementedAccessServiceServer
- type UnsafeAccessServiceServer
Constants ¶
const (
AccessService_Authorize_FullMethodName = "/nebius.iam.v1.AccessService/Authorize"
)
Variables ¶
var ( AuthorizeResult_ResultCode_name = map[int32]string{ 0: "OK", 1: "PERMISSION_DENIED", 2: "UNKNOWN_SUBJECT", 3: "INVALID_TOKEN", } AuthorizeResult_ResultCode_value = map[string]int32{ "OK": 0, "PERMISSION_DENIED": 1, "UNKNOWN_SUBJECT": 2, "INVALID_TOKEN": 3, } )
Enum value maps for AuthorizeResult_ResultCode.
var ( AuthorizeResult_AuthorizeStatus_AuthorizeStatusCode_name = map[int32]string{ 0: "UNSPECIFIED", 1: "OK", 2: "PERMISSION_DENIED", 3: "UNAUTHENTICATED", } AuthorizeResult_AuthorizeStatus_AuthorizeStatusCode_value = map[string]int32{ "UNSPECIFIED": 0, "OK": 1, "PERMISSION_DENIED": 2, "UNAUTHENTICATED": 3, } )
Enum value maps for AuthorizeResult_AuthorizeStatus_AuthorizeStatusCode.
var AccessService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "nebius.iam.v1.AccessService", HandlerType: (*AccessServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Authorize", Handler: _AccessService_Authorize_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "iam/v1/access_service.proto", }
AccessService_ServiceDesc is the grpc.ServiceDesc for AccessService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_iam_v1_access_proto protoreflect.FileDescriptor
var File_iam_v1_access_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAccessServiceServer ¶
func RegisterAccessServiceServer(s grpc.ServiceRegistrar, srv AccessServiceServer)
Types ¶
type AccessServiceClient ¶
type AccessServiceClient interface {
Authorize(ctx context.Context, in *AuthorizeRequest, opts ...grpc.CallOption) (*AuthorizeResponse, error)
}
AccessServiceClient is the client API for AccessService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAccessServiceClient ¶
func NewAccessServiceClient(cc grpc.ClientConnInterface) AccessServiceClient
type AccessServiceServer ¶
type AccessServiceServer interface { Authorize(context.Context, *AuthorizeRequest) (*AuthorizeResponse, error) // contains filtered or unexported methods }
AccessServiceServer is the server API for AccessService service. All implementations must embed UnimplementedAccessServiceServer for forward compatibility.
type Account ¶
type Account struct { // Types that are assignable to Type: // // *Account_UserAccount_ // *Account_ServiceAccount_ // *Account_AnonymousAccount_ Type isAccount_Type `protobuf_oneof:"type"` // contains filtered or unexported fields }
func (*Account) Descriptor
deprecated
func (*Account) GetAnonymousAccount ¶
func (x *Account) GetAnonymousAccount() *Account_AnonymousAccount
func (*Account) GetServiceAccount ¶
func (x *Account) GetServiceAccount() *Account_ServiceAccount
func (*Account) GetUserAccount ¶
func (x *Account) GetUserAccount() *Account_UserAccount
func (*Account) ProtoMessage ¶
func (*Account) ProtoMessage()
func (*Account) ProtoReflect ¶
func (x *Account) ProtoReflect() protoreflect.Message
type Account_AnonymousAccount ¶
type Account_AnonymousAccount struct {
// contains filtered or unexported fields
}
func (*Account_AnonymousAccount) Descriptor
deprecated
func (*Account_AnonymousAccount) Descriptor() ([]byte, []int)
Deprecated: Use Account_AnonymousAccount.ProtoReflect.Descriptor instead.
func (*Account_AnonymousAccount) ProtoMessage ¶
func (*Account_AnonymousAccount) ProtoMessage()
func (*Account_AnonymousAccount) ProtoReflect ¶
func (x *Account_AnonymousAccount) ProtoReflect() protoreflect.Message
func (*Account_AnonymousAccount) Reset ¶
func (x *Account_AnonymousAccount) Reset()
func (*Account_AnonymousAccount) String ¶
func (x *Account_AnonymousAccount) String() string
type Account_AnonymousAccount_ ¶
type Account_AnonymousAccount_ struct {
AnonymousAccount *Account_AnonymousAccount `protobuf:"bytes,3,opt,name=anonymous_account,json=anonymousAccount,proto3,oneof"`
}
type Account_ServiceAccount ¶
type Account_ServiceAccount struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*Account_ServiceAccount) Descriptor
deprecated
func (*Account_ServiceAccount) Descriptor() ([]byte, []int)
Deprecated: Use Account_ServiceAccount.ProtoReflect.Descriptor instead.
func (*Account_ServiceAccount) GetId ¶
func (x *Account_ServiceAccount) GetId() string
func (*Account_ServiceAccount) ProtoMessage ¶
func (*Account_ServiceAccount) ProtoMessage()
func (*Account_ServiceAccount) ProtoReflect ¶
func (x *Account_ServiceAccount) ProtoReflect() protoreflect.Message
func (*Account_ServiceAccount) Reset ¶
func (x *Account_ServiceAccount) Reset()
func (*Account_ServiceAccount) String ¶
func (x *Account_ServiceAccount) String() string
type Account_ServiceAccount_ ¶
type Account_ServiceAccount_ struct {
ServiceAccount *Account_ServiceAccount `protobuf:"bytes,2,opt,name=service_account,json=serviceAccount,proto3,oneof"`
}
type Account_UserAccount ¶
type Account_UserAccount struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*Account_UserAccount) Descriptor
deprecated
func (*Account_UserAccount) Descriptor() ([]byte, []int)
Deprecated: Use Account_UserAccount.ProtoReflect.Descriptor instead.
func (*Account_UserAccount) GetId ¶
func (x *Account_UserAccount) GetId() string
func (*Account_UserAccount) ProtoMessage ¶
func (*Account_UserAccount) ProtoMessage()
func (*Account_UserAccount) ProtoReflect ¶
func (x *Account_UserAccount) ProtoReflect() protoreflect.Message
func (*Account_UserAccount) Reset ¶
func (x *Account_UserAccount) Reset()
func (*Account_UserAccount) String ¶
func (x *Account_UserAccount) String() string
type Account_UserAccount_ ¶
type Account_UserAccount_ struct {
UserAccount *Account_UserAccount `protobuf:"bytes,1,opt,name=user_account,json=userAccount,proto3,oneof"`
}
type AmzSignatureV4KeyParams ¶
type AmzSignatureV4KeyParams struct { AmzDate *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=amz_date,json=amzDate,proto3" json:"amz_date,omitempty"` AmzRegion string `protobuf:"bytes,2,opt,name=amz_region,json=amzRegion,proto3" json:"amz_region,omitempty"` AmzService string `protobuf:"bytes,3,opt,name=amz_service,json=amzService,proto3" json:"amz_service,omitempty"` // contains filtered or unexported fields }
func (*AmzSignatureV4KeyParams) Descriptor
deprecated
func (*AmzSignatureV4KeyParams) Descriptor() ([]byte, []int)
Deprecated: Use AmzSignatureV4KeyParams.ProtoReflect.Descriptor instead.
func (*AmzSignatureV4KeyParams) GetAmzDate ¶
func (x *AmzSignatureV4KeyParams) GetAmzDate() *timestamppb.Timestamp
func (*AmzSignatureV4KeyParams) GetAmzRegion ¶
func (x *AmzSignatureV4KeyParams) GetAmzRegion() string
func (*AmzSignatureV4KeyParams) GetAmzService ¶
func (x *AmzSignatureV4KeyParams) GetAmzService() string
func (*AmzSignatureV4KeyParams) ProtoMessage ¶
func (*AmzSignatureV4KeyParams) ProtoMessage()
func (*AmzSignatureV4KeyParams) ProtoReflect ¶
func (x *AmzSignatureV4KeyParams) ProtoReflect() protoreflect.Message
func (*AmzSignatureV4KeyParams) Reset ¶
func (x *AmzSignatureV4KeyParams) Reset()
func (*AmzSignatureV4KeyParams) String ¶
func (x *AmzSignatureV4KeyParams) String() string
type AnonymousCredential ¶
type AnonymousCredential struct {
// contains filtered or unexported fields
}
func (*AnonymousCredential) Descriptor
deprecated
func (*AnonymousCredential) Descriptor() ([]byte, []int)
Deprecated: Use AnonymousCredential.ProtoReflect.Descriptor instead.
func (*AnonymousCredential) ProtoMessage ¶
func (*AnonymousCredential) ProtoMessage()
func (*AnonymousCredential) ProtoReflect ¶
func (x *AnonymousCredential) ProtoReflect() protoreflect.Message
func (*AnonymousCredential) Reset ¶
func (x *AnonymousCredential) Reset()
func (*AnonymousCredential) String ¶
func (x *AnonymousCredential) String() string
type AuthorizeCheck ¶
type AuthorizeCheck struct { Permission *Permission `protobuf:"bytes,1,opt,name=permission,proto3" json:"permission,omitempty"` ContainerId string `protobuf:"bytes,2,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` ResourcePath *ResourcePath `protobuf:"bytes,3,opt,name=resource_path,json=resourcePath,proto3" json:"resource_path,omitempty"` // Types that are assignable to Identifier: // // *AuthorizeCheck_IamToken // *AuthorizeCheck_Account // *AuthorizeCheck_AwsCompatibleSignature // *AuthorizeCheck_AnonymousCredential Identifier isAuthorizeCheck_Identifier `protobuf_oneof:"identifier"` // contains filtered or unexported fields }
func (*AuthorizeCheck) Descriptor
deprecated
func (*AuthorizeCheck) Descriptor() ([]byte, []int)
Deprecated: Use AuthorizeCheck.ProtoReflect.Descriptor instead.
func (*AuthorizeCheck) GetAccount ¶
func (x *AuthorizeCheck) GetAccount() *Account
func (*AuthorizeCheck) GetAnonymousCredential ¶
func (x *AuthorizeCheck) GetAnonymousCredential() *AnonymousCredential
func (*AuthorizeCheck) GetAwsCompatibleSignature ¶
func (x *AuthorizeCheck) GetAwsCompatibleSignature() *AwsCompatibleSignature
func (*AuthorizeCheck) GetContainerId ¶
func (x *AuthorizeCheck) GetContainerId() string
func (*AuthorizeCheck) GetIamToken ¶
func (x *AuthorizeCheck) GetIamToken() string
func (*AuthorizeCheck) GetIdentifier ¶
func (m *AuthorizeCheck) GetIdentifier() isAuthorizeCheck_Identifier
func (*AuthorizeCheck) GetPermission ¶
func (x *AuthorizeCheck) GetPermission() *Permission
func (*AuthorizeCheck) GetResourcePath ¶
func (x *AuthorizeCheck) GetResourcePath() *ResourcePath
func (*AuthorizeCheck) ProtoMessage ¶
func (*AuthorizeCheck) ProtoMessage()
func (*AuthorizeCheck) ProtoReflect ¶
func (x *AuthorizeCheck) ProtoReflect() protoreflect.Message
func (*AuthorizeCheck) Reset ¶
func (x *AuthorizeCheck) Reset()
func (*AuthorizeCheck) String ¶
func (x *AuthorizeCheck) String() string
type AuthorizeCheck_Account ¶
type AuthorizeCheck_Account struct {
Account *Account `protobuf:"bytes,5,opt,name=account,proto3,oneof"`
}
type AuthorizeCheck_AnonymousCredential ¶
type AuthorizeCheck_AnonymousCredential struct {
AnonymousCredential *AnonymousCredential `protobuf:"bytes,7,opt,name=anonymous_credential,json=anonymousCredential,proto3,oneof"`
}
type AuthorizeCheck_AwsCompatibleSignature ¶
type AuthorizeCheck_AwsCompatibleSignature struct {
AwsCompatibleSignature *AwsCompatibleSignature `protobuf:"bytes,6,opt,name=aws_compatible_signature,json=awsCompatibleSignature,proto3,oneof"`
}
type AuthorizeCheck_IamToken ¶
type AuthorizeCheck_IamToken struct {
IamToken string `protobuf:"bytes,4,opt,name=iam_token,json=iamToken,proto3,oneof"`
}
type AuthorizeRequest ¶
type AuthorizeRequest struct { Checks map[int64]*AuthorizeCheck `` /* 154-byte string literal not displayed */ // contains filtered or unexported fields }
func (*AuthorizeRequest) Descriptor
deprecated
func (*AuthorizeRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthorizeRequest.ProtoReflect.Descriptor instead.
func (*AuthorizeRequest) GetChecks ¶
func (x *AuthorizeRequest) GetChecks() map[int64]*AuthorizeCheck
func (*AuthorizeRequest) ProtoMessage ¶
func (*AuthorizeRequest) ProtoMessage()
func (*AuthorizeRequest) ProtoReflect ¶
func (x *AuthorizeRequest) ProtoReflect() protoreflect.Message
func (*AuthorizeRequest) Reset ¶
func (x *AuthorizeRequest) Reset()
func (*AuthorizeRequest) String ¶
func (x *AuthorizeRequest) String() string
type AuthorizeResponse ¶
type AuthorizeResponse struct { Results map[int64]*AuthorizeResult `` /* 156-byte string literal not displayed */ // contains filtered or unexported fields }
func (*AuthorizeResponse) Descriptor
deprecated
func (*AuthorizeResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthorizeResponse.ProtoReflect.Descriptor instead.
func (*AuthorizeResponse) GetResults ¶
func (x *AuthorizeResponse) GetResults() map[int64]*AuthorizeResult
func (*AuthorizeResponse) ProtoMessage ¶
func (*AuthorizeResponse) ProtoMessage()
func (*AuthorizeResponse) ProtoReflect ¶
func (x *AuthorizeResponse) ProtoReflect() protoreflect.Message
func (*AuthorizeResponse) Reset ¶
func (x *AuthorizeResponse) Reset()
func (*AuthorizeResponse) String ¶
func (x *AuthorizeResponse) String() string
type AuthorizeResult ¶
type AuthorizeResult struct { ResultCode AuthorizeResult_ResultCode `protobuf:"varint,1,opt,name=resultCode,proto3,enum=nebius.iam.v1.AuthorizeResult_ResultCode" json:"resultCode,omitempty"` Account *Account `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` Status *AuthorizeResult_AuthorizeStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*AuthorizeResult) Descriptor
deprecated
func (*AuthorizeResult) Descriptor() ([]byte, []int)
Deprecated: Use AuthorizeResult.ProtoReflect.Descriptor instead.
func (*AuthorizeResult) GetAccount ¶
func (x *AuthorizeResult) GetAccount() *Account
func (*AuthorizeResult) GetResultCode ¶
func (x *AuthorizeResult) GetResultCode() AuthorizeResult_ResultCode
func (*AuthorizeResult) GetStatus ¶
func (x *AuthorizeResult) GetStatus() *AuthorizeResult_AuthorizeStatus
func (*AuthorizeResult) ProtoMessage ¶
func (*AuthorizeResult) ProtoMessage()
func (*AuthorizeResult) ProtoReflect ¶
func (x *AuthorizeResult) ProtoReflect() protoreflect.Message
func (*AuthorizeResult) Reset ¶
func (x *AuthorizeResult) Reset()
func (*AuthorizeResult) String ¶
func (x *AuthorizeResult) String() string
type AuthorizeResult_AuthorizeStatus ¶
type AuthorizeResult_AuthorizeStatus struct { Code AuthorizeResult_AuthorizeStatus_AuthorizeStatusCode `` /* 133-byte string literal not displayed */ Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*AuthorizeResult_AuthorizeStatus) Descriptor
deprecated
func (*AuthorizeResult_AuthorizeStatus) Descriptor() ([]byte, []int)
Deprecated: Use AuthorizeResult_AuthorizeStatus.ProtoReflect.Descriptor instead.
func (*AuthorizeResult_AuthorizeStatus) GetCode ¶
func (x *AuthorizeResult_AuthorizeStatus) GetCode() AuthorizeResult_AuthorizeStatus_AuthorizeStatusCode
func (*AuthorizeResult_AuthorizeStatus) GetMessage ¶
func (x *AuthorizeResult_AuthorizeStatus) GetMessage() string
func (*AuthorizeResult_AuthorizeStatus) ProtoMessage ¶
func (*AuthorizeResult_AuthorizeStatus) ProtoMessage()
func (*AuthorizeResult_AuthorizeStatus) ProtoReflect ¶
func (x *AuthorizeResult_AuthorizeStatus) ProtoReflect() protoreflect.Message
func (*AuthorizeResult_AuthorizeStatus) Reset ¶
func (x *AuthorizeResult_AuthorizeStatus) Reset()
func (*AuthorizeResult_AuthorizeStatus) String ¶
func (x *AuthorizeResult_AuthorizeStatus) String() string
type AuthorizeResult_AuthorizeStatus_AuthorizeStatusCode ¶
type AuthorizeResult_AuthorizeStatus_AuthorizeStatusCode int32
const ( AuthorizeResult_AuthorizeStatus_UNSPECIFIED AuthorizeResult_AuthorizeStatus_AuthorizeStatusCode = 0 AuthorizeResult_AuthorizeStatus_OK AuthorizeResult_AuthorizeStatus_AuthorizeStatusCode = 1 AuthorizeResult_AuthorizeStatus_PERMISSION_DENIED AuthorizeResult_AuthorizeStatus_AuthorizeStatusCode = 2 AuthorizeResult_AuthorizeStatus_UNAUTHENTICATED AuthorizeResult_AuthorizeStatus_AuthorizeStatusCode = 3 )
func (AuthorizeResult_AuthorizeStatus_AuthorizeStatusCode) Descriptor ¶
func (AuthorizeResult_AuthorizeStatus_AuthorizeStatusCode) Descriptor() protoreflect.EnumDescriptor
func (AuthorizeResult_AuthorizeStatus_AuthorizeStatusCode) EnumDescriptor
deprecated
func (AuthorizeResult_AuthorizeStatus_AuthorizeStatusCode) EnumDescriptor() ([]byte, []int)
Deprecated: Use AuthorizeResult_AuthorizeStatus_AuthorizeStatusCode.Descriptor instead.
func (AuthorizeResult_AuthorizeStatus_AuthorizeStatusCode) Number ¶
func (x AuthorizeResult_AuthorizeStatus_AuthorizeStatusCode) Number() protoreflect.EnumNumber
func (AuthorizeResult_AuthorizeStatus_AuthorizeStatusCode) String ¶
func (x AuthorizeResult_AuthorizeStatus_AuthorizeStatusCode) String() string
type AuthorizeResult_ResultCode ¶
type AuthorizeResult_ResultCode int32
const ( AuthorizeResult_OK AuthorizeResult_ResultCode = 0 // Access granted. AuthorizeResult_PERMISSION_DENIED AuthorizeResult_ResultCode = 1 // Other cases of access denied. AuthorizeResult_UNKNOWN_SUBJECT AuthorizeResult_ResultCode = 2 // if the subject: doesn't exist, deleted, not found or account doesn't exist in the tenant owning the resource. AuthorizeResult_INVALID_TOKEN AuthorizeResult_ResultCode = 3 // The iam_token is not valid. It has an invalid length, invalid signature, etc. )
func (AuthorizeResult_ResultCode) Descriptor ¶
func (AuthorizeResult_ResultCode) Descriptor() protoreflect.EnumDescriptor
func (AuthorizeResult_ResultCode) Enum ¶
func (x AuthorizeResult_ResultCode) Enum() *AuthorizeResult_ResultCode
func (AuthorizeResult_ResultCode) EnumDescriptor
deprecated
func (AuthorizeResult_ResultCode) EnumDescriptor() ([]byte, []int)
Deprecated: Use AuthorizeResult_ResultCode.Descriptor instead.
func (AuthorizeResult_ResultCode) Number ¶
func (x AuthorizeResult_ResultCode) Number() protoreflect.EnumNumber
func (AuthorizeResult_ResultCode) String ¶
func (x AuthorizeResult_ResultCode) String() string
func (AuthorizeResult_ResultCode) Type ¶
func (AuthorizeResult_ResultCode) Type() protoreflect.EnumType
type AwsCompatibleSignature ¶
type AwsCompatibleSignature struct { AwsAccessKeyId string `protobuf:"bytes,1,opt,name=aws_access_key_id,json=awsAccessKeyId,proto3" json:"aws_access_key_id,omitempty"` StringToSign string `protobuf:"bytes,2,opt,name=string_to_sign,json=stringToSign,proto3" json:"string_to_sign,omitempty"` Signature string `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` SignKeyParams *AmzSignatureV4KeyParams `protobuf:"bytes,4,opt,name=sign_key_params,json=signKeyParams,proto3" json:"sign_key_params,omitempty"` // contains filtered or unexported fields }
func (*AwsCompatibleSignature) Descriptor
deprecated
func (*AwsCompatibleSignature) Descriptor() ([]byte, []int)
Deprecated: Use AwsCompatibleSignature.ProtoReflect.Descriptor instead.
func (*AwsCompatibleSignature) GetAwsAccessKeyId ¶
func (x *AwsCompatibleSignature) GetAwsAccessKeyId() string
func (*AwsCompatibleSignature) GetSignKeyParams ¶
func (x *AwsCompatibleSignature) GetSignKeyParams() *AmzSignatureV4KeyParams
func (*AwsCompatibleSignature) GetSignature ¶
func (x *AwsCompatibleSignature) GetSignature() string
func (*AwsCompatibleSignature) GetStringToSign ¶
func (x *AwsCompatibleSignature) GetStringToSign() string
func (*AwsCompatibleSignature) ProtoMessage ¶
func (*AwsCompatibleSignature) ProtoMessage()
func (*AwsCompatibleSignature) ProtoReflect ¶
func (x *AwsCompatibleSignature) ProtoReflect() protoreflect.Message
func (*AwsCompatibleSignature) Reset ¶
func (x *AwsCompatibleSignature) Reset()
func (*AwsCompatibleSignature) String ¶
func (x *AwsCompatibleSignature) String() string
type Permission ¶
type Permission struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*Permission) Descriptor
deprecated
func (*Permission) Descriptor() ([]byte, []int)
Deprecated: Use Permission.ProtoReflect.Descriptor instead.
func (*Permission) GetName ¶
func (x *Permission) GetName() string
func (*Permission) ProtoMessage ¶
func (*Permission) ProtoMessage()
func (*Permission) ProtoReflect ¶
func (x *Permission) ProtoReflect() protoreflect.Message
func (*Permission) Reset ¶
func (x *Permission) Reset()
func (*Permission) String ¶
func (x *Permission) String() string
type Resource ¶
type Resource struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*Resource) Descriptor
deprecated
func (*Resource) ProtoMessage ¶
func (*Resource) ProtoMessage()
func (*Resource) ProtoReflect ¶
func (x *Resource) ProtoReflect() protoreflect.Message
type ResourcePath ¶
type ResourcePath struct { Path []*Resource `protobuf:"bytes,1,rep,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
func (*ResourcePath) Descriptor
deprecated
func (*ResourcePath) Descriptor() ([]byte, []int)
Deprecated: Use ResourcePath.ProtoReflect.Descriptor instead.
func (*ResourcePath) GetPath ¶
func (x *ResourcePath) GetPath() []*Resource
func (*ResourcePath) ProtoMessage ¶
func (*ResourcePath) ProtoMessage()
func (*ResourcePath) ProtoReflect ¶
func (x *ResourcePath) ProtoReflect() protoreflect.Message
func (*ResourcePath) Reset ¶
func (x *ResourcePath) Reset()
func (*ResourcePath) String ¶
func (x *ResourcePath) String() string
type UnimplementedAccessServiceServer ¶
type UnimplementedAccessServiceServer struct{}
UnimplementedAccessServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedAccessServiceServer) Authorize ¶
func (UnimplementedAccessServiceServer) Authorize(context.Context, *AuthorizeRequest) (*AuthorizeResponse, error)
type UnsafeAccessServiceServer ¶
type UnsafeAccessServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAccessServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AccessServiceServer will result in compilation errors.