Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterAccessesServer(s grpc.ServiceRegistrar, srv AccessesServer)
- type AccessRequest
- func (*AccessRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AccessRequest) GetAction() string
- func (x *AccessRequest) GetPermissionGroup() string
- func (x *AccessRequest) GetTargetResource() string
- func (x *AccessRequest) GetUserId() string
- func (*AccessRequest) ProtoMessage()
- func (x *AccessRequest) ProtoReflect() protoreflect.Message
- func (x *AccessRequest) Reset()
- func (x *AccessRequest) String() string
- type AccessResponse
- type AccessesClient
- type AccessesServer
- type UnimplementedAccessesServer
- type UnsafeAccessesServer
Constants ¶
const (
Accesses_AccessVerification_FullMethodName = "/iam.access.Accesses/AccessVerification"
)
Variables ¶
var Accesses_ServiceDesc = grpc.ServiceDesc{ ServiceName: "iam.access.Accesses", HandlerType: (*AccessesServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AccessVerification", Handler: _Accesses_AccessVerification_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "iam/v1/access/access.proto", }
Accesses_ServiceDesc is the grpc.ServiceDesc for Accesses 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_access_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAccessesServer ¶
func RegisterAccessesServer(s grpc.ServiceRegistrar, srv AccessesServer)
Types ¶
type AccessRequest ¶
type AccessRequest struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` PermissionGroup string `protobuf:"bytes,2,opt,name=permission_group,json=permissionGroup,proto3" json:"permission_group,omitempty"` Action string `protobuf:"bytes,3,opt,name=action,proto3" json:"action,omitempty"` TargetResource string `protobuf:"bytes,4,opt,name=target_resource,json=targetResource,proto3" json:"target_resource,omitempty"` // contains filtered or unexported fields }
func (*AccessRequest) Descriptor
deprecated
func (*AccessRequest) Descriptor() ([]byte, []int)
Deprecated: Use AccessRequest.ProtoReflect.Descriptor instead.
func (*AccessRequest) GetAction ¶
func (x *AccessRequest) GetAction() string
func (*AccessRequest) GetPermissionGroup ¶ added in v1.2.5
func (x *AccessRequest) GetPermissionGroup() string
func (*AccessRequest) GetTargetResource ¶ added in v1.2.5
func (x *AccessRequest) GetTargetResource() string
func (*AccessRequest) GetUserId ¶
func (x *AccessRequest) GetUserId() string
func (*AccessRequest) ProtoMessage ¶
func (*AccessRequest) ProtoMessage()
func (*AccessRequest) ProtoReflect ¶
func (x *AccessRequest) ProtoReflect() protoreflect.Message
func (*AccessRequest) Reset ¶
func (x *AccessRequest) Reset()
func (*AccessRequest) String ¶
func (x *AccessRequest) String() string
type AccessResponse ¶
type AccessResponse struct { IsAllowed bool `protobuf:"varint,1,opt,name=is_allowed,json=isAllowed,proto3" json:"is_allowed,omitempty"` // contains filtered or unexported fields }
func (*AccessResponse) Descriptor
deprecated
func (*AccessResponse) Descriptor() ([]byte, []int)
Deprecated: Use AccessResponse.ProtoReflect.Descriptor instead.
func (*AccessResponse) GetIsAllowed ¶
func (x *AccessResponse) GetIsAllowed() bool
func (*AccessResponse) ProtoMessage ¶
func (*AccessResponse) ProtoMessage()
func (*AccessResponse) ProtoReflect ¶
func (x *AccessResponse) ProtoReflect() protoreflect.Message
func (*AccessResponse) Reset ¶
func (x *AccessResponse) Reset()
func (*AccessResponse) String ¶
func (x *AccessResponse) String() string
type AccessesClient ¶
type AccessesClient interface {
AccessVerification(ctx context.Context, in *AccessRequest, opts ...grpc.CallOption) (*AccessResponse, error)
}
AccessesClient is the client API for Accesses 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 NewAccessesClient ¶
func NewAccessesClient(cc grpc.ClientConnInterface) AccessesClient
type AccessesServer ¶
type AccessesServer interface { AccessVerification(context.Context, *AccessRequest) (*AccessResponse, error) // contains filtered or unexported methods }
AccessesServer is the server API for Accesses service. All implementations must embed UnimplementedAccessesServer for forward compatibility.
type UnimplementedAccessesServer ¶
type UnimplementedAccessesServer struct{}
UnimplementedAccessesServer 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 (UnimplementedAccessesServer) AccessVerification ¶
func (UnimplementedAccessesServer) AccessVerification(context.Context, *AccessRequest) (*AccessResponse, error)
type UnsafeAccessesServer ¶
type UnsafeAccessesServer interface {
// contains filtered or unexported methods
}
UnsafeAccessesServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AccessesServer will result in compilation errors.