Documentation ¶
Index ¶
- Variables
- func NewServer() *server
- func RegisterAskPassServiceServer(s *grpc.Server, srv AskPassServiceServer)
- type AskPassServiceClient
- type AskPassServiceServer
- type CredentialsRequest
- func (*CredentialsRequest) Descriptor() ([]byte, []int)
- func (m *CredentialsRequest) GetNonce() string
- func (m *CredentialsRequest) Marshal() (dAtA []byte, err error)
- func (m *CredentialsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *CredentialsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CredentialsRequest) ProtoMessage()
- func (m *CredentialsRequest) Reset()
- func (m *CredentialsRequest) Size() (n int)
- func (m *CredentialsRequest) String() string
- func (m *CredentialsRequest) Unmarshal(dAtA []byte) error
- func (m *CredentialsRequest) XXX_DiscardUnknown()
- func (m *CredentialsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CredentialsRequest) XXX_Merge(src proto.Message)
- func (m *CredentialsRequest) XXX_Size() int
- func (m *CredentialsRequest) XXX_Unmarshal(b []byte) error
- type CredentialsResponse
- func (*CredentialsResponse) Descriptor() ([]byte, []int)
- func (m *CredentialsResponse) GetPassword() string
- func (m *CredentialsResponse) GetUsername() string
- func (m *CredentialsResponse) Marshal() (dAtA []byte, err error)
- func (m *CredentialsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *CredentialsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CredentialsResponse) ProtoMessage()
- func (m *CredentialsResponse) Reset()
- func (m *CredentialsResponse) Size() (n int)
- func (m *CredentialsResponse) String() string
- func (m *CredentialsResponse) Unmarshal(dAtA []byte) error
- func (m *CredentialsResponse) XXX_DiscardUnknown()
- func (m *CredentialsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CredentialsResponse) XXX_Merge(src proto.Message)
- func (m *CredentialsResponse) XXX_Size() int
- func (m *CredentialsResponse) XXX_Unmarshal(b []byte) error
- type Creds
- type Server
- type UnimplementedAskPassServiceServer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthAskpass = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowAskpass = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupAskpass = fmt.Errorf("proto: unexpected end of group") )
View Source
var (
SocketPath = "/tmp/reposerver-ask-pass.sock"
)
Functions ¶
func RegisterAskPassServiceServer ¶
func RegisterAskPassServiceServer(s *grpc.Server, srv AskPassServiceServer)
Types ¶
type AskPassServiceClient ¶
type AskPassServiceClient interface {
GetCredentials(ctx context.Context, in *CredentialsRequest, opts ...grpc.CallOption) (*CredentialsResponse, error)
}
AskPassServiceClient is the client API for AskPassService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAskPassServiceClient ¶
func NewAskPassServiceClient(cc *grpc.ClientConn) AskPassServiceClient
type AskPassServiceServer ¶
type AskPassServiceServer interface {
GetCredentials(context.Context, *CredentialsRequest) (*CredentialsResponse, error)
}
AskPassServiceServer is the server API for AskPassService service.
type CredentialsRequest ¶
type CredentialsRequest struct { Nonce string `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CredentialsRequest) Descriptor ¶
func (*CredentialsRequest) Descriptor() ([]byte, []int)
func (*CredentialsRequest) GetNonce ¶
func (m *CredentialsRequest) GetNonce() string
func (*CredentialsRequest) Marshal ¶
func (m *CredentialsRequest) Marshal() (dAtA []byte, err error)
func (*CredentialsRequest) MarshalTo ¶
func (m *CredentialsRequest) MarshalTo(dAtA []byte) (int, error)
func (*CredentialsRequest) MarshalToSizedBuffer ¶
func (m *CredentialsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CredentialsRequest) ProtoMessage ¶
func (*CredentialsRequest) ProtoMessage()
func (*CredentialsRequest) Reset ¶
func (m *CredentialsRequest) Reset()
func (*CredentialsRequest) Size ¶
func (m *CredentialsRequest) Size() (n int)
func (*CredentialsRequest) String ¶
func (m *CredentialsRequest) String() string
func (*CredentialsRequest) Unmarshal ¶
func (m *CredentialsRequest) Unmarshal(dAtA []byte) error
func (*CredentialsRequest) XXX_DiscardUnknown ¶
func (m *CredentialsRequest) XXX_DiscardUnknown()
func (*CredentialsRequest) XXX_Marshal ¶
func (m *CredentialsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CredentialsRequest) XXX_Merge ¶
func (m *CredentialsRequest) XXX_Merge(src proto.Message)
func (*CredentialsRequest) XXX_Size ¶
func (m *CredentialsRequest) XXX_Size() int
func (*CredentialsRequest) XXX_Unmarshal ¶
func (m *CredentialsRequest) XXX_Unmarshal(b []byte) error
type CredentialsResponse ¶
type CredentialsResponse struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CredentialsResponse) Descriptor ¶
func (*CredentialsResponse) Descriptor() ([]byte, []int)
func (*CredentialsResponse) GetPassword ¶
func (m *CredentialsResponse) GetPassword() string
func (*CredentialsResponse) GetUsername ¶
func (m *CredentialsResponse) GetUsername() string
func (*CredentialsResponse) Marshal ¶
func (m *CredentialsResponse) Marshal() (dAtA []byte, err error)
func (*CredentialsResponse) MarshalTo ¶
func (m *CredentialsResponse) MarshalTo(dAtA []byte) (int, error)
func (*CredentialsResponse) MarshalToSizedBuffer ¶
func (m *CredentialsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CredentialsResponse) ProtoMessage ¶
func (*CredentialsResponse) ProtoMessage()
func (*CredentialsResponse) Reset ¶
func (m *CredentialsResponse) Reset()
func (*CredentialsResponse) Size ¶
func (m *CredentialsResponse) Size() (n int)
func (*CredentialsResponse) String ¶
func (m *CredentialsResponse) String() string
func (*CredentialsResponse) Unmarshal ¶
func (m *CredentialsResponse) Unmarshal(dAtA []byte) error
func (*CredentialsResponse) XXX_DiscardUnknown ¶
func (m *CredentialsResponse) XXX_DiscardUnknown()
func (*CredentialsResponse) XXX_Marshal ¶
func (m *CredentialsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CredentialsResponse) XXX_Merge ¶
func (m *CredentialsResponse) XXX_Merge(src proto.Message)
func (*CredentialsResponse) XXX_Size ¶
func (m *CredentialsResponse) XXX_Size() int
func (*CredentialsResponse) XXX_Unmarshal ¶
func (m *CredentialsResponse) XXX_Unmarshal(b []byte) error
type Server ¶
type Server interface { git.CredsStore AskPassServiceServer Run(path string) error }
type UnimplementedAskPassServiceServer ¶
type UnimplementedAskPassServiceServer struct { }
UnimplementedAskPassServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedAskPassServiceServer) GetCredentials ¶
func (*UnimplementedAskPassServiceServer) GetCredentials(ctx context.Context, req *CredentialsRequest) (*CredentialsResponse, error)
Click to show internal directories.
Click to hide internal directories.