Documentation ¶
Index ¶
- Variables
- func RegisterAPITokenServer(s grpc.ServiceRegistrar, srv APITokenServer)
- func RegisterClusterAuthServer(s grpc.ServiceRegistrar, srv ClusterAuthServer)
- func RegisterGatewayAuthServer(s grpc.ServiceRegistrar, srv GatewayAuthServer)
- func RegisterGatewayServer(s grpc.ServiceRegistrar, srv GatewayServer)
- type APITokenClient
- type APITokenRequest
- func (*APITokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *APITokenRequest) GetAuthorizationScopes() []AuthorizationScope
- func (m *APITokenRequest) GetUser() isAPITokenRequest_User
- func (x *APITokenRequest) GetUserId() string
- func (x *APITokenRequest) GetUsername() string
- func (x *APITokenRequest) GetValidity() *durationpb.Duration
- func (*APITokenRequest) ProtoMessage()
- func (x *APITokenRequest) ProtoReflect() protoreflect.Message
- func (x *APITokenRequest) Reset()
- func (x *APITokenRequest) String() string
- func (m *APITokenRequest) Validate() error
- func (m *APITokenRequest) ValidateAll() error
- type APITokenRequestMultiError
- type APITokenRequestValidationError
- func (e APITokenRequestValidationError) Cause() error
- func (e APITokenRequestValidationError) Error() string
- func (e APITokenRequestValidationError) ErrorName() string
- func (e APITokenRequestValidationError) Field() string
- func (e APITokenRequestValidationError) Key() bool
- func (e APITokenRequestValidationError) Reason() string
- type APITokenRequest_UserId
- type APITokenRequest_Username
- type APITokenResponse
- func (*APITokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *APITokenResponse) GetAccessToken() string
- func (x *APITokenResponse) GetExpiry() *timestamppb.Timestamp
- func (*APITokenResponse) ProtoMessage()
- func (x *APITokenResponse) ProtoReflect() protoreflect.Message
- func (x *APITokenResponse) Reset()
- func (x *APITokenResponse) String() string
- func (m *APITokenResponse) Validate() error
- func (m *APITokenResponse) ValidateAll() error
- type APITokenResponseMultiError
- type APITokenResponseValidationError
- func (e APITokenResponseValidationError) Cause() error
- func (e APITokenResponseValidationError) Error() string
- func (e APITokenResponseValidationError) ErrorName() string
- func (e APITokenResponseValidationError) Field() string
- func (e APITokenResponseValidationError) Key() bool
- func (e APITokenResponseValidationError) Reason() string
- type APITokenServer
- type AuthCode
- func (*AuthCode) Descriptor() ([]byte, []int)deprecated
- func (x *AuthCode) GetCallbackUrl() string
- func (x *AuthCode) GetCode() string
- func (x *AuthCode) GetState() string
- func (*AuthCode) ProtoMessage()
- func (x *AuthCode) ProtoReflect() protoreflect.Message
- func (x *AuthCode) Reset()
- func (x *AuthCode) String() string
- func (m *AuthCode) Validate() error
- func (m *AuthCode) ValidateAll() error
- type AuthCodeMultiError
- type AuthCodeValidationError
- type AuthInformation
- func (*AuthInformation) Descriptor() ([]byte, []int)deprecated
- func (x *AuthInformation) GetAuthCodeUrl() string
- func (x *AuthInformation) GetState() string
- func (*AuthInformation) ProtoMessage()
- func (x *AuthInformation) ProtoReflect() protoreflect.Message
- func (x *AuthInformation) Reset()
- func (x *AuthInformation) String() string
- func (m *AuthInformation) Validate() error
- func (m *AuthInformation) ValidateAll() error
- type AuthInformationMultiError
- type AuthInformationValidationError
- func (e AuthInformationValidationError) Cause() error
- func (e AuthInformationValidationError) Error() string
- func (e AuthInformationValidationError) ErrorName() string
- func (e AuthInformationValidationError) Field() string
- func (e AuthInformationValidationError) Key() bool
- func (e AuthInformationValidationError) Reason() string
- type AuthResponse
- func (*AuthResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthResponse) GetAccessToken() string
- func (x *AuthResponse) GetExpiry() *timestamppb.Timestamp
- func (x *AuthResponse) GetUsername() string
- func (*AuthResponse) ProtoMessage()
- func (x *AuthResponse) ProtoReflect() protoreflect.Message
- func (x *AuthResponse) Reset()
- func (x *AuthResponse) String() string
- func (m *AuthResponse) Validate() error
- func (m *AuthResponse) ValidateAll() error
- type AuthResponseMultiError
- type AuthResponseValidationError
- func (e AuthResponseValidationError) Cause() error
- func (e AuthResponseValidationError) Error() string
- func (e AuthResponseValidationError) ErrorName() string
- func (e AuthResponseValidationError) Field() string
- func (e AuthResponseValidationError) Key() bool
- func (e AuthResponseValidationError) Reason() string
- type AuthState
- func (*AuthState) Descriptor() ([]byte, []int)deprecated
- func (x *AuthState) GetCallbackUrl() string
- func (*AuthState) ProtoMessage()
- func (x *AuthState) ProtoReflect() protoreflect.Message
- func (x *AuthState) Reset()
- func (x *AuthState) String() string
- func (m *AuthState) Validate() error
- func (m *AuthState) ValidateAll() error
- type AuthStateMultiError
- type AuthStateValidationError
- type AuthenticationRequest
- func (*AuthenticationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthenticationRequest) GetCode() string
- func (x *AuthenticationRequest) GetState() string
- func (*AuthenticationRequest) ProtoMessage()
- func (x *AuthenticationRequest) ProtoReflect() protoreflect.Message
- func (x *AuthenticationRequest) Reset()
- func (x *AuthenticationRequest) String() string
- func (m *AuthenticationRequest) Validate() error
- func (m *AuthenticationRequest) ValidateAll() error
- type AuthenticationRequestMultiError
- type AuthenticationRequestValidationError
- func (e AuthenticationRequestValidationError) Cause() error
- func (e AuthenticationRequestValidationError) Error() string
- func (e AuthenticationRequestValidationError) ErrorName() string
- func (e AuthenticationRequestValidationError) Field() string
- func (e AuthenticationRequestValidationError) Key() bool
- func (e AuthenticationRequestValidationError) Reason() string
- type AuthenticationResponse
- func (*AuthenticationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthenticationResponse) GetAccessToken() string
- func (x *AuthenticationResponse) GetExpiry() *timestamppb.Timestamp
- func (x *AuthenticationResponse) GetUsername() string
- func (*AuthenticationResponse) ProtoMessage()
- func (x *AuthenticationResponse) ProtoReflect() protoreflect.Message
- func (x *AuthenticationResponse) Reset()
- func (x *AuthenticationResponse) String() string
- func (m *AuthenticationResponse) Validate() error
- func (m *AuthenticationResponse) ValidateAll() error
- type AuthenticationResponseMultiError
- type AuthenticationResponseValidationError
- func (e AuthenticationResponseValidationError) Cause() error
- func (e AuthenticationResponseValidationError) Error() string
- func (e AuthenticationResponseValidationError) ErrorName() string
- func (e AuthenticationResponseValidationError) Field() string
- func (e AuthenticationResponseValidationError) Key() bool
- func (e AuthenticationResponseValidationError) Reason() string
- type AuthorizationScope
- func (AuthorizationScope) Descriptor() protoreflect.EnumDescriptor
- func (x AuthorizationScope) Enum() *AuthorizationScope
- func (AuthorizationScope) EnumDescriptor() ([]byte, []int)deprecated
- func (x AuthorizationScope) Number() protoreflect.EnumNumber
- func (x AuthorizationScope) String() string
- func (AuthorizationScope) Type() protoreflect.EnumType
- type CheckRequest
- func (*CheckRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CheckRequest) GetFullMethodName() string
- func (*CheckRequest) ProtoMessage()
- func (x *CheckRequest) ProtoReflect() protoreflect.Message
- func (x *CheckRequest) Reset()
- func (x *CheckRequest) String() string
- func (m *CheckRequest) Validate() error
- func (m *CheckRequest) ValidateAll() error
- type CheckRequestMultiError
- type CheckRequestValidationError
- func (e CheckRequestValidationError) Cause() error
- func (e CheckRequestValidationError) Error() string
- func (e CheckRequestValidationError) ErrorName() string
- func (e CheckRequestValidationError) Field() string
- func (e CheckRequestValidationError) Key() bool
- func (e CheckRequestValidationError) Reason() string
- type CheckResponse
- func (*CheckResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CheckResponse) GetTags() []*CheckResponse_CheckResponseTag
- func (*CheckResponse) ProtoMessage()
- func (x *CheckResponse) ProtoReflect() protoreflect.Message
- func (x *CheckResponse) Reset()
- func (x *CheckResponse) String() string
- func (m *CheckResponse) Validate() error
- func (m *CheckResponse) ValidateAll() error
- type CheckResponseMultiError
- type CheckResponseValidationError
- func (e CheckResponseValidationError) Cause() error
- func (e CheckResponseValidationError) Error() string
- func (e CheckResponseValidationError) ErrorName() string
- func (e CheckResponseValidationError) Field() string
- func (e CheckResponseValidationError) Key() bool
- func (e CheckResponseValidationError) Reason() string
- type CheckResponse_CheckResponseTag
- func (*CheckResponse_CheckResponseTag) Descriptor() ([]byte, []int)deprecated
- func (x *CheckResponse_CheckResponseTag) GetKey() string
- func (x *CheckResponse_CheckResponseTag) GetValue() string
- func (*CheckResponse_CheckResponseTag) ProtoMessage()
- func (x *CheckResponse_CheckResponseTag) ProtoReflect() protoreflect.Message
- func (x *CheckResponse_CheckResponseTag) Reset()
- func (x *CheckResponse_CheckResponseTag) String() string
- func (m *CheckResponse_CheckResponseTag) Validate() error
- func (m *CheckResponse_CheckResponseTag) ValidateAll() error
- type CheckResponse_CheckResponseTagMultiError
- type CheckResponse_CheckResponseTagValidationError
- func (e CheckResponse_CheckResponseTagValidationError) Cause() error
- func (e CheckResponse_CheckResponseTagValidationError) Error() string
- func (e CheckResponse_CheckResponseTagValidationError) ErrorName() string
- func (e CheckResponse_CheckResponseTagValidationError) Field() string
- func (e CheckResponse_CheckResponseTagValidationError) Key() bool
- func (e CheckResponse_CheckResponseTagValidationError) Reason() string
- type ClusterAuthClient
- type ClusterAuthServer
- type ClusterAuthTokenRequest
- func (*ClusterAuthTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ClusterAuthTokenRequest) GetClusterId() string
- func (x *ClusterAuthTokenRequest) GetRole() string
- func (*ClusterAuthTokenRequest) ProtoMessage()
- func (x *ClusterAuthTokenRequest) ProtoReflect() protoreflect.Message
- func (x *ClusterAuthTokenRequest) Reset()
- func (x *ClusterAuthTokenRequest) String() string
- func (m *ClusterAuthTokenRequest) Validate() error
- func (m *ClusterAuthTokenRequest) ValidateAll() error
- type ClusterAuthTokenRequestMultiError
- type ClusterAuthTokenRequestValidationError
- func (e ClusterAuthTokenRequestValidationError) Cause() error
- func (e ClusterAuthTokenRequestValidationError) Error() string
- func (e ClusterAuthTokenRequestValidationError) ErrorName() string
- func (e ClusterAuthTokenRequestValidationError) Field() string
- func (e ClusterAuthTokenRequestValidationError) Key() bool
- func (e ClusterAuthTokenRequestValidationError) Reason() string
- type ClusterAuthTokenResponse
- func (*ClusterAuthTokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ClusterAuthTokenResponse) GetAccessToken() string
- func (x *ClusterAuthTokenResponse) GetExpiry() *timestamppb.Timestamp
- func (*ClusterAuthTokenResponse) ProtoMessage()
- func (x *ClusterAuthTokenResponse) ProtoReflect() protoreflect.Message
- func (x *ClusterAuthTokenResponse) Reset()
- func (x *ClusterAuthTokenResponse) String() string
- func (m *ClusterAuthTokenResponse) Validate() error
- func (m *ClusterAuthTokenResponse) ValidateAll() error
- type ClusterAuthTokenResponseMultiError
- type ClusterAuthTokenResponseValidationError
- func (e ClusterAuthTokenResponseValidationError) Cause() error
- func (e ClusterAuthTokenResponseValidationError) Error() string
- func (e ClusterAuthTokenResponseValidationError) ErrorName() string
- func (e ClusterAuthTokenResponseValidationError) Field() string
- func (e ClusterAuthTokenResponseValidationError) Key() bool
- func (e ClusterAuthTokenResponseValidationError) Reason() string
- type GatewayAuthClient
- type GatewayAuthServer
- type GatewayClient
- type GatewayServer
- type UnimplementedAPITokenServer
- type UnimplementedClusterAuthServer
- type UnimplementedGatewayAuthServer
- type UnimplementedGatewayServer
- type UnsafeAPITokenServer
- type UnsafeClusterAuthServer
- type UnsafeGatewayAuthServer
- type UnsafeGatewayServer
- type UpstreamAuthenticationRequest
- func (*UpstreamAuthenticationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpstreamAuthenticationRequest) GetCallbackUrl() string
- func (*UpstreamAuthenticationRequest) ProtoMessage()
- func (x *UpstreamAuthenticationRequest) ProtoReflect() protoreflect.Message
- func (x *UpstreamAuthenticationRequest) Reset()
- func (x *UpstreamAuthenticationRequest) String() string
- func (m *UpstreamAuthenticationRequest) Validate() error
- func (m *UpstreamAuthenticationRequest) ValidateAll() error
- type UpstreamAuthenticationRequestMultiError
- type UpstreamAuthenticationRequestValidationError
- func (e UpstreamAuthenticationRequestValidationError) Cause() error
- func (e UpstreamAuthenticationRequestValidationError) Error() string
- func (e UpstreamAuthenticationRequestValidationError) ErrorName() string
- func (e UpstreamAuthenticationRequestValidationError) Field() string
- func (e UpstreamAuthenticationRequestValidationError) Key() bool
- func (e UpstreamAuthenticationRequestValidationError) Reason() string
- type UpstreamAuthenticationResponse
- func (*UpstreamAuthenticationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpstreamAuthenticationResponse) GetState() string
- func (x *UpstreamAuthenticationResponse) GetUpstreamIdpRedirect() string
- func (*UpstreamAuthenticationResponse) ProtoMessage()
- func (x *UpstreamAuthenticationResponse) ProtoReflect() protoreflect.Message
- func (x *UpstreamAuthenticationResponse) Reset()
- func (x *UpstreamAuthenticationResponse) String() string
- func (m *UpstreamAuthenticationResponse) Validate() error
- func (m *UpstreamAuthenticationResponse) ValidateAll() error
- type UpstreamAuthenticationResponseMultiError
- type UpstreamAuthenticationResponseValidationError
- func (e UpstreamAuthenticationResponseValidationError) Cause() error
- func (e UpstreamAuthenticationResponseValidationError) Error() string
- func (e UpstreamAuthenticationResponseValidationError) ErrorName() string
- func (e UpstreamAuthenticationResponseValidationError) Field() string
- func (e UpstreamAuthenticationResponseValidationError) Key() bool
- func (e UpstreamAuthenticationResponseValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var ( AuthorizationScope_name = map[int32]string{ 0: "NONE", 1: "API", 2: "WRITE_SCIM", 3: "WRITE_K8SOPERATOR", } AuthorizationScope_value = map[string]int32{ "NONE": 0, "API": 1, "WRITE_SCIM": 2, "WRITE_K8SOPERATOR": 3, } )
Enum value maps for AuthorizationScope.
var APIToken_ServiceDesc = grpc.ServiceDesc{ ServiceName: "gateway.APIToken", HandlerType: (*APITokenServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "RequestAPIToken", Handler: _APIToken_RequestAPIToken_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/gateway/service.proto", }
APIToken_ServiceDesc is the grpc.ServiceDesc for APIToken service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var ClusterAuth_ServiceDesc = grpc.ServiceDesc{ ServiceName: "gateway.ClusterAuth", HandlerType: (*ClusterAuthServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetAuthToken", Handler: _ClusterAuth_GetAuthToken_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/gateway/service.proto", }
ClusterAuth_ServiceDesc is the grpc.ServiceDesc for ClusterAuth service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_api_gateway_messages_proto protoreflect.FileDescriptor
var File_api_gateway_service_proto protoreflect.FileDescriptor
var GatewayAuth_ServiceDesc = grpc.ServiceDesc{ ServiceName: "gateway.GatewayAuth", HandlerType: (*GatewayAuthServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Check", Handler: _GatewayAuth_Check_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/gateway/service.proto", }
GatewayAuth_ServiceDesc is the grpc.ServiceDesc for GatewayAuth service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Gateway_ServiceDesc = grpc.ServiceDesc{ ServiceName: "gateway.Gateway", HandlerType: (*GatewayServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "RequestUpstreamAuthentication", Handler: _Gateway_RequestUpstreamAuthentication_Handler, }, { MethodName: "RequestAuthentication", Handler: _Gateway_RequestAuthentication_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/gateway/service.proto", }
Gateway_ServiceDesc is the grpc.ServiceDesc for Gateway service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterAPITokenServer ¶ added in v0.3.0
func RegisterAPITokenServer(s grpc.ServiceRegistrar, srv APITokenServer)
func RegisterClusterAuthServer ¶
func RegisterClusterAuthServer(s grpc.ServiceRegistrar, srv ClusterAuthServer)
func RegisterGatewayAuthServer ¶ added in v0.3.6
func RegisterGatewayAuthServer(s grpc.ServiceRegistrar, srv GatewayAuthServer)
func RegisterGatewayServer ¶
func RegisterGatewayServer(s grpc.ServiceRegistrar, srv GatewayServer)
Types ¶
type APITokenClient ¶ added in v0.3.0
type APITokenClient interface {
RequestAPIToken(ctx context.Context, in *APITokenRequest, opts ...grpc.CallOption) (*APITokenResponse, error)
}
APITokenClient is the client API for APIToken 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 NewAPITokenClient ¶ added in v0.3.0
func NewAPITokenClient(cc grpc.ClientConnInterface) APITokenClient
type APITokenRequest ¶ added in v0.3.0
type APITokenRequest struct { // Scope the resulting token is issued for AuthorizationScopes []AuthorizationScope `` /* 158-byte string literal not displayed */ // Duration for which the issued token will be valid Validity *durationpb.Duration `protobuf:"bytes,2,opt,name=validity,proto3" json:"validity,omitempty"` // Types that are assignable to User: // *APITokenRequest_UserId // *APITokenRequest_Username User isAPITokenRequest_User `protobuf_oneof:"user"` // contains filtered or unexported fields }
APITokenRequest is send in order to retrieve an API token valid to authenticate against Monoskope and authorize specific scopes.
func (*APITokenRequest) Descriptor
deprecated
added in
v0.3.0
func (*APITokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use APITokenRequest.ProtoReflect.Descriptor instead.
func (*APITokenRequest) GetAuthorizationScopes ¶ added in v0.3.0
func (x *APITokenRequest) GetAuthorizationScopes() []AuthorizationScope
func (*APITokenRequest) GetUser ¶ added in v0.3.0
func (m *APITokenRequest) GetUser() isAPITokenRequest_User
func (*APITokenRequest) GetUserId ¶ added in v0.3.0
func (x *APITokenRequest) GetUserId() string
func (*APITokenRequest) GetUsername ¶ added in v0.3.0
func (x *APITokenRequest) GetUsername() string
func (*APITokenRequest) GetValidity ¶ added in v0.3.0
func (x *APITokenRequest) GetValidity() *durationpb.Duration
func (*APITokenRequest) ProtoMessage ¶ added in v0.3.0
func (*APITokenRequest) ProtoMessage()
func (*APITokenRequest) ProtoReflect ¶ added in v0.3.0
func (x *APITokenRequest) ProtoReflect() protoreflect.Message
func (*APITokenRequest) Reset ¶ added in v0.3.0
func (x *APITokenRequest) Reset()
func (*APITokenRequest) String ¶ added in v0.3.0
func (x *APITokenRequest) String() string
func (*APITokenRequest) Validate ¶ added in v0.3.0
func (m *APITokenRequest) Validate() error
Validate checks the field values on APITokenRequest 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 (*APITokenRequest) ValidateAll ¶ added in v0.3.0
func (m *APITokenRequest) ValidateAll() error
ValidateAll checks the field values on APITokenRequest 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 APITokenRequestMultiError, or nil if none found.
type APITokenRequestMultiError ¶ added in v0.3.0
type APITokenRequestMultiError []error
APITokenRequestMultiError is an error wrapping multiple validation errors returned by APITokenRequest.ValidateAll() if the designated constraints aren't met.
func (APITokenRequestMultiError) AllErrors ¶ added in v0.3.0
func (m APITokenRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (APITokenRequestMultiError) Error ¶ added in v0.3.0
func (m APITokenRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type APITokenRequestValidationError ¶ added in v0.3.0
type APITokenRequestValidationError struct {
// contains filtered or unexported fields
}
APITokenRequestValidationError is the validation error returned by APITokenRequest.Validate if the designated constraints aren't met.
func (APITokenRequestValidationError) Cause ¶ added in v0.3.0
func (e APITokenRequestValidationError) Cause() error
Cause function returns cause value.
func (APITokenRequestValidationError) Error ¶ added in v0.3.0
func (e APITokenRequestValidationError) Error() string
Error satisfies the builtin error interface
func (APITokenRequestValidationError) ErrorName ¶ added in v0.3.0
func (e APITokenRequestValidationError) ErrorName() string
ErrorName returns error name.
func (APITokenRequestValidationError) Field ¶ added in v0.3.0
func (e APITokenRequestValidationError) Field() string
Field function returns field value.
func (APITokenRequestValidationError) Key ¶ added in v0.3.0
func (e APITokenRequestValidationError) Key() bool
Key function returns key value.
func (APITokenRequestValidationError) Reason ¶ added in v0.3.0
func (e APITokenRequestValidationError) Reason() string
Reason function returns reason value.
type APITokenRequest_UserId ¶ added in v0.3.0
type APITokenRequest_UserId struct { // Unique identifier of an existing user (UUID 128-bit number) UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3,oneof"` }
type APITokenRequest_Username ¶ added in v0.3.0
type APITokenRequest_Username struct { // Name of the user the token is valid for (not necessarily a real user) Username string `protobuf:"bytes,4,opt,name=username,proto3,oneof"` }
type APITokenResponse ¶ added in v0.3.0
type APITokenResponse struct { // JWT to authenticate against the m8 API AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` // Timestamp when the token expires Expiry *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expiry,proto3" json:"expiry,omitempty"` // contains filtered or unexported fields }
APITokenResponse is the answer to an APITokenRequest containing a JWT to authenticate against the m8 API.
func (*APITokenResponse) Descriptor
deprecated
added in
v0.3.0
func (*APITokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use APITokenResponse.ProtoReflect.Descriptor instead.
func (*APITokenResponse) GetAccessToken ¶ added in v0.3.0
func (x *APITokenResponse) GetAccessToken() string
func (*APITokenResponse) GetExpiry ¶ added in v0.3.0
func (x *APITokenResponse) GetExpiry() *timestamppb.Timestamp
func (*APITokenResponse) ProtoMessage ¶ added in v0.3.0
func (*APITokenResponse) ProtoMessage()
func (*APITokenResponse) ProtoReflect ¶ added in v0.3.0
func (x *APITokenResponse) ProtoReflect() protoreflect.Message
func (*APITokenResponse) Reset ¶ added in v0.3.0
func (x *APITokenResponse) Reset()
func (*APITokenResponse) String ¶ added in v0.3.0
func (x *APITokenResponse) String() string
func (*APITokenResponse) Validate ¶ added in v0.3.0
func (m *APITokenResponse) Validate() error
Validate checks the field values on APITokenResponse 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 (*APITokenResponse) ValidateAll ¶ added in v0.3.0
func (m *APITokenResponse) ValidateAll() error
ValidateAll checks the field values on APITokenResponse 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 APITokenResponseMultiError, or nil if none found.
type APITokenResponseMultiError ¶ added in v0.3.0
type APITokenResponseMultiError []error
APITokenResponseMultiError is an error wrapping multiple validation errors returned by APITokenResponse.ValidateAll() if the designated constraints aren't met.
func (APITokenResponseMultiError) AllErrors ¶ added in v0.3.0
func (m APITokenResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (APITokenResponseMultiError) Error ¶ added in v0.3.0
func (m APITokenResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type APITokenResponseValidationError ¶ added in v0.3.0
type APITokenResponseValidationError struct {
// contains filtered or unexported fields
}
APITokenResponseValidationError is the validation error returned by APITokenResponse.Validate if the designated constraints aren't met.
func (APITokenResponseValidationError) Cause ¶ added in v0.3.0
func (e APITokenResponseValidationError) Cause() error
Cause function returns cause value.
func (APITokenResponseValidationError) Error ¶ added in v0.3.0
func (e APITokenResponseValidationError) Error() string
Error satisfies the builtin error interface
func (APITokenResponseValidationError) ErrorName ¶ added in v0.3.0
func (e APITokenResponseValidationError) ErrorName() string
ErrorName returns error name.
func (APITokenResponseValidationError) Field ¶ added in v0.3.0
func (e APITokenResponseValidationError) Field() string
Field function returns field value.
func (APITokenResponseValidationError) Key ¶ added in v0.3.0
func (e APITokenResponseValidationError) Key() bool
Key function returns key value.
func (APITokenResponseValidationError) Reason ¶ added in v0.3.0
func (e APITokenResponseValidationError) Reason() string
Reason function returns reason value.
type APITokenServer ¶ added in v0.3.0
type APITokenServer interface { RequestAPIToken(context.Context, *APITokenRequest) (*APITokenResponse, error) // contains filtered or unexported methods }
APITokenServer is the server API for APIToken service. All implementations must embed UnimplementedAPITokenServer for forward compatibility
type AuthCode ¶
type AuthCode struct { // code is the auth code received by the IDP Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` // state is the encoded, nonced AuthState State string `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"` // callback_url is the url to send the auth token response too CallbackUrl string `protobuf:"bytes,3,opt,name=callback_url,json=callbackUrl,proto3" json:"callback_url,omitempty"` // contains filtered or unexported fields }
AuthCode is the request to exchange the auth code received from an upstream identity provider against a token issued by m8 for authentication.
func (*AuthCode) Descriptor
deprecated
func (*AuthCode) GetCallbackUrl ¶
func (*AuthCode) ProtoMessage ¶
func (*AuthCode) ProtoMessage()
func (*AuthCode) ProtoReflect ¶
func (x *AuthCode) ProtoReflect() protoreflect.Message
func (*AuthCode) Validate ¶ added in v0.3.0
Validate checks the field values on AuthCode 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 (*AuthCode) ValidateAll ¶ added in v0.3.0
ValidateAll checks the field values on AuthCode 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 AuthCodeMultiError, or nil if none found.
type AuthCodeMultiError ¶ added in v0.3.0
type AuthCodeMultiError []error
AuthCodeMultiError is an error wrapping multiple validation errors returned by AuthCode.ValidateAll() if the designated constraints aren't met.
func (AuthCodeMultiError) AllErrors ¶ added in v0.3.0
func (m AuthCodeMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AuthCodeMultiError) Error ¶ added in v0.3.0
func (m AuthCodeMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AuthCodeValidationError ¶ added in v0.3.0
type AuthCodeValidationError struct {
// contains filtered or unexported fields
}
AuthCodeValidationError is the validation error returned by AuthCode.Validate if the designated constraints aren't met.
func (AuthCodeValidationError) Cause ¶ added in v0.3.0
func (e AuthCodeValidationError) Cause() error
Cause function returns cause value.
func (AuthCodeValidationError) Error ¶ added in v0.3.0
func (e AuthCodeValidationError) Error() string
Error satisfies the builtin error interface
func (AuthCodeValidationError) ErrorName ¶ added in v0.3.0
func (e AuthCodeValidationError) ErrorName() string
ErrorName returns error name.
func (AuthCodeValidationError) Field ¶ added in v0.3.0
func (e AuthCodeValidationError) Field() string
Field function returns field value.
func (AuthCodeValidationError) Key ¶ added in v0.3.0
func (e AuthCodeValidationError) Key() bool
Key function returns key value.
func (AuthCodeValidationError) Reason ¶ added in v0.3.0
func (e AuthCodeValidationError) Reason() string
Reason function returns reason value.
type AuthInformation ¶
type AuthInformation struct { // auth_code_url is the URL of the IDP to authenticate against AuthCodeUrl string `protobuf:"bytes,1,opt,name=auth_code_url,json=authCodeUrl,proto3" json:"auth_code_url,omitempty"` // state is the encoded, nonced AuthState State string `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"` // contains filtered or unexported fields }
AuthInformation is the response to an AuthState message. It contains the URL
func (*AuthInformation) Descriptor
deprecated
func (*AuthInformation) Descriptor() ([]byte, []int)
Deprecated: Use AuthInformation.ProtoReflect.Descriptor instead.
func (*AuthInformation) GetAuthCodeUrl ¶
func (x *AuthInformation) GetAuthCodeUrl() string
func (*AuthInformation) GetState ¶
func (x *AuthInformation) GetState() string
func (*AuthInformation) ProtoMessage ¶
func (*AuthInformation) ProtoMessage()
func (*AuthInformation) ProtoReflect ¶
func (x *AuthInformation) ProtoReflect() protoreflect.Message
func (*AuthInformation) Reset ¶
func (x *AuthInformation) Reset()
func (*AuthInformation) String ¶
func (x *AuthInformation) String() string
func (*AuthInformation) Validate ¶ added in v0.3.0
func (m *AuthInformation) Validate() error
Validate checks the field values on AuthInformation 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 (*AuthInformation) ValidateAll ¶ added in v0.3.0
func (m *AuthInformation) ValidateAll() error
ValidateAll checks the field values on AuthInformation 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 AuthInformationMultiError, or nil if none found.
type AuthInformationMultiError ¶ added in v0.3.0
type AuthInformationMultiError []error
AuthInformationMultiError is an error wrapping multiple validation errors returned by AuthInformation.ValidateAll() if the designated constraints aren't met.
func (AuthInformationMultiError) AllErrors ¶ added in v0.3.0
func (m AuthInformationMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AuthInformationMultiError) Error ¶ added in v0.3.0
func (m AuthInformationMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AuthInformationValidationError ¶ added in v0.3.0
type AuthInformationValidationError struct {
// contains filtered or unexported fields
}
AuthInformationValidationError is the validation error returned by AuthInformation.Validate if the designated constraints aren't met.
func (AuthInformationValidationError) Cause ¶ added in v0.3.0
func (e AuthInformationValidationError) Cause() error
Cause function returns cause value.
func (AuthInformationValidationError) Error ¶ added in v0.3.0
func (e AuthInformationValidationError) Error() string
Error satisfies the builtin error interface
func (AuthInformationValidationError) ErrorName ¶ added in v0.3.0
func (e AuthInformationValidationError) ErrorName() string
ErrorName returns error name.
func (AuthInformationValidationError) Field ¶ added in v0.3.0
func (e AuthInformationValidationError) Field() string
Field function returns field value.
func (AuthInformationValidationError) Key ¶ added in v0.3.0
func (e AuthInformationValidationError) Key() bool
Key function returns key value.
func (AuthInformationValidationError) Reason ¶ added in v0.3.0
func (e AuthInformationValidationError) Reason() string
Reason function returns reason value.
type AuthResponse ¶
type AuthResponse struct { // access_token is a JWT to authenticate against the m8 API AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` // expiry is the timestamp when the token expires Expiry *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expiry,proto3" json:"expiry,omitempty"` // username is the username known the m8 control plane Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
AuthResponse is the response to an AuthCode message. It contains a JWT to authenticate against the m8 API.
func (*AuthResponse) Descriptor
deprecated
func (*AuthResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthResponse.ProtoReflect.Descriptor instead.
func (*AuthResponse) GetAccessToken ¶
func (x *AuthResponse) GetAccessToken() string
func (*AuthResponse) GetExpiry ¶
func (x *AuthResponse) GetExpiry() *timestamppb.Timestamp
func (*AuthResponse) GetUsername ¶
func (x *AuthResponse) GetUsername() string
func (*AuthResponse) ProtoMessage ¶
func (*AuthResponse) ProtoMessage()
func (*AuthResponse) ProtoReflect ¶
func (x *AuthResponse) ProtoReflect() protoreflect.Message
func (*AuthResponse) Reset ¶
func (x *AuthResponse) Reset()
func (*AuthResponse) String ¶
func (x *AuthResponse) String() string
func (*AuthResponse) Validate ¶ added in v0.3.0
func (m *AuthResponse) Validate() error
Validate checks the field values on AuthResponse 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 (*AuthResponse) ValidateAll ¶ added in v0.3.0
func (m *AuthResponse) ValidateAll() error
ValidateAll checks the field values on AuthResponse 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 AuthResponseMultiError, or nil if none found.
type AuthResponseMultiError ¶ added in v0.3.0
type AuthResponseMultiError []error
AuthResponseMultiError is an error wrapping multiple validation errors returned by AuthResponse.ValidateAll() if the designated constraints aren't met.
func (AuthResponseMultiError) AllErrors ¶ added in v0.3.0
func (m AuthResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AuthResponseMultiError) Error ¶ added in v0.3.0
func (m AuthResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AuthResponseValidationError ¶ added in v0.3.0
type AuthResponseValidationError struct {
// contains filtered or unexported fields
}
AuthResponseValidationError is the validation error returned by AuthResponse.Validate if the designated constraints aren't met.
func (AuthResponseValidationError) Cause ¶ added in v0.3.0
func (e AuthResponseValidationError) Cause() error
Cause function returns cause value.
func (AuthResponseValidationError) Error ¶ added in v0.3.0
func (e AuthResponseValidationError) Error() string
Error satisfies the builtin error interface
func (AuthResponseValidationError) ErrorName ¶ added in v0.3.0
func (e AuthResponseValidationError) ErrorName() string
ErrorName returns error name.
func (AuthResponseValidationError) Field ¶ added in v0.3.0
func (e AuthResponseValidationError) Field() string
Field function returns field value.
func (AuthResponseValidationError) Key ¶ added in v0.3.0
func (e AuthResponseValidationError) Key() bool
Key function returns key value.
func (AuthResponseValidationError) Reason ¶ added in v0.3.0
func (e AuthResponseValidationError) Reason() string
Reason function returns reason value.
type AuthState ¶
type AuthState struct { // callback_url is the url to send the auth token response too CallbackUrl string `protobuf:"bytes,1,opt,name=callback_url,json=callbackUrl,proto3" json:"callback_url,omitempty"` // contains filtered or unexported fields }
func (*AuthState) Descriptor
deprecated
func (*AuthState) GetCallbackUrl ¶
func (*AuthState) ProtoMessage ¶
func (*AuthState) ProtoMessage()
func (*AuthState) ProtoReflect ¶
func (x *AuthState) ProtoReflect() protoreflect.Message
func (*AuthState) Validate ¶ added in v0.3.0
Validate checks the field values on AuthState 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 (*AuthState) ValidateAll ¶ added in v0.3.0
ValidateAll checks the field values on AuthState 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 AuthStateMultiError, or nil if none found.
type AuthStateMultiError ¶ added in v0.3.0
type AuthStateMultiError []error
AuthStateMultiError is an error wrapping multiple validation errors returned by AuthState.ValidateAll() if the designated constraints aren't met.
func (AuthStateMultiError) AllErrors ¶ added in v0.3.0
func (m AuthStateMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AuthStateMultiError) Error ¶ added in v0.3.0
func (m AuthStateMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AuthStateValidationError ¶ added in v0.3.0
type AuthStateValidationError struct {
// contains filtered or unexported fields
}
AuthStateValidationError is the validation error returned by AuthState.Validate if the designated constraints aren't met.
func (AuthStateValidationError) Cause ¶ added in v0.3.0
func (e AuthStateValidationError) Cause() error
Cause function returns cause value.
func (AuthStateValidationError) Error ¶ added in v0.3.0
func (e AuthStateValidationError) Error() string
Error satisfies the builtin error interface
func (AuthStateValidationError) ErrorName ¶ added in v0.3.0
func (e AuthStateValidationError) ErrorName() string
ErrorName returns error name.
func (AuthStateValidationError) Field ¶ added in v0.3.0
func (e AuthStateValidationError) Field() string
Field function returns field value.
func (AuthStateValidationError) Key ¶ added in v0.3.0
func (e AuthStateValidationError) Key() bool
Key function returns key value.
func (AuthStateValidationError) Reason ¶ added in v0.3.0
func (e AuthStateValidationError) Reason() string
Reason function returns reason value.
type AuthenticationRequest ¶ added in v0.3.0
type AuthenticationRequest struct { // code is the auth code received by the IDP Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` // state is the encoded, nonced AuthState State string `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"` // contains filtered or unexported fields }
func (*AuthenticationRequest) Descriptor
deprecated
added in
v0.3.0
func (*AuthenticationRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthenticationRequest.ProtoReflect.Descriptor instead.
func (*AuthenticationRequest) GetCode ¶ added in v0.3.0
func (x *AuthenticationRequest) GetCode() string
func (*AuthenticationRequest) GetState ¶ added in v0.3.0
func (x *AuthenticationRequest) GetState() string
func (*AuthenticationRequest) ProtoMessage ¶ added in v0.3.0
func (*AuthenticationRequest) ProtoMessage()
func (*AuthenticationRequest) ProtoReflect ¶ added in v0.3.0
func (x *AuthenticationRequest) ProtoReflect() protoreflect.Message
func (*AuthenticationRequest) Reset ¶ added in v0.3.0
func (x *AuthenticationRequest) Reset()
func (*AuthenticationRequest) String ¶ added in v0.3.0
func (x *AuthenticationRequest) String() string
func (*AuthenticationRequest) Validate ¶ added in v0.3.0
func (m *AuthenticationRequest) Validate() error
Validate checks the field values on AuthenticationRequest 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 (*AuthenticationRequest) ValidateAll ¶ added in v0.3.0
func (m *AuthenticationRequest) ValidateAll() error
ValidateAll checks the field values on AuthenticationRequest 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 AuthenticationRequestMultiError, or nil if none found.
type AuthenticationRequestMultiError ¶ added in v0.3.0
type AuthenticationRequestMultiError []error
AuthenticationRequestMultiError is an error wrapping multiple validation errors returned by AuthenticationRequest.ValidateAll() if the designated constraints aren't met.
func (AuthenticationRequestMultiError) AllErrors ¶ added in v0.3.0
func (m AuthenticationRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AuthenticationRequestMultiError) Error ¶ added in v0.3.0
func (m AuthenticationRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AuthenticationRequestValidationError ¶ added in v0.3.0
type AuthenticationRequestValidationError struct {
// contains filtered or unexported fields
}
AuthenticationRequestValidationError is the validation error returned by AuthenticationRequest.Validate if the designated constraints aren't met.
func (AuthenticationRequestValidationError) Cause ¶ added in v0.3.0
func (e AuthenticationRequestValidationError) Cause() error
Cause function returns cause value.
func (AuthenticationRequestValidationError) Error ¶ added in v0.3.0
func (e AuthenticationRequestValidationError) Error() string
Error satisfies the builtin error interface
func (AuthenticationRequestValidationError) ErrorName ¶ added in v0.3.0
func (e AuthenticationRequestValidationError) ErrorName() string
ErrorName returns error name.
func (AuthenticationRequestValidationError) Field ¶ added in v0.3.0
func (e AuthenticationRequestValidationError) Field() string
Field function returns field value.
func (AuthenticationRequestValidationError) Key ¶ added in v0.3.0
func (e AuthenticationRequestValidationError) Key() bool
Key function returns key value.
func (AuthenticationRequestValidationError) Reason ¶ added in v0.3.0
func (e AuthenticationRequestValidationError) Reason() string
Reason function returns reason value.
type AuthenticationResponse ¶ added in v0.3.0
type AuthenticationResponse struct { // access_token is a JWT to authenticate against the m8 API AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` // expiry is the timestamp when the token expires Expiry *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expiry,proto3" json:"expiry,omitempty"` // username is the username known the m8 control plane Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
func (*AuthenticationResponse) Descriptor
deprecated
added in
v0.3.0
func (*AuthenticationResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthenticationResponse.ProtoReflect.Descriptor instead.
func (*AuthenticationResponse) GetAccessToken ¶ added in v0.3.0
func (x *AuthenticationResponse) GetAccessToken() string
func (*AuthenticationResponse) GetExpiry ¶ added in v0.3.0
func (x *AuthenticationResponse) GetExpiry() *timestamppb.Timestamp
func (*AuthenticationResponse) GetUsername ¶ added in v0.3.0
func (x *AuthenticationResponse) GetUsername() string
func (*AuthenticationResponse) ProtoMessage ¶ added in v0.3.0
func (*AuthenticationResponse) ProtoMessage()
func (*AuthenticationResponse) ProtoReflect ¶ added in v0.3.0
func (x *AuthenticationResponse) ProtoReflect() protoreflect.Message
func (*AuthenticationResponse) Reset ¶ added in v0.3.0
func (x *AuthenticationResponse) Reset()
func (*AuthenticationResponse) String ¶ added in v0.3.0
func (x *AuthenticationResponse) String() string
func (*AuthenticationResponse) Validate ¶ added in v0.3.0
func (m *AuthenticationResponse) Validate() error
Validate checks the field values on AuthenticationResponse 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 (*AuthenticationResponse) ValidateAll ¶ added in v0.3.0
func (m *AuthenticationResponse) ValidateAll() error
ValidateAll checks the field values on AuthenticationResponse 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 AuthenticationResponseMultiError, or nil if none found.
type AuthenticationResponseMultiError ¶ added in v0.3.0
type AuthenticationResponseMultiError []error
AuthenticationResponseMultiError is an error wrapping multiple validation errors returned by AuthenticationResponse.ValidateAll() if the designated constraints aren't met.
func (AuthenticationResponseMultiError) AllErrors ¶ added in v0.3.0
func (m AuthenticationResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AuthenticationResponseMultiError) Error ¶ added in v0.3.0
func (m AuthenticationResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AuthenticationResponseValidationError ¶ added in v0.3.0
type AuthenticationResponseValidationError struct {
// contains filtered or unexported fields
}
AuthenticationResponseValidationError is the validation error returned by AuthenticationResponse.Validate if the designated constraints aren't met.
func (AuthenticationResponseValidationError) Cause ¶ added in v0.3.0
func (e AuthenticationResponseValidationError) Cause() error
Cause function returns cause value.
func (AuthenticationResponseValidationError) Error ¶ added in v0.3.0
func (e AuthenticationResponseValidationError) Error() string
Error satisfies the builtin error interface
func (AuthenticationResponseValidationError) ErrorName ¶ added in v0.3.0
func (e AuthenticationResponseValidationError) ErrorName() string
ErrorName returns error name.
func (AuthenticationResponseValidationError) Field ¶ added in v0.3.0
func (e AuthenticationResponseValidationError) Field() string
Field function returns field value.
func (AuthenticationResponseValidationError) Key ¶ added in v0.3.0
func (e AuthenticationResponseValidationError) Key() bool
Key function returns key value.
func (AuthenticationResponseValidationError) Reason ¶ added in v0.3.0
func (e AuthenticationResponseValidationError) Reason() string
Reason function returns reason value.
type AuthorizationScope ¶ added in v0.3.0
type AuthorizationScope int32
AuthorizationScope is an enum defining the available API scopes.
const ( AuthorizationScope_NONE AuthorizationScope = 0 // Dummy to prevent accidents AuthorizationScope_API AuthorizationScope = 1 // Read-write for the complete API AuthorizationScope_WRITE_SCIM AuthorizationScope = 2 // Read-write for endpoints under "/scim" AuthorizationScope_WRITE_K8SOPERATOR AuthorizationScope = 3 // Read-write for K8sOperator endpoints )
func (AuthorizationScope) Descriptor ¶ added in v0.3.0
func (AuthorizationScope) Descriptor() protoreflect.EnumDescriptor
func (AuthorizationScope) Enum ¶ added in v0.3.0
func (x AuthorizationScope) Enum() *AuthorizationScope
func (AuthorizationScope) EnumDescriptor
deprecated
added in
v0.3.0
func (AuthorizationScope) EnumDescriptor() ([]byte, []int)
Deprecated: Use AuthorizationScope.Descriptor instead.
func (AuthorizationScope) Number ¶ added in v0.3.0
func (x AuthorizationScope) Number() protoreflect.EnumNumber
func (AuthorizationScope) String ¶ added in v0.3.0
func (x AuthorizationScope) String() string
func (AuthorizationScope) Type ¶ added in v0.3.0
func (AuthorizationScope) Type() protoreflect.EnumType
type CheckRequest ¶ added in v0.3.6
type CheckRequest struct { // FullMethodName is the full RPC method string, i.e., // /package.service/method. FullMethodName string `protobuf:"bytes,1,opt,name=full_method_name,json=fullMethodName,proto3" json:"full_method_name,omitempty"` // contains filtered or unexported fields }
Request information that should be checked if authorized.
func (*CheckRequest) Descriptor
deprecated
added in
v0.3.6
func (*CheckRequest) Descriptor() ([]byte, []int)
Deprecated: Use CheckRequest.ProtoReflect.Descriptor instead.
func (*CheckRequest) GetFullMethodName ¶ added in v0.3.6
func (x *CheckRequest) GetFullMethodName() string
func (*CheckRequest) ProtoMessage ¶ added in v0.3.6
func (*CheckRequest) ProtoMessage()
func (*CheckRequest) ProtoReflect ¶ added in v0.3.6
func (x *CheckRequest) ProtoReflect() protoreflect.Message
func (*CheckRequest) Reset ¶ added in v0.3.6
func (x *CheckRequest) Reset()
func (*CheckRequest) String ¶ added in v0.3.6
func (x *CheckRequest) String() string
func (*CheckRequest) Validate ¶ added in v0.3.6
func (m *CheckRequest) Validate() error
Validate checks the field values on CheckRequest 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 (*CheckRequest) ValidateAll ¶ added in v0.3.6
func (m *CheckRequest) ValidateAll() error
ValidateAll checks the field values on CheckRequest 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 CheckRequestMultiError, or nil if none found.
type CheckRequestMultiError ¶ added in v0.3.6
type CheckRequestMultiError []error
CheckRequestMultiError is an error wrapping multiple validation errors returned by CheckRequest.ValidateAll() if the designated constraints aren't met.
func (CheckRequestMultiError) AllErrors ¶ added in v0.3.6
func (m CheckRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CheckRequestMultiError) Error ¶ added in v0.3.6
func (m CheckRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CheckRequestValidationError ¶ added in v0.3.6
type CheckRequestValidationError struct {
// contains filtered or unexported fields
}
CheckRequestValidationError is the validation error returned by CheckRequest.Validate if the designated constraints aren't met.
func (CheckRequestValidationError) Cause ¶ added in v0.3.6
func (e CheckRequestValidationError) Cause() error
Cause function returns cause value.
func (CheckRequestValidationError) Error ¶ added in v0.3.6
func (e CheckRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CheckRequestValidationError) ErrorName ¶ added in v0.3.6
func (e CheckRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CheckRequestValidationError) Field ¶ added in v0.3.6
func (e CheckRequestValidationError) Field() string
Field function returns field value.
func (CheckRequestValidationError) Key ¶ added in v0.3.6
func (e CheckRequestValidationError) Key() bool
Key function returns key value.
func (CheckRequestValidationError) Reason ¶ added in v0.3.6
func (e CheckRequestValidationError) Reason() string
Reason function returns reason value.
type CheckResponse ¶ added in v0.3.6
type CheckResponse struct { Tags []*CheckResponse_CheckResponseTag `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty"` // contains filtered or unexported fields }
Intended for gRPC and Network Authorization servers `only`. Status `OK` allows the request. Any other status indicates the request should be denied.
func (*CheckResponse) Descriptor
deprecated
added in
v0.3.6
func (*CheckResponse) Descriptor() ([]byte, []int)
Deprecated: Use CheckResponse.ProtoReflect.Descriptor instead.
func (*CheckResponse) GetTags ¶ added in v0.3.6
func (x *CheckResponse) GetTags() []*CheckResponse_CheckResponseTag
func (*CheckResponse) ProtoMessage ¶ added in v0.3.6
func (*CheckResponse) ProtoMessage()
func (*CheckResponse) ProtoReflect ¶ added in v0.3.6
func (x *CheckResponse) ProtoReflect() protoreflect.Message
func (*CheckResponse) Reset ¶ added in v0.3.6
func (x *CheckResponse) Reset()
func (*CheckResponse) String ¶ added in v0.3.6
func (x *CheckResponse) String() string
func (*CheckResponse) Validate ¶ added in v0.3.6
func (m *CheckResponse) Validate() error
Validate checks the field values on CheckResponse 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 (*CheckResponse) ValidateAll ¶ added in v0.3.6
func (m *CheckResponse) ValidateAll() error
ValidateAll checks the field values on CheckResponse 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 CheckResponseMultiError, or nil if none found.
type CheckResponseMultiError ¶ added in v0.3.6
type CheckResponseMultiError []error
CheckResponseMultiError is an error wrapping multiple validation errors returned by CheckResponse.ValidateAll() if the designated constraints aren't met.
func (CheckResponseMultiError) AllErrors ¶ added in v0.3.6
func (m CheckResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CheckResponseMultiError) Error ¶ added in v0.3.6
func (m CheckResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CheckResponseValidationError ¶ added in v0.3.6
type CheckResponseValidationError struct {
// contains filtered or unexported fields
}
CheckResponseValidationError is the validation error returned by CheckResponse.Validate if the designated constraints aren't met.
func (CheckResponseValidationError) Cause ¶ added in v0.3.6
func (e CheckResponseValidationError) Cause() error
Cause function returns cause value.
func (CheckResponseValidationError) Error ¶ added in v0.3.6
func (e CheckResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CheckResponseValidationError) ErrorName ¶ added in v0.3.6
func (e CheckResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CheckResponseValidationError) Field ¶ added in v0.3.6
func (e CheckResponseValidationError) Field() string
Field function returns field value.
func (CheckResponseValidationError) Key ¶ added in v0.3.6
func (e CheckResponseValidationError) Key() bool
Key function returns key value.
func (CheckResponseValidationError) Reason ¶ added in v0.3.6
func (e CheckResponseValidationError) Reason() string
Reason function returns reason value.
type CheckResponse_CheckResponseTag ¶ added in v0.3.6
type CheckResponse_CheckResponseTag struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*CheckResponse_CheckResponseTag) Descriptor
deprecated
added in
v0.3.6
func (*CheckResponse_CheckResponseTag) Descriptor() ([]byte, []int)
Deprecated: Use CheckResponse_CheckResponseTag.ProtoReflect.Descriptor instead.
func (*CheckResponse_CheckResponseTag) GetKey ¶ added in v0.3.6
func (x *CheckResponse_CheckResponseTag) GetKey() string
func (*CheckResponse_CheckResponseTag) GetValue ¶ added in v0.3.6
func (x *CheckResponse_CheckResponseTag) GetValue() string
func (*CheckResponse_CheckResponseTag) ProtoMessage ¶ added in v0.3.6
func (*CheckResponse_CheckResponseTag) ProtoMessage()
func (*CheckResponse_CheckResponseTag) ProtoReflect ¶ added in v0.3.6
func (x *CheckResponse_CheckResponseTag) ProtoReflect() protoreflect.Message
func (*CheckResponse_CheckResponseTag) Reset ¶ added in v0.3.6
func (x *CheckResponse_CheckResponseTag) Reset()
func (*CheckResponse_CheckResponseTag) String ¶ added in v0.3.6
func (x *CheckResponse_CheckResponseTag) String() string
func (*CheckResponse_CheckResponseTag) Validate ¶ added in v0.3.6
func (m *CheckResponse_CheckResponseTag) Validate() error
Validate checks the field values on CheckResponse_CheckResponseTag 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 (*CheckResponse_CheckResponseTag) ValidateAll ¶ added in v0.3.6
func (m *CheckResponse_CheckResponseTag) ValidateAll() error
ValidateAll checks the field values on CheckResponse_CheckResponseTag 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 CheckResponse_CheckResponseTagMultiError, or nil if none found.
type CheckResponse_CheckResponseTagMultiError ¶ added in v0.3.6
type CheckResponse_CheckResponseTagMultiError []error
CheckResponse_CheckResponseTagMultiError is an error wrapping multiple validation errors returned by CheckResponse_CheckResponseTag.ValidateAll() if the designated constraints aren't met.
func (CheckResponse_CheckResponseTagMultiError) AllErrors ¶ added in v0.3.6
func (m CheckResponse_CheckResponseTagMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CheckResponse_CheckResponseTagMultiError) Error ¶ added in v0.3.6
func (m CheckResponse_CheckResponseTagMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CheckResponse_CheckResponseTagValidationError ¶ added in v0.3.6
type CheckResponse_CheckResponseTagValidationError struct {
// contains filtered or unexported fields
}
CheckResponse_CheckResponseTagValidationError is the validation error returned by CheckResponse_CheckResponseTag.Validate if the designated constraints aren't met.
func (CheckResponse_CheckResponseTagValidationError) Cause ¶ added in v0.3.6
func (e CheckResponse_CheckResponseTagValidationError) Cause() error
Cause function returns cause value.
func (CheckResponse_CheckResponseTagValidationError) Error ¶ added in v0.3.6
func (e CheckResponse_CheckResponseTagValidationError) Error() string
Error satisfies the builtin error interface
func (CheckResponse_CheckResponseTagValidationError) ErrorName ¶ added in v0.3.6
func (e CheckResponse_CheckResponseTagValidationError) ErrorName() string
ErrorName returns error name.
func (CheckResponse_CheckResponseTagValidationError) Field ¶ added in v0.3.6
func (e CheckResponse_CheckResponseTagValidationError) Field() string
Field function returns field value.
func (CheckResponse_CheckResponseTagValidationError) Key ¶ added in v0.3.6
func (e CheckResponse_CheckResponseTagValidationError) Key() bool
Key function returns key value.
func (CheckResponse_CheckResponseTagValidationError) Reason ¶ added in v0.3.6
func (e CheckResponse_CheckResponseTagValidationError) Reason() string
Reason function returns reason value.
type ClusterAuthClient ¶
type ClusterAuthClient interface {
GetAuthToken(ctx context.Context, in *ClusterAuthTokenRequest, opts ...grpc.CallOption) (*ClusterAuthTokenResponse, error)
}
ClusterAuthClient is the client API for ClusterAuth 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 NewClusterAuthClient ¶
func NewClusterAuthClient(cc grpc.ClientConnInterface) ClusterAuthClient
type ClusterAuthServer ¶
type ClusterAuthServer interface { GetAuthToken(context.Context, *ClusterAuthTokenRequest) (*ClusterAuthTokenResponse, error) // contains filtered or unexported methods }
ClusterAuthServer is the server API for ClusterAuth service. All implementations must embed UnimplementedClusterAuthServer for forward compatibility
type ClusterAuthTokenRequest ¶
type ClusterAuthTokenRequest struct { // Unique identifier of the cluster (UUID 128-bit number) ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` // Kubernetes role name Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
ClusterAuthTokenRequest is send in order to retrieve an auth token valid to authenticate against a certain cluster with a specific role.
func (*ClusterAuthTokenRequest) Descriptor
deprecated
func (*ClusterAuthTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use ClusterAuthTokenRequest.ProtoReflect.Descriptor instead.
func (*ClusterAuthTokenRequest) GetClusterId ¶
func (x *ClusterAuthTokenRequest) GetClusterId() string
func (*ClusterAuthTokenRequest) GetRole ¶
func (x *ClusterAuthTokenRequest) GetRole() string
func (*ClusterAuthTokenRequest) ProtoMessage ¶
func (*ClusterAuthTokenRequest) ProtoMessage()
func (*ClusterAuthTokenRequest) ProtoReflect ¶
func (x *ClusterAuthTokenRequest) ProtoReflect() protoreflect.Message
func (*ClusterAuthTokenRequest) Reset ¶
func (x *ClusterAuthTokenRequest) Reset()
func (*ClusterAuthTokenRequest) String ¶
func (x *ClusterAuthTokenRequest) String() string
func (*ClusterAuthTokenRequest) Validate ¶ added in v0.3.0
func (m *ClusterAuthTokenRequest) Validate() error
Validate checks the field values on ClusterAuthTokenRequest 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 (*ClusterAuthTokenRequest) ValidateAll ¶ added in v0.3.0
func (m *ClusterAuthTokenRequest) ValidateAll() error
ValidateAll checks the field values on ClusterAuthTokenRequest 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 ClusterAuthTokenRequestMultiError, or nil if none found.
type ClusterAuthTokenRequestMultiError ¶ added in v0.3.0
type ClusterAuthTokenRequestMultiError []error
ClusterAuthTokenRequestMultiError is an error wrapping multiple validation errors returned by ClusterAuthTokenRequest.ValidateAll() if the designated constraints aren't met.
func (ClusterAuthTokenRequestMultiError) AllErrors ¶ added in v0.3.0
func (m ClusterAuthTokenRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ClusterAuthTokenRequestMultiError) Error ¶ added in v0.3.0
func (m ClusterAuthTokenRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ClusterAuthTokenRequestValidationError ¶ added in v0.3.0
type ClusterAuthTokenRequestValidationError struct {
// contains filtered or unexported fields
}
ClusterAuthTokenRequestValidationError is the validation error returned by ClusterAuthTokenRequest.Validate if the designated constraints aren't met.
func (ClusterAuthTokenRequestValidationError) Cause ¶ added in v0.3.0
func (e ClusterAuthTokenRequestValidationError) Cause() error
Cause function returns cause value.
func (ClusterAuthTokenRequestValidationError) Error ¶ added in v0.3.0
func (e ClusterAuthTokenRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ClusterAuthTokenRequestValidationError) ErrorName ¶ added in v0.3.0
func (e ClusterAuthTokenRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ClusterAuthTokenRequestValidationError) Field ¶ added in v0.3.0
func (e ClusterAuthTokenRequestValidationError) Field() string
Field function returns field value.
func (ClusterAuthTokenRequestValidationError) Key ¶ added in v0.3.0
func (e ClusterAuthTokenRequestValidationError) Key() bool
Key function returns key value.
func (ClusterAuthTokenRequestValidationError) Reason ¶ added in v0.3.0
func (e ClusterAuthTokenRequestValidationError) Reason() string
Reason function returns reason value.
type ClusterAuthTokenResponse ¶
type ClusterAuthTokenResponse struct { // JWT to authenticate against a K8s cluster AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` // Timestamp when the token expires Expiry *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expiry,proto3" json:"expiry,omitempty"` // contains filtered or unexported fields }
ClusterAuthTokenResponse contains an auth token valid to authenticate against a certain cluster with a specific role.
func (*ClusterAuthTokenResponse) Descriptor
deprecated
func (*ClusterAuthTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use ClusterAuthTokenResponse.ProtoReflect.Descriptor instead.
func (*ClusterAuthTokenResponse) GetAccessToken ¶
func (x *ClusterAuthTokenResponse) GetAccessToken() string
func (*ClusterAuthTokenResponse) GetExpiry ¶
func (x *ClusterAuthTokenResponse) GetExpiry() *timestamppb.Timestamp
func (*ClusterAuthTokenResponse) ProtoMessage ¶
func (*ClusterAuthTokenResponse) ProtoMessage()
func (*ClusterAuthTokenResponse) ProtoReflect ¶
func (x *ClusterAuthTokenResponse) ProtoReflect() protoreflect.Message
func (*ClusterAuthTokenResponse) Reset ¶
func (x *ClusterAuthTokenResponse) Reset()
func (*ClusterAuthTokenResponse) String ¶
func (x *ClusterAuthTokenResponse) String() string
func (*ClusterAuthTokenResponse) Validate ¶ added in v0.3.0
func (m *ClusterAuthTokenResponse) Validate() error
Validate checks the field values on ClusterAuthTokenResponse 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 (*ClusterAuthTokenResponse) ValidateAll ¶ added in v0.3.0
func (m *ClusterAuthTokenResponse) ValidateAll() error
ValidateAll checks the field values on ClusterAuthTokenResponse 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 ClusterAuthTokenResponseMultiError, or nil if none found.
type ClusterAuthTokenResponseMultiError ¶ added in v0.3.0
type ClusterAuthTokenResponseMultiError []error
ClusterAuthTokenResponseMultiError is an error wrapping multiple validation errors returned by ClusterAuthTokenResponse.ValidateAll() if the designated constraints aren't met.
func (ClusterAuthTokenResponseMultiError) AllErrors ¶ added in v0.3.0
func (m ClusterAuthTokenResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ClusterAuthTokenResponseMultiError) Error ¶ added in v0.3.0
func (m ClusterAuthTokenResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ClusterAuthTokenResponseValidationError ¶ added in v0.3.0
type ClusterAuthTokenResponseValidationError struct {
// contains filtered or unexported fields
}
ClusterAuthTokenResponseValidationError is the validation error returned by ClusterAuthTokenResponse.Validate if the designated constraints aren't met.
func (ClusterAuthTokenResponseValidationError) Cause ¶ added in v0.3.0
func (e ClusterAuthTokenResponseValidationError) Cause() error
Cause function returns cause value.
func (ClusterAuthTokenResponseValidationError) Error ¶ added in v0.3.0
func (e ClusterAuthTokenResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ClusterAuthTokenResponseValidationError) ErrorName ¶ added in v0.3.0
func (e ClusterAuthTokenResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ClusterAuthTokenResponseValidationError) Field ¶ added in v0.3.0
func (e ClusterAuthTokenResponseValidationError) Field() string
Field function returns field value.
func (ClusterAuthTokenResponseValidationError) Key ¶ added in v0.3.0
func (e ClusterAuthTokenResponseValidationError) Key() bool
Key function returns key value.
func (ClusterAuthTokenResponseValidationError) Reason ¶ added in v0.3.0
func (e ClusterAuthTokenResponseValidationError) Reason() string
Reason function returns reason value.
type GatewayAuthClient ¶ added in v0.3.6
type GatewayAuthClient interface { // Performs authorization check based on the attributes associated with the // incoming request, and returns status `OK` or not `OK`. Check(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckResponse, error) }
GatewayAuthClient is the client API for GatewayAuth 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 NewGatewayAuthClient ¶ added in v0.3.6
func NewGatewayAuthClient(cc grpc.ClientConnInterface) GatewayAuthClient
type GatewayAuthServer ¶ added in v0.3.6
type GatewayAuthServer interface { // Performs authorization check based on the attributes associated with the // incoming request, and returns status `OK` or not `OK`. Check(context.Context, *CheckRequest) (*CheckResponse, error) // contains filtered or unexported methods }
GatewayAuthServer is the server API for GatewayAuth service. All implementations must embed UnimplementedGatewayAuthServer for forward compatibility
type GatewayClient ¶
type GatewayClient interface { // PrepareAuthentication returns the URL to call to authenticate against the // upstream IDP RequestUpstreamAuthentication(ctx context.Context, in *UpstreamAuthenticationRequest, opts ...grpc.CallOption) (*UpstreamAuthenticationResponse, error) // RequestAuthentication is called to exchange the authorization code with the // upstream IDP and to authenticate with the m8 control plane RequestAuthentication(ctx context.Context, in *AuthenticationRequest, opts ...grpc.CallOption) (*AuthenticationResponse, error) }
GatewayClient is the client API for Gateway 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 NewGatewayClient ¶
func NewGatewayClient(cc grpc.ClientConnInterface) GatewayClient
type GatewayServer ¶
type GatewayServer interface { // PrepareAuthentication returns the URL to call to authenticate against the // upstream IDP RequestUpstreamAuthentication(context.Context, *UpstreamAuthenticationRequest) (*UpstreamAuthenticationResponse, error) // RequestAuthentication is called to exchange the authorization code with the // upstream IDP and to authenticate with the m8 control plane RequestAuthentication(context.Context, *AuthenticationRequest) (*AuthenticationResponse, error) // contains filtered or unexported methods }
GatewayServer is the server API for Gateway service. All implementations must embed UnimplementedGatewayServer for forward compatibility
type UnimplementedAPITokenServer ¶ added in v0.3.0
type UnimplementedAPITokenServer struct { }
UnimplementedAPITokenServer must be embedded to have forward compatible implementations.
func (UnimplementedAPITokenServer) RequestAPIToken ¶ added in v0.3.0
func (UnimplementedAPITokenServer) RequestAPIToken(context.Context, *APITokenRequest) (*APITokenResponse, error)
type UnimplementedClusterAuthServer ¶
type UnimplementedClusterAuthServer struct { }
UnimplementedClusterAuthServer must be embedded to have forward compatible implementations.
func (UnimplementedClusterAuthServer) GetAuthToken ¶
func (UnimplementedClusterAuthServer) GetAuthToken(context.Context, *ClusterAuthTokenRequest) (*ClusterAuthTokenResponse, error)
type UnimplementedGatewayAuthServer ¶ added in v0.3.6
type UnimplementedGatewayAuthServer struct { }
UnimplementedGatewayAuthServer must be embedded to have forward compatible implementations.
func (UnimplementedGatewayAuthServer) Check ¶ added in v0.3.6
func (UnimplementedGatewayAuthServer) Check(context.Context, *CheckRequest) (*CheckResponse, error)
type UnimplementedGatewayServer ¶
type UnimplementedGatewayServer struct { }
UnimplementedGatewayServer must be embedded to have forward compatible implementations.
func (UnimplementedGatewayServer) RequestAuthentication ¶ added in v0.3.0
func (UnimplementedGatewayServer) RequestAuthentication(context.Context, *AuthenticationRequest) (*AuthenticationResponse, error)
func (UnimplementedGatewayServer) RequestUpstreamAuthentication ¶ added in v0.3.0
func (UnimplementedGatewayServer) RequestUpstreamAuthentication(context.Context, *UpstreamAuthenticationRequest) (*UpstreamAuthenticationResponse, error)
type UnsafeAPITokenServer ¶ added in v0.3.0
type UnsafeAPITokenServer interface {
// contains filtered or unexported methods
}
UnsafeAPITokenServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to APITokenServer will result in compilation errors.
type UnsafeClusterAuthServer ¶
type UnsafeClusterAuthServer interface {
// contains filtered or unexported methods
}
UnsafeClusterAuthServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ClusterAuthServer will result in compilation errors.
type UnsafeGatewayAuthServer ¶ added in v0.3.6
type UnsafeGatewayAuthServer interface {
// contains filtered or unexported methods
}
UnsafeGatewayAuthServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GatewayAuthServer will result in compilation errors.
type UnsafeGatewayServer ¶
type UnsafeGatewayServer interface {
// contains filtered or unexported methods
}
UnsafeGatewayServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GatewayServer will result in compilation errors.
type UpstreamAuthenticationRequest ¶ added in v0.3.0
type UpstreamAuthenticationRequest struct { // callback_url is the URL where the authorization code // will be redirected to by the upstream IDP CallbackUrl string `protobuf:"bytes,1,opt,name=callback_url,json=callbackUrl,proto3" json:"callback_url,omitempty"` // contains filtered or unexported fields }
func (*UpstreamAuthenticationRequest) Descriptor
deprecated
added in
v0.3.0
func (*UpstreamAuthenticationRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpstreamAuthenticationRequest.ProtoReflect.Descriptor instead.
func (*UpstreamAuthenticationRequest) GetCallbackUrl ¶ added in v0.3.0
func (x *UpstreamAuthenticationRequest) GetCallbackUrl() string
func (*UpstreamAuthenticationRequest) ProtoMessage ¶ added in v0.3.0
func (*UpstreamAuthenticationRequest) ProtoMessage()
func (*UpstreamAuthenticationRequest) ProtoReflect ¶ added in v0.3.0
func (x *UpstreamAuthenticationRequest) ProtoReflect() protoreflect.Message
func (*UpstreamAuthenticationRequest) Reset ¶ added in v0.3.0
func (x *UpstreamAuthenticationRequest) Reset()
func (*UpstreamAuthenticationRequest) String ¶ added in v0.3.0
func (x *UpstreamAuthenticationRequest) String() string
func (*UpstreamAuthenticationRequest) Validate ¶ added in v0.3.0
func (m *UpstreamAuthenticationRequest) Validate() error
Validate checks the field values on UpstreamAuthenticationRequest 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 (*UpstreamAuthenticationRequest) ValidateAll ¶ added in v0.3.0
func (m *UpstreamAuthenticationRequest) ValidateAll() error
ValidateAll checks the field values on UpstreamAuthenticationRequest 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 UpstreamAuthenticationRequestMultiError, or nil if none found.
type UpstreamAuthenticationRequestMultiError ¶ added in v0.3.0
type UpstreamAuthenticationRequestMultiError []error
UpstreamAuthenticationRequestMultiError is an error wrapping multiple validation errors returned by UpstreamAuthenticationRequest.ValidateAll() if the designated constraints aren't met.
func (UpstreamAuthenticationRequestMultiError) AllErrors ¶ added in v0.3.0
func (m UpstreamAuthenticationRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpstreamAuthenticationRequestMultiError) Error ¶ added in v0.3.0
func (m UpstreamAuthenticationRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpstreamAuthenticationRequestValidationError ¶ added in v0.3.0
type UpstreamAuthenticationRequestValidationError struct {
// contains filtered or unexported fields
}
UpstreamAuthenticationRequestValidationError is the validation error returned by UpstreamAuthenticationRequest.Validate if the designated constraints aren't met.
func (UpstreamAuthenticationRequestValidationError) Cause ¶ added in v0.3.0
func (e UpstreamAuthenticationRequestValidationError) Cause() error
Cause function returns cause value.
func (UpstreamAuthenticationRequestValidationError) Error ¶ added in v0.3.0
func (e UpstreamAuthenticationRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpstreamAuthenticationRequestValidationError) ErrorName ¶ added in v0.3.0
func (e UpstreamAuthenticationRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpstreamAuthenticationRequestValidationError) Field ¶ added in v0.3.0
func (e UpstreamAuthenticationRequestValidationError) Field() string
Field function returns field value.
func (UpstreamAuthenticationRequestValidationError) Key ¶ added in v0.3.0
func (e UpstreamAuthenticationRequestValidationError) Key() bool
Key function returns key value.
func (UpstreamAuthenticationRequestValidationError) Reason ¶ added in v0.3.0
func (e UpstreamAuthenticationRequestValidationError) Reason() string
Reason function returns reason value.
type UpstreamAuthenticationResponse ¶ added in v0.3.0
type UpstreamAuthenticationResponse struct { // upstream_idp_redirect is the URL of the IDP to authenticate against UpstreamIdpRedirect string `protobuf:"bytes,1,opt,name=upstream_idp_redirect,json=upstreamIdpRedirect,proto3" json:"upstream_idp_redirect,omitempty"` // state is the encoded, server-side nonced state containing the callback. // This has to be presented to the server along with the actual m8 // AuthenticationRequest. State string `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"` // contains filtered or unexported fields }
func (*UpstreamAuthenticationResponse) Descriptor
deprecated
added in
v0.3.0
func (*UpstreamAuthenticationResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpstreamAuthenticationResponse.ProtoReflect.Descriptor instead.
func (*UpstreamAuthenticationResponse) GetState ¶ added in v0.3.0
func (x *UpstreamAuthenticationResponse) GetState() string
func (*UpstreamAuthenticationResponse) GetUpstreamIdpRedirect ¶ added in v0.3.0
func (x *UpstreamAuthenticationResponse) GetUpstreamIdpRedirect() string
func (*UpstreamAuthenticationResponse) ProtoMessage ¶ added in v0.3.0
func (*UpstreamAuthenticationResponse) ProtoMessage()
func (*UpstreamAuthenticationResponse) ProtoReflect ¶ added in v0.3.0
func (x *UpstreamAuthenticationResponse) ProtoReflect() protoreflect.Message
func (*UpstreamAuthenticationResponse) Reset ¶ added in v0.3.0
func (x *UpstreamAuthenticationResponse) Reset()
func (*UpstreamAuthenticationResponse) String ¶ added in v0.3.0
func (x *UpstreamAuthenticationResponse) String() string
func (*UpstreamAuthenticationResponse) Validate ¶ added in v0.3.0
func (m *UpstreamAuthenticationResponse) Validate() error
Validate checks the field values on UpstreamAuthenticationResponse 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 (*UpstreamAuthenticationResponse) ValidateAll ¶ added in v0.3.0
func (m *UpstreamAuthenticationResponse) ValidateAll() error
ValidateAll checks the field values on UpstreamAuthenticationResponse 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 UpstreamAuthenticationResponseMultiError, or nil if none found.
type UpstreamAuthenticationResponseMultiError ¶ added in v0.3.0
type UpstreamAuthenticationResponseMultiError []error
UpstreamAuthenticationResponseMultiError is an error wrapping multiple validation errors returned by UpstreamAuthenticationResponse.ValidateAll() if the designated constraints aren't met.
func (UpstreamAuthenticationResponseMultiError) AllErrors ¶ added in v0.3.0
func (m UpstreamAuthenticationResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpstreamAuthenticationResponseMultiError) Error ¶ added in v0.3.0
func (m UpstreamAuthenticationResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpstreamAuthenticationResponseValidationError ¶ added in v0.3.0
type UpstreamAuthenticationResponseValidationError struct {
// contains filtered or unexported fields
}
UpstreamAuthenticationResponseValidationError is the validation error returned by UpstreamAuthenticationResponse.Validate if the designated constraints aren't met.
func (UpstreamAuthenticationResponseValidationError) Cause ¶ added in v0.3.0
func (e UpstreamAuthenticationResponseValidationError) Cause() error
Cause function returns cause value.
func (UpstreamAuthenticationResponseValidationError) Error ¶ added in v0.3.0
func (e UpstreamAuthenticationResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UpstreamAuthenticationResponseValidationError) ErrorName ¶ added in v0.3.0
func (e UpstreamAuthenticationResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UpstreamAuthenticationResponseValidationError) Field ¶ added in v0.3.0
func (e UpstreamAuthenticationResponseValidationError) Field() string
Field function returns field value.
func (UpstreamAuthenticationResponseValidationError) Key ¶ added in v0.3.0
func (e UpstreamAuthenticationResponseValidationError) Key() bool
Key function returns key value.
func (UpstreamAuthenticationResponseValidationError) Reason ¶ added in v0.3.0
func (e UpstreamAuthenticationResponseValidationError) Reason() string
Reason function returns reason value.