810 lines
29 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// source: token.proto
package api
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type TokenReuse int32
const (
// REUSE_NEVER means the token can never be re-used.
// This mode only makes sense when providing a token in response to a request.
TokenReuse_REUSE_NEVER TokenReuse = 0
// REUSE_EXACTLY means the token can only be reused when the requested scopes
// exactly match those of the token.
TokenReuse_REUSE_EXACTLY TokenReuse = 1
// REUSE_WHEN_POSSIBLE means the token can be reused when the requested scopes
// are a subset of the token's scopes.
TokenReuse_REUSE_WHEN_POSSIBLE TokenReuse = 2
)
var TokenReuse_name = map[int32]string{
0: "REUSE_NEVER",
1: "REUSE_EXACTLY",
2: "REUSE_WHEN_POSSIBLE",
}
var TokenReuse_value = map[string]int32{
"REUSE_NEVER": 0,
"REUSE_EXACTLY": 1,
"REUSE_WHEN_POSSIBLE": 2,
}
func (x TokenReuse) String() string {
return proto.EnumName(TokenReuse_name, int32(x))
}
func (TokenReuse) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_3aff0bcd502840ab, []int{0}
}
type GetTokenRequest struct {
Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
Scope []string `protobuf:"bytes,2,rep,name=scope,proto3" json:"scope,omitempty"`
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetTokenRequest) Reset() { *m = GetTokenRequest{} }
func (m *GetTokenRequest) String() string { return proto.CompactTextString(m) }
func (*GetTokenRequest) ProtoMessage() {}
func (*GetTokenRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_3aff0bcd502840ab, []int{0}
}
func (m *GetTokenRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetTokenRequest.Unmarshal(m, b)
}
func (m *GetTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetTokenRequest.Marshal(b, m, deterministic)
}
func (m *GetTokenRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetTokenRequest.Merge(m, src)
}
func (m *GetTokenRequest) XXX_Size() int {
return xxx_messageInfo_GetTokenRequest.Size(m)
}
func (m *GetTokenRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetTokenRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetTokenRequest proto.InternalMessageInfo
func (m *GetTokenRequest) GetHost() string {
if m != nil {
return m.Host
}
return ""
}
func (m *GetTokenRequest) GetScope() []string {
if m != nil {
return m.Scope
}
return nil
}
func (m *GetTokenRequest) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
type GetTokenResponse struct {
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetTokenResponse) Reset() { *m = GetTokenResponse{} }
func (m *GetTokenResponse) String() string { return proto.CompactTextString(m) }
func (*GetTokenResponse) ProtoMessage() {}
func (*GetTokenResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_3aff0bcd502840ab, []int{1}
}
func (m *GetTokenResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetTokenResponse.Unmarshal(m, b)
}
func (m *GetTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetTokenResponse.Marshal(b, m, deterministic)
}
func (m *GetTokenResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetTokenResponse.Merge(m, src)
}
func (m *GetTokenResponse) XXX_Size() int {
return xxx_messageInfo_GetTokenResponse.Size(m)
}
func (m *GetTokenResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetTokenResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetTokenResponse proto.InternalMessageInfo
func (m *GetTokenResponse) GetToken() string {
if m != nil {
return m.Token
}
return ""
}
type SetTokenRequest struct {
Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
Scope []string `protobuf:"bytes,2,rep,name=scope,proto3" json:"scope,omitempty"`
Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"`
ExpiryDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=expiry_date,json=expiryDate,proto3" json:"expiry_date,omitempty"`
Reuse TokenReuse `protobuf:"varint,5,opt,name=reuse,proto3,enum=supervisor.TokenReuse" json:"reuse,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SetTokenRequest) Reset() { *m = SetTokenRequest{} }
func (m *SetTokenRequest) String() string { return proto.CompactTextString(m) }
func (*SetTokenRequest) ProtoMessage() {}
func (*SetTokenRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_3aff0bcd502840ab, []int{2}
}
func (m *SetTokenRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SetTokenRequest.Unmarshal(m, b)
}
func (m *SetTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SetTokenRequest.Marshal(b, m, deterministic)
}
func (m *SetTokenRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SetTokenRequest.Merge(m, src)
}
func (m *SetTokenRequest) XXX_Size() int {
return xxx_messageInfo_SetTokenRequest.Size(m)
}
func (m *SetTokenRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SetTokenRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SetTokenRequest proto.InternalMessageInfo
func (m *SetTokenRequest) GetHost() string {
if m != nil {
return m.Host
}
return ""
}
func (m *SetTokenRequest) GetScope() []string {
if m != nil {
return m.Scope
}
return nil
}
func (m *SetTokenRequest) GetToken() string {
if m != nil {
return m.Token
}
return ""
}
func (m *SetTokenRequest) GetExpiryDate() *timestamp.Timestamp {
if m != nil {
return m.ExpiryDate
}
return nil
}
func (m *SetTokenRequest) GetReuse() TokenReuse {
if m != nil {
return m.Reuse
}
return TokenReuse_REUSE_NEVER
}
type SetTokenResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SetTokenResponse) Reset() { *m = SetTokenResponse{} }
func (m *SetTokenResponse) String() string { return proto.CompactTextString(m) }
func (*SetTokenResponse) ProtoMessage() {}
func (*SetTokenResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_3aff0bcd502840ab, []int{3}
}
func (m *SetTokenResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SetTokenResponse.Unmarshal(m, b)
}
func (m *SetTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SetTokenResponse.Marshal(b, m, deterministic)
}
func (m *SetTokenResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_SetTokenResponse.Merge(m, src)
}
func (m *SetTokenResponse) XXX_Size() int {
return xxx_messageInfo_SetTokenResponse.Size(m)
}
func (m *SetTokenResponse) XXX_DiscardUnknown() {
xxx_messageInfo_SetTokenResponse.DiscardUnknown(m)
}
var xxx_messageInfo_SetTokenResponse proto.InternalMessageInfo
type ClearTokenRequest struct {
// Types that are valid to be assigned to Token:
// *ClearTokenRequest_Value
// *ClearTokenRequest_All
Token isClearTokenRequest_Token `protobuf_oneof:"token"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ClearTokenRequest) Reset() { *m = ClearTokenRequest{} }
func (m *ClearTokenRequest) String() string { return proto.CompactTextString(m) }
func (*ClearTokenRequest) ProtoMessage() {}
func (*ClearTokenRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_3aff0bcd502840ab, []int{4}
}
func (m *ClearTokenRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ClearTokenRequest.Unmarshal(m, b)
}
func (m *ClearTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ClearTokenRequest.Marshal(b, m, deterministic)
}
func (m *ClearTokenRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ClearTokenRequest.Merge(m, src)
}
func (m *ClearTokenRequest) XXX_Size() int {
return xxx_messageInfo_ClearTokenRequest.Size(m)
}
func (m *ClearTokenRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ClearTokenRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ClearTokenRequest proto.InternalMessageInfo
type isClearTokenRequest_Token interface {
isClearTokenRequest_Token()
}
type ClearTokenRequest_Value struct {
Value string `protobuf:"bytes,1,opt,name=value,proto3,oneof"`
}
type ClearTokenRequest_All struct {
All bool `protobuf:"varint,2,opt,name=all,proto3,oneof"`
}
func (*ClearTokenRequest_Value) isClearTokenRequest_Token() {}
func (*ClearTokenRequest_All) isClearTokenRequest_Token() {}
func (m *ClearTokenRequest) GetToken() isClearTokenRequest_Token {
if m != nil {
return m.Token
}
return nil
}
func (m *ClearTokenRequest) GetValue() string {
if x, ok := m.GetToken().(*ClearTokenRequest_Value); ok {
return x.Value
}
return ""
}
func (m *ClearTokenRequest) GetAll() bool {
if x, ok := m.GetToken().(*ClearTokenRequest_All); ok {
return x.All
}
return false
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*ClearTokenRequest) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*ClearTokenRequest_Value)(nil),
(*ClearTokenRequest_All)(nil),
}
}
type ClearTokenResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ClearTokenResponse) Reset() { *m = ClearTokenResponse{} }
func (m *ClearTokenResponse) String() string { return proto.CompactTextString(m) }
func (*ClearTokenResponse) ProtoMessage() {}
func (*ClearTokenResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_3aff0bcd502840ab, []int{5}
}
func (m *ClearTokenResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ClearTokenResponse.Unmarshal(m, b)
}
func (m *ClearTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ClearTokenResponse.Marshal(b, m, deterministic)
}
func (m *ClearTokenResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ClearTokenResponse.Merge(m, src)
}
func (m *ClearTokenResponse) XXX_Size() int {
return xxx_messageInfo_ClearTokenResponse.Size(m)
}
func (m *ClearTokenResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ClearTokenResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ClearTokenResponse proto.InternalMessageInfo
type ProvideTokenRequest struct {
// Types that are valid to be assigned to Message:
// *ProvideTokenRequest_Registration
// *ProvideTokenRequest_Answer
Message isProvideTokenRequest_Message `protobuf_oneof:"message"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ProvideTokenRequest) Reset() { *m = ProvideTokenRequest{} }
func (m *ProvideTokenRequest) String() string { return proto.CompactTextString(m) }
func (*ProvideTokenRequest) ProtoMessage() {}
func (*ProvideTokenRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_3aff0bcd502840ab, []int{6}
}
func (m *ProvideTokenRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ProvideTokenRequest.Unmarshal(m, b)
}
func (m *ProvideTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ProvideTokenRequest.Marshal(b, m, deterministic)
}
func (m *ProvideTokenRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProvideTokenRequest.Merge(m, src)
}
func (m *ProvideTokenRequest) XXX_Size() int {
return xxx_messageInfo_ProvideTokenRequest.Size(m)
}
func (m *ProvideTokenRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ProvideTokenRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ProvideTokenRequest proto.InternalMessageInfo
type isProvideTokenRequest_Message interface {
isProvideTokenRequest_Message()
}
type ProvideTokenRequest_Registration struct {
Registration *ProvideTokenRequest_RegisterProvider `protobuf:"bytes,1,opt,name=registration,proto3,oneof"`
}
type ProvideTokenRequest_Answer struct {
Answer *SetTokenRequest `protobuf:"bytes,2,opt,name=answer,proto3,oneof"`
}
func (*ProvideTokenRequest_Registration) isProvideTokenRequest_Message() {}
func (*ProvideTokenRequest_Answer) isProvideTokenRequest_Message() {}
func (m *ProvideTokenRequest) GetMessage() isProvideTokenRequest_Message {
if m != nil {
return m.Message
}
return nil
}
func (m *ProvideTokenRequest) GetRegistration() *ProvideTokenRequest_RegisterProvider {
if x, ok := m.GetMessage().(*ProvideTokenRequest_Registration); ok {
return x.Registration
}
return nil
}
func (m *ProvideTokenRequest) GetAnswer() *SetTokenRequest {
if x, ok := m.GetMessage().(*ProvideTokenRequest_Answer); ok {
return x.Answer
}
return nil
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*ProvideTokenRequest) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*ProvideTokenRequest_Registration)(nil),
(*ProvideTokenRequest_Answer)(nil),
}
}
type ProvideTokenRequest_RegisterProvider struct {
Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ProvideTokenRequest_RegisterProvider) Reset() { *m = ProvideTokenRequest_RegisterProvider{} }
func (m *ProvideTokenRequest_RegisterProvider) String() string { return proto.CompactTextString(m) }
func (*ProvideTokenRequest_RegisterProvider) ProtoMessage() {}
func (*ProvideTokenRequest_RegisterProvider) Descriptor() ([]byte, []int) {
return fileDescriptor_3aff0bcd502840ab, []int{6, 0}
}
func (m *ProvideTokenRequest_RegisterProvider) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ProvideTokenRequest_RegisterProvider.Unmarshal(m, b)
}
func (m *ProvideTokenRequest_RegisterProvider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ProvideTokenRequest_RegisterProvider.Marshal(b, m, deterministic)
}
func (m *ProvideTokenRequest_RegisterProvider) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProvideTokenRequest_RegisterProvider.Merge(m, src)
}
func (m *ProvideTokenRequest_RegisterProvider) XXX_Size() int {
return xxx_messageInfo_ProvideTokenRequest_RegisterProvider.Size(m)
}
func (m *ProvideTokenRequest_RegisterProvider) XXX_DiscardUnknown() {
xxx_messageInfo_ProvideTokenRequest_RegisterProvider.DiscardUnknown(m)
}
var xxx_messageInfo_ProvideTokenRequest_RegisterProvider proto.InternalMessageInfo
func (m *ProvideTokenRequest_RegisterProvider) GetHost() string {
if m != nil {
return m.Host
}
return ""
}
type ProvideTokenResponse struct {
Request *GetTokenRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ProvideTokenResponse) Reset() { *m = ProvideTokenResponse{} }
func (m *ProvideTokenResponse) String() string { return proto.CompactTextString(m) }
func (*ProvideTokenResponse) ProtoMessage() {}
func (*ProvideTokenResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_3aff0bcd502840ab, []int{7}
}
func (m *ProvideTokenResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ProvideTokenResponse.Unmarshal(m, b)
}
func (m *ProvideTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ProvideTokenResponse.Marshal(b, m, deterministic)
}
func (m *ProvideTokenResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProvideTokenResponse.Merge(m, src)
}
func (m *ProvideTokenResponse) XXX_Size() int {
return xxx_messageInfo_ProvideTokenResponse.Size(m)
}
func (m *ProvideTokenResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ProvideTokenResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ProvideTokenResponse proto.InternalMessageInfo
func (m *ProvideTokenResponse) GetRequest() *GetTokenRequest {
if m != nil {
return m.Request
}
return nil
}
func init() {
proto.RegisterEnum("supervisor.TokenReuse", TokenReuse_name, TokenReuse_value)
proto.RegisterType((*GetTokenRequest)(nil), "supervisor.GetTokenRequest")
proto.RegisterType((*GetTokenResponse)(nil), "supervisor.GetTokenResponse")
proto.RegisterType((*SetTokenRequest)(nil), "supervisor.SetTokenRequest")
proto.RegisterType((*SetTokenResponse)(nil), "supervisor.SetTokenResponse")
proto.RegisterType((*ClearTokenRequest)(nil), "supervisor.ClearTokenRequest")
proto.RegisterType((*ClearTokenResponse)(nil), "supervisor.ClearTokenResponse")
proto.RegisterType((*ProvideTokenRequest)(nil), "supervisor.ProvideTokenRequest")
proto.RegisterType((*ProvideTokenRequest_RegisterProvider)(nil), "supervisor.ProvideTokenRequest.RegisterProvider")
proto.RegisterType((*ProvideTokenResponse)(nil), "supervisor.ProvideTokenResponse")
}
func init() {
proto.RegisterFile("token.proto", fileDescriptor_3aff0bcd502840ab)
}
var fileDescriptor_3aff0bcd502840ab = []byte{
// 643 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x53, 0xcf, 0x6e, 0xd3, 0x4e,
0x10, 0x8e, 0x93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0x0b, 0x54,
0xd2, 0xec, 0xfd, 0x13, 0xa3, 0xbe, 0x3e, 0x7c, 0x6c, 0xa7, 0xad, 0x0e, 0x0d, 0x43, 0xe7, 0x92,
0x86, 0xe1, 0x23, 0xc1, 0x12, 0xec, 0x93, 0x63, 0x98, 0x2f, 0x5a, 0x80, 0x6c, 0xfc, 0xc5, 0xbe,
0xba, 0x71, 0x7d, 0x41, 0x3e, 0x4f, 0xc9, 0x52, 0x36, 0x95, 0x66, 0xf5, 0xa4, 0x42, 0xe3, 0xe0,
0x6c, 0x5a, 0xfe, 0xfe, 0x0f, 0x7e, 0x07, 0x00, 0x00, 0xff, 0xff, 0xc7, 0x12, 0xe8, 0x9a, 0x59,
0x05, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion6
// TokenServiceClient is the client API for TokenService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type TokenServiceClient interface {
GetToken(ctx context.Context, in *GetTokenRequest, opts ...grpc.CallOption) (*GetTokenResponse, error)
SetToken(ctx context.Context, in *SetTokenRequest, opts ...grpc.CallOption) (*SetTokenResponse, error)
ClearToken(ctx context.Context, in *ClearTokenRequest, opts ...grpc.CallOption) (*ClearTokenResponse, error)
ProvideToken(ctx context.Context, opts ...grpc.CallOption) (TokenService_ProvideTokenClient, error)
}
type tokenServiceClient struct {
cc grpc.ClientConnInterface
}
func NewTokenServiceClient(cc grpc.ClientConnInterface) TokenServiceClient {
return &tokenServiceClient{cc}
}
func (c *tokenServiceClient) GetToken(ctx context.Context, in *GetTokenRequest, opts ...grpc.CallOption) (*GetTokenResponse, error) {
out := new(GetTokenResponse)
err := c.cc.Invoke(ctx, "/supervisor.TokenService/GetToken", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *tokenServiceClient) SetToken(ctx context.Context, in *SetTokenRequest, opts ...grpc.CallOption) (*SetTokenResponse, error) {
out := new(SetTokenResponse)
err := c.cc.Invoke(ctx, "/supervisor.TokenService/SetToken", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *tokenServiceClient) ClearToken(ctx context.Context, in *ClearTokenRequest, opts ...grpc.CallOption) (*ClearTokenResponse, error) {
out := new(ClearTokenResponse)
err := c.cc.Invoke(ctx, "/supervisor.TokenService/ClearToken", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *tokenServiceClient) ProvideToken(ctx context.Context, opts ...grpc.CallOption) (TokenService_ProvideTokenClient, error) {
stream, err := c.cc.NewStream(ctx, &_TokenService_serviceDesc.Streams[0], "/supervisor.TokenService/ProvideToken", opts...)
if err != nil {
return nil, err
}
x := &tokenServiceProvideTokenClient{stream}
return x, nil
}
type TokenService_ProvideTokenClient interface {
Send(*ProvideTokenRequest) error
Recv() (*ProvideTokenResponse, error)
grpc.ClientStream
}
type tokenServiceProvideTokenClient struct {
grpc.ClientStream
}
func (x *tokenServiceProvideTokenClient) Send(m *ProvideTokenRequest) error {
return x.ClientStream.SendMsg(m)
}
func (x *tokenServiceProvideTokenClient) Recv() (*ProvideTokenResponse, error) {
m := new(ProvideTokenResponse)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
// TokenServiceServer is the server API for TokenService service.
type TokenServiceServer interface {
GetToken(context.Context, *GetTokenRequest) (*GetTokenResponse, error)
SetToken(context.Context, *SetTokenRequest) (*SetTokenResponse, error)
ClearToken(context.Context, *ClearTokenRequest) (*ClearTokenResponse, error)
ProvideToken(TokenService_ProvideTokenServer) error
}
// UnimplementedTokenServiceServer can be embedded to have forward compatible implementations.
type UnimplementedTokenServiceServer struct {
}
func (*UnimplementedTokenServiceServer) GetToken(ctx context.Context, req *GetTokenRequest) (*GetTokenResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetToken not implemented")
}
func (*UnimplementedTokenServiceServer) SetToken(ctx context.Context, req *SetTokenRequest) (*SetTokenResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SetToken not implemented")
}
func (*UnimplementedTokenServiceServer) ClearToken(ctx context.Context, req *ClearTokenRequest) (*ClearTokenResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ClearToken not implemented")
}
func (*UnimplementedTokenServiceServer) ProvideToken(srv TokenService_ProvideTokenServer) error {
return status.Errorf(codes.Unimplemented, "method ProvideToken not implemented")
}
func RegisterTokenServiceServer(s *grpc.Server, srv TokenServiceServer) {
s.RegisterService(&_TokenService_serviceDesc, srv)
}
func _TokenService_GetToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetTokenRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(TokenServiceServer).GetToken(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/supervisor.TokenService/GetToken",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(TokenServiceServer).GetToken(ctx, req.(*GetTokenRequest))
}
return interceptor(ctx, in, info, handler)
}
func _TokenService_SetToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SetTokenRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(TokenServiceServer).SetToken(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/supervisor.TokenService/SetToken",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(TokenServiceServer).SetToken(ctx, req.(*SetTokenRequest))
}
return interceptor(ctx, in, info, handler)
}
func _TokenService_ClearToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ClearTokenRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(TokenServiceServer).ClearToken(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/supervisor.TokenService/ClearToken",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(TokenServiceServer).ClearToken(ctx, req.(*ClearTokenRequest))
}
return interceptor(ctx, in, info, handler)
}
func _TokenService_ProvideToken_Handler(srv interface{}, stream grpc.ServerStream) error {
return srv.(TokenServiceServer).ProvideToken(&tokenServiceProvideTokenServer{stream})
}
type TokenService_ProvideTokenServer interface {
Send(*ProvideTokenResponse) error
Recv() (*ProvideTokenRequest, error)
grpc.ServerStream
}
type tokenServiceProvideTokenServer struct {
grpc.ServerStream
}
func (x *tokenServiceProvideTokenServer) Send(m *ProvideTokenResponse) error {
return x.ServerStream.SendMsg(m)
}
func (x *tokenServiceProvideTokenServer) Recv() (*ProvideTokenRequest, error) {
m := new(ProvideTokenRequest)
if err := x.ServerStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
var _TokenService_serviceDesc = grpc.ServiceDesc{
ServiceName: "supervisor.TokenService",
HandlerType: (*TokenServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetToken",
Handler: _TokenService_GetToken_Handler,
},
{
MethodName: "SetToken",
Handler: _TokenService_SetToken_Handler,
},
{
MethodName: "ClearToken",
Handler: _TokenService_ClearToken_Handler,
},
},
Streams: []grpc.StreamDesc{
{
StreamName: "ProvideToken",
Handler: _TokenService_ProvideToken_Handler,
ServerStreams: true,
ClientStreams: true,
},
},
Metadata: "token.proto",
}