Documentation
¶
Index ¶
- func RegisterAuthServer(s *grpc.Server, srv AuthServer)
- type AuthClient
- type AuthServer
- type OAuthChallengeRequest
- func (*OAuthChallengeRequest) Descriptor() ([]byte, []int)
- func (m *OAuthChallengeRequest) GetCode() string
- func (m *OAuthChallengeRequest) GetState() string
- func (*OAuthChallengeRequest) ProtoMessage()
- func (m *OAuthChallengeRequest) Reset()
- func (m *OAuthChallengeRequest) String() string
- func (m *OAuthChallengeRequest) XXX_DiscardUnknown()
- func (m *OAuthChallengeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OAuthChallengeRequest) XXX_Merge(src proto.Message)
- func (m *OAuthChallengeRequest) XXX_Size() int
- func (m *OAuthChallengeRequest) XXX_Unmarshal(b []byte) error
- type OAuthInfo
- func (*OAuthInfo) Descriptor() ([]byte, []int)
- func (m *OAuthInfo) GetRedirect() bool
- func (m *OAuthInfo) GetUrl() string
- func (m *OAuthInfo) GetUsername() string
- func (*OAuthInfo) ProtoMessage()
- func (m *OAuthInfo) Reset()
- func (m *OAuthInfo) String() string
- func (m *OAuthInfo) XXX_DiscardUnknown()
- func (m *OAuthInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OAuthInfo) XXX_Merge(src proto.Message)
- func (m *OAuthInfo) XXX_Size() int
- func (m *OAuthInfo) XXX_Unmarshal(b []byte) error
- type Scopes
- func (*Scopes) Descriptor() ([]byte, []int)
- func (m *Scopes) GetList() []string
- func (*Scopes) ProtoMessage()
- func (m *Scopes) Reset()
- func (m *Scopes) String() string
- func (m *Scopes) XXX_DiscardUnknown()
- func (m *Scopes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Scopes) XXX_Merge(src proto.Message)
- func (m *Scopes) XXX_Size() int
- func (m *Scopes) XXX_Unmarshal(b []byte) error
- type String
- func (*String) Descriptor() ([]byte, []int)
- func (m *String) GetStr() string
- func (*String) ProtoMessage()
- func (m *String) Reset()
- func (m *String) String() string
- func (m *String) XXX_DiscardUnknown()
- func (m *String) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *String) XXX_Merge(src proto.Message)
- func (m *String) XXX_Size() int
- func (m *String) XXX_Unmarshal(b []byte) error
- type StringList
- func (*StringList) Descriptor() ([]byte, []int)
- func (m *StringList) GetList() []string
- func (*StringList) ProtoMessage()
- func (m *StringList) Reset()
- func (m *StringList) String() string
- func (m *StringList) XXX_DiscardUnknown()
- func (m *StringList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StringList) XXX_Merge(src proto.Message)
- func (m *StringList) XXX_Size() int
- func (m *StringList) XXX_Unmarshal(b []byte) error
- type UnimplementedAuthServer
- func (*UnimplementedAuthServer) Capabilities(ctx context.Context, req *empty.Empty) (*StringList, error)
- func (*UnimplementedAuthServer) GetOAuthURL(ctx context.Context, req *Scopes) (*String, error)
- func (*UnimplementedAuthServer) OAuthChallenge(ctx context.Context, req *OAuthChallengeRequest) (*OAuthInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAuthServer ¶
func RegisterAuthServer(s *grpc.Server, srv AuthServer)
Types ¶
type AuthClient ¶
type AuthClient interface {
Capabilities(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*StringList, error)
OAuthChallenge(ctx context.Context, in *OAuthChallengeRequest, opts ...grpc.CallOption) (*OAuthInfo, error)
GetOAuthURL(ctx context.Context, in *Scopes, opts ...grpc.CallOption) (*String, error)
}
AuthClient is the client API for Auth service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAuthClient ¶
func NewAuthClient(cc *grpc.ClientConn) AuthClient
type AuthServer ¶
type AuthServer interface {
Capabilities(context.Context, *empty.Empty) (*StringList, error)
OAuthChallenge(context.Context, *OAuthChallengeRequest) (*OAuthInfo, error)
GetOAuthURL(context.Context, *Scopes) (*String, error)
}
AuthServer is the server API for Auth service.
type OAuthChallengeRequest ¶
type OAuthChallengeRequest struct {
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
State string `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*OAuthChallengeRequest) Descriptor ¶
func (*OAuthChallengeRequest) Descriptor() ([]byte, []int)
func (*OAuthChallengeRequest) GetCode ¶
func (m *OAuthChallengeRequest) GetCode() string
func (*OAuthChallengeRequest) GetState ¶
func (m *OAuthChallengeRequest) GetState() string
func (*OAuthChallengeRequest) ProtoMessage ¶
func (*OAuthChallengeRequest) ProtoMessage()
func (*OAuthChallengeRequest) Reset ¶
func (m *OAuthChallengeRequest) Reset()
func (*OAuthChallengeRequest) String ¶
func (m *OAuthChallengeRequest) String() string
func (*OAuthChallengeRequest) XXX_DiscardUnknown ¶
func (m *OAuthChallengeRequest) XXX_DiscardUnknown()
func (*OAuthChallengeRequest) XXX_Marshal ¶
func (m *OAuthChallengeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OAuthChallengeRequest) XXX_Merge ¶
func (m *OAuthChallengeRequest) XXX_Merge(src proto.Message)
func (*OAuthChallengeRequest) XXX_Size ¶
func (m *OAuthChallengeRequest) XXX_Size() int
func (*OAuthChallengeRequest) XXX_Unmarshal ¶
func (m *OAuthChallengeRequest) XXX_Unmarshal(b []byte) error
type OAuthInfo ¶
type OAuthInfo struct {
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
Redirect bool `protobuf:"varint,3,opt,name=redirect,proto3" json:"redirect,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*OAuthInfo) Descriptor ¶
func (*OAuthInfo) GetRedirect ¶
func (*OAuthInfo) GetUsername ¶
func (*OAuthInfo) ProtoMessage ¶
func (*OAuthInfo) ProtoMessage()
func (*OAuthInfo) XXX_DiscardUnknown ¶
func (m *OAuthInfo) XXX_DiscardUnknown()
func (*OAuthInfo) XXX_Marshal ¶
func (*OAuthInfo) XXX_Unmarshal ¶
type Scopes ¶
type Scopes struct {
List []string `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Scopes) Descriptor ¶
func (*Scopes) ProtoMessage ¶
func (*Scopes) ProtoMessage()
func (*Scopes) XXX_DiscardUnknown ¶
func (m *Scopes) XXX_DiscardUnknown()
func (*Scopes) XXX_Marshal ¶
func (*Scopes) XXX_Unmarshal ¶
type String ¶
type String struct {
Str string `protobuf:"bytes,1,opt,name=str,proto3" json:"str,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*String) Descriptor ¶
func (*String) ProtoMessage ¶
func (*String) ProtoMessage()
func (*String) XXX_DiscardUnknown ¶
func (m *String) XXX_DiscardUnknown()
func (*String) XXX_Marshal ¶
func (*String) XXX_Unmarshal ¶
type StringList ¶
type StringList struct {
List []string `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*StringList) Descriptor ¶
func (*StringList) Descriptor() ([]byte, []int)
func (*StringList) GetList ¶
func (m *StringList) GetList() []string
func (*StringList) ProtoMessage ¶
func (*StringList) ProtoMessage()
func (*StringList) Reset ¶
func (m *StringList) Reset()
func (*StringList) String ¶
func (m *StringList) String() string
func (*StringList) XXX_DiscardUnknown ¶
func (m *StringList) XXX_DiscardUnknown()
func (*StringList) XXX_Marshal ¶
func (m *StringList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StringList) XXX_Merge ¶
func (m *StringList) XXX_Merge(src proto.Message)
func (*StringList) XXX_Size ¶
func (m *StringList) XXX_Size() int
func (*StringList) XXX_Unmarshal ¶
func (m *StringList) XXX_Unmarshal(b []byte) error
type UnimplementedAuthServer ¶
type UnimplementedAuthServer struct {
}
UnimplementedAuthServer can be embedded to have forward compatible implementations.
func (*UnimplementedAuthServer) Capabilities ¶
func (*UnimplementedAuthServer) Capabilities(ctx context.Context, req *empty.Empty) (*StringList, error)
func (*UnimplementedAuthServer) GetOAuthURL ¶
func (*UnimplementedAuthServer) OAuthChallenge ¶
func (*UnimplementedAuthServer) OAuthChallenge(ctx context.Context, req *OAuthChallengeRequest) (*OAuthInfo, error)
Click to show internal directories.
Click to hide internal directories.