Documentation ¶
Index ¶
- Variables
- func RegisterAPITokenServer(s grpc.ServiceRegistrar, srv APITokenServer)
- func RegisterClusterAuthServer(s grpc.ServiceRegistrar, srv ClusterAuthServer)
- func RegisterGatewayServer(s grpc.ServiceRegistrar, srv GatewayServer)
- type APITokenClient
- type APITokenRequest
- func (*APITokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *APITokenRequest) GetAuthorizationScope() AuthorizationScope
- func (x *APITokenRequest) GetSubject() string
- 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 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 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 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 GatewayClient
- type GatewayServer
- type UnimplementedAPITokenServer
- type UnimplementedClusterAuthServer
- type UnimplementedGatewayServer
- type UnsafeAPITokenServer
- type UnsafeClusterAuthServer
- type UnsafeGatewayServer
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_service_proto protoreflect.FileDescriptor
var Gateway_ServiceDesc = grpc.ServiceDesc{ ServiceName: "gateway.Gateway", HandlerType: (*GatewayServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetAuthInformation", Handler: _Gateway_GetAuthInformation_Handler, }, { MethodName: "ExchangeAuthCode", Handler: _Gateway_ExchangeAuthCode_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 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) (*ClusterAuthTokenResponse, 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 AuthorizationScope AuthorizationScope `` /* 148-byte string literal not displayed */ // Subject the token authenticates Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"` // 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) GetAuthorizationScope ¶
func (x *APITokenRequest) GetAuthorizationScope() AuthorizationScope
func (*APITokenRequest) GetSubject ¶
func (x *APITokenRequest) GetSubject() string
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 APITokenServer ¶ added in v0.3.0
type APITokenServer interface { RequestAPIToken(context.Context, *APITokenRequest) (*ClusterAuthTokenResponse, 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 string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` State string `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"` CallbackUrl string `protobuf:"bytes,3,opt,name=callback_url,json=callbackUrl,proto3" json:"callback_url,omitempty"` // contains filtered or unexported fields }
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 { AuthCodeUrl string `protobuf:"bytes,1,opt,name=auth_code_url,json=authCodeUrl,proto3" json:"auth_code_url,omitempty"` State string `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"` // contains filtered or unexported fields }
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 { AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` Expiry *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expiry,proto3" json:"expiry,omitempty"` Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
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 { 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 AuthorizationScope ¶ added in v0.3.0
type AuthorizationScope int32
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 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 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 GatewayClient ¶
type GatewayClient interface { GetAuthInformation(ctx context.Context, in *AuthState, opts ...grpc.CallOption) (*AuthInformation, error) ExchangeAuthCode(ctx context.Context, in *AuthCode, opts ...grpc.CallOption) (*AuthResponse, 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 { GetAuthInformation(context.Context, *AuthState) (*AuthInformation, error) ExchangeAuthCode(context.Context, *AuthCode) (*AuthResponse, 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) (*ClusterAuthTokenResponse, 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 UnimplementedGatewayServer ¶
type UnimplementedGatewayServer struct { }
UnimplementedGatewayServer must be embedded to have forward compatible implementations.
func (UnimplementedGatewayServer) ExchangeAuthCode ¶
func (UnimplementedGatewayServer) ExchangeAuthCode(context.Context, *AuthCode) (*AuthResponse, error)
func (UnimplementedGatewayServer) GetAuthInformation ¶
func (UnimplementedGatewayServer) GetAuthInformation(context.Context, *AuthState) (*AuthInformation, 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 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.