gateway

package
v0.5.0-rc30 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2022 License: Apache-2.0 Imports: 23 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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)

View Source
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)

View Source
var File_api_gateway_messages_proto protoreflect.FileDescriptor
View Source
var File_api_gateway_service_proto protoreflect.FileDescriptor
View Source
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)

View Source
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

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

Cause function returns cause value.

func (APITokenRequestValidationError) Error added in v0.3.0

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

Field function returns field value.

func (APITokenRequestValidationError) Key added in v0.3.0

Key function returns key value.

func (APITokenRequestValidationError) Reason added in v0.3.0

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

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

Cause function returns cause value.

func (APITokenResponseValidationError) Error added in v0.3.0

Error satisfies the builtin error interface

func (APITokenResponseValidationError) ErrorName added in v0.3.0

ErrorName returns error name.

func (APITokenResponseValidationError) Field added in v0.3.0

Field function returns field value.

func (APITokenResponseValidationError) Key added in v0.3.0

Key function returns key value.

func (APITokenResponseValidationError) Reason added in v0.3.0

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 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

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

Cause function returns cause value.

func (AuthenticationRequestValidationError) Error added in v0.3.0

Error satisfies the builtin error interface

func (AuthenticationRequestValidationError) ErrorName added in v0.3.0

ErrorName returns error name.

func (AuthenticationRequestValidationError) Field added in v0.3.0

Field function returns field value.

func (AuthenticationRequestValidationError) Key added in v0.3.0

Key function returns key value.

func (AuthenticationRequestValidationError) Reason added in v0.3.0

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 (*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

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

Cause function returns cause value.

func (AuthenticationResponseValidationError) Error added in v0.3.0

Error satisfies the builtin error interface

func (AuthenticationResponseValidationError) ErrorName added in v0.3.0

ErrorName returns error name.

func (AuthenticationResponseValidationError) Field added in v0.3.0

Field function returns field value.

func (AuthenticationResponseValidationError) Key added in v0.3.0

Key function returns key value.

func (AuthenticationResponseValidationError) Reason added in v0.3.0

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) Enum added in v0.3.0

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 (AuthorizationScope) String added in v0.3.0

func (x AuthorizationScope) String() string

func (AuthorizationScope) Type added in v0.3.0

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"`
	// AccessToken is the token from the auth header of the client request
	AccessToken string `protobuf:"bytes,2,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
	// The actual request to authorize
	Request []byte `protobuf:"bytes,3,opt,name=request,proto3" json:"request,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) GetAccessToken added in v0.3.6

func (x *CheckRequest) GetAccessToken() string

func (*CheckRequest) GetFullMethodName added in v0.3.6

func (x *CheckRequest) GetFullMethodName() string

func (*CheckRequest) GetRequest added in v0.3.6

func (x *CheckRequest) GetRequest() []byte

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

Cause function returns cause value.

func (CheckRequestValidationError) Error added in v0.3.6

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

Field function returns field value.

func (CheckRequestValidationError) Key added in v0.3.6

Key function returns key value.

func (CheckRequestValidationError) Reason added in v0.3.6

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 (*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

Cause function returns cause value.

func (CheckResponseValidationError) Error added in v0.3.6

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

Field function returns field value.

func (CheckResponseValidationError) Key added in v0.3.6

Key function returns key value.

func (CheckResponseValidationError) Reason added in v0.3.6

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 (*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 (*CheckResponse_CheckResponseTag) Reset added in v0.3.6

func (x *CheckResponse_CheckResponseTag) Reset()

func (*CheckResponse_CheckResponseTag) String added in v0.3.6

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

AllErrors returns a list of validation violation errors.

func (CheckResponse_CheckResponseTagMultiError) Error added in v0.3.6

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

Cause function returns cause value.

func (CheckResponse_CheckResponseTagValidationError) Error added in v0.3.6

Error satisfies the builtin error interface

func (CheckResponse_CheckResponseTagValidationError) ErrorName added in v0.3.6

ErrorName returns error name.

func (CheckResponse_CheckResponseTagValidationError) Field added in v0.3.6

Field function returns field value.

func (CheckResponse_CheckResponseTagValidationError) Key added in v0.3.6

Key function returns key value.

func (CheckResponse_CheckResponseTagValidationError) Reason added in v0.3.6

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.

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

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

Cause function returns cause value.

func (ClusterAuthTokenRequestValidationError) Error added in v0.3.0

Error satisfies the builtin error interface

func (ClusterAuthTokenRequestValidationError) ErrorName added in v0.3.0

ErrorName returns error name.

func (ClusterAuthTokenRequestValidationError) Field added in v0.3.0

Field function returns field value.

func (ClusterAuthTokenRequestValidationError) Key added in v0.3.0

Key function returns key value.

func (ClusterAuthTokenRequestValidationError) Reason added in v0.3.0

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 (*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

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

Cause function returns cause value.

func (ClusterAuthTokenResponseValidationError) Error added in v0.3.0

Error satisfies the builtin error interface

func (ClusterAuthTokenResponseValidationError) ErrorName added in v0.3.0

ErrorName returns error name.

func (ClusterAuthTokenResponseValidationError) Field added in v0.3.0

Field function returns field value.

func (ClusterAuthTokenResponseValidationError) Key added in v0.3.0

Key function returns key value.

func (ClusterAuthTokenResponseValidationError) Reason added in v0.3.0

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

type UnimplementedClusterAuthServer

type UnimplementedClusterAuthServer struct {
}

UnimplementedClusterAuthServer must be embedded to have forward compatible implementations.

func (UnimplementedClusterAuthServer) GetAuthToken

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

type UnimplementedGatewayServer

type UnimplementedGatewayServer struct {
}

UnimplementedGatewayServer must be embedded to have forward compatible implementations.

func (UnimplementedGatewayServer) RequestAuthentication added in v0.3.0

func (UnimplementedGatewayServer) RequestUpstreamAuthentication added in v0.3.0

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 (*UpstreamAuthenticationRequest) Reset added in v0.3.0

func (x *UpstreamAuthenticationRequest) Reset()

func (*UpstreamAuthenticationRequest) String added in v0.3.0

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

AllErrors returns a list of validation violation errors.

func (UpstreamAuthenticationRequestMultiError) Error added in v0.3.0

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

Cause function returns cause value.

func (UpstreamAuthenticationRequestValidationError) Error added in v0.3.0

Error satisfies the builtin error interface

func (UpstreamAuthenticationRequestValidationError) ErrorName added in v0.3.0

ErrorName returns error name.

func (UpstreamAuthenticationRequestValidationError) Field added in v0.3.0

Field function returns field value.

func (UpstreamAuthenticationRequestValidationError) Key added in v0.3.0

Key function returns key value.

func (UpstreamAuthenticationRequestValidationError) Reason added in v0.3.0

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 (*UpstreamAuthenticationResponse) Reset added in v0.3.0

func (x *UpstreamAuthenticationResponse) Reset()

func (*UpstreamAuthenticationResponse) String added in v0.3.0

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

AllErrors returns a list of validation violation errors.

func (UpstreamAuthenticationResponseMultiError) Error added in v0.3.0

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

Cause function returns cause value.

func (UpstreamAuthenticationResponseValidationError) Error added in v0.3.0

Error satisfies the builtin error interface

func (UpstreamAuthenticationResponseValidationError) ErrorName added in v0.3.0

ErrorName returns error name.

func (UpstreamAuthenticationResponseValidationError) Field added in v0.3.0

Field function returns field value.

func (UpstreamAuthenticationResponseValidationError) Key added in v0.3.0

Key function returns key value.

func (UpstreamAuthenticationResponseValidationError) Reason added in v0.3.0

Reason function returns reason value.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL