Documentation ¶
Overview ¶
Package token is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterAccessTokenHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterAccessTokenHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AccessTokenClient) error
- func RegisterAccessTokenHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterAccessTokenHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AccessTokenServer) error
- func RegisterAccessTokenServer(s grpc.ServiceRegistrar, srv AccessTokenServer)
- type AccessTokenClient
- type AccessTokenServer
- type GrantRequest
- func (*GrantRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GrantRequest) GetExpireSeconds() int32
- func (x *GrantRequest) GetUsage() string
- func (*GrantRequest) ProtoMessage()
- func (x *GrantRequest) ProtoReflect() protoreflect.Message
- func (x *GrantRequest) Reset()
- func (x *GrantRequest) String() string
- func (m *GrantRequest) Validate() error
- func (m *GrantRequest) ValidateAll() error
- type GrantRequestMultiError
- type GrantRequestValidationError
- func (e GrantRequestValidationError) Cause() error
- func (e GrantRequestValidationError) Error() string
- func (e GrantRequestValidationError) ErrorName() string
- func (e GrantRequestValidationError) Field() string
- func (e GrantRequestValidationError) Key() bool
- func (e GrantRequestValidationError) Reason() string
- type GrantResponse
- func (*GrantResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GrantResponse) GetToken() *types.AccessTokenModel
- func (*GrantResponse) ProtoMessage()
- func (x *GrantResponse) ProtoReflect() protoreflect.Message
- func (x *GrantResponse) Reset()
- func (x *GrantResponse) String() string
- func (m *GrantResponse) Validate() error
- func (m *GrantResponse) ValidateAll() error
- type GrantResponseMultiError
- type GrantResponseValidationError
- func (e GrantResponseValidationError) Cause() error
- func (e GrantResponseValidationError) Error() string
- func (e GrantResponseValidationError) ErrorName() string
- func (e GrantResponseValidationError) Field() string
- func (e GrantResponseValidationError) Key() bool
- func (e GrantResponseValidationError) Reason() string
- type LeaseRequest
- func (*LeaseRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LeaseRequest) GetExpireSeconds() int32
- func (x *LeaseRequest) GetToken() string
- func (*LeaseRequest) ProtoMessage()
- func (x *LeaseRequest) ProtoReflect() protoreflect.Message
- func (x *LeaseRequest) Reset()
- func (x *LeaseRequest) String() string
- func (m *LeaseRequest) Validate() error
- func (m *LeaseRequest) ValidateAll() error
- type LeaseRequestMultiError
- type LeaseRequestValidationError
- func (e LeaseRequestValidationError) Cause() error
- func (e LeaseRequestValidationError) Error() string
- func (e LeaseRequestValidationError) ErrorName() string
- func (e LeaseRequestValidationError) Field() string
- func (e LeaseRequestValidationError) Key() bool
- func (e LeaseRequestValidationError) Reason() string
- type LeaseResponse
- func (*LeaseResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LeaseResponse) GetToken() *types.AccessTokenModel
- func (*LeaseResponse) ProtoMessage()
- func (x *LeaseResponse) ProtoReflect() protoreflect.Message
- func (x *LeaseResponse) Reset()
- func (x *LeaseResponse) String() string
- func (m *LeaseResponse) Validate() error
- func (m *LeaseResponse) ValidateAll() error
- type LeaseResponseMultiError
- type LeaseResponseValidationError
- func (e LeaseResponseValidationError) Cause() error
- func (e LeaseResponseValidationError) Error() string
- func (e LeaseResponseValidationError) ErrorName() string
- func (e LeaseResponseValidationError) Field() string
- func (e LeaseResponseValidationError) Key() bool
- func (e LeaseResponseValidationError) Reason() string
- type ListRequest
- func (*ListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListRequest) GetPage() int32
- func (x *ListRequest) GetPageSize() int32
- func (*ListRequest) ProtoMessage()
- func (x *ListRequest) ProtoReflect() protoreflect.Message
- func (x *ListRequest) Reset()
- func (x *ListRequest) String() string
- func (m *ListRequest) Validate() error
- func (m *ListRequest) ValidateAll() error
- type ListRequestMultiError
- type ListRequestValidationError
- func (e ListRequestValidationError) Cause() error
- func (e ListRequestValidationError) Error() string
- func (e ListRequestValidationError) ErrorName() string
- func (e ListRequestValidationError) Field() string
- func (e ListRequestValidationError) Key() bool
- func (e ListRequestValidationError) Reason() string
- type ListResponse
- func (*ListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListResponse) GetCount() int32
- func (x *ListResponse) GetItems() []*types.AccessTokenModel
- func (x *ListResponse) GetPage() int32
- func (x *ListResponse) GetPageSize() int32
- func (*ListResponse) ProtoMessage()
- func (x *ListResponse) ProtoReflect() protoreflect.Message
- func (x *ListResponse) Reset()
- func (x *ListResponse) String() string
- func (m *ListResponse) Validate() error
- func (m *ListResponse) ValidateAll() error
- type ListResponseMultiError
- type ListResponseValidationError
- func (e ListResponseValidationError) Cause() error
- func (e ListResponseValidationError) Error() string
- func (e ListResponseValidationError) ErrorName() string
- func (e ListResponseValidationError) Field() string
- func (e ListResponseValidationError) Key() bool
- func (e ListResponseValidationError) Reason() string
- type RevokeRequest
- func (*RevokeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RevokeRequest) GetToken() string
- func (*RevokeRequest) ProtoMessage()
- func (x *RevokeRequest) ProtoReflect() protoreflect.Message
- func (x *RevokeRequest) Reset()
- func (x *RevokeRequest) String() string
- func (m *RevokeRequest) Validate() error
- func (m *RevokeRequest) ValidateAll() error
- type RevokeRequestMultiError
- type RevokeRequestValidationError
- func (e RevokeRequestValidationError) Cause() error
- func (e RevokeRequestValidationError) Error() string
- func (e RevokeRequestValidationError) ErrorName() string
- func (e RevokeRequestValidationError) Field() string
- func (e RevokeRequestValidationError) Key() bool
- func (e RevokeRequestValidationError) Reason() string
- type RevokeResponse
- func (*RevokeResponse) Descriptor() ([]byte, []int)deprecated
- func (*RevokeResponse) ProtoMessage()
- func (x *RevokeResponse) ProtoReflect() protoreflect.Message
- func (x *RevokeResponse) Reset()
- func (x *RevokeResponse) String() string
- func (m *RevokeResponse) Validate() error
- func (m *RevokeResponse) ValidateAll() error
- type RevokeResponseMultiError
- type RevokeResponseValidationError
- func (e RevokeResponseValidationError) Cause() error
- func (e RevokeResponseValidationError) Error() string
- func (e RevokeResponseValidationError) ErrorName() string
- func (e RevokeResponseValidationError) Field() string
- func (e RevokeResponseValidationError) Key() bool
- func (e RevokeResponseValidationError) Reason() string
- type UnimplementedAccessTokenServer
- func (UnimplementedAccessTokenServer) Grant(context.Context, *GrantRequest) (*GrantResponse, error)
- func (UnimplementedAccessTokenServer) Lease(context.Context, *LeaseRequest) (*LeaseResponse, error)
- func (UnimplementedAccessTokenServer) List(context.Context, *ListRequest) (*ListResponse, error)
- func (UnimplementedAccessTokenServer) Revoke(context.Context, *RevokeRequest) (*RevokeResponse, error)
- type UnsafeAccessTokenServer
Constants ¶
const ( AccessToken_List_FullMethodName = "/token.AccessToken/List" AccessToken_Grant_FullMethodName = "/token.AccessToken/Grant" AccessToken_Lease_FullMethodName = "/token.AccessToken/Lease" AccessToken_Revoke_FullMethodName = "/token.AccessToken/Revoke" )
Variables ¶
var AccessToken_ServiceDesc = grpc.ServiceDesc{ ServiceName: "token.AccessToken", HandlerType: (*AccessTokenServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "List", Handler: _AccessToken_List_Handler, }, { MethodName: "Grant", Handler: _AccessToken_Grant_Handler, }, { MethodName: "Lease", Handler: _AccessToken_Lease_Handler, }, { MethodName: "Revoke", Handler: _AccessToken_Revoke_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "token/token.proto", }
AccessToken_ServiceDesc is the grpc.ServiceDesc for AccessToken service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_token_token_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAccessTokenHandler ¶
func RegisterAccessTokenHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterAccessTokenHandler registers the http handlers for service AccessToken to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterAccessTokenHandlerClient ¶
func RegisterAccessTokenHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AccessTokenClient) error
RegisterAccessTokenHandlerClient registers the http handlers for service AccessToken to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AccessTokenClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AccessTokenClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AccessTokenClient" to call the correct interceptors.
func RegisterAccessTokenHandlerFromEndpoint ¶
func RegisterAccessTokenHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterAccessTokenHandlerFromEndpoint is same as RegisterAccessTokenHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterAccessTokenHandlerServer ¶
func RegisterAccessTokenHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AccessTokenServer) error
RegisterAccessTokenHandlerServer registers the http handlers for service AccessToken to "mux". UnaryRPC :call AccessTokenServer 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 RegisterAccessTokenHandlerFromEndpoint instead.
func RegisterAccessTokenServer ¶
func RegisterAccessTokenServer(s grpc.ServiceRegistrar, srv AccessTokenServer)
Types ¶
type AccessTokenClient ¶
type AccessTokenClient interface { List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) Grant(ctx context.Context, in *GrantRequest, opts ...grpc.CallOption) (*GrantResponse, error) Lease(ctx context.Context, in *LeaseRequest, opts ...grpc.CallOption) (*LeaseResponse, error) Revoke(ctx context.Context, in *RevokeRequest, opts ...grpc.CallOption) (*RevokeResponse, error) }
AccessTokenClient is the client API for AccessToken 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 NewAccessTokenClient ¶
func NewAccessTokenClient(cc grpc.ClientConnInterface) AccessTokenClient
type AccessTokenServer ¶
type AccessTokenServer interface { List(context.Context, *ListRequest) (*ListResponse, error) Grant(context.Context, *GrantRequest) (*GrantResponse, error) Lease(context.Context, *LeaseRequest) (*LeaseResponse, error) Revoke(context.Context, *RevokeRequest) (*RevokeResponse, error) // contains filtered or unexported methods }
AccessTokenServer is the server API for AccessToken service. All implementations must embed UnimplementedAccessTokenServer for forward compatibility
type GrantRequest ¶
type GrantRequest struct { ExpireSeconds int32 `protobuf:"varint,1,opt,name=expire_seconds,json=expireSeconds,proto3" json:"expire_seconds,omitempty"` Usage string `protobuf:"bytes,2,opt,name=usage,proto3" json:"usage,omitempty"` // contains filtered or unexported fields }
func (*GrantRequest) Descriptor
deprecated
func (*GrantRequest) Descriptor() ([]byte, []int)
Deprecated: Use GrantRequest.ProtoReflect.Descriptor instead.
func (*GrantRequest) GetExpireSeconds ¶
func (x *GrantRequest) GetExpireSeconds() int32
func (*GrantRequest) GetUsage ¶
func (x *GrantRequest) GetUsage() string
func (*GrantRequest) ProtoMessage ¶
func (*GrantRequest) ProtoMessage()
func (*GrantRequest) ProtoReflect ¶
func (x *GrantRequest) ProtoReflect() protoreflect.Message
func (*GrantRequest) Reset ¶
func (x *GrantRequest) Reset()
func (*GrantRequest) String ¶
func (x *GrantRequest) String() string
func (*GrantRequest) Validate ¶
func (m *GrantRequest) Validate() error
Validate checks the field values on GrantRequest 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 (*GrantRequest) ValidateAll ¶
func (m *GrantRequest) ValidateAll() error
ValidateAll checks the field values on GrantRequest 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 GrantRequestMultiError, or nil if none found.
type GrantRequestMultiError ¶
type GrantRequestMultiError []error
GrantRequestMultiError is an error wrapping multiple validation errors returned by GrantRequest.ValidateAll() if the designated constraints aren't met.
func (GrantRequestMultiError) AllErrors ¶
func (m GrantRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GrantRequestMultiError) Error ¶
func (m GrantRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GrantRequestValidationError ¶
type GrantRequestValidationError struct {
// contains filtered or unexported fields
}
GrantRequestValidationError is the validation error returned by GrantRequest.Validate if the designated constraints aren't met.
func (GrantRequestValidationError) Cause ¶
func (e GrantRequestValidationError) Cause() error
Cause function returns cause value.
func (GrantRequestValidationError) Error ¶
func (e GrantRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GrantRequestValidationError) ErrorName ¶
func (e GrantRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GrantRequestValidationError) Field ¶
func (e GrantRequestValidationError) Field() string
Field function returns field value.
func (GrantRequestValidationError) Key ¶
func (e GrantRequestValidationError) Key() bool
Key function returns key value.
func (GrantRequestValidationError) Reason ¶
func (e GrantRequestValidationError) Reason() string
Reason function returns reason value.
type GrantResponse ¶
type GrantResponse struct { Token *types.AccessTokenModel `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*GrantResponse) Descriptor
deprecated
func (*GrantResponse) Descriptor() ([]byte, []int)
Deprecated: Use GrantResponse.ProtoReflect.Descriptor instead.
func (*GrantResponse) GetToken ¶
func (x *GrantResponse) GetToken() *types.AccessTokenModel
func (*GrantResponse) ProtoMessage ¶
func (*GrantResponse) ProtoMessage()
func (*GrantResponse) ProtoReflect ¶
func (x *GrantResponse) ProtoReflect() protoreflect.Message
func (*GrantResponse) Reset ¶
func (x *GrantResponse) Reset()
func (*GrantResponse) String ¶
func (x *GrantResponse) String() string
func (*GrantResponse) Validate ¶
func (m *GrantResponse) Validate() error
Validate checks the field values on GrantResponse 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 (*GrantResponse) ValidateAll ¶
func (m *GrantResponse) ValidateAll() error
ValidateAll checks the field values on GrantResponse 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 GrantResponseMultiError, or nil if none found.
type GrantResponseMultiError ¶
type GrantResponseMultiError []error
GrantResponseMultiError is an error wrapping multiple validation errors returned by GrantResponse.ValidateAll() if the designated constraints aren't met.
func (GrantResponseMultiError) AllErrors ¶
func (m GrantResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GrantResponseMultiError) Error ¶
func (m GrantResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GrantResponseValidationError ¶
type GrantResponseValidationError struct {
// contains filtered or unexported fields
}
GrantResponseValidationError is the validation error returned by GrantResponse.Validate if the designated constraints aren't met.
func (GrantResponseValidationError) Cause ¶
func (e GrantResponseValidationError) Cause() error
Cause function returns cause value.
func (GrantResponseValidationError) Error ¶
func (e GrantResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GrantResponseValidationError) ErrorName ¶
func (e GrantResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GrantResponseValidationError) Field ¶
func (e GrantResponseValidationError) Field() string
Field function returns field value.
func (GrantResponseValidationError) Key ¶
func (e GrantResponseValidationError) Key() bool
Key function returns key value.
func (GrantResponseValidationError) Reason ¶
func (e GrantResponseValidationError) Reason() string
Reason function returns reason value.
type LeaseRequest ¶
type LeaseRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` ExpireSeconds int32 `protobuf:"varint,2,opt,name=expire_seconds,json=expireSeconds,proto3" json:"expire_seconds,omitempty"` // contains filtered or unexported fields }
func (*LeaseRequest) Descriptor
deprecated
func (*LeaseRequest) Descriptor() ([]byte, []int)
Deprecated: Use LeaseRequest.ProtoReflect.Descriptor instead.
func (*LeaseRequest) GetExpireSeconds ¶
func (x *LeaseRequest) GetExpireSeconds() int32
func (*LeaseRequest) GetToken ¶
func (x *LeaseRequest) GetToken() string
func (*LeaseRequest) ProtoMessage ¶
func (*LeaseRequest) ProtoMessage()
func (*LeaseRequest) ProtoReflect ¶
func (x *LeaseRequest) ProtoReflect() protoreflect.Message
func (*LeaseRequest) Reset ¶
func (x *LeaseRequest) Reset()
func (*LeaseRequest) String ¶
func (x *LeaseRequest) String() string
func (*LeaseRequest) Validate ¶
func (m *LeaseRequest) Validate() error
Validate checks the field values on LeaseRequest 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 (*LeaseRequest) ValidateAll ¶
func (m *LeaseRequest) ValidateAll() error
ValidateAll checks the field values on LeaseRequest 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 LeaseRequestMultiError, or nil if none found.
type LeaseRequestMultiError ¶
type LeaseRequestMultiError []error
LeaseRequestMultiError is an error wrapping multiple validation errors returned by LeaseRequest.ValidateAll() if the designated constraints aren't met.
func (LeaseRequestMultiError) AllErrors ¶
func (m LeaseRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LeaseRequestMultiError) Error ¶
func (m LeaseRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LeaseRequestValidationError ¶
type LeaseRequestValidationError struct {
// contains filtered or unexported fields
}
LeaseRequestValidationError is the validation error returned by LeaseRequest.Validate if the designated constraints aren't met.
func (LeaseRequestValidationError) Cause ¶
func (e LeaseRequestValidationError) Cause() error
Cause function returns cause value.
func (LeaseRequestValidationError) Error ¶
func (e LeaseRequestValidationError) Error() string
Error satisfies the builtin error interface
func (LeaseRequestValidationError) ErrorName ¶
func (e LeaseRequestValidationError) ErrorName() string
ErrorName returns error name.
func (LeaseRequestValidationError) Field ¶
func (e LeaseRequestValidationError) Field() string
Field function returns field value.
func (LeaseRequestValidationError) Key ¶
func (e LeaseRequestValidationError) Key() bool
Key function returns key value.
func (LeaseRequestValidationError) Reason ¶
func (e LeaseRequestValidationError) Reason() string
Reason function returns reason value.
type LeaseResponse ¶
type LeaseResponse struct { Token *types.AccessTokenModel `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*LeaseResponse) Descriptor
deprecated
func (*LeaseResponse) Descriptor() ([]byte, []int)
Deprecated: Use LeaseResponse.ProtoReflect.Descriptor instead.
func (*LeaseResponse) GetToken ¶
func (x *LeaseResponse) GetToken() *types.AccessTokenModel
func (*LeaseResponse) ProtoMessage ¶
func (*LeaseResponse) ProtoMessage()
func (*LeaseResponse) ProtoReflect ¶
func (x *LeaseResponse) ProtoReflect() protoreflect.Message
func (*LeaseResponse) Reset ¶
func (x *LeaseResponse) Reset()
func (*LeaseResponse) String ¶
func (x *LeaseResponse) String() string
func (*LeaseResponse) Validate ¶
func (m *LeaseResponse) Validate() error
Validate checks the field values on LeaseResponse 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 (*LeaseResponse) ValidateAll ¶
func (m *LeaseResponse) ValidateAll() error
ValidateAll checks the field values on LeaseResponse 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 LeaseResponseMultiError, or nil if none found.
type LeaseResponseMultiError ¶
type LeaseResponseMultiError []error
LeaseResponseMultiError is an error wrapping multiple validation errors returned by LeaseResponse.ValidateAll() if the designated constraints aren't met.
func (LeaseResponseMultiError) AllErrors ¶
func (m LeaseResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LeaseResponseMultiError) Error ¶
func (m LeaseResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LeaseResponseValidationError ¶
type LeaseResponseValidationError struct {
// contains filtered or unexported fields
}
LeaseResponseValidationError is the validation error returned by LeaseResponse.Validate if the designated constraints aren't met.
func (LeaseResponseValidationError) Cause ¶
func (e LeaseResponseValidationError) Cause() error
Cause function returns cause value.
func (LeaseResponseValidationError) Error ¶
func (e LeaseResponseValidationError) Error() string
Error satisfies the builtin error interface
func (LeaseResponseValidationError) ErrorName ¶
func (e LeaseResponseValidationError) ErrorName() string
ErrorName returns error name.
func (LeaseResponseValidationError) Field ¶
func (e LeaseResponseValidationError) Field() string
Field function returns field value.
func (LeaseResponseValidationError) Key ¶
func (e LeaseResponseValidationError) Key() bool
Key function returns key value.
func (LeaseResponseValidationError) Reason ¶
func (e LeaseResponseValidationError) Reason() string
Reason function returns reason value.
type ListRequest ¶
type ListRequest struct { Page *int32 `protobuf:"varint,1,opt,name=page,proto3,oneof" json:"page,omitempty"` PageSize *int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3,oneof" json:"page_size,omitempty"` // contains filtered or unexported fields }
func (*ListRequest) Descriptor
deprecated
func (*ListRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
func (*ListRequest) GetPage ¶
func (x *ListRequest) GetPage() int32
func (*ListRequest) GetPageSize ¶
func (x *ListRequest) GetPageSize() int32
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) ProtoReflect ¶
func (x *ListRequest) ProtoReflect() protoreflect.Message
func (*ListRequest) Reset ¶
func (x *ListRequest) Reset()
func (*ListRequest) String ¶
func (x *ListRequest) String() string
func (*ListRequest) Validate ¶
func (m *ListRequest) Validate() error
Validate checks the field values on ListRequest 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 (*ListRequest) ValidateAll ¶
func (m *ListRequest) ValidateAll() error
ValidateAll checks the field values on ListRequest 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 ListRequestMultiError, or nil if none found.
type ListRequestMultiError ¶
type ListRequestMultiError []error
ListRequestMultiError is an error wrapping multiple validation errors returned by ListRequest.ValidateAll() if the designated constraints aren't met.
func (ListRequestMultiError) AllErrors ¶
func (m ListRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListRequestMultiError) Error ¶
func (m ListRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListRequestValidationError ¶
type ListRequestValidationError struct {
// contains filtered or unexported fields
}
ListRequestValidationError is the validation error returned by ListRequest.Validate if the designated constraints aren't met.
func (ListRequestValidationError) Cause ¶
func (e ListRequestValidationError) Cause() error
Cause function returns cause value.
func (ListRequestValidationError) Error ¶
func (e ListRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListRequestValidationError) ErrorName ¶
func (e ListRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListRequestValidationError) Field ¶
func (e ListRequestValidationError) Field() string
Field function returns field value.
func (ListRequestValidationError) Key ¶
func (e ListRequestValidationError) Key() bool
Key function returns key value.
func (ListRequestValidationError) Reason ¶
func (e ListRequestValidationError) Reason() string
Reason function returns reason value.
type ListResponse ¶
type ListResponse struct { Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` Items []*types.AccessTokenModel `protobuf:"bytes,3,rep,name=items,proto3" json:"items,omitempty"` Count int32 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*ListResponse) Descriptor
deprecated
func (*ListResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
func (*ListResponse) GetCount ¶
func (x *ListResponse) GetCount() int32
func (*ListResponse) GetItems ¶
func (x *ListResponse) GetItems() []*types.AccessTokenModel
func (*ListResponse) GetPage ¶
func (x *ListResponse) GetPage() int32
func (*ListResponse) GetPageSize ¶
func (x *ListResponse) GetPageSize() int32
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) ProtoReflect ¶
func (x *ListResponse) ProtoReflect() protoreflect.Message
func (*ListResponse) Reset ¶
func (x *ListResponse) Reset()
func (*ListResponse) String ¶
func (x *ListResponse) String() string
func (*ListResponse) Validate ¶
func (m *ListResponse) Validate() error
Validate checks the field values on ListResponse 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 (*ListResponse) ValidateAll ¶
func (m *ListResponse) ValidateAll() error
ValidateAll checks the field values on ListResponse 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 ListResponseMultiError, or nil if none found.
type ListResponseMultiError ¶
type ListResponseMultiError []error
ListResponseMultiError is an error wrapping multiple validation errors returned by ListResponse.ValidateAll() if the designated constraints aren't met.
func (ListResponseMultiError) AllErrors ¶
func (m ListResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListResponseMultiError) Error ¶
func (m ListResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListResponseValidationError ¶
type ListResponseValidationError struct {
// contains filtered or unexported fields
}
ListResponseValidationError is the validation error returned by ListResponse.Validate if the designated constraints aren't met.
func (ListResponseValidationError) Cause ¶
func (e ListResponseValidationError) Cause() error
Cause function returns cause value.
func (ListResponseValidationError) Error ¶
func (e ListResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListResponseValidationError) ErrorName ¶
func (e ListResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListResponseValidationError) Field ¶
func (e ListResponseValidationError) Field() string
Field function returns field value.
func (ListResponseValidationError) Key ¶
func (e ListResponseValidationError) Key() bool
Key function returns key value.
func (ListResponseValidationError) Reason ¶
func (e ListResponseValidationError) Reason() string
Reason function returns reason value.
type RevokeRequest ¶
type RevokeRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*RevokeRequest) Descriptor
deprecated
func (*RevokeRequest) Descriptor() ([]byte, []int)
Deprecated: Use RevokeRequest.ProtoReflect.Descriptor instead.
func (*RevokeRequest) GetToken ¶
func (x *RevokeRequest) GetToken() string
func (*RevokeRequest) ProtoMessage ¶
func (*RevokeRequest) ProtoMessage()
func (*RevokeRequest) ProtoReflect ¶
func (x *RevokeRequest) ProtoReflect() protoreflect.Message
func (*RevokeRequest) Reset ¶
func (x *RevokeRequest) Reset()
func (*RevokeRequest) String ¶
func (x *RevokeRequest) String() string
func (*RevokeRequest) Validate ¶
func (m *RevokeRequest) Validate() error
Validate checks the field values on RevokeRequest 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 (*RevokeRequest) ValidateAll ¶
func (m *RevokeRequest) ValidateAll() error
ValidateAll checks the field values on RevokeRequest 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 RevokeRequestMultiError, or nil if none found.
type RevokeRequestMultiError ¶
type RevokeRequestMultiError []error
RevokeRequestMultiError is an error wrapping multiple validation errors returned by RevokeRequest.ValidateAll() if the designated constraints aren't met.
func (RevokeRequestMultiError) AllErrors ¶
func (m RevokeRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RevokeRequestMultiError) Error ¶
func (m RevokeRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RevokeRequestValidationError ¶
type RevokeRequestValidationError struct {
// contains filtered or unexported fields
}
RevokeRequestValidationError is the validation error returned by RevokeRequest.Validate if the designated constraints aren't met.
func (RevokeRequestValidationError) Cause ¶
func (e RevokeRequestValidationError) Cause() error
Cause function returns cause value.
func (RevokeRequestValidationError) Error ¶
func (e RevokeRequestValidationError) Error() string
Error satisfies the builtin error interface
func (RevokeRequestValidationError) ErrorName ¶
func (e RevokeRequestValidationError) ErrorName() string
ErrorName returns error name.
func (RevokeRequestValidationError) Field ¶
func (e RevokeRequestValidationError) Field() string
Field function returns field value.
func (RevokeRequestValidationError) Key ¶
func (e RevokeRequestValidationError) Key() bool
Key function returns key value.
func (RevokeRequestValidationError) Reason ¶
func (e RevokeRequestValidationError) Reason() string
Reason function returns reason value.
type RevokeResponse ¶
type RevokeResponse struct {
// contains filtered or unexported fields
}
func (*RevokeResponse) Descriptor
deprecated
func (*RevokeResponse) Descriptor() ([]byte, []int)
Deprecated: Use RevokeResponse.ProtoReflect.Descriptor instead.
func (*RevokeResponse) ProtoMessage ¶
func (*RevokeResponse) ProtoMessage()
func (*RevokeResponse) ProtoReflect ¶
func (x *RevokeResponse) ProtoReflect() protoreflect.Message
func (*RevokeResponse) Reset ¶
func (x *RevokeResponse) Reset()
func (*RevokeResponse) String ¶
func (x *RevokeResponse) String() string
func (*RevokeResponse) Validate ¶
func (m *RevokeResponse) Validate() error
Validate checks the field values on RevokeResponse 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 (*RevokeResponse) ValidateAll ¶
func (m *RevokeResponse) ValidateAll() error
ValidateAll checks the field values on RevokeResponse 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 RevokeResponseMultiError, or nil if none found.
type RevokeResponseMultiError ¶
type RevokeResponseMultiError []error
RevokeResponseMultiError is an error wrapping multiple validation errors returned by RevokeResponse.ValidateAll() if the designated constraints aren't met.
func (RevokeResponseMultiError) AllErrors ¶
func (m RevokeResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RevokeResponseMultiError) Error ¶
func (m RevokeResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RevokeResponseValidationError ¶
type RevokeResponseValidationError struct {
// contains filtered or unexported fields
}
RevokeResponseValidationError is the validation error returned by RevokeResponse.Validate if the designated constraints aren't met.
func (RevokeResponseValidationError) Cause ¶
func (e RevokeResponseValidationError) Cause() error
Cause function returns cause value.
func (RevokeResponseValidationError) Error ¶
func (e RevokeResponseValidationError) Error() string
Error satisfies the builtin error interface
func (RevokeResponseValidationError) ErrorName ¶
func (e RevokeResponseValidationError) ErrorName() string
ErrorName returns error name.
func (RevokeResponseValidationError) Field ¶
func (e RevokeResponseValidationError) Field() string
Field function returns field value.
func (RevokeResponseValidationError) Key ¶
func (e RevokeResponseValidationError) Key() bool
Key function returns key value.
func (RevokeResponseValidationError) Reason ¶
func (e RevokeResponseValidationError) Reason() string
Reason function returns reason value.
type UnimplementedAccessTokenServer ¶
type UnimplementedAccessTokenServer struct { }
UnimplementedAccessTokenServer must be embedded to have forward compatible implementations.
func (UnimplementedAccessTokenServer) Grant ¶
func (UnimplementedAccessTokenServer) Grant(context.Context, *GrantRequest) (*GrantResponse, error)
func (UnimplementedAccessTokenServer) Lease ¶
func (UnimplementedAccessTokenServer) Lease(context.Context, *LeaseRequest) (*LeaseResponse, error)
func (UnimplementedAccessTokenServer) List ¶
func (UnimplementedAccessTokenServer) List(context.Context, *ListRequest) (*ListResponse, error)
func (UnimplementedAccessTokenServer) Revoke ¶
func (UnimplementedAccessTokenServer) Revoke(context.Context, *RevokeRequest) (*RevokeResponse, error)
type UnsafeAccessTokenServer ¶
type UnsafeAccessTokenServer interface {
// contains filtered or unexported methods
}
UnsafeAccessTokenServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AccessTokenServer will result in compilation errors.