Documentation
¶
Overview ¶
Package authn is a generated GoMock package.
Package authn is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterAuthenticationServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterAuthenticationServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthenticationServiceClient) error
- func RegisterAuthenticationServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterAuthenticationServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AuthenticationServiceServer) error
- func RegisterAuthenticationServiceServer(s *grpc.Server, srv AuthenticationServiceServer)
- func RegisterTokensMgmtServiceServer(s *grpc.Server, srv TokensMgmtServiceServer)
- type AuthenticateRequest
- func (*AuthenticateRequest) Descriptor() ([]byte, []int)deprecated
- func (*AuthenticateRequest) ProtoMessage()
- func (x *AuthenticateRequest) ProtoReflect() protoreflect.Message
- func (x *AuthenticateRequest) Reset()
- func (x *AuthenticateRequest) String() string
- func (m *AuthenticateRequest) Validate() error
- func (m *AuthenticateRequest) ValidateAll() error
- type AuthenticateRequestMultiError
- type AuthenticateRequestValidationError
- func (e AuthenticateRequestValidationError) Cause() error
- func (e AuthenticateRequestValidationError) Error() string
- func (e AuthenticateRequestValidationError) ErrorName() string
- func (e AuthenticateRequestValidationError) Field() string
- func (e AuthenticateRequestValidationError) Key() bool
- func (e AuthenticateRequestValidationError) Reason() string
- type AuthenticateResponse
- func (*AuthenticateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthenticateResponse) GetRequestor() string
- func (x *AuthenticateResponse) GetSubject() string
- func (x *AuthenticateResponse) GetTeams() []string
- func (*AuthenticateResponse) ProtoMessage()
- func (x *AuthenticateResponse) ProtoReflect() protoreflect.Message
- func (x *AuthenticateResponse) Reset()
- func (x *AuthenticateResponse) String() string
- func (m *AuthenticateResponse) Validate() error
- func (m *AuthenticateResponse) ValidateAll() error
- type AuthenticateResponseMultiError
- type AuthenticateResponseValidationError
- func (e AuthenticateResponseValidationError) Cause() error
- func (e AuthenticateResponseValidationError) Error() string
- func (e AuthenticateResponseValidationError) ErrorName() string
- func (e AuthenticateResponseValidationError) Field() string
- func (e AuthenticateResponseValidationError) Key() bool
- func (e AuthenticateResponseValidationError) Reason() string
- type AuthenticationServiceClient
- type AuthenticationServiceServer
- type AuthenticationServiceServerMock
- type CreateTokenReq
- func (*CreateTokenReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateTokenReq) GetActive() bool
- func (x *CreateTokenReq) GetId() string
- func (x *CreateTokenReq) GetName() string
- func (x *CreateTokenReq) GetProjects() []string
- func (*CreateTokenReq) ProtoMessage()
- func (x *CreateTokenReq) ProtoReflect() protoreflect.Message
- func (x *CreateTokenReq) Reset()
- func (x *CreateTokenReq) String() string
- func (m *CreateTokenReq) Validate() error
- func (m *CreateTokenReq) ValidateAll() error
- type CreateTokenReqMultiError
- type CreateTokenReqValidationError
- func (e CreateTokenReqValidationError) Cause() error
- func (e CreateTokenReqValidationError) Error() string
- func (e CreateTokenReqValidationError) ErrorName() string
- func (e CreateTokenReqValidationError) Field() string
- func (e CreateTokenReqValidationError) Key() bool
- func (e CreateTokenReqValidationError) Reason() string
- type CreateTokenWithValueReq
- func (*CreateTokenWithValueReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateTokenWithValueReq) GetActive() bool
- func (x *CreateTokenWithValueReq) GetId() string
- func (x *CreateTokenWithValueReq) GetName() string
- func (x *CreateTokenWithValueReq) GetProjects() []string
- func (x *CreateTokenWithValueReq) GetValue() string
- func (*CreateTokenWithValueReq) ProtoMessage()
- func (x *CreateTokenWithValueReq) ProtoReflect() protoreflect.Message
- func (x *CreateTokenWithValueReq) Reset()
- func (x *CreateTokenWithValueReq) String() string
- func (m *CreateTokenWithValueReq) Validate() error
- func (m *CreateTokenWithValueReq) ValidateAll() error
- type CreateTokenWithValueReqMultiError
- type CreateTokenWithValueReqValidationError
- func (e CreateTokenWithValueReqValidationError) Cause() error
- func (e CreateTokenWithValueReqValidationError) Error() string
- func (e CreateTokenWithValueReqValidationError) ErrorName() string
- func (e CreateTokenWithValueReqValidationError) Field() string
- func (e CreateTokenWithValueReqValidationError) Key() bool
- func (e CreateTokenWithValueReqValidationError) Reason() string
- type DeleteTokenReq
- func (*DeleteTokenReq) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteTokenReq) GetId() string
- func (*DeleteTokenReq) ProtoMessage()
- func (x *DeleteTokenReq) ProtoReflect() protoreflect.Message
- func (x *DeleteTokenReq) Reset()
- func (x *DeleteTokenReq) String() string
- func (m *DeleteTokenReq) Validate() error
- func (m *DeleteTokenReq) ValidateAll() error
- type DeleteTokenReqMultiError
- type DeleteTokenReqValidationError
- func (e DeleteTokenReqValidationError) Cause() error
- func (e DeleteTokenReqValidationError) Error() string
- func (e DeleteTokenReqValidationError) ErrorName() string
- func (e DeleteTokenReqValidationError) Field() string
- func (e DeleteTokenReqValidationError) Key() bool
- func (e DeleteTokenReqValidationError) Reason() string
- type DeleteTokenResp
- func (*DeleteTokenResp) Descriptor() ([]byte, []int)deprecated
- func (*DeleteTokenResp) ProtoMessage()
- func (x *DeleteTokenResp) ProtoReflect() protoreflect.Message
- func (x *DeleteTokenResp) Reset()
- func (x *DeleteTokenResp) String() string
- func (m *DeleteTokenResp) Validate() error
- func (m *DeleteTokenResp) ValidateAll() error
- type DeleteTokenRespMultiError
- type DeleteTokenRespValidationError
- func (e DeleteTokenRespValidationError) Cause() error
- func (e DeleteTokenRespValidationError) Error() string
- func (e DeleteTokenRespValidationError) ErrorName() string
- func (e DeleteTokenRespValidationError) Field() string
- func (e DeleteTokenRespValidationError) Key() bool
- func (e DeleteTokenRespValidationError) Reason() string
- type GetTokenReq
- func (*GetTokenReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetTokenReq) GetId() string
- func (*GetTokenReq) ProtoMessage()
- func (x *GetTokenReq) ProtoReflect() protoreflect.Message
- func (x *GetTokenReq) Reset()
- func (x *GetTokenReq) String() string
- func (m *GetTokenReq) Validate() error
- func (m *GetTokenReq) ValidateAll() error
- type GetTokenReqMultiError
- type GetTokenReqValidationError
- func (e GetTokenReqValidationError) Cause() error
- func (e GetTokenReqValidationError) Error() string
- func (e GetTokenReqValidationError) ErrorName() string
- func (e GetTokenReqValidationError) Field() string
- func (e GetTokenReqValidationError) Key() bool
- func (e GetTokenReqValidationError) Reason() string
- type GetTokensReq
- func (*GetTokensReq) Descriptor() ([]byte, []int)deprecated
- func (*GetTokensReq) ProtoMessage()
- func (x *GetTokensReq) ProtoReflect() protoreflect.Message
- func (x *GetTokensReq) Reset()
- func (x *GetTokensReq) String() string
- func (m *GetTokensReq) Validate() error
- func (m *GetTokensReq) ValidateAll() error
- type GetTokensReqMultiError
- type GetTokensReqValidationError
- func (e GetTokensReqValidationError) Cause() error
- func (e GetTokensReqValidationError) Error() string
- func (e GetTokensReqValidationError) ErrorName() string
- func (e GetTokensReqValidationError) Field() string
- func (e GetTokensReqValidationError) Key() bool
- func (e GetTokensReqValidationError) Reason() string
- type MockAuthenticationServiceClient
- type MockAuthenticationServiceClientMockRecorder
- type MockAuthenticationServiceServer
- type MockAuthenticationServiceServerMockRecorder
- type Token
- func (*Token) Descriptor() ([]byte, []int)deprecated
- func (x *Token) GetActive() bool
- func (x *Token) GetCreated() string
- func (x *Token) GetId() string
- func (x *Token) GetName() string
- func (x *Token) GetProjects() []string
- func (x *Token) GetUpdated() string
- func (x *Token) GetValue() string
- func (*Token) ProtoMessage()
- func (x *Token) ProtoReflect() protoreflect.Message
- func (x *Token) Reset()
- func (x *Token) String() string
- func (m *Token) Validate() error
- func (m *Token) ValidateAll() error
- type TokenMultiError
- type TokenValidationError
- type Tokens
- func (*Tokens) Descriptor() ([]byte, []int)deprecated
- func (x *Tokens) GetTokens() []*Token
- func (*Tokens) ProtoMessage()
- func (x *Tokens) ProtoReflect() protoreflect.Message
- func (x *Tokens) Reset()
- func (x *Tokens) String() string
- func (m *Tokens) Validate() error
- func (m *Tokens) ValidateAll() error
- type TokensMgmtServiceClient
- type TokensMgmtServiceServer
- type TokensMgmtServiceServerMock
- func (m *TokensMgmtServiceServerMock) CreateToken(ctx context.Context, req *CreateTokenReq) (*Token, error)
- func (m *TokensMgmtServiceServerMock) CreateTokenWithValue(ctx context.Context, req *CreateTokenWithValueReq) (*Token, error)
- func (m *TokensMgmtServiceServerMock) DeleteToken(ctx context.Context, req *DeleteTokenReq) (*DeleteTokenResp, error)
- func (m *TokensMgmtServiceServerMock) GetToken(ctx context.Context, req *GetTokenReq) (*Token, error)
- func (m *TokensMgmtServiceServerMock) GetTokens(ctx context.Context, req *GetTokensReq) (*Tokens, error)
- func (m *TokensMgmtServiceServerMock) Reset()
- func (m *TokensMgmtServiceServerMock) UpdateToken(ctx context.Context, req *UpdateTokenReq) (*Token, error)
- type TokensMultiError
- type TokensValidationError
- type UnimplementedAuthenticationServiceServer
- type UnimplementedTokensMgmtServiceServer
- func (*UnimplementedTokensMgmtServiceServer) CreateToken(context.Context, *CreateTokenReq) (*Token, error)
- func (*UnimplementedTokensMgmtServiceServer) CreateTokenWithValue(context.Context, *CreateTokenWithValueReq) (*Token, error)
- func (*UnimplementedTokensMgmtServiceServer) DeleteToken(context.Context, *DeleteTokenReq) (*DeleteTokenResp, error)
- func (*UnimplementedTokensMgmtServiceServer) GetToken(context.Context, *GetTokenReq) (*Token, error)
- func (*UnimplementedTokensMgmtServiceServer) GetTokens(context.Context, *GetTokensReq) (*Tokens, error)
- func (*UnimplementedTokensMgmtServiceServer) UpdateToken(context.Context, *UpdateTokenReq) (*Token, error)
- type UpdateTokenReq
- func (*UpdateTokenReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateTokenReq) GetActive() bool
- func (x *UpdateTokenReq) GetId() string
- func (x *UpdateTokenReq) GetName() string
- func (x *UpdateTokenReq) GetProjects() []string
- func (*UpdateTokenReq) ProtoMessage()
- func (x *UpdateTokenReq) ProtoReflect() protoreflect.Message
- func (x *UpdateTokenReq) Reset()
- func (x *UpdateTokenReq) String() string
- func (m *UpdateTokenReq) Validate() error
- func (m *UpdateTokenReq) ValidateAll() error
- type UpdateTokenReqMultiError
- type UpdateTokenReqValidationError
- func (e UpdateTokenReqValidationError) Cause() error
- func (e UpdateTokenReqValidationError) Error() string
- func (e UpdateTokenReqValidationError) ErrorName() string
- func (e UpdateTokenReqValidationError) Field() string
- func (e UpdateTokenReqValidationError) Key() bool
- func (e UpdateTokenReqValidationError) Reason() string
- type Value
- type ValueMultiError
- type ValueValidationError
Constants ¶
This section is empty.
Variables ¶
var File_interservice_authn_authenticate_proto protoreflect.FileDescriptor
var File_interservice_authn_tokens_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthenticationServiceHandler ¶
func RegisterAuthenticationServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterAuthenticationServiceHandler registers the http handlers for service AuthenticationService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterAuthenticationServiceHandlerClient ¶
func RegisterAuthenticationServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthenticationServiceClient) error
RegisterAuthenticationServiceHandlerClient registers the http handlers for service AuthenticationService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AuthenticationServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AuthenticationServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AuthenticationServiceClient" to call the correct interceptors.
func RegisterAuthenticationServiceHandlerFromEndpoint ¶
func RegisterAuthenticationServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterAuthenticationServiceHandlerFromEndpoint is same as RegisterAuthenticationServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterAuthenticationServiceHandlerServer ¶
func RegisterAuthenticationServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AuthenticationServiceServer) error
RegisterAuthenticationServiceHandlerServer registers the http handlers for service AuthenticationService to "mux". UnaryRPC :call AuthenticationServiceServer 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 RegisterAuthenticationServiceHandlerFromEndpoint instead.
func RegisterAuthenticationServiceServer ¶
func RegisterAuthenticationServiceServer(s *grpc.Server, srv AuthenticationServiceServer)
func RegisterTokensMgmtServiceServer ¶
func RegisterTokensMgmtServiceServer(s *grpc.Server, srv TokensMgmtServiceServer)
Types ¶
type AuthenticateRequest ¶
type AuthenticateRequest struct {
// contains filtered or unexported fields
}
func (*AuthenticateRequest) Descriptor
deprecated
func (*AuthenticateRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthenticateRequest.ProtoReflect.Descriptor instead.
func (*AuthenticateRequest) ProtoMessage ¶
func (*AuthenticateRequest) ProtoMessage()
func (*AuthenticateRequest) ProtoReflect ¶
func (x *AuthenticateRequest) ProtoReflect() protoreflect.Message
func (*AuthenticateRequest) Reset ¶
func (x *AuthenticateRequest) Reset()
func (*AuthenticateRequest) String ¶
func (x *AuthenticateRequest) String() string
func (*AuthenticateRequest) Validate ¶
func (m *AuthenticateRequest) Validate() error
Validate checks the field values on AuthenticateRequest 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 (*AuthenticateRequest) ValidateAll ¶
func (m *AuthenticateRequest) ValidateAll() error
ValidateAll checks the field values on AuthenticateRequest 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 AuthenticateRequestMultiError, or nil if none found.
type AuthenticateRequestMultiError ¶
type AuthenticateRequestMultiError []error
AuthenticateRequestMultiError is an error wrapping multiple validation errors returned by AuthenticateRequest.ValidateAll() if the designated constraints aren't met.
func (AuthenticateRequestMultiError) AllErrors ¶
func (m AuthenticateRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AuthenticateRequestMultiError) Error ¶
func (m AuthenticateRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AuthenticateRequestValidationError ¶
type AuthenticateRequestValidationError struct {
// contains filtered or unexported fields
}
AuthenticateRequestValidationError is the validation error returned by AuthenticateRequest.Validate if the designated constraints aren't met.
func (AuthenticateRequestValidationError) Cause ¶
func (e AuthenticateRequestValidationError) Cause() error
Cause function returns cause value.
func (AuthenticateRequestValidationError) Error ¶
func (e AuthenticateRequestValidationError) Error() string
Error satisfies the builtin error interface
func (AuthenticateRequestValidationError) ErrorName ¶
func (e AuthenticateRequestValidationError) ErrorName() string
ErrorName returns error name.
func (AuthenticateRequestValidationError) Field ¶
func (e AuthenticateRequestValidationError) Field() string
Field function returns field value.
func (AuthenticateRequestValidationError) Key ¶
func (e AuthenticateRequestValidationError) Key() bool
Key function returns key value.
func (AuthenticateRequestValidationError) Reason ¶
func (e AuthenticateRequestValidationError) Reason() string
Reason function returns reason value.
type AuthenticateResponse ¶
type AuthenticateResponse struct { // This could be either "user:{local,ldap,saml}:<some-id>", // "tls:service:<some-id> or "token:<some-id>", // depending on the authentication method that was successful. Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty" toml:"subject,omitempty" mapstructure:"subject,omitempty"` // Only human users have teams. The teams are provided either by the external // IdP (in which case they're extracted from the id_token; TODO), or, for local // users, by teams-service (TODO). Teams []string `protobuf:"bytes,2,rep,name=teams,proto3" json:"teams,omitempty" toml:"teams,omitempty" mapstructure:"teams,omitempty"` Requestor string `` /* 133-byte string literal not displayed */ // contains filtered or unexported fields }
func (*AuthenticateResponse) Descriptor
deprecated
func (*AuthenticateResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthenticateResponse.ProtoReflect.Descriptor instead.
func (*AuthenticateResponse) GetRequestor ¶
func (x *AuthenticateResponse) GetRequestor() string
func (*AuthenticateResponse) GetSubject ¶
func (x *AuthenticateResponse) GetSubject() string
func (*AuthenticateResponse) GetTeams ¶
func (x *AuthenticateResponse) GetTeams() []string
func (*AuthenticateResponse) ProtoMessage ¶
func (*AuthenticateResponse) ProtoMessage()
func (*AuthenticateResponse) ProtoReflect ¶
func (x *AuthenticateResponse) ProtoReflect() protoreflect.Message
func (*AuthenticateResponse) Reset ¶
func (x *AuthenticateResponse) Reset()
func (*AuthenticateResponse) String ¶
func (x *AuthenticateResponse) String() string
func (*AuthenticateResponse) Validate ¶
func (m *AuthenticateResponse) Validate() error
Validate checks the field values on AuthenticateResponse 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 (*AuthenticateResponse) ValidateAll ¶
func (m *AuthenticateResponse) ValidateAll() error
ValidateAll checks the field values on AuthenticateResponse 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 AuthenticateResponseMultiError, or nil if none found.
type AuthenticateResponseMultiError ¶
type AuthenticateResponseMultiError []error
AuthenticateResponseMultiError is an error wrapping multiple validation errors returned by AuthenticateResponse.ValidateAll() if the designated constraints aren't met.
func (AuthenticateResponseMultiError) AllErrors ¶
func (m AuthenticateResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AuthenticateResponseMultiError) Error ¶
func (m AuthenticateResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AuthenticateResponseValidationError ¶
type AuthenticateResponseValidationError struct {
// contains filtered or unexported fields
}
AuthenticateResponseValidationError is the validation error returned by AuthenticateResponse.Validate if the designated constraints aren't met.
func (AuthenticateResponseValidationError) Cause ¶
func (e AuthenticateResponseValidationError) Cause() error
Cause function returns cause value.
func (AuthenticateResponseValidationError) Error ¶
func (e AuthenticateResponseValidationError) Error() string
Error satisfies the builtin error interface
func (AuthenticateResponseValidationError) ErrorName ¶
func (e AuthenticateResponseValidationError) ErrorName() string
ErrorName returns error name.
func (AuthenticateResponseValidationError) Field ¶
func (e AuthenticateResponseValidationError) Field() string
Field function returns field value.
func (AuthenticateResponseValidationError) Key ¶
func (e AuthenticateResponseValidationError) Key() bool
Key function returns key value.
func (AuthenticateResponseValidationError) Reason ¶
func (e AuthenticateResponseValidationError) Reason() string
Reason function returns reason value.
type AuthenticationServiceClient ¶
type AuthenticationServiceClient interface { // Authenticate inspects the request's metadata -- for this, an empty argument // is just enough. Getting a response means it was authenticated successfully. // If the metadata does not contain what is needed to authenticate the // request, or the tokens are wrong, the AuthenticationService will return the // corresponding error code, with details in the message. Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error) }
AuthenticationServiceClient is the client API for AuthenticationService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAuthenticationServiceClient ¶
func NewAuthenticationServiceClient(cc grpc.ClientConnInterface) AuthenticationServiceClient
type AuthenticationServiceServer ¶
type AuthenticationServiceServer interface { // Authenticate inspects the request's metadata -- for this, an empty argument // is just enough. Getting a response means it was authenticated successfully. // If the metadata does not contain what is needed to authenticate the // request, or the tokens are wrong, the AuthenticationService will return the // corresponding error code, with details in the message. Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error) }
AuthenticationServiceServer is the server API for AuthenticationService service.
type AuthenticationServiceServerMock ¶
type AuthenticationServiceServerMock struct { AuthenticateFunc func(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error) // contains filtered or unexported fields }
AuthenticationServiceServerMock is the mock-what-you-want struct that stubs all not-overridden methods with "not implemented" returns
func NewAuthenticationServiceServerMock ¶
func NewAuthenticationServiceServerMock() *AuthenticationServiceServerMock
NewAuthenticationServiceServerMock gives you a fresh instance of AuthenticationServiceServerMock.
func NewAuthenticationServiceServerMockWithoutValidation ¶
func NewAuthenticationServiceServerMockWithoutValidation() *AuthenticationServiceServerMock
NewAuthenticationServiceServerMockWithoutValidation gives you a fresh instance of AuthenticationServiceServerMock which does not attempt to validate requests before passing them to their respective '*Func'.
func (*AuthenticationServiceServerMock) Authenticate ¶
func (m *AuthenticationServiceServerMock) Authenticate(ctx context.Context, req *AuthenticateRequest) (*AuthenticateResponse, error)
func (*AuthenticationServiceServerMock) Reset ¶
func (m *AuthenticationServiceServerMock) Reset()
Reset resets all overridden functions
type CreateTokenReq ¶
type CreateTokenReq struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" toml:"id,omitempty" mapstructure:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" toml:"name,omitempty" mapstructure:"name,omitempty"` Active bool `protobuf:"varint,3,opt,name=active,proto3" json:"active,omitempty" toml:"active,omitempty" mapstructure:"active,omitempty"` Projects []string `` /* 129-byte string literal not displayed */ // contains filtered or unexported fields }
func (*CreateTokenReq) Descriptor
deprecated
func (*CreateTokenReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateTokenReq.ProtoReflect.Descriptor instead.
func (*CreateTokenReq) GetActive ¶
func (x *CreateTokenReq) GetActive() bool
func (*CreateTokenReq) GetId ¶
func (x *CreateTokenReq) GetId() string
func (*CreateTokenReq) GetName ¶
func (x *CreateTokenReq) GetName() string
func (*CreateTokenReq) GetProjects ¶
func (x *CreateTokenReq) GetProjects() []string
func (*CreateTokenReq) ProtoMessage ¶
func (*CreateTokenReq) ProtoMessage()
func (*CreateTokenReq) ProtoReflect ¶
func (x *CreateTokenReq) ProtoReflect() protoreflect.Message
func (*CreateTokenReq) Reset ¶
func (x *CreateTokenReq) Reset()
func (*CreateTokenReq) String ¶
func (x *CreateTokenReq) String() string
func (*CreateTokenReq) Validate ¶
func (m *CreateTokenReq) Validate() error
Validate checks the field values on CreateTokenReq 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 (*CreateTokenReq) ValidateAll ¶
func (m *CreateTokenReq) ValidateAll() error
ValidateAll checks the field values on CreateTokenReq 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 CreateTokenReqMultiError, or nil if none found.
type CreateTokenReqMultiError ¶
type CreateTokenReqMultiError []error
CreateTokenReqMultiError is an error wrapping multiple validation errors returned by CreateTokenReq.ValidateAll() if the designated constraints aren't met.
func (CreateTokenReqMultiError) AllErrors ¶
func (m CreateTokenReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateTokenReqMultiError) Error ¶
func (m CreateTokenReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateTokenReqValidationError ¶
type CreateTokenReqValidationError struct {
// contains filtered or unexported fields
}
CreateTokenReqValidationError is the validation error returned by CreateTokenReq.Validate if the designated constraints aren't met.
func (CreateTokenReqValidationError) Cause ¶
func (e CreateTokenReqValidationError) Cause() error
Cause function returns cause value.
func (CreateTokenReqValidationError) Error ¶
func (e CreateTokenReqValidationError) Error() string
Error satisfies the builtin error interface
func (CreateTokenReqValidationError) ErrorName ¶
func (e CreateTokenReqValidationError) ErrorName() string
ErrorName returns error name.
func (CreateTokenReqValidationError) Field ¶
func (e CreateTokenReqValidationError) Field() string
Field function returns field value.
func (CreateTokenReqValidationError) Key ¶
func (e CreateTokenReqValidationError) Key() bool
Key function returns key value.
func (CreateTokenReqValidationError) Reason ¶
func (e CreateTokenReqValidationError) Reason() string
Reason function returns reason value.
type CreateTokenWithValueReq ¶
type CreateTokenWithValueReq struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" toml:"id,omitempty" mapstructure:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" toml:"name,omitempty" mapstructure:"name,omitempty"` Active bool `protobuf:"varint,3,opt,name=active,proto3" json:"active,omitempty" toml:"active,omitempty" mapstructure:"active,omitempty"` Value string `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty" toml:"value,omitempty" mapstructure:"value,omitempty"` Projects []string `` /* 129-byte string literal not displayed */ // contains filtered or unexported fields }
func (*CreateTokenWithValueReq) Descriptor
deprecated
func (*CreateTokenWithValueReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateTokenWithValueReq.ProtoReflect.Descriptor instead.
func (*CreateTokenWithValueReq) GetActive ¶
func (x *CreateTokenWithValueReq) GetActive() bool
func (*CreateTokenWithValueReq) GetId ¶
func (x *CreateTokenWithValueReq) GetId() string
func (*CreateTokenWithValueReq) GetName ¶
func (x *CreateTokenWithValueReq) GetName() string
func (*CreateTokenWithValueReq) GetProjects ¶
func (x *CreateTokenWithValueReq) GetProjects() []string
func (*CreateTokenWithValueReq) GetValue ¶
func (x *CreateTokenWithValueReq) GetValue() string
func (*CreateTokenWithValueReq) ProtoMessage ¶
func (*CreateTokenWithValueReq) ProtoMessage()
func (*CreateTokenWithValueReq) ProtoReflect ¶
func (x *CreateTokenWithValueReq) ProtoReflect() protoreflect.Message
func (*CreateTokenWithValueReq) Reset ¶
func (x *CreateTokenWithValueReq) Reset()
func (*CreateTokenWithValueReq) String ¶
func (x *CreateTokenWithValueReq) String() string
func (*CreateTokenWithValueReq) Validate ¶
func (m *CreateTokenWithValueReq) Validate() error
Validate checks the field values on CreateTokenWithValueReq 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 (*CreateTokenWithValueReq) ValidateAll ¶
func (m *CreateTokenWithValueReq) ValidateAll() error
ValidateAll checks the field values on CreateTokenWithValueReq 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 CreateTokenWithValueReqMultiError, or nil if none found.
type CreateTokenWithValueReqMultiError ¶
type CreateTokenWithValueReqMultiError []error
CreateTokenWithValueReqMultiError is an error wrapping multiple validation errors returned by CreateTokenWithValueReq.ValidateAll() if the designated constraints aren't met.
func (CreateTokenWithValueReqMultiError) AllErrors ¶
func (m CreateTokenWithValueReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateTokenWithValueReqMultiError) Error ¶
func (m CreateTokenWithValueReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateTokenWithValueReqValidationError ¶
type CreateTokenWithValueReqValidationError struct {
// contains filtered or unexported fields
}
CreateTokenWithValueReqValidationError is the validation error returned by CreateTokenWithValueReq.Validate if the designated constraints aren't met.
func (CreateTokenWithValueReqValidationError) Cause ¶
func (e CreateTokenWithValueReqValidationError) Cause() error
Cause function returns cause value.
func (CreateTokenWithValueReqValidationError) Error ¶
func (e CreateTokenWithValueReqValidationError) Error() string
Error satisfies the builtin error interface
func (CreateTokenWithValueReqValidationError) ErrorName ¶
func (e CreateTokenWithValueReqValidationError) ErrorName() string
ErrorName returns error name.
func (CreateTokenWithValueReqValidationError) Field ¶
func (e CreateTokenWithValueReqValidationError) Field() string
Field function returns field value.
func (CreateTokenWithValueReqValidationError) Key ¶
func (e CreateTokenWithValueReqValidationError) Key() bool
Key function returns key value.
func (CreateTokenWithValueReqValidationError) Reason ¶
func (e CreateTokenWithValueReqValidationError) Reason() string
Reason function returns reason value.
type DeleteTokenReq ¶
type DeleteTokenReq struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" toml:"id,omitempty" mapstructure:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteTokenReq) Descriptor
deprecated
func (*DeleteTokenReq) Descriptor() ([]byte, []int)
Deprecated: Use DeleteTokenReq.ProtoReflect.Descriptor instead.
func (*DeleteTokenReq) GetId ¶
func (x *DeleteTokenReq) GetId() string
func (*DeleteTokenReq) ProtoMessage ¶
func (*DeleteTokenReq) ProtoMessage()
func (*DeleteTokenReq) ProtoReflect ¶
func (x *DeleteTokenReq) ProtoReflect() protoreflect.Message
func (*DeleteTokenReq) Reset ¶
func (x *DeleteTokenReq) Reset()
func (*DeleteTokenReq) String ¶
func (x *DeleteTokenReq) String() string
func (*DeleteTokenReq) Validate ¶
func (m *DeleteTokenReq) Validate() error
Validate checks the field values on DeleteTokenReq 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 (*DeleteTokenReq) ValidateAll ¶
func (m *DeleteTokenReq) ValidateAll() error
ValidateAll checks the field values on DeleteTokenReq 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 DeleteTokenReqMultiError, or nil if none found.
type DeleteTokenReqMultiError ¶
type DeleteTokenReqMultiError []error
DeleteTokenReqMultiError is an error wrapping multiple validation errors returned by DeleteTokenReq.ValidateAll() if the designated constraints aren't met.
func (DeleteTokenReqMultiError) AllErrors ¶
func (m DeleteTokenReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteTokenReqMultiError) Error ¶
func (m DeleteTokenReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteTokenReqValidationError ¶
type DeleteTokenReqValidationError struct {
// contains filtered or unexported fields
}
DeleteTokenReqValidationError is the validation error returned by DeleteTokenReq.Validate if the designated constraints aren't met.
func (DeleteTokenReqValidationError) Cause ¶
func (e DeleteTokenReqValidationError) Cause() error
Cause function returns cause value.
func (DeleteTokenReqValidationError) Error ¶
func (e DeleteTokenReqValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteTokenReqValidationError) ErrorName ¶
func (e DeleteTokenReqValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteTokenReqValidationError) Field ¶
func (e DeleteTokenReqValidationError) Field() string
Field function returns field value.
func (DeleteTokenReqValidationError) Key ¶
func (e DeleteTokenReqValidationError) Key() bool
Key function returns key value.
func (DeleteTokenReqValidationError) Reason ¶
func (e DeleteTokenReqValidationError) Reason() string
Reason function returns reason value.
type DeleteTokenResp ¶
type DeleteTokenResp struct {
// contains filtered or unexported fields
}
func (*DeleteTokenResp) Descriptor
deprecated
func (*DeleteTokenResp) Descriptor() ([]byte, []int)
Deprecated: Use DeleteTokenResp.ProtoReflect.Descriptor instead.
func (*DeleteTokenResp) ProtoMessage ¶
func (*DeleteTokenResp) ProtoMessage()
func (*DeleteTokenResp) ProtoReflect ¶
func (x *DeleteTokenResp) ProtoReflect() protoreflect.Message
func (*DeleteTokenResp) Reset ¶
func (x *DeleteTokenResp) Reset()
func (*DeleteTokenResp) String ¶
func (x *DeleteTokenResp) String() string
func (*DeleteTokenResp) Validate ¶
func (m *DeleteTokenResp) Validate() error
Validate checks the field values on DeleteTokenResp 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 (*DeleteTokenResp) ValidateAll ¶
func (m *DeleteTokenResp) ValidateAll() error
ValidateAll checks the field values on DeleteTokenResp 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 DeleteTokenRespMultiError, or nil if none found.
type DeleteTokenRespMultiError ¶
type DeleteTokenRespMultiError []error
DeleteTokenRespMultiError is an error wrapping multiple validation errors returned by DeleteTokenResp.ValidateAll() if the designated constraints aren't met.
func (DeleteTokenRespMultiError) AllErrors ¶
func (m DeleteTokenRespMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteTokenRespMultiError) Error ¶
func (m DeleteTokenRespMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteTokenRespValidationError ¶
type DeleteTokenRespValidationError struct {
// contains filtered or unexported fields
}
DeleteTokenRespValidationError is the validation error returned by DeleteTokenResp.Validate if the designated constraints aren't met.
func (DeleteTokenRespValidationError) Cause ¶
func (e DeleteTokenRespValidationError) Cause() error
Cause function returns cause value.
func (DeleteTokenRespValidationError) Error ¶
func (e DeleteTokenRespValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteTokenRespValidationError) ErrorName ¶
func (e DeleteTokenRespValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteTokenRespValidationError) Field ¶
func (e DeleteTokenRespValidationError) Field() string
Field function returns field value.
func (DeleteTokenRespValidationError) Key ¶
func (e DeleteTokenRespValidationError) Key() bool
Key function returns key value.
func (DeleteTokenRespValidationError) Reason ¶
func (e DeleteTokenRespValidationError) Reason() string
Reason function returns reason value.
type GetTokenReq ¶
type GetTokenReq struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" toml:"id,omitempty" mapstructure:"id,omitempty"` // contains filtered or unexported fields }
func (*GetTokenReq) Descriptor
deprecated
func (*GetTokenReq) Descriptor() ([]byte, []int)
Deprecated: Use GetTokenReq.ProtoReflect.Descriptor instead.
func (*GetTokenReq) GetId ¶
func (x *GetTokenReq) GetId() string
func (*GetTokenReq) ProtoMessage ¶
func (*GetTokenReq) ProtoMessage()
func (*GetTokenReq) ProtoReflect ¶
func (x *GetTokenReq) ProtoReflect() protoreflect.Message
func (*GetTokenReq) Reset ¶
func (x *GetTokenReq) Reset()
func (*GetTokenReq) String ¶
func (x *GetTokenReq) String() string
func (*GetTokenReq) Validate ¶
func (m *GetTokenReq) Validate() error
Validate checks the field values on GetTokenReq 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 (*GetTokenReq) ValidateAll ¶
func (m *GetTokenReq) ValidateAll() error
ValidateAll checks the field values on GetTokenReq 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 GetTokenReqMultiError, or nil if none found.
type GetTokenReqMultiError ¶
type GetTokenReqMultiError []error
GetTokenReqMultiError is an error wrapping multiple validation errors returned by GetTokenReq.ValidateAll() if the designated constraints aren't met.
func (GetTokenReqMultiError) AllErrors ¶
func (m GetTokenReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetTokenReqMultiError) Error ¶
func (m GetTokenReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetTokenReqValidationError ¶
type GetTokenReqValidationError struct {
// contains filtered or unexported fields
}
GetTokenReqValidationError is the validation error returned by GetTokenReq.Validate if the designated constraints aren't met.
func (GetTokenReqValidationError) Cause ¶
func (e GetTokenReqValidationError) Cause() error
Cause function returns cause value.
func (GetTokenReqValidationError) Error ¶
func (e GetTokenReqValidationError) Error() string
Error satisfies the builtin error interface
func (GetTokenReqValidationError) ErrorName ¶
func (e GetTokenReqValidationError) ErrorName() string
ErrorName returns error name.
func (GetTokenReqValidationError) Field ¶
func (e GetTokenReqValidationError) Field() string
Field function returns field value.
func (GetTokenReqValidationError) Key ¶
func (e GetTokenReqValidationError) Key() bool
Key function returns key value.
func (GetTokenReqValidationError) Reason ¶
func (e GetTokenReqValidationError) Reason() string
Reason function returns reason value.
type GetTokensReq ¶
type GetTokensReq struct {
// contains filtered or unexported fields
}
func (*GetTokensReq) Descriptor
deprecated
func (*GetTokensReq) Descriptor() ([]byte, []int)
Deprecated: Use GetTokensReq.ProtoReflect.Descriptor instead.
func (*GetTokensReq) ProtoMessage ¶
func (*GetTokensReq) ProtoMessage()
func (*GetTokensReq) ProtoReflect ¶
func (x *GetTokensReq) ProtoReflect() protoreflect.Message
func (*GetTokensReq) Reset ¶
func (x *GetTokensReq) Reset()
func (*GetTokensReq) String ¶
func (x *GetTokensReq) String() string
func (*GetTokensReq) Validate ¶
func (m *GetTokensReq) Validate() error
Validate checks the field values on GetTokensReq 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 (*GetTokensReq) ValidateAll ¶
func (m *GetTokensReq) ValidateAll() error
ValidateAll checks the field values on GetTokensReq 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 GetTokensReqMultiError, or nil if none found.
type GetTokensReqMultiError ¶
type GetTokensReqMultiError []error
GetTokensReqMultiError is an error wrapping multiple validation errors returned by GetTokensReq.ValidateAll() if the designated constraints aren't met.
func (GetTokensReqMultiError) AllErrors ¶
func (m GetTokensReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetTokensReqMultiError) Error ¶
func (m GetTokensReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetTokensReqValidationError ¶
type GetTokensReqValidationError struct {
// contains filtered or unexported fields
}
GetTokensReqValidationError is the validation error returned by GetTokensReq.Validate if the designated constraints aren't met.
func (GetTokensReqValidationError) Cause ¶
func (e GetTokensReqValidationError) Cause() error
Cause function returns cause value.
func (GetTokensReqValidationError) Error ¶
func (e GetTokensReqValidationError) Error() string
Error satisfies the builtin error interface
func (GetTokensReqValidationError) ErrorName ¶
func (e GetTokensReqValidationError) ErrorName() string
ErrorName returns error name.
func (GetTokensReqValidationError) Field ¶
func (e GetTokensReqValidationError) Field() string
Field function returns field value.
func (GetTokensReqValidationError) Key ¶
func (e GetTokensReqValidationError) Key() bool
Key function returns key value.
func (GetTokensReqValidationError) Reason ¶
func (e GetTokensReqValidationError) Reason() string
Reason function returns reason value.
type MockAuthenticationServiceClient ¶
type MockAuthenticationServiceClient struct {
// contains filtered or unexported fields
}
MockAuthenticationServiceClient is a mock of AuthenticationServiceClient interface.
func NewMockAuthenticationServiceClient ¶
func NewMockAuthenticationServiceClient(ctrl *gomock.Controller) *MockAuthenticationServiceClient
NewMockAuthenticationServiceClient creates a new mock instance.
func (*MockAuthenticationServiceClient) Authenticate ¶
func (m *MockAuthenticationServiceClient) Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error)
Authenticate mocks base method.
func (*MockAuthenticationServiceClient) EXPECT ¶
func (m *MockAuthenticationServiceClient) EXPECT() *MockAuthenticationServiceClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockAuthenticationServiceClientMockRecorder ¶
type MockAuthenticationServiceClientMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthenticationServiceClientMockRecorder is the mock recorder for MockAuthenticationServiceClient.
func (*MockAuthenticationServiceClientMockRecorder) Authenticate ¶
func (mr *MockAuthenticationServiceClientMockRecorder) Authenticate(ctx, in interface{}, opts ...interface{}) *gomock.Call
Authenticate indicates an expected call of Authenticate.
type MockAuthenticationServiceServer ¶
type MockAuthenticationServiceServer struct {
// contains filtered or unexported fields
}
MockAuthenticationServiceServer is a mock of AuthenticationServiceServer interface.
func NewMockAuthenticationServiceServer ¶
func NewMockAuthenticationServiceServer(ctrl *gomock.Controller) *MockAuthenticationServiceServer
NewMockAuthenticationServiceServer creates a new mock instance.
func (*MockAuthenticationServiceServer) Authenticate ¶
func (m *MockAuthenticationServiceServer) Authenticate(arg0 context.Context, arg1 *AuthenticateRequest) (*AuthenticateResponse, error)
Authenticate mocks base method.
func (*MockAuthenticationServiceServer) EXPECT ¶
func (m *MockAuthenticationServiceServer) EXPECT() *MockAuthenticationServiceServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockAuthenticationServiceServerMockRecorder ¶
type MockAuthenticationServiceServerMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthenticationServiceServerMockRecorder is the mock recorder for MockAuthenticationServiceServer.
func (*MockAuthenticationServiceServerMockRecorder) Authenticate ¶
func (mr *MockAuthenticationServiceServerMockRecorder) Authenticate(arg0, arg1 interface{}) *gomock.Call
Authenticate indicates an expected call of Authenticate.
type Token ¶
type Token struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" toml:"id,omitempty" mapstructure:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" toml:"name,omitempty" mapstructure:"name,omitempty"` Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty" toml:"value,omitempty" mapstructure:"value,omitempty"` Active bool `protobuf:"varint,4,opt,name=active,proto3" json:"active,omitempty" toml:"active,omitempty" mapstructure:"active,omitempty"` Created string `protobuf:"bytes,5,opt,name=created,proto3" json:"created,omitempty" toml:"created,omitempty" mapstructure:"created,omitempty"` Updated string `protobuf:"bytes,6,opt,name=updated,proto3" json:"updated,omitempty" toml:"updated,omitempty" mapstructure:"updated,omitempty"` Projects []string `` /* 129-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Token) Descriptor
deprecated
func (*Token) GetCreated ¶
func (*Token) GetProjects ¶
func (*Token) GetUpdated ¶
func (*Token) ProtoMessage ¶
func (*Token) ProtoMessage()
func (*Token) ProtoReflect ¶
func (x *Token) ProtoReflect() protoreflect.Message
func (*Token) Validate ¶
Validate checks the field values on Token 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 (*Token) ValidateAll ¶
ValidateAll checks the field values on Token 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 TokenMultiError, or nil if none found.
type TokenMultiError ¶
type TokenMultiError []error
TokenMultiError is an error wrapping multiple validation errors returned by Token.ValidateAll() if the designated constraints aren't met.
func (TokenMultiError) AllErrors ¶
func (m TokenMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TokenMultiError) Error ¶
func (m TokenMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TokenValidationError ¶
type TokenValidationError struct {
// contains filtered or unexported fields
}
TokenValidationError is the validation error returned by Token.Validate if the designated constraints aren't met.
func (TokenValidationError) Cause ¶
func (e TokenValidationError) Cause() error
Cause function returns cause value.
func (TokenValidationError) Error ¶
func (e TokenValidationError) Error() string
Error satisfies the builtin error interface
func (TokenValidationError) ErrorName ¶
func (e TokenValidationError) ErrorName() string
ErrorName returns error name.
func (TokenValidationError) Field ¶
func (e TokenValidationError) Field() string
Field function returns field value.
func (TokenValidationError) Key ¶
func (e TokenValidationError) Key() bool
Key function returns key value.
func (TokenValidationError) Reason ¶
func (e TokenValidationError) Reason() string
Reason function returns reason value.
type Tokens ¶
type Tokens struct { Tokens []*Token `protobuf:"bytes,1,rep,name=tokens,proto3" json:"tokens,omitempty" toml:"tokens,omitempty" mapstructure:"tokens,omitempty"` // contains filtered or unexported fields }
func (*Tokens) Descriptor
deprecated
func (*Tokens) ProtoMessage ¶
func (*Tokens) ProtoMessage()
func (*Tokens) ProtoReflect ¶
func (x *Tokens) ProtoReflect() protoreflect.Message
func (*Tokens) Validate ¶
Validate checks the field values on Tokens 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 (*Tokens) ValidateAll ¶
ValidateAll checks the field values on Tokens 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 TokensMultiError, or nil if none found.
type TokensMgmtServiceClient ¶
type TokensMgmtServiceClient interface { GetTokens(ctx context.Context, in *GetTokensReq, opts ...grpc.CallOption) (*Tokens, error) CreateToken(ctx context.Context, in *CreateTokenReq, opts ...grpc.CallOption) (*Token, error) CreateTokenWithValue(ctx context.Context, in *CreateTokenWithValueReq, opts ...grpc.CallOption) (*Token, error) UpdateToken(ctx context.Context, in *UpdateTokenReq, opts ...grpc.CallOption) (*Token, error) GetToken(ctx context.Context, in *GetTokenReq, opts ...grpc.CallOption) (*Token, error) DeleteToken(ctx context.Context, in *DeleteTokenReq, opts ...grpc.CallOption) (*DeleteTokenResp, error) }
TokensMgmtServiceClient is the client API for TokensMgmtService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewTokensMgmtServiceClient ¶
func NewTokensMgmtServiceClient(cc grpc.ClientConnInterface) TokensMgmtServiceClient
type TokensMgmtServiceServer ¶
type TokensMgmtServiceServer interface { GetTokens(context.Context, *GetTokensReq) (*Tokens, error) CreateToken(context.Context, *CreateTokenReq) (*Token, error) CreateTokenWithValue(context.Context, *CreateTokenWithValueReq) (*Token, error) UpdateToken(context.Context, *UpdateTokenReq) (*Token, error) GetToken(context.Context, *GetTokenReq) (*Token, error) DeleteToken(context.Context, *DeleteTokenReq) (*DeleteTokenResp, error) }
TokensMgmtServiceServer is the server API for TokensMgmtService service.
type TokensMgmtServiceServerMock ¶
type TokensMgmtServiceServerMock struct { GetTokensFunc func(context.Context, *GetTokensReq) (*Tokens, error) CreateTokenFunc func(context.Context, *CreateTokenReq) (*Token, error) CreateTokenWithValueFunc func(context.Context, *CreateTokenWithValueReq) (*Token, error) UpdateTokenFunc func(context.Context, *UpdateTokenReq) (*Token, error) GetTokenFunc func(context.Context, *GetTokenReq) (*Token, error) DeleteTokenFunc func(context.Context, *DeleteTokenReq) (*DeleteTokenResp, error) // contains filtered or unexported fields }
TokensMgmtServiceServerMock is the mock-what-you-want struct that stubs all not-overridden methods with "not implemented" returns
func NewTokensMgmtServiceServerMock ¶
func NewTokensMgmtServiceServerMock() *TokensMgmtServiceServerMock
NewTokensMgmtServiceServerMock gives you a fresh instance of TokensMgmtServiceServerMock.
func NewTokensMgmtServiceServerMockWithoutValidation ¶
func NewTokensMgmtServiceServerMockWithoutValidation() *TokensMgmtServiceServerMock
NewTokensMgmtServiceServerMockWithoutValidation gives you a fresh instance of TokensMgmtServiceServerMock which does not attempt to validate requests before passing them to their respective '*Func'.
func (*TokensMgmtServiceServerMock) CreateToken ¶
func (m *TokensMgmtServiceServerMock) CreateToken(ctx context.Context, req *CreateTokenReq) (*Token, error)
func (*TokensMgmtServiceServerMock) CreateTokenWithValue ¶
func (m *TokensMgmtServiceServerMock) CreateTokenWithValue(ctx context.Context, req *CreateTokenWithValueReq) (*Token, error)
func (*TokensMgmtServiceServerMock) DeleteToken ¶
func (m *TokensMgmtServiceServerMock) DeleteToken(ctx context.Context, req *DeleteTokenReq) (*DeleteTokenResp, error)
func (*TokensMgmtServiceServerMock) GetToken ¶
func (m *TokensMgmtServiceServerMock) GetToken(ctx context.Context, req *GetTokenReq) (*Token, error)
func (*TokensMgmtServiceServerMock) GetTokens ¶
func (m *TokensMgmtServiceServerMock) GetTokens(ctx context.Context, req *GetTokensReq) (*Tokens, error)
func (*TokensMgmtServiceServerMock) Reset ¶
func (m *TokensMgmtServiceServerMock) Reset()
Reset resets all overridden functions
func (*TokensMgmtServiceServerMock) UpdateToken ¶
func (m *TokensMgmtServiceServerMock) UpdateToken(ctx context.Context, req *UpdateTokenReq) (*Token, error)
type TokensMultiError ¶
type TokensMultiError []error
TokensMultiError is an error wrapping multiple validation errors returned by Tokens.ValidateAll() if the designated constraints aren't met.
func (TokensMultiError) AllErrors ¶
func (m TokensMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TokensMultiError) Error ¶
func (m TokensMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TokensValidationError ¶
type TokensValidationError struct {
// contains filtered or unexported fields
}
TokensValidationError is the validation error returned by Tokens.Validate if the designated constraints aren't met.
func (TokensValidationError) Cause ¶
func (e TokensValidationError) Cause() error
Cause function returns cause value.
func (TokensValidationError) Error ¶
func (e TokensValidationError) Error() string
Error satisfies the builtin error interface
func (TokensValidationError) ErrorName ¶
func (e TokensValidationError) ErrorName() string
ErrorName returns error name.
func (TokensValidationError) Field ¶
func (e TokensValidationError) Field() string
Field function returns field value.
func (TokensValidationError) Key ¶
func (e TokensValidationError) Key() bool
Key function returns key value.
func (TokensValidationError) Reason ¶
func (e TokensValidationError) Reason() string
Reason function returns reason value.
type UnimplementedAuthenticationServiceServer ¶
type UnimplementedAuthenticationServiceServer struct { }
UnimplementedAuthenticationServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedAuthenticationServiceServer) Authenticate ¶
func (*UnimplementedAuthenticationServiceServer) Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error)
type UnimplementedTokensMgmtServiceServer ¶
type UnimplementedTokensMgmtServiceServer struct { }
UnimplementedTokensMgmtServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedTokensMgmtServiceServer) CreateToken ¶
func (*UnimplementedTokensMgmtServiceServer) CreateToken(context.Context, *CreateTokenReq) (*Token, error)
func (*UnimplementedTokensMgmtServiceServer) CreateTokenWithValue ¶
func (*UnimplementedTokensMgmtServiceServer) CreateTokenWithValue(context.Context, *CreateTokenWithValueReq) (*Token, error)
func (*UnimplementedTokensMgmtServiceServer) DeleteToken ¶
func (*UnimplementedTokensMgmtServiceServer) DeleteToken(context.Context, *DeleteTokenReq) (*DeleteTokenResp, error)
func (*UnimplementedTokensMgmtServiceServer) GetToken ¶
func (*UnimplementedTokensMgmtServiceServer) GetToken(context.Context, *GetTokenReq) (*Token, error)
func (*UnimplementedTokensMgmtServiceServer) GetTokens ¶
func (*UnimplementedTokensMgmtServiceServer) GetTokens(context.Context, *GetTokensReq) (*Tokens, error)
func (*UnimplementedTokensMgmtServiceServer) UpdateToken ¶
func (*UnimplementedTokensMgmtServiceServer) UpdateToken(context.Context, *UpdateTokenReq) (*Token, error)
type UpdateTokenReq ¶
type UpdateTokenReq struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" toml:"id,omitempty" mapstructure:"id,omitempty"` Active bool `protobuf:"varint,2,opt,name=active,proto3" json:"active,omitempty" toml:"active,omitempty" mapstructure:"active,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty" toml:"name,omitempty" mapstructure:"name,omitempty"` Projects []string `` /* 129-byte string literal not displayed */ // contains filtered or unexported fields }
func (*UpdateTokenReq) Descriptor
deprecated
func (*UpdateTokenReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdateTokenReq.ProtoReflect.Descriptor instead.
func (*UpdateTokenReq) GetActive ¶
func (x *UpdateTokenReq) GetActive() bool
func (*UpdateTokenReq) GetId ¶
func (x *UpdateTokenReq) GetId() string
func (*UpdateTokenReq) GetName ¶
func (x *UpdateTokenReq) GetName() string
func (*UpdateTokenReq) GetProjects ¶
func (x *UpdateTokenReq) GetProjects() []string
func (*UpdateTokenReq) ProtoMessage ¶
func (*UpdateTokenReq) ProtoMessage()
func (*UpdateTokenReq) ProtoReflect ¶
func (x *UpdateTokenReq) ProtoReflect() protoreflect.Message
func (*UpdateTokenReq) Reset ¶
func (x *UpdateTokenReq) Reset()
func (*UpdateTokenReq) String ¶
func (x *UpdateTokenReq) String() string
func (*UpdateTokenReq) Validate ¶
func (m *UpdateTokenReq) Validate() error
Validate checks the field values on UpdateTokenReq 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 (*UpdateTokenReq) ValidateAll ¶
func (m *UpdateTokenReq) ValidateAll() error
ValidateAll checks the field values on UpdateTokenReq 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 UpdateTokenReqMultiError, or nil if none found.
type UpdateTokenReqMultiError ¶
type UpdateTokenReqMultiError []error
UpdateTokenReqMultiError is an error wrapping multiple validation errors returned by UpdateTokenReq.ValidateAll() if the designated constraints aren't met.
func (UpdateTokenReqMultiError) AllErrors ¶
func (m UpdateTokenReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateTokenReqMultiError) Error ¶
func (m UpdateTokenReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateTokenReqValidationError ¶
type UpdateTokenReqValidationError struct {
// contains filtered or unexported fields
}
UpdateTokenReqValidationError is the validation error returned by UpdateTokenReq.Validate if the designated constraints aren't met.
func (UpdateTokenReqValidationError) Cause ¶
func (e UpdateTokenReqValidationError) Cause() error
Cause function returns cause value.
func (UpdateTokenReqValidationError) Error ¶
func (e UpdateTokenReqValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateTokenReqValidationError) ErrorName ¶
func (e UpdateTokenReqValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateTokenReqValidationError) Field ¶
func (e UpdateTokenReqValidationError) Field() string
Field function returns field value.
func (UpdateTokenReqValidationError) Key ¶
func (e UpdateTokenReqValidationError) Key() bool
Key function returns key value.
func (UpdateTokenReqValidationError) Reason ¶
func (e UpdateTokenReqValidationError) Reason() string
Reason function returns reason value.
type Value ¶
type Value struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty" toml:"value,omitempty" mapstructure:"value,omitempty"` // contains filtered or unexported fields }
func (*Value) Descriptor
deprecated
func (*Value) ProtoMessage ¶
func (*Value) ProtoMessage()
func (*Value) ProtoReflect ¶
func (x *Value) ProtoReflect() protoreflect.Message
func (*Value) Validate ¶
Validate checks the field values on Value 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 (*Value) ValidateAll ¶
ValidateAll checks the field values on Value 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 ValueMultiError, or nil if none found.
type ValueMultiError ¶
type ValueMultiError []error
ValueMultiError is an error wrapping multiple validation errors returned by Value.ValidateAll() if the designated constraints aren't met.
func (ValueMultiError) AllErrors ¶
func (m ValueMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ValueMultiError) Error ¶
func (m ValueMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ValueValidationError ¶
type ValueValidationError struct {
// contains filtered or unexported fields
}
ValueValidationError is the validation error returned by Value.Validate if the designated constraints aren't met.
func (ValueValidationError) Cause ¶
func (e ValueValidationError) Cause() error
Cause function returns cause value.
func (ValueValidationError) Error ¶
func (e ValueValidationError) Error() string
Error satisfies the builtin error interface
func (ValueValidationError) ErrorName ¶
func (e ValueValidationError) ErrorName() string
ErrorName returns error name.
func (ValueValidationError) Field ¶
func (e ValueValidationError) Field() string
Field function returns field value.
func (ValueValidationError) Key ¶
func (e ValueValidationError) Key() bool
Key function returns key value.
func (ValueValidationError) Reason ¶
func (e ValueValidationError) Reason() string
Reason function returns reason value.