auth

package
v5.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: AGPL-3.0 Imports: 30 Imported by: 0

Documentation

Overview

Package auth is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	Auth_Login_FullMethodName    = "/auth.Auth/Login"
	Auth_Info_FullMethodName     = "/auth.Auth/Info"
	Auth_Settings_FullMethodName = "/auth.Auth/Settings"
	Auth_Exchange_FullMethodName = "/auth.Auth/Exchange"
)

Variables

View Source
var Auth_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "auth.Auth",
	HandlerType: (*AuthServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Login",
			Handler:    _Auth_Login_Handler,
		},
		{
			MethodName: "Info",
			Handler:    _Auth_Info_Handler,
		},
		{
			MethodName: "Settings",
			Handler:    _Auth_Settings_Handler,
		},
		{
			MethodName: "Exchange",
			Handler:    _Auth_Exchange_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "auth/auth.proto",
}

Auth_ServiceDesc is the grpc.ServiceDesc for Auth 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_auth_auth_proto protoreflect.FileDescriptor

Functions

func RegisterAuthHandler

func RegisterAuthHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterAuthHandler registers the http handlers for service Auth to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterAuthHandlerClient

func RegisterAuthHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthClient) error

RegisterAuthHandlerClient registers the http handlers for service Auth to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AuthClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AuthClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AuthClient" to call the correct interceptors.

func RegisterAuthHandlerFromEndpoint

func RegisterAuthHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterAuthHandlerFromEndpoint is same as RegisterAuthHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterAuthHandlerServer

func RegisterAuthHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AuthServer) error

RegisterAuthHandlerServer registers the http handlers for service Auth to "mux". UnaryRPC :call AuthServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAuthHandlerFromEndpoint instead.

func RegisterAuthServer

func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)

Types

type AuthClient

type AuthClient interface {
	Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error)
	Info(ctx context.Context, in *InfoRequest, opts ...grpc.CallOption) (*InfoResponse, error)
	Settings(ctx context.Context, in *SettingsRequest, opts ...grpc.CallOption) (*SettingsResponse, error)
	Exchange(ctx context.Context, in *ExchangeRequest, opts ...grpc.CallOption) (*ExchangeResponse, error)
}

AuthClient is the client API for Auth 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 NewAuthClient

func NewAuthClient(cc grpc.ClientConnInterface) AuthClient

type AuthServer

type AuthServer interface {
	Login(context.Context, *LoginRequest) (*LoginResponse, error)
	Info(context.Context, *InfoRequest) (*InfoResponse, error)
	Settings(context.Context, *SettingsRequest) (*SettingsResponse, error)
	Exchange(context.Context, *ExchangeRequest) (*ExchangeResponse, error)
	// contains filtered or unexported methods
}

AuthServer is the server API for Auth service. All implementations must embed UnimplementedAuthServer for forward compatibility

type ExchangeRequest

type ExchangeRequest struct {
	Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	// contains filtered or unexported fields
}

func (*ExchangeRequest) Descriptor deprecated

func (*ExchangeRequest) Descriptor() ([]byte, []int)

Deprecated: Use ExchangeRequest.ProtoReflect.Descriptor instead.

func (*ExchangeRequest) GetCode

func (x *ExchangeRequest) GetCode() string

func (*ExchangeRequest) ProtoMessage

func (*ExchangeRequest) ProtoMessage()

func (*ExchangeRequest) ProtoReflect

func (x *ExchangeRequest) ProtoReflect() protoreflect.Message

func (*ExchangeRequest) Reset

func (x *ExchangeRequest) Reset()

func (*ExchangeRequest) String

func (x *ExchangeRequest) String() string

func (*ExchangeRequest) Validate

func (m *ExchangeRequest) Validate() error

Validate checks the field values on ExchangeRequest 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 (*ExchangeRequest) ValidateAll

func (m *ExchangeRequest) ValidateAll() error

ValidateAll checks the field values on ExchangeRequest 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 ExchangeRequestMultiError, or nil if none found.

type ExchangeRequestMultiError

type ExchangeRequestMultiError []error

ExchangeRequestMultiError is an error wrapping multiple validation errors returned by ExchangeRequest.ValidateAll() if the designated constraints aren't met.

func (ExchangeRequestMultiError) AllErrors

func (m ExchangeRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ExchangeRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ExchangeRequestValidationError

type ExchangeRequestValidationError struct {
	// contains filtered or unexported fields
}

ExchangeRequestValidationError is the validation error returned by ExchangeRequest.Validate if the designated constraints aren't met.

func (ExchangeRequestValidationError) Cause

Cause function returns cause value.

func (ExchangeRequestValidationError) Error

Error satisfies the builtin error interface

func (ExchangeRequestValidationError) ErrorName

func (e ExchangeRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ExchangeRequestValidationError) Field

Field function returns field value.

func (ExchangeRequestValidationError) Key

Key function returns key value.

func (ExchangeRequestValidationError) Reason

Reason function returns reason value.

type ExchangeResponse

type ExchangeResponse struct {
	Token     string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	ExpiresIn int64  `protobuf:"varint,2,opt,name=expires_in,json=expiresIn,proto3" json:"expires_in,omitempty"`
	// contains filtered or unexported fields
}

func (*ExchangeResponse) Descriptor deprecated

func (*ExchangeResponse) Descriptor() ([]byte, []int)

Deprecated: Use ExchangeResponse.ProtoReflect.Descriptor instead.

func (*ExchangeResponse) GetExpiresIn

func (x *ExchangeResponse) GetExpiresIn() int64

func (*ExchangeResponse) GetToken

func (x *ExchangeResponse) GetToken() string

func (*ExchangeResponse) ProtoMessage

func (*ExchangeResponse) ProtoMessage()

func (*ExchangeResponse) ProtoReflect

func (x *ExchangeResponse) ProtoReflect() protoreflect.Message

func (*ExchangeResponse) Reset

func (x *ExchangeResponse) Reset()

func (*ExchangeResponse) String

func (x *ExchangeResponse) String() string

func (*ExchangeResponse) Validate

func (m *ExchangeResponse) Validate() error

Validate checks the field values on ExchangeResponse 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 (*ExchangeResponse) ValidateAll

func (m *ExchangeResponse) ValidateAll() error

ValidateAll checks the field values on ExchangeResponse 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 ExchangeResponseMultiError, or nil if none found.

type ExchangeResponseMultiError

type ExchangeResponseMultiError []error

ExchangeResponseMultiError is an error wrapping multiple validation errors returned by ExchangeResponse.ValidateAll() if the designated constraints aren't met.

func (ExchangeResponseMultiError) AllErrors

func (m ExchangeResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ExchangeResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ExchangeResponseValidationError

type ExchangeResponseValidationError struct {
	// contains filtered or unexported fields
}

ExchangeResponseValidationError is the validation error returned by ExchangeResponse.Validate if the designated constraints aren't met.

func (ExchangeResponseValidationError) Cause

Cause function returns cause value.

func (ExchangeResponseValidationError) Error

Error satisfies the builtin error interface

func (ExchangeResponseValidationError) ErrorName

ErrorName returns error name.

func (ExchangeResponseValidationError) Field

Field function returns field value.

func (ExchangeResponseValidationError) Key

Key function returns key value.

func (ExchangeResponseValidationError) Reason

Reason function returns reason value.

type InfoRequest

type InfoRequest struct {
	// contains filtered or unexported fields
}

func (*InfoRequest) Descriptor deprecated

func (*InfoRequest) Descriptor() ([]byte, []int)

Deprecated: Use InfoRequest.ProtoReflect.Descriptor instead.

func (*InfoRequest) ProtoMessage

func (*InfoRequest) ProtoMessage()

func (*InfoRequest) ProtoReflect

func (x *InfoRequest) ProtoReflect() protoreflect.Message

func (*InfoRequest) Reset

func (x *InfoRequest) Reset()

func (*InfoRequest) String

func (x *InfoRequest) String() string

func (*InfoRequest) Validate

func (m *InfoRequest) Validate() error

Validate checks the field values on InfoRequest 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 (*InfoRequest) ValidateAll

func (m *InfoRequest) ValidateAll() error

ValidateAll checks the field values on InfoRequest 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 InfoRequestMultiError, or nil if none found.

type InfoRequestMultiError

type InfoRequestMultiError []error

InfoRequestMultiError is an error wrapping multiple validation errors returned by InfoRequest.ValidateAll() if the designated constraints aren't met.

func (InfoRequestMultiError) AllErrors

func (m InfoRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (InfoRequestMultiError) Error

func (m InfoRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type InfoRequestValidationError

type InfoRequestValidationError struct {
	// contains filtered or unexported fields
}

InfoRequestValidationError is the validation error returned by InfoRequest.Validate if the designated constraints aren't met.

func (InfoRequestValidationError) Cause

Cause function returns cause value.

func (InfoRequestValidationError) Error

Error satisfies the builtin error interface

func (InfoRequestValidationError) ErrorName

func (e InfoRequestValidationError) ErrorName() string

ErrorName returns error name.

func (InfoRequestValidationError) Field

Field function returns field value.

func (InfoRequestValidationError) Key

Key function returns key value.

func (InfoRequestValidationError) Reason

Reason function returns reason value.

type InfoResponse

type InfoResponse struct {
	Id        int32    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Avatar    string   `protobuf:"bytes,2,opt,name=avatar,proto3" json:"avatar,omitempty"`
	Name      string   `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Email     string   `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
	LogoutUrl string   `protobuf:"bytes,5,opt,name=logout_url,json=logoutUrl,proto3" json:"logout_url,omitempty"`
	Roles     []string `protobuf:"bytes,6,rep,name=roles,proto3" json:"roles,omitempty"`
	// contains filtered or unexported fields
}

func (*InfoResponse) Descriptor deprecated

func (*InfoResponse) Descriptor() ([]byte, []int)

Deprecated: Use InfoResponse.ProtoReflect.Descriptor instead.

func (*InfoResponse) GetAvatar

func (x *InfoResponse) GetAvatar() string

func (*InfoResponse) GetEmail

func (x *InfoResponse) GetEmail() string

func (*InfoResponse) GetId

func (x *InfoResponse) GetId() int32

func (*InfoResponse) GetLogoutUrl

func (x *InfoResponse) GetLogoutUrl() string

func (*InfoResponse) GetName

func (x *InfoResponse) GetName() string

func (*InfoResponse) GetRoles

func (x *InfoResponse) GetRoles() []string

func (*InfoResponse) ProtoMessage

func (*InfoResponse) ProtoMessage()

func (*InfoResponse) ProtoReflect

func (x *InfoResponse) ProtoReflect() protoreflect.Message

func (*InfoResponse) Reset

func (x *InfoResponse) Reset()

func (*InfoResponse) String

func (x *InfoResponse) String() string

func (*InfoResponse) Validate

func (m *InfoResponse) Validate() error

Validate checks the field values on InfoResponse 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 (*InfoResponse) ValidateAll

func (m *InfoResponse) ValidateAll() error

ValidateAll checks the field values on InfoResponse 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 InfoResponseMultiError, or nil if none found.

type InfoResponseMultiError

type InfoResponseMultiError []error

InfoResponseMultiError is an error wrapping multiple validation errors returned by InfoResponse.ValidateAll() if the designated constraints aren't met.

func (InfoResponseMultiError) AllErrors

func (m InfoResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (InfoResponseMultiError) Error

func (m InfoResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type InfoResponseValidationError

type InfoResponseValidationError struct {
	// contains filtered or unexported fields
}

InfoResponseValidationError is the validation error returned by InfoResponse.Validate if the designated constraints aren't met.

func (InfoResponseValidationError) Cause

Cause function returns cause value.

func (InfoResponseValidationError) Error

Error satisfies the builtin error interface

func (InfoResponseValidationError) ErrorName

func (e InfoResponseValidationError) ErrorName() string

ErrorName returns error name.

func (InfoResponseValidationError) Field

Field function returns field value.

func (InfoResponseValidationError) Key

Key function returns key value.

func (InfoResponseValidationError) Reason

Reason function returns reason value.

type LoginRequest

type LoginRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginRequest) Descriptor deprecated

func (*LoginRequest) Descriptor() ([]byte, []int)

Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.

func (*LoginRequest) GetPassword

func (x *LoginRequest) GetPassword() string

func (*LoginRequest) GetUsername

func (x *LoginRequest) GetUsername() string

func (*LoginRequest) ProtoMessage

func (*LoginRequest) ProtoMessage()

func (*LoginRequest) ProtoReflect

func (x *LoginRequest) ProtoReflect() protoreflect.Message

func (*LoginRequest) Reset

func (x *LoginRequest) Reset()

func (*LoginRequest) String

func (x *LoginRequest) String() string

func (*LoginRequest) Validate

func (m *LoginRequest) Validate() error

Validate checks the field values on LoginRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*LoginRequest) ValidateAll

func (m *LoginRequest) ValidateAll() error

ValidateAll checks the field values on LoginRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoginRequestMultiError, or nil if none found.

type LoginRequestMultiError

type LoginRequestMultiError []error

LoginRequestMultiError is an error wrapping multiple validation errors returned by LoginRequest.ValidateAll() if the designated constraints aren't met.

func (LoginRequestMultiError) AllErrors

func (m LoginRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LoginRequestMultiError) Error

func (m LoginRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type LoginRequestValidationError

type LoginRequestValidationError struct {
	// contains filtered or unexported fields
}

LoginRequestValidationError is the validation error returned by LoginRequest.Validate if the designated constraints aren't met.

func (LoginRequestValidationError) Cause

Cause function returns cause value.

func (LoginRequestValidationError) Error

Error satisfies the builtin error interface

func (LoginRequestValidationError) ErrorName

func (e LoginRequestValidationError) ErrorName() string

ErrorName returns error name.

func (LoginRequestValidationError) Field

Field function returns field value.

func (LoginRequestValidationError) Key

Key function returns key value.

func (LoginRequestValidationError) Reason

Reason function returns reason value.

type LoginResponse

type LoginResponse struct {
	Token     string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	ExpiresIn int64  `protobuf:"varint,2,opt,name=expires_in,json=expiresIn,proto3" json:"expires_in,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginResponse) Descriptor deprecated

func (*LoginResponse) Descriptor() ([]byte, []int)

Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.

func (*LoginResponse) GetExpiresIn

func (x *LoginResponse) GetExpiresIn() int64

func (*LoginResponse) GetToken

func (x *LoginResponse) GetToken() string

func (*LoginResponse) ProtoMessage

func (*LoginResponse) ProtoMessage()

func (*LoginResponse) ProtoReflect

func (x *LoginResponse) ProtoReflect() protoreflect.Message

func (*LoginResponse) Reset

func (x *LoginResponse) Reset()

func (*LoginResponse) String

func (x *LoginResponse) String() string

func (*LoginResponse) Validate

func (m *LoginResponse) Validate() error

Validate checks the field values on LoginResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*LoginResponse) ValidateAll

func (m *LoginResponse) ValidateAll() error

ValidateAll checks the field values on LoginResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoginResponseMultiError, or nil if none found.

type LoginResponseMultiError

type LoginResponseMultiError []error

LoginResponseMultiError is an error wrapping multiple validation errors returned by LoginResponse.ValidateAll() if the designated constraints aren't met.

func (LoginResponseMultiError) AllErrors

func (m LoginResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LoginResponseMultiError) Error

func (m LoginResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type LoginResponseValidationError

type LoginResponseValidationError struct {
	// contains filtered or unexported fields
}

LoginResponseValidationError is the validation error returned by LoginResponse.Validate if the designated constraints aren't met.

func (LoginResponseValidationError) Cause

Cause function returns cause value.

func (LoginResponseValidationError) Error

Error satisfies the builtin error interface

func (LoginResponseValidationError) ErrorName

func (e LoginResponseValidationError) ErrorName() string

ErrorName returns error name.

func (LoginResponseValidationError) Field

Field function returns field value.

func (LoginResponseValidationError) Key

Key function returns key value.

func (LoginResponseValidationError) Reason

Reason function returns reason value.

type SettingsRequest

type SettingsRequest struct {
	// contains filtered or unexported fields
}

func (*SettingsRequest) Descriptor deprecated

func (*SettingsRequest) Descriptor() ([]byte, []int)

Deprecated: Use SettingsRequest.ProtoReflect.Descriptor instead.

func (*SettingsRequest) ProtoMessage

func (*SettingsRequest) ProtoMessage()

func (*SettingsRequest) ProtoReflect

func (x *SettingsRequest) ProtoReflect() protoreflect.Message

func (*SettingsRequest) Reset

func (x *SettingsRequest) Reset()

func (*SettingsRequest) String

func (x *SettingsRequest) String() string

func (*SettingsRequest) Validate

func (m *SettingsRequest) Validate() error

Validate checks the field values on SettingsRequest 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 (*SettingsRequest) ValidateAll

func (m *SettingsRequest) ValidateAll() error

ValidateAll checks the field values on SettingsRequest 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 SettingsRequestMultiError, or nil if none found.

type SettingsRequestMultiError

type SettingsRequestMultiError []error

SettingsRequestMultiError is an error wrapping multiple validation errors returned by SettingsRequest.ValidateAll() if the designated constraints aren't met.

func (SettingsRequestMultiError) AllErrors

func (m SettingsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SettingsRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type SettingsRequestValidationError

type SettingsRequestValidationError struct {
	// contains filtered or unexported fields
}

SettingsRequestValidationError is the validation error returned by SettingsRequest.Validate if the designated constraints aren't met.

func (SettingsRequestValidationError) Cause

Cause function returns cause value.

func (SettingsRequestValidationError) Error

Error satisfies the builtin error interface

func (SettingsRequestValidationError) ErrorName

func (e SettingsRequestValidationError) ErrorName() string

ErrorName returns error name.

func (SettingsRequestValidationError) Field

Field function returns field value.

func (SettingsRequestValidationError) Key

Key function returns key value.

func (SettingsRequestValidationError) Reason

Reason function returns reason value.

type SettingsResponse

type SettingsResponse struct {
	Items []*SettingsResponse_OidcSetting `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*SettingsResponse) Descriptor deprecated

func (*SettingsResponse) Descriptor() ([]byte, []int)

Deprecated: Use SettingsResponse.ProtoReflect.Descriptor instead.

func (*SettingsResponse) GetItems

func (*SettingsResponse) ProtoMessage

func (*SettingsResponse) ProtoMessage()

func (*SettingsResponse) ProtoReflect

func (x *SettingsResponse) ProtoReflect() protoreflect.Message

func (*SettingsResponse) Reset

func (x *SettingsResponse) Reset()

func (*SettingsResponse) String

func (x *SettingsResponse) String() string

func (*SettingsResponse) Validate

func (m *SettingsResponse) Validate() error

Validate checks the field values on SettingsResponse 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 (*SettingsResponse) ValidateAll

func (m *SettingsResponse) ValidateAll() error

ValidateAll checks the field values on SettingsResponse 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 SettingsResponseMultiError, or nil if none found.

type SettingsResponseMultiError

type SettingsResponseMultiError []error

SettingsResponseMultiError is an error wrapping multiple validation errors returned by SettingsResponse.ValidateAll() if the designated constraints aren't met.

func (SettingsResponseMultiError) AllErrors

func (m SettingsResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SettingsResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type SettingsResponseValidationError

type SettingsResponseValidationError struct {
	// contains filtered or unexported fields
}

SettingsResponseValidationError is the validation error returned by SettingsResponse.Validate if the designated constraints aren't met.

func (SettingsResponseValidationError) Cause

Cause function returns cause value.

func (SettingsResponseValidationError) Error

Error satisfies the builtin error interface

func (SettingsResponseValidationError) ErrorName

ErrorName returns error name.

func (SettingsResponseValidationError) Field

Field function returns field value.

func (SettingsResponseValidationError) Key

Key function returns key value.

func (SettingsResponseValidationError) Reason

Reason function returns reason value.

type SettingsResponse_OidcSetting

type SettingsResponse_OidcSetting struct {
	Enabled            bool   `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
	Name               string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Url                string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
	EndSessionEndpoint string `protobuf:"bytes,4,opt,name=end_session_endpoint,json=endSessionEndpoint,proto3" json:"end_session_endpoint,omitempty"`
	State              string `protobuf:"bytes,5,opt,name=state,proto3" json:"state,omitempty"`
	// contains filtered or unexported fields
}

func (*SettingsResponse_OidcSetting) Descriptor deprecated

func (*SettingsResponse_OidcSetting) Descriptor() ([]byte, []int)

Deprecated: Use SettingsResponse_OidcSetting.ProtoReflect.Descriptor instead.

func (*SettingsResponse_OidcSetting) GetEnabled

func (x *SettingsResponse_OidcSetting) GetEnabled() bool

func (*SettingsResponse_OidcSetting) GetEndSessionEndpoint

func (x *SettingsResponse_OidcSetting) GetEndSessionEndpoint() string

func (*SettingsResponse_OidcSetting) GetName

func (x *SettingsResponse_OidcSetting) GetName() string

func (*SettingsResponse_OidcSetting) GetState

func (x *SettingsResponse_OidcSetting) GetState() string

func (*SettingsResponse_OidcSetting) GetUrl

func (*SettingsResponse_OidcSetting) ProtoMessage

func (*SettingsResponse_OidcSetting) ProtoMessage()

func (*SettingsResponse_OidcSetting) ProtoReflect

func (*SettingsResponse_OidcSetting) Reset

func (x *SettingsResponse_OidcSetting) Reset()

func (*SettingsResponse_OidcSetting) String

func (*SettingsResponse_OidcSetting) Validate

func (m *SettingsResponse_OidcSetting) Validate() error

Validate checks the field values on SettingsResponse_OidcSetting 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 (*SettingsResponse_OidcSetting) ValidateAll

func (m *SettingsResponse_OidcSetting) ValidateAll() error

ValidateAll checks the field values on SettingsResponse_OidcSetting 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 SettingsResponse_OidcSettingMultiError, or nil if none found.

type SettingsResponse_OidcSettingMultiError

type SettingsResponse_OidcSettingMultiError []error

SettingsResponse_OidcSettingMultiError is an error wrapping multiple validation errors returned by SettingsResponse_OidcSetting.ValidateAll() if the designated constraints aren't met.

func (SettingsResponse_OidcSettingMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (SettingsResponse_OidcSettingMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type SettingsResponse_OidcSettingValidationError

type SettingsResponse_OidcSettingValidationError struct {
	// contains filtered or unexported fields
}

SettingsResponse_OidcSettingValidationError is the validation error returned by SettingsResponse_OidcSetting.Validate if the designated constraints aren't met.

func (SettingsResponse_OidcSettingValidationError) Cause

Cause function returns cause value.

func (SettingsResponse_OidcSettingValidationError) Error

Error satisfies the builtin error interface

func (SettingsResponse_OidcSettingValidationError) ErrorName

ErrorName returns error name.

func (SettingsResponse_OidcSettingValidationError) Field

Field function returns field value.

func (SettingsResponse_OidcSettingValidationError) Key

Key function returns key value.

func (SettingsResponse_OidcSettingValidationError) Reason

Reason function returns reason value.

type UnimplementedAuthServer

type UnimplementedAuthServer struct {
}

UnimplementedAuthServer must be embedded to have forward compatible implementations.

func (UnimplementedAuthServer) Exchange

func (UnimplementedAuthServer) Info

func (UnimplementedAuthServer) Login

func (UnimplementedAuthServer) Settings

type UnsafeAuthServer

type UnsafeAuthServer interface {
	// contains filtered or unexported methods
}

UnsafeAuthServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServer will result in compilation errors.

Jump to

Keyboard shortcuts

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