token

package
v5.0.13 Latest Latest
Warning

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

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

Documentation

Overview

Package token is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

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

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

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

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

Cause function returns cause value.

func (GrantRequestValidationError) Error

Error satisfies the builtin error interface

func (GrantRequestValidationError) ErrorName

func (e GrantRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GrantRequestValidationError) Field

Field function returns field value.

func (GrantRequestValidationError) Key

Key function returns key value.

func (GrantRequestValidationError) Reason

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

Cause function returns cause value.

func (GrantResponseValidationError) Error

Error satisfies the builtin error interface

func (GrantResponseValidationError) ErrorName

func (e GrantResponseValidationError) ErrorName() string

ErrorName returns error name.

func (GrantResponseValidationError) Field

Field function returns field value.

func (GrantResponseValidationError) Key

Key function returns key value.

func (GrantResponseValidationError) Reason

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

Cause function returns cause value.

func (LeaseRequestValidationError) Error

Error satisfies the builtin error interface

func (LeaseRequestValidationError) ErrorName

func (e LeaseRequestValidationError) ErrorName() string

ErrorName returns error name.

func (LeaseRequestValidationError) Field

Field function returns field value.

func (LeaseRequestValidationError) Key

Key function returns key value.

func (LeaseRequestValidationError) Reason

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

Cause function returns cause value.

func (LeaseResponseValidationError) Error

Error satisfies the builtin error interface

func (LeaseResponseValidationError) ErrorName

func (e LeaseResponseValidationError) ErrorName() string

ErrorName returns error name.

func (LeaseResponseValidationError) Field

Field function returns field value.

func (LeaseResponseValidationError) Key

Key function returns key value.

func (LeaseResponseValidationError) Reason

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

Cause function returns cause value.

func (ListRequestValidationError) Error

Error satisfies the builtin error interface

func (ListRequestValidationError) ErrorName

func (e ListRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ListRequestValidationError) Field

Field function returns field value.

func (ListRequestValidationError) Key

Key function returns key value.

func (ListRequestValidationError) Reason

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

Cause function returns cause value.

func (ListResponseValidationError) Error

Error satisfies the builtin error interface

func (ListResponseValidationError) ErrorName

func (e ListResponseValidationError) ErrorName() string

ErrorName returns error name.

func (ListResponseValidationError) Field

Field function returns field value.

func (ListResponseValidationError) Key

Key function returns key value.

func (ListResponseValidationError) Reason

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

Cause function returns cause value.

func (RevokeRequestValidationError) Error

Error satisfies the builtin error interface

func (RevokeRequestValidationError) ErrorName

func (e RevokeRequestValidationError) ErrorName() string

ErrorName returns error name.

func (RevokeRequestValidationError) Field

Field function returns field value.

func (RevokeRequestValidationError) Key

Key function returns key value.

func (RevokeRequestValidationError) Reason

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

Cause function returns cause value.

func (RevokeResponseValidationError) Error

Error satisfies the builtin error interface

func (RevokeResponseValidationError) ErrorName

func (e RevokeResponseValidationError) ErrorName() string

ErrorName returns error name.

func (RevokeResponseValidationError) Field

Field function returns field value.

func (RevokeResponseValidationError) Key

Key function returns key value.

func (RevokeResponseValidationError) Reason

Reason function returns reason value.

type UnimplementedAccessTokenServer

type UnimplementedAccessTokenServer struct {
}

UnimplementedAccessTokenServer must be embedded to have forward compatible implementations.

func (UnimplementedAccessTokenServer) Grant

func (UnimplementedAccessTokenServer) Lease

func (UnimplementedAccessTokenServer) List

func (UnimplementedAccessTokenServer) Revoke

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.

Jump to

Keyboard shortcuts

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