Documentation
¶
Index ¶
- Variables
- func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)
- type AccessDefinition
- func (*AccessDefinition) Descriptor() ([]byte, []int)deprecated
- func (x *AccessDefinition) GetDomain() string
- func (x *AccessDefinition) GetGroup() string
- func (x *AccessDefinition) GetSubject() string
- func (*AccessDefinition) ProtoMessage()
- func (x *AccessDefinition) ProtoReflect() protoreflect.Message
- func (x *AccessDefinition) Reset()
- func (x *AccessDefinition) String() string
- func (m *AccessDefinition) Validate() error
- func (m *AccessDefinition) ValidateAll() error
- type AccessDefinitionMultiError
- type AccessDefinitionValidationError
- func (e AccessDefinitionValidationError) Cause() error
- func (e AccessDefinitionValidationError) Error() string
- func (e AccessDefinitionValidationError) ErrorName() string
- func (e AccessDefinitionValidationError) Field() string
- func (e AccessDefinitionValidationError) Key() bool
- func (e AccessDefinitionValidationError) Reason() string
- type AuthServiceClient
- type AuthServiceServer
- type AuthService_ShowAccessClient
- type AuthService_ShowAccessServer
- type GrantAccessRequest
- func (*GrantAccessRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GrantAccessRequest) GetDefinition() *AccessDefinition
- func (*GrantAccessRequest) ProtoMessage()
- func (x *GrantAccessRequest) ProtoReflect() protoreflect.Message
- func (x *GrantAccessRequest) Reset()
- func (x *GrantAccessRequest) String() string
- func (m *GrantAccessRequest) Validate() error
- func (m *GrantAccessRequest) ValidateAll() error
- type GrantAccessRequestMultiError
- type GrantAccessRequestValidationError
- func (e GrantAccessRequestValidationError) Cause() error
- func (e GrantAccessRequestValidationError) Error() string
- func (e GrantAccessRequestValidationError) ErrorName() string
- func (e GrantAccessRequestValidationError) Field() string
- func (e GrantAccessRequestValidationError) Key() bool
- func (e GrantAccessRequestValidationError) Reason() string
- type GrantAccessResponse
- func (*GrantAccessResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GrantAccessResponse) GetOk() bool
- func (*GrantAccessResponse) ProtoMessage()
- func (x *GrantAccessResponse) ProtoReflect() protoreflect.Message
- func (x *GrantAccessResponse) Reset()
- func (x *GrantAccessResponse) String() string
- func (m *GrantAccessResponse) Validate() error
- func (m *GrantAccessResponse) ValidateAll() error
- type GrantAccessResponseMultiError
- type GrantAccessResponseValidationError
- func (e GrantAccessResponseValidationError) Cause() error
- func (e GrantAccessResponseValidationError) Error() string
- func (e GrantAccessResponseValidationError) ErrorName() string
- func (e GrantAccessResponseValidationError) Field() string
- func (e GrantAccessResponseValidationError) Key() bool
- func (e GrantAccessResponseValidationError) Reason() string
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginRequest) GetPassword() string
- func (x *LoginRequest) GetUsername() string
- func (*LoginRequest) ProtoMessage()
- func (x *LoginRequest) ProtoReflect() protoreflect.Message
- func (x *LoginRequest) Reset()
- func (x *LoginRequest) String() string
- func (m *LoginRequest) Validate() error
- func (m *LoginRequest) ValidateAll() error
- type LoginRequestMultiError
- type LoginRequestValidationError
- func (e LoginRequestValidationError) Cause() error
- func (e LoginRequestValidationError) Error() string
- func (e LoginRequestValidationError) ErrorName() string
- func (e LoginRequestValidationError) Field() string
- func (e LoginRequestValidationError) Key() bool
- func (e LoginRequestValidationError) Reason() string
- type LoginResponse
- func (*LoginResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LoginResponse) GetAccessToken() string
- func (*LoginResponse) ProtoMessage()
- func (x *LoginResponse) ProtoReflect() protoreflect.Message
- func (x *LoginResponse) Reset()
- func (x *LoginResponse) String() string
- func (m *LoginResponse) Validate() error
- func (m *LoginResponse) ValidateAll() error
- type LoginResponseMultiError
- type LoginResponseValidationError
- func (e LoginResponseValidationError) Cause() error
- func (e LoginResponseValidationError) Error() string
- func (e LoginResponseValidationError) ErrorName() string
- func (e LoginResponseValidationError) Field() string
- func (e LoginResponseValidationError) Key() bool
- func (e LoginResponseValidationError) Reason() string
- type RevokeAccessRequest
- func (*RevokeAccessRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RevokeAccessRequest) GetDefinition() *AccessDefinition
- func (*RevokeAccessRequest) ProtoMessage()
- func (x *RevokeAccessRequest) ProtoReflect() protoreflect.Message
- func (x *RevokeAccessRequest) Reset()
- func (x *RevokeAccessRequest) String() string
- func (m *RevokeAccessRequest) Validate() error
- func (m *RevokeAccessRequest) ValidateAll() error
- type RevokeAccessRequestMultiError
- type RevokeAccessRequestValidationError
- func (e RevokeAccessRequestValidationError) Cause() error
- func (e RevokeAccessRequestValidationError) Error() string
- func (e RevokeAccessRequestValidationError) ErrorName() string
- func (e RevokeAccessRequestValidationError) Field() string
- func (e RevokeAccessRequestValidationError) Key() bool
- func (e RevokeAccessRequestValidationError) Reason() string
- type RevokeAccessResponse
- func (*RevokeAccessResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RevokeAccessResponse) GetOk() bool
- func (*RevokeAccessResponse) ProtoMessage()
- func (x *RevokeAccessResponse) ProtoReflect() protoreflect.Message
- func (x *RevokeAccessResponse) Reset()
- func (x *RevokeAccessResponse) String() string
- func (m *RevokeAccessResponse) Validate() error
- func (m *RevokeAccessResponse) ValidateAll() error
- type RevokeAccessResponseMultiError
- type RevokeAccessResponseValidationError
- func (e RevokeAccessResponseValidationError) Cause() error
- func (e RevokeAccessResponseValidationError) Error() string
- func (e RevokeAccessResponseValidationError) ErrorName() string
- func (e RevokeAccessResponseValidationError) Field() string
- func (e RevokeAccessResponseValidationError) Key() bool
- func (e RevokeAccessResponseValidationError) Reason() string
- type ShowAccessRequest
- func (*ShowAccessRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ShowAccessRequest) GetDomain() string
- func (x *ShowAccessRequest) GetGroup() string
- func (x *ShowAccessRequest) GetSubject() string
- func (*ShowAccessRequest) ProtoMessage()
- func (x *ShowAccessRequest) ProtoReflect() protoreflect.Message
- func (x *ShowAccessRequest) Reset()
- func (x *ShowAccessRequest) String() string
- func (m *ShowAccessRequest) Validate() error
- func (m *ShowAccessRequest) ValidateAll() error
- type ShowAccessRequestMultiError
- type ShowAccessRequestValidationError
- func (e ShowAccessRequestValidationError) Cause() error
- func (e ShowAccessRequestValidationError) Error() string
- func (e ShowAccessRequestValidationError) ErrorName() string
- func (e ShowAccessRequestValidationError) Field() string
- func (e ShowAccessRequestValidationError) Key() bool
- func (e ShowAccessRequestValidationError) Reason() string
- type UnimplementedAuthServiceServer
- func (UnimplementedAuthServiceServer) GrantAccess(context.Context, *GrantAccessRequest) (*GrantAccessResponse, error)
- func (UnimplementedAuthServiceServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
- func (UnimplementedAuthServiceServer) RevokeAccess(context.Context, *RevokeAccessRequest) (*RevokeAccessResponse, error)
- func (UnimplementedAuthServiceServer) ShowAccess(*ShowAccessRequest, AuthService_ShowAccessServer) error
- type UnsafeAuthServiceServer
Constants ¶
This section is empty.
Variables ¶
var AuthService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "auth.AuthService", HandlerType: (*AuthServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Login", Handler: _AuthService_Login_Handler, }, { MethodName: "GrantAccess", Handler: _AuthService_GrantAccess_Handler, }, { MethodName: "RevokeAccess", Handler: _AuthService_RevokeAccess_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "ShowAccess", Handler: _AuthService_ShowAccess_Handler, ServerStreams: true, }, }, Metadata: "auth.proto", }
AuthService_ServiceDesc is the grpc.ServiceDesc for AuthService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_access_proto protoreflect.FileDescriptor
var File_auth_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthServiceServer ¶
func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)
Types ¶
type AccessDefinition ¶ added in v0.2.0
type AccessDefinition struct { Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` Group string `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"` Domain string `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"` // contains filtered or unexported fields }
func (*AccessDefinition) Descriptor
deprecated
added in
v0.2.0
func (*AccessDefinition) Descriptor() ([]byte, []int)
Deprecated: Use AccessDefinition.ProtoReflect.Descriptor instead.
func (*AccessDefinition) GetDomain ¶ added in v0.2.0
func (x *AccessDefinition) GetDomain() string
func (*AccessDefinition) GetGroup ¶ added in v0.2.0
func (x *AccessDefinition) GetGroup() string
func (*AccessDefinition) GetSubject ¶ added in v0.2.0
func (x *AccessDefinition) GetSubject() string
func (*AccessDefinition) ProtoMessage ¶ added in v0.2.0
func (*AccessDefinition) ProtoMessage()
func (*AccessDefinition) ProtoReflect ¶ added in v0.2.0
func (x *AccessDefinition) ProtoReflect() protoreflect.Message
func (*AccessDefinition) Reset ¶ added in v0.2.0
func (x *AccessDefinition) Reset()
func (*AccessDefinition) String ¶ added in v0.2.0
func (x *AccessDefinition) String() string
func (*AccessDefinition) Validate ¶ added in v0.2.0
func (m *AccessDefinition) Validate() error
Validate checks the field values on AccessDefinition with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*AccessDefinition) ValidateAll ¶ added in v0.2.0
func (m *AccessDefinition) ValidateAll() error
ValidateAll checks the field values on AccessDefinition with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AccessDefinitionMultiError, or nil if none found.
type AccessDefinitionMultiError ¶ added in v0.2.0
type AccessDefinitionMultiError []error
AccessDefinitionMultiError is an error wrapping multiple validation errors returned by AccessDefinition.ValidateAll() if the designated constraints aren't met.
func (AccessDefinitionMultiError) AllErrors ¶ added in v0.2.0
func (m AccessDefinitionMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AccessDefinitionMultiError) Error ¶ added in v0.2.0
func (m AccessDefinitionMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AccessDefinitionValidationError ¶ added in v0.2.0
type AccessDefinitionValidationError struct {
// contains filtered or unexported fields
}
AccessDefinitionValidationError is the validation error returned by AccessDefinition.Validate if the designated constraints aren't met.
func (AccessDefinitionValidationError) Cause ¶ added in v0.2.0
func (e AccessDefinitionValidationError) Cause() error
Cause function returns cause value.
func (AccessDefinitionValidationError) Error ¶ added in v0.2.0
func (e AccessDefinitionValidationError) Error() string
Error satisfies the builtin error interface
func (AccessDefinitionValidationError) ErrorName ¶ added in v0.2.0
func (e AccessDefinitionValidationError) ErrorName() string
ErrorName returns error name.
func (AccessDefinitionValidationError) Field ¶ added in v0.2.0
func (e AccessDefinitionValidationError) Field() string
Field function returns field value.
func (AccessDefinitionValidationError) Key ¶ added in v0.2.0
func (e AccessDefinitionValidationError) Key() bool
Key function returns key value.
func (AccessDefinitionValidationError) Reason ¶ added in v0.2.0
func (e AccessDefinitionValidationError) Reason() string
Reason function returns reason value.
type AuthServiceClient ¶
type AuthServiceClient interface { Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) GrantAccess(ctx context.Context, in *GrantAccessRequest, opts ...grpc.CallOption) (*GrantAccessResponse, error) RevokeAccess(ctx context.Context, in *RevokeAccessRequest, opts ...grpc.CallOption) (*RevokeAccessResponse, error) ShowAccess(ctx context.Context, in *ShowAccessRequest, opts ...grpc.CallOption) (AuthService_ShowAccessClient, error) }
AuthServiceClient is the client API for AuthService 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 NewAuthServiceClient ¶
func NewAuthServiceClient(cc grpc.ClientConnInterface) AuthServiceClient
type AuthServiceServer ¶
type AuthServiceServer interface { Login(context.Context, *LoginRequest) (*LoginResponse, error) GrantAccess(context.Context, *GrantAccessRequest) (*GrantAccessResponse, error) RevokeAccess(context.Context, *RevokeAccessRequest) (*RevokeAccessResponse, error) ShowAccess(*ShowAccessRequest, AuthService_ShowAccessServer) error }
AuthServiceServer is the server API for AuthService service. All implementations should embed UnimplementedAuthServiceServer for forward compatibility
type AuthService_ShowAccessClient ¶ added in v0.2.0
type AuthService_ShowAccessClient interface { Recv() (*AccessDefinition, error) grpc.ClientStream }
type AuthService_ShowAccessServer ¶ added in v0.2.0
type AuthService_ShowAccessServer interface { Send(*AccessDefinition) error grpc.ServerStream }
type GrantAccessRequest ¶ added in v0.2.0
type GrantAccessRequest struct { Definition *AccessDefinition `protobuf:"bytes,1,opt,name=definition,proto3" json:"definition,omitempty"` // contains filtered or unexported fields }
func (*GrantAccessRequest) Descriptor
deprecated
added in
v0.2.0
func (*GrantAccessRequest) Descriptor() ([]byte, []int)
Deprecated: Use GrantAccessRequest.ProtoReflect.Descriptor instead.
func (*GrantAccessRequest) GetDefinition ¶ added in v0.2.0
func (x *GrantAccessRequest) GetDefinition() *AccessDefinition
func (*GrantAccessRequest) ProtoMessage ¶ added in v0.2.0
func (*GrantAccessRequest) ProtoMessage()
func (*GrantAccessRequest) ProtoReflect ¶ added in v0.2.0
func (x *GrantAccessRequest) ProtoReflect() protoreflect.Message
func (*GrantAccessRequest) Reset ¶ added in v0.2.0
func (x *GrantAccessRequest) Reset()
func (*GrantAccessRequest) String ¶ added in v0.2.0
func (x *GrantAccessRequest) String() string
func (*GrantAccessRequest) Validate ¶ added in v0.2.0
func (m *GrantAccessRequest) Validate() error
Validate checks the field values on GrantAccessRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GrantAccessRequest) ValidateAll ¶ added in v0.2.0
func (m *GrantAccessRequest) ValidateAll() error
ValidateAll checks the field values on GrantAccessRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GrantAccessRequestMultiError, or nil if none found.
type GrantAccessRequestMultiError ¶ added in v0.2.0
type GrantAccessRequestMultiError []error
GrantAccessRequestMultiError is an error wrapping multiple validation errors returned by GrantAccessRequest.ValidateAll() if the designated constraints aren't met.
func (GrantAccessRequestMultiError) AllErrors ¶ added in v0.2.0
func (m GrantAccessRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GrantAccessRequestMultiError) Error ¶ added in v0.2.0
func (m GrantAccessRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GrantAccessRequestValidationError ¶ added in v0.2.0
type GrantAccessRequestValidationError struct {
// contains filtered or unexported fields
}
GrantAccessRequestValidationError is the validation error returned by GrantAccessRequest.Validate if the designated constraints aren't met.
func (GrantAccessRequestValidationError) Cause ¶ added in v0.2.0
func (e GrantAccessRequestValidationError) Cause() error
Cause function returns cause value.
func (GrantAccessRequestValidationError) Error ¶ added in v0.2.0
func (e GrantAccessRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GrantAccessRequestValidationError) ErrorName ¶ added in v0.2.0
func (e GrantAccessRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GrantAccessRequestValidationError) Field ¶ added in v0.2.0
func (e GrantAccessRequestValidationError) Field() string
Field function returns field value.
func (GrantAccessRequestValidationError) Key ¶ added in v0.2.0
func (e GrantAccessRequestValidationError) Key() bool
Key function returns key value.
func (GrantAccessRequestValidationError) Reason ¶ added in v0.2.0
func (e GrantAccessRequestValidationError) Reason() string
Reason function returns reason value.
type GrantAccessResponse ¶ added in v0.2.0
type GrantAccessResponse struct { Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` // contains filtered or unexported fields }
func (*GrantAccessResponse) Descriptor
deprecated
added in
v0.2.0
func (*GrantAccessResponse) Descriptor() ([]byte, []int)
Deprecated: Use GrantAccessResponse.ProtoReflect.Descriptor instead.
func (*GrantAccessResponse) GetOk ¶ added in v0.2.0
func (x *GrantAccessResponse) GetOk() bool
func (*GrantAccessResponse) ProtoMessage ¶ added in v0.2.0
func (*GrantAccessResponse) ProtoMessage()
func (*GrantAccessResponse) ProtoReflect ¶ added in v0.2.0
func (x *GrantAccessResponse) ProtoReflect() protoreflect.Message
func (*GrantAccessResponse) Reset ¶ added in v0.2.0
func (x *GrantAccessResponse) Reset()
func (*GrantAccessResponse) String ¶ added in v0.2.0
func (x *GrantAccessResponse) String() string
func (*GrantAccessResponse) Validate ¶ added in v0.2.0
func (m *GrantAccessResponse) Validate() error
Validate checks the field values on GrantAccessResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GrantAccessResponse) ValidateAll ¶ added in v0.2.0
func (m *GrantAccessResponse) ValidateAll() error
ValidateAll checks the field values on GrantAccessResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GrantAccessResponseMultiError, or nil if none found.
type GrantAccessResponseMultiError ¶ added in v0.2.0
type GrantAccessResponseMultiError []error
GrantAccessResponseMultiError is an error wrapping multiple validation errors returned by GrantAccessResponse.ValidateAll() if the designated constraints aren't met.
func (GrantAccessResponseMultiError) AllErrors ¶ added in v0.2.0
func (m GrantAccessResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GrantAccessResponseMultiError) Error ¶ added in v0.2.0
func (m GrantAccessResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GrantAccessResponseValidationError ¶ added in v0.2.0
type GrantAccessResponseValidationError struct {
// contains filtered or unexported fields
}
GrantAccessResponseValidationError is the validation error returned by GrantAccessResponse.Validate if the designated constraints aren't met.
func (GrantAccessResponseValidationError) Cause ¶ added in v0.2.0
func (e GrantAccessResponseValidationError) Cause() error
Cause function returns cause value.
func (GrantAccessResponseValidationError) Error ¶ added in v0.2.0
func (e GrantAccessResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GrantAccessResponseValidationError) ErrorName ¶ added in v0.2.0
func (e GrantAccessResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GrantAccessResponseValidationError) Field ¶ added in v0.2.0
func (e GrantAccessResponseValidationError) Field() string
Field function returns field value.
func (GrantAccessResponseValidationError) Key ¶ added in v0.2.0
func (e GrantAccessResponseValidationError) Key() bool
Key function returns key value.
func (GrantAccessResponseValidationError) Reason ¶ added in v0.2.0
func (e GrantAccessResponseValidationError) Reason() string
Reason function returns reason value.
type LoginRequest ¶
type LoginRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*LoginRequest) Descriptor
deprecated
func (*LoginRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
func (*LoginRequest) GetPassword ¶
func (x *LoginRequest) GetPassword() string
func (*LoginRequest) GetUsername ¶
func (x *LoginRequest) GetUsername() string
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) ProtoReflect ¶
func (x *LoginRequest) ProtoReflect() protoreflect.Message
func (*LoginRequest) Reset ¶
func (x *LoginRequest) Reset()
func (*LoginRequest) String ¶
func (x *LoginRequest) String() string
func (*LoginRequest) Validate ¶
func (m *LoginRequest) Validate() error
Validate checks the field values on LoginRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*LoginRequest) ValidateAll ¶
func (m *LoginRequest) ValidateAll() error
ValidateAll checks the field values on LoginRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoginRequestMultiError, or nil if none found.
type LoginRequestMultiError ¶
type LoginRequestMultiError []error
LoginRequestMultiError is an error wrapping multiple validation errors returned by LoginRequest.ValidateAll() if the designated constraints aren't met.
func (LoginRequestMultiError) AllErrors ¶
func (m LoginRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoginRequestMultiError) Error ¶
func (m LoginRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoginRequestValidationError ¶
type LoginRequestValidationError struct {
// contains filtered or unexported fields
}
LoginRequestValidationError is the validation error returned by LoginRequest.Validate if the designated constraints aren't met.
func (LoginRequestValidationError) Cause ¶
func (e LoginRequestValidationError) Cause() error
Cause function returns cause value.
func (LoginRequestValidationError) Error ¶
func (e LoginRequestValidationError) Error() string
Error satisfies the builtin error interface
func (LoginRequestValidationError) ErrorName ¶
func (e LoginRequestValidationError) ErrorName() string
ErrorName returns error name.
func (LoginRequestValidationError) Field ¶
func (e LoginRequestValidationError) Field() string
Field function returns field value.
func (LoginRequestValidationError) Key ¶
func (e LoginRequestValidationError) Key() bool
Key function returns key value.
func (LoginRequestValidationError) Reason ¶
func (e LoginRequestValidationError) Reason() string
Reason function returns reason value.
type LoginResponse ¶
type LoginResponse struct { AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` // contains filtered or unexported fields }
func (*LoginResponse) Descriptor
deprecated
func (*LoginResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.
func (*LoginResponse) GetAccessToken ¶
func (x *LoginResponse) GetAccessToken() string
func (*LoginResponse) ProtoMessage ¶
func (*LoginResponse) ProtoMessage()
func (*LoginResponse) ProtoReflect ¶
func (x *LoginResponse) ProtoReflect() protoreflect.Message
func (*LoginResponse) Reset ¶
func (x *LoginResponse) Reset()
func (*LoginResponse) String ¶
func (x *LoginResponse) String() string
func (*LoginResponse) Validate ¶
func (m *LoginResponse) Validate() error
Validate checks the field values on LoginResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*LoginResponse) ValidateAll ¶
func (m *LoginResponse) ValidateAll() error
ValidateAll checks the field values on LoginResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoginResponseMultiError, or nil if none found.
type LoginResponseMultiError ¶
type LoginResponseMultiError []error
LoginResponseMultiError is an error wrapping multiple validation errors returned by LoginResponse.ValidateAll() if the designated constraints aren't met.
func (LoginResponseMultiError) AllErrors ¶
func (m LoginResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoginResponseMultiError) Error ¶
func (m LoginResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoginResponseValidationError ¶
type LoginResponseValidationError struct {
// contains filtered or unexported fields
}
LoginResponseValidationError is the validation error returned by LoginResponse.Validate if the designated constraints aren't met.
func (LoginResponseValidationError) Cause ¶
func (e LoginResponseValidationError) Cause() error
Cause function returns cause value.
func (LoginResponseValidationError) Error ¶
func (e LoginResponseValidationError) Error() string
Error satisfies the builtin error interface
func (LoginResponseValidationError) ErrorName ¶
func (e LoginResponseValidationError) ErrorName() string
ErrorName returns error name.
func (LoginResponseValidationError) Field ¶
func (e LoginResponseValidationError) Field() string
Field function returns field value.
func (LoginResponseValidationError) Key ¶
func (e LoginResponseValidationError) Key() bool
Key function returns key value.
func (LoginResponseValidationError) Reason ¶
func (e LoginResponseValidationError) Reason() string
Reason function returns reason value.
type RevokeAccessRequest ¶ added in v0.2.0
type RevokeAccessRequest struct { Definition *AccessDefinition `protobuf:"bytes,1,opt,name=definition,proto3" json:"definition,omitempty"` // contains filtered or unexported fields }
func (*RevokeAccessRequest) Descriptor
deprecated
added in
v0.2.0
func (*RevokeAccessRequest) Descriptor() ([]byte, []int)
Deprecated: Use RevokeAccessRequest.ProtoReflect.Descriptor instead.
func (*RevokeAccessRequest) GetDefinition ¶ added in v0.2.0
func (x *RevokeAccessRequest) GetDefinition() *AccessDefinition
func (*RevokeAccessRequest) ProtoMessage ¶ added in v0.2.0
func (*RevokeAccessRequest) ProtoMessage()
func (*RevokeAccessRequest) ProtoReflect ¶ added in v0.2.0
func (x *RevokeAccessRequest) ProtoReflect() protoreflect.Message
func (*RevokeAccessRequest) Reset ¶ added in v0.2.0
func (x *RevokeAccessRequest) Reset()
func (*RevokeAccessRequest) String ¶ added in v0.2.0
func (x *RevokeAccessRequest) String() string
func (*RevokeAccessRequest) Validate ¶ added in v0.2.0
func (m *RevokeAccessRequest) Validate() error
Validate checks the field values on RevokeAccessRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RevokeAccessRequest) ValidateAll ¶ added in v0.2.0
func (m *RevokeAccessRequest) ValidateAll() error
ValidateAll checks the field values on RevokeAccessRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RevokeAccessRequestMultiError, or nil if none found.
type RevokeAccessRequestMultiError ¶ added in v0.2.0
type RevokeAccessRequestMultiError []error
RevokeAccessRequestMultiError is an error wrapping multiple validation errors returned by RevokeAccessRequest.ValidateAll() if the designated constraints aren't met.
func (RevokeAccessRequestMultiError) AllErrors ¶ added in v0.2.0
func (m RevokeAccessRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RevokeAccessRequestMultiError) Error ¶ added in v0.2.0
func (m RevokeAccessRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RevokeAccessRequestValidationError ¶ added in v0.2.0
type RevokeAccessRequestValidationError struct {
// contains filtered or unexported fields
}
RevokeAccessRequestValidationError is the validation error returned by RevokeAccessRequest.Validate if the designated constraints aren't met.
func (RevokeAccessRequestValidationError) Cause ¶ added in v0.2.0
func (e RevokeAccessRequestValidationError) Cause() error
Cause function returns cause value.
func (RevokeAccessRequestValidationError) Error ¶ added in v0.2.0
func (e RevokeAccessRequestValidationError) Error() string
Error satisfies the builtin error interface
func (RevokeAccessRequestValidationError) ErrorName ¶ added in v0.2.0
func (e RevokeAccessRequestValidationError) ErrorName() string
ErrorName returns error name.
func (RevokeAccessRequestValidationError) Field ¶ added in v0.2.0
func (e RevokeAccessRequestValidationError) Field() string
Field function returns field value.
func (RevokeAccessRequestValidationError) Key ¶ added in v0.2.0
func (e RevokeAccessRequestValidationError) Key() bool
Key function returns key value.
func (RevokeAccessRequestValidationError) Reason ¶ added in v0.2.0
func (e RevokeAccessRequestValidationError) Reason() string
Reason function returns reason value.
type RevokeAccessResponse ¶ added in v0.2.0
type RevokeAccessResponse struct { Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` // contains filtered or unexported fields }
func (*RevokeAccessResponse) Descriptor
deprecated
added in
v0.2.0
func (*RevokeAccessResponse) Descriptor() ([]byte, []int)
Deprecated: Use RevokeAccessResponse.ProtoReflect.Descriptor instead.
func (*RevokeAccessResponse) GetOk ¶ added in v0.2.0
func (x *RevokeAccessResponse) GetOk() bool
func (*RevokeAccessResponse) ProtoMessage ¶ added in v0.2.0
func (*RevokeAccessResponse) ProtoMessage()
func (*RevokeAccessResponse) ProtoReflect ¶ added in v0.2.0
func (x *RevokeAccessResponse) ProtoReflect() protoreflect.Message
func (*RevokeAccessResponse) Reset ¶ added in v0.2.0
func (x *RevokeAccessResponse) Reset()
func (*RevokeAccessResponse) String ¶ added in v0.2.0
func (x *RevokeAccessResponse) String() string
func (*RevokeAccessResponse) Validate ¶ added in v0.2.0
func (m *RevokeAccessResponse) Validate() error
Validate checks the field values on RevokeAccessResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RevokeAccessResponse) ValidateAll ¶ added in v0.2.0
func (m *RevokeAccessResponse) ValidateAll() error
ValidateAll checks the field values on RevokeAccessResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RevokeAccessResponseMultiError, or nil if none found.
type RevokeAccessResponseMultiError ¶ added in v0.2.0
type RevokeAccessResponseMultiError []error
RevokeAccessResponseMultiError is an error wrapping multiple validation errors returned by RevokeAccessResponse.ValidateAll() if the designated constraints aren't met.
func (RevokeAccessResponseMultiError) AllErrors ¶ added in v0.2.0
func (m RevokeAccessResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RevokeAccessResponseMultiError) Error ¶ added in v0.2.0
func (m RevokeAccessResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RevokeAccessResponseValidationError ¶ added in v0.2.0
type RevokeAccessResponseValidationError struct {
// contains filtered or unexported fields
}
RevokeAccessResponseValidationError is the validation error returned by RevokeAccessResponse.Validate if the designated constraints aren't met.
func (RevokeAccessResponseValidationError) Cause ¶ added in v0.2.0
func (e RevokeAccessResponseValidationError) Cause() error
Cause function returns cause value.
func (RevokeAccessResponseValidationError) Error ¶ added in v0.2.0
func (e RevokeAccessResponseValidationError) Error() string
Error satisfies the builtin error interface
func (RevokeAccessResponseValidationError) ErrorName ¶ added in v0.2.0
func (e RevokeAccessResponseValidationError) ErrorName() string
ErrorName returns error name.
func (RevokeAccessResponseValidationError) Field ¶ added in v0.2.0
func (e RevokeAccessResponseValidationError) Field() string
Field function returns field value.
func (RevokeAccessResponseValidationError) Key ¶ added in v0.2.0
func (e RevokeAccessResponseValidationError) Key() bool
Key function returns key value.
func (RevokeAccessResponseValidationError) Reason ¶ added in v0.2.0
func (e RevokeAccessResponseValidationError) Reason() string
Reason function returns reason value.
type ShowAccessRequest ¶ added in v0.2.0
type ShowAccessRequest struct { Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` Group string `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"` Domain string `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"` // contains filtered or unexported fields }
func (*ShowAccessRequest) Descriptor
deprecated
added in
v0.2.0
func (*ShowAccessRequest) Descriptor() ([]byte, []int)
Deprecated: Use ShowAccessRequest.ProtoReflect.Descriptor instead.
func (*ShowAccessRequest) GetDomain ¶ added in v0.2.0
func (x *ShowAccessRequest) GetDomain() string
func (*ShowAccessRequest) GetGroup ¶ added in v0.2.0
func (x *ShowAccessRequest) GetGroup() string
func (*ShowAccessRequest) GetSubject ¶ added in v0.2.0
func (x *ShowAccessRequest) GetSubject() string
func (*ShowAccessRequest) ProtoMessage ¶ added in v0.2.0
func (*ShowAccessRequest) ProtoMessage()
func (*ShowAccessRequest) ProtoReflect ¶ added in v0.2.0
func (x *ShowAccessRequest) ProtoReflect() protoreflect.Message
func (*ShowAccessRequest) Reset ¶ added in v0.2.0
func (x *ShowAccessRequest) Reset()
func (*ShowAccessRequest) String ¶ added in v0.2.0
func (x *ShowAccessRequest) String() string
func (*ShowAccessRequest) Validate ¶ added in v0.2.0
func (m *ShowAccessRequest) Validate() error
Validate checks the field values on ShowAccessRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ShowAccessRequest) ValidateAll ¶ added in v0.2.0
func (m *ShowAccessRequest) ValidateAll() error
ValidateAll checks the field values on ShowAccessRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ShowAccessRequestMultiError, or nil if none found.
type ShowAccessRequestMultiError ¶ added in v0.2.0
type ShowAccessRequestMultiError []error
ShowAccessRequestMultiError is an error wrapping multiple validation errors returned by ShowAccessRequest.ValidateAll() if the designated constraints aren't met.
func (ShowAccessRequestMultiError) AllErrors ¶ added in v0.2.0
func (m ShowAccessRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ShowAccessRequestMultiError) Error ¶ added in v0.2.0
func (m ShowAccessRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ShowAccessRequestValidationError ¶ added in v0.2.0
type ShowAccessRequestValidationError struct {
// contains filtered or unexported fields
}
ShowAccessRequestValidationError is the validation error returned by ShowAccessRequest.Validate if the designated constraints aren't met.
func (ShowAccessRequestValidationError) Cause ¶ added in v0.2.0
func (e ShowAccessRequestValidationError) Cause() error
Cause function returns cause value.
func (ShowAccessRequestValidationError) Error ¶ added in v0.2.0
func (e ShowAccessRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ShowAccessRequestValidationError) ErrorName ¶ added in v0.2.0
func (e ShowAccessRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ShowAccessRequestValidationError) Field ¶ added in v0.2.0
func (e ShowAccessRequestValidationError) Field() string
Field function returns field value.
func (ShowAccessRequestValidationError) Key ¶ added in v0.2.0
func (e ShowAccessRequestValidationError) Key() bool
Key function returns key value.
func (ShowAccessRequestValidationError) Reason ¶ added in v0.2.0
func (e ShowAccessRequestValidationError) Reason() string
Reason function returns reason value.
type UnimplementedAuthServiceServer ¶
type UnimplementedAuthServiceServer struct { }
UnimplementedAuthServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedAuthServiceServer) GrantAccess ¶ added in v0.2.0
func (UnimplementedAuthServiceServer) GrantAccess(context.Context, *GrantAccessRequest) (*GrantAccessResponse, error)
func (UnimplementedAuthServiceServer) Login ¶
func (UnimplementedAuthServiceServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
func (UnimplementedAuthServiceServer) RevokeAccess ¶ added in v0.2.0
func (UnimplementedAuthServiceServer) RevokeAccess(context.Context, *RevokeAccessRequest) (*RevokeAccessResponse, error)
func (UnimplementedAuthServiceServer) ShowAccess ¶ added in v0.2.0
func (UnimplementedAuthServiceServer) ShowAccess(*ShowAccessRequest, AuthService_ShowAccessServer) error
type UnsafeAuthServiceServer ¶
type UnsafeAuthServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAuthServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServiceServer will result in compilation errors.