auth

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: MPL-2.0-no-copyleft-exception, MIT Imports: 8 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*OAuthInfo) GetRedirect

func (m *OAuthInfo) GetRedirect() bool

func (*OAuthInfo) GetUrl

func (m *OAuthInfo) GetUrl() string

func (*OAuthInfo) GetUsername

func (m *OAuthInfo) GetUsername() string

func (*OAuthInfo) ProtoMessage

func (*OAuthInfo) ProtoMessage()

func (*OAuthInfo) Reset

func (m *OAuthInfo) Reset()

func (*OAuthInfo) String

func (m *OAuthInfo) String() string

func (*OAuthInfo) XXX_DiscardUnknown

func (m *OAuthInfo) XXX_DiscardUnknown()

func (*OAuthInfo) XXX_Marshal

func (m *OAuthInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OAuthInfo) XXX_Merge

func (m *OAuthInfo) XXX_Merge(src proto.Message)

func (*OAuthInfo) XXX_Size

func (m *OAuthInfo) XXX_Size() int

func (*OAuthInfo) XXX_Unmarshal

func (m *OAuthInfo) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Scopes) GetList

func (m *Scopes) GetList() []string

func (*Scopes) ProtoMessage

func (*Scopes) ProtoMessage()

func (*Scopes) Reset

func (m *Scopes) Reset()

func (*Scopes) String

func (m *Scopes) String() string

func (*Scopes) XXX_DiscardUnknown

func (m *Scopes) XXX_DiscardUnknown()

func (*Scopes) XXX_Marshal

func (m *Scopes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Scopes) XXX_Merge

func (m *Scopes) XXX_Merge(src proto.Message)

func (*Scopes) XXX_Size

func (m *Scopes) XXX_Size() int

func (*Scopes) XXX_Unmarshal

func (m *Scopes) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*String) GetStr

func (m *String) GetStr() string

func (*String) ProtoMessage

func (*String) ProtoMessage()

func (*String) Reset

func (m *String) Reset()

func (*String) String

func (m *String) String() string

func (*String) XXX_DiscardUnknown

func (m *String) XXX_DiscardUnknown()

func (*String) XXX_Marshal

func (m *String) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*String) XXX_Merge

func (m *String) XXX_Merge(src proto.Message)

func (*String) XXX_Size

func (m *String) XXX_Size() int

func (*String) XXX_Unmarshal

func (m *String) XXX_Unmarshal(b []byte) error

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) GetOAuthURL(ctx context.Context, req *Scopes) (*String, error)

func (*UnimplementedAuthServer) OAuthChallenge

Jump to

Keyboard shortcuts

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