git

package
v0.19.7 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2025 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthGit        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGit          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGit = fmt.Errorf("proto: unexpected end of group")
)
View Source
var ErrorInfo_ErrorType_name = map[int32]string{
	0: "UNKNOWN",
	1: "INVALID_REQUEST",
	2: "NOT_FOUND",
	3: "TIMEOUT",
	4: "CREDENTIAL_RETRIEVAL_FAILED",
	5: "CONFIG_RETRIEVAL_FAILED",
}
View Source
var ErrorInfo_ErrorType_value = map[string]int32{
	"UNKNOWN":                     0,
	"INVALID_REQUEST":             1,
	"NOT_FOUND":                   2,
	"TIMEOUT":                     3,
	"CREDENTIAL_RETRIEVAL_FAILED": 4,
	"CONFIG_RETRIEVAL_FAILED":     5,
}

Functions

func RegisterGitServer

func RegisterGitServer(s *grpc.Server, srv GitServer)

Types

type CredentialInfo

type CredentialInfo struct {
	Protocol string `protobuf:"bytes,1,opt,name=protocol,proto3" json:"protocol,omitempty"`
	Host     string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"`
	Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
	Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
}

func (*CredentialInfo) Descriptor

func (*CredentialInfo) Descriptor() ([]byte, []int)

func (*CredentialInfo) Equal

func (this *CredentialInfo) Equal(that interface{}) bool

func (*CredentialInfo) GetHost

func (m *CredentialInfo) GetHost() string

func (*CredentialInfo) GetPassword

func (m *CredentialInfo) GetPassword() string

func (*CredentialInfo) GetProtocol

func (m *CredentialInfo) GetProtocol() string

func (*CredentialInfo) GetUsername

func (m *CredentialInfo) GetUsername() string

func (*CredentialInfo) GoString

func (this *CredentialInfo) GoString() string

func (*CredentialInfo) Marshal

func (m *CredentialInfo) Marshal() (dAtA []byte, err error)

func (*CredentialInfo) MarshalTo

func (m *CredentialInfo) MarshalTo(dAtA []byte) (int, error)

func (*CredentialInfo) MarshalToSizedBuffer

func (m *CredentialInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CredentialInfo) ProtoMessage

func (*CredentialInfo) ProtoMessage()

func (*CredentialInfo) Reset

func (m *CredentialInfo) Reset()

func (*CredentialInfo) Size

func (m *CredentialInfo) Size() (n int)

func (*CredentialInfo) String

func (this *CredentialInfo) String() string

func (*CredentialInfo) Unmarshal

func (m *CredentialInfo) Unmarshal(dAtA []byte) error

func (*CredentialInfo) XXX_DiscardUnknown

func (m *CredentialInfo) XXX_DiscardUnknown()

func (*CredentialInfo) XXX_Marshal

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

func (*CredentialInfo) XXX_Merge

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

func (*CredentialInfo) XXX_Size

func (m *CredentialInfo) XXX_Size() int

func (*CredentialInfo) XXX_Unmarshal

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

type ErrorInfo

type ErrorInfo struct {
	Type    ErrorInfo_ErrorType `protobuf:"varint,1,opt,name=type,proto3,enum=dagger.git.ErrorInfo_ErrorType" json:"type,omitempty"`
	Message string              `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
}

func (*ErrorInfo) Descriptor

func (*ErrorInfo) Descriptor() ([]byte, []int)

func (*ErrorInfo) Equal

func (this *ErrorInfo) Equal(that interface{}) bool

func (*ErrorInfo) GetMessage

func (m *ErrorInfo) GetMessage() string

func (*ErrorInfo) GetType

func (m *ErrorInfo) GetType() ErrorInfo_ErrorType

func (*ErrorInfo) GoString

func (this *ErrorInfo) GoString() string

func (*ErrorInfo) Marshal

func (m *ErrorInfo) Marshal() (dAtA []byte, err error)

func (*ErrorInfo) MarshalTo

func (m *ErrorInfo) MarshalTo(dAtA []byte) (int, error)

func (*ErrorInfo) MarshalToSizedBuffer

func (m *ErrorInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ErrorInfo) ProtoMessage

func (*ErrorInfo) ProtoMessage()

func (*ErrorInfo) Reset

func (m *ErrorInfo) Reset()

func (*ErrorInfo) Size

func (m *ErrorInfo) Size() (n int)

func (*ErrorInfo) String

func (this *ErrorInfo) String() string

func (*ErrorInfo) Unmarshal

func (m *ErrorInfo) Unmarshal(dAtA []byte) error

func (*ErrorInfo) XXX_DiscardUnknown

func (m *ErrorInfo) XXX_DiscardUnknown()

func (*ErrorInfo) XXX_Marshal

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

func (*ErrorInfo) XXX_Merge

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

func (*ErrorInfo) XXX_Size

func (m *ErrorInfo) XXX_Size() int

func (*ErrorInfo) XXX_Unmarshal

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

type ErrorInfo_ErrorType

type ErrorInfo_ErrorType int32
const (
	UNKNOWN                     ErrorInfo_ErrorType = 0
	INVALID_REQUEST             ErrorInfo_ErrorType = 1
	NOT_FOUND                   ErrorInfo_ErrorType = 2
	TIMEOUT                     ErrorInfo_ErrorType = 3
	CREDENTIAL_RETRIEVAL_FAILED ErrorInfo_ErrorType = 4
	CONFIG_RETRIEVAL_FAILED     ErrorInfo_ErrorType = 5
)

func (ErrorInfo_ErrorType) EnumDescriptor

func (ErrorInfo_ErrorType) EnumDescriptor() ([]byte, []int)

func (ErrorInfo_ErrorType) String

func (x ErrorInfo_ErrorType) String() string

type GitAttachable

type GitAttachable struct {
	UnimplementedGitServer
	// contains filtered or unexported fields
}

func NewGitAttachable

func NewGitAttachable(rootCtx context.Context) GitAttachable

func (GitAttachable) GetConfig

GetConfig retrieves Git config using the local Git config system. The function has a timeout of 30 seconds and ensures thread-safe execution.

It follows Git's config protocol and error handling: - If Git fails to list config: CONFIG_RETRIEVAL_FAILED - If the command times out: TIMEOUT - If Git is not installed: NOT_FOUND - If the request is invalid: INVALID_REQUEST

func (GitAttachable) GetCredential

GetCredential retrieves Git credentials for the given request using the local Git credential system. The function has a timeout of 30 seconds and ensures thread-safe execution.

It follows Git's credential helper protocol and error handling: - If Git can't find or execute a helper: CREDENTIAL_RETRIEVAL_FAILED - If a helper returns invalid format or no credentials: Git handles it as a failure (CREDENTIAL_RETRIEVAL_FAILED) - If the command times out: TIMEOUT - If Git is not installed: NOT_FOUND - If the request is invalid: INVALID_REQUEST

func (GitAttachable) Register

func (s GitAttachable) Register(srv *grpc.Server)

type GitAttachableProxy added in v0.19.7

type GitAttachableProxy struct {
	// contains filtered or unexported fields
}

func NewGitAttachableProxy added in v0.19.7

func NewGitAttachableProxy(client GitClient) GitAttachableProxy

func (GitAttachableProxy) GetConfig added in v0.19.7

func (GitAttachableProxy) GetCredential added in v0.19.7

func (GitAttachableProxy) Register added in v0.19.7

func (p GitAttachableProxy) Register(server *grpc.Server)

type GitClient

type GitClient interface {
	GetCredential(ctx context.Context, in *GitCredentialRequest, opts ...grpc.CallOption) (*GitCredentialResponse, error)
	GetConfig(ctx context.Context, in *GitConfigRequest, opts ...grpc.CallOption) (*GitConfigResponse, error)
}

GitClient is the client API for Git service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewGitClient

func NewGitClient(cc *grpc.ClientConn) GitClient

type GitConfig

type GitConfig struct {
	Entries []*GitConfigEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
}

func (*GitConfig) Descriptor

func (*GitConfig) Descriptor() ([]byte, []int)

func (*GitConfig) Equal

func (this *GitConfig) Equal(that interface{}) bool

func (*GitConfig) GetEntries

func (m *GitConfig) GetEntries() []*GitConfigEntry

func (*GitConfig) GoString

func (this *GitConfig) GoString() string

func (*GitConfig) Marshal

func (m *GitConfig) Marshal() (dAtA []byte, err error)

func (*GitConfig) MarshalTo

func (m *GitConfig) MarshalTo(dAtA []byte) (int, error)

func (*GitConfig) MarshalToSizedBuffer

func (m *GitConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GitConfig) ProtoMessage

func (*GitConfig) ProtoMessage()

func (*GitConfig) Reset

func (m *GitConfig) Reset()

func (*GitConfig) Size

func (m *GitConfig) Size() (n int)

func (*GitConfig) String

func (this *GitConfig) String() string

func (*GitConfig) Unmarshal

func (m *GitConfig) Unmarshal(dAtA []byte) error

func (*GitConfig) XXX_DiscardUnknown

func (m *GitConfig) XXX_DiscardUnknown()

func (*GitConfig) XXX_Marshal

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

func (*GitConfig) XXX_Merge

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

func (*GitConfig) XXX_Size

func (m *GitConfig) XXX_Size() int

func (*GitConfig) XXX_Unmarshal

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

type GitConfigEntry

type GitConfigEntry struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
}

func (*GitConfigEntry) Descriptor

func (*GitConfigEntry) Descriptor() ([]byte, []int)

func (*GitConfigEntry) Equal

func (this *GitConfigEntry) Equal(that interface{}) bool

func (*GitConfigEntry) GetKey

func (m *GitConfigEntry) GetKey() string

func (*GitConfigEntry) GetValue

func (m *GitConfigEntry) GetValue() string

func (*GitConfigEntry) GoString

func (this *GitConfigEntry) GoString() string

func (*GitConfigEntry) Marshal

func (m *GitConfigEntry) Marshal() (dAtA []byte, err error)

func (*GitConfigEntry) MarshalTo

func (m *GitConfigEntry) MarshalTo(dAtA []byte) (int, error)

func (*GitConfigEntry) MarshalToSizedBuffer

func (m *GitConfigEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GitConfigEntry) ProtoMessage

func (*GitConfigEntry) ProtoMessage()

func (*GitConfigEntry) Reset

func (m *GitConfigEntry) Reset()

func (*GitConfigEntry) Size

func (m *GitConfigEntry) Size() (n int)

func (*GitConfigEntry) String

func (this *GitConfigEntry) String() string

func (*GitConfigEntry) Unmarshal

func (m *GitConfigEntry) Unmarshal(dAtA []byte) error

func (*GitConfigEntry) XXX_DiscardUnknown

func (m *GitConfigEntry) XXX_DiscardUnknown()

func (*GitConfigEntry) XXX_Marshal

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

func (*GitConfigEntry) XXX_Merge

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

func (*GitConfigEntry) XXX_Size

func (m *GitConfigEntry) XXX_Size() int

func (*GitConfigEntry) XXX_Unmarshal

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

type GitConfigRequest

type GitConfigRequest struct {
}

func (*GitConfigRequest) Descriptor

func (*GitConfigRequest) Descriptor() ([]byte, []int)

func (*GitConfigRequest) Equal

func (this *GitConfigRequest) Equal(that interface{}) bool

func (*GitConfigRequest) GoString

func (this *GitConfigRequest) GoString() string

func (*GitConfigRequest) Marshal

func (m *GitConfigRequest) Marshal() (dAtA []byte, err error)

func (*GitConfigRequest) MarshalTo

func (m *GitConfigRequest) MarshalTo(dAtA []byte) (int, error)

func (*GitConfigRequest) MarshalToSizedBuffer

func (m *GitConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GitConfigRequest) ProtoMessage

func (*GitConfigRequest) ProtoMessage()

func (*GitConfigRequest) Reset

func (m *GitConfigRequest) Reset()

func (*GitConfigRequest) Size

func (m *GitConfigRequest) Size() (n int)

func (*GitConfigRequest) String

func (this *GitConfigRequest) String() string

func (*GitConfigRequest) Unmarshal

func (m *GitConfigRequest) Unmarshal(dAtA []byte) error

func (*GitConfigRequest) XXX_DiscardUnknown

func (m *GitConfigRequest) XXX_DiscardUnknown()

func (*GitConfigRequest) XXX_Marshal

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

func (*GitConfigRequest) XXX_Merge

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

func (*GitConfigRequest) XXX_Size

func (m *GitConfigRequest) XXX_Size() int

func (*GitConfigRequest) XXX_Unmarshal

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

type GitConfigResponse

type GitConfigResponse struct {
	// Types that are valid to be assigned to Result:
	//
	//	*GitConfigResponse_Config
	//	*GitConfigResponse_Error
	Result isGitConfigResponse_Result `protobuf_oneof:"result"`
}

func (*GitConfigResponse) Descriptor

func (*GitConfigResponse) Descriptor() ([]byte, []int)

func (*GitConfigResponse) Equal

func (this *GitConfigResponse) Equal(that interface{}) bool

func (*GitConfigResponse) GetConfig

func (m *GitConfigResponse) GetConfig() *GitConfig

func (*GitConfigResponse) GetError

func (m *GitConfigResponse) GetError() *ErrorInfo

func (*GitConfigResponse) GetResult

func (m *GitConfigResponse) GetResult() isGitConfigResponse_Result

func (*GitConfigResponse) GoString

func (this *GitConfigResponse) GoString() string

func (*GitConfigResponse) Marshal

func (m *GitConfigResponse) Marshal() (dAtA []byte, err error)

func (*GitConfigResponse) MarshalTo

func (m *GitConfigResponse) MarshalTo(dAtA []byte) (int, error)

func (*GitConfigResponse) MarshalToSizedBuffer

func (m *GitConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GitConfigResponse) ProtoMessage

func (*GitConfigResponse) ProtoMessage()

func (*GitConfigResponse) Reset

func (m *GitConfigResponse) Reset()

func (*GitConfigResponse) Size

func (m *GitConfigResponse) Size() (n int)

func (*GitConfigResponse) String

func (this *GitConfigResponse) String() string

func (*GitConfigResponse) Unmarshal

func (m *GitConfigResponse) Unmarshal(dAtA []byte) error

func (*GitConfigResponse) XXX_DiscardUnknown

func (m *GitConfigResponse) XXX_DiscardUnknown()

func (*GitConfigResponse) XXX_Marshal

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

func (*GitConfigResponse) XXX_Merge

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

func (*GitConfigResponse) XXX_OneofWrappers

func (*GitConfigResponse) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*GitConfigResponse) XXX_Size

func (m *GitConfigResponse) XXX_Size() int

func (*GitConfigResponse) XXX_Unmarshal

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

type GitConfigResponse_Config

type GitConfigResponse_Config struct {
	Config *GitConfig `protobuf:"bytes,1,opt,name=config,proto3,oneof" json:"config,omitempty"`
}

func (*GitConfigResponse_Config) Equal

func (this *GitConfigResponse_Config) Equal(that interface{}) bool

func (*GitConfigResponse_Config) GoString

func (this *GitConfigResponse_Config) GoString() string

func (*GitConfigResponse_Config) MarshalTo

func (m *GitConfigResponse_Config) MarshalTo(dAtA []byte) (int, error)

func (*GitConfigResponse_Config) MarshalToSizedBuffer

func (m *GitConfigResponse_Config) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GitConfigResponse_Config) Size

func (m *GitConfigResponse_Config) Size() (n int)

func (*GitConfigResponse_Config) String

func (this *GitConfigResponse_Config) String() string

type GitConfigResponse_Error

type GitConfigResponse_Error struct {
	Error *ErrorInfo `protobuf:"bytes,2,opt,name=error,proto3,oneof" json:"error,omitempty"`
}

func (*GitConfigResponse_Error) Equal

func (this *GitConfigResponse_Error) Equal(that interface{}) bool

func (*GitConfigResponse_Error) GoString

func (this *GitConfigResponse_Error) GoString() string

func (*GitConfigResponse_Error) MarshalTo

func (m *GitConfigResponse_Error) MarshalTo(dAtA []byte) (int, error)

func (*GitConfigResponse_Error) MarshalToSizedBuffer

func (m *GitConfigResponse_Error) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GitConfigResponse_Error) Size

func (m *GitConfigResponse_Error) Size() (n int)

func (*GitConfigResponse_Error) String

func (this *GitConfigResponse_Error) String() string

type GitCredentialRequest

type GitCredentialRequest struct {
	Protocol string `protobuf:"bytes,1,opt,name=protocol,proto3" json:"protocol,omitempty"`
	Host     string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"`
	Path     string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
}

func (*GitCredentialRequest) Descriptor

func (*GitCredentialRequest) Descriptor() ([]byte, []int)

func (*GitCredentialRequest) Equal

func (this *GitCredentialRequest) Equal(that interface{}) bool

func (*GitCredentialRequest) GetHost

func (m *GitCredentialRequest) GetHost() string

func (*GitCredentialRequest) GetPath

func (m *GitCredentialRequest) GetPath() string

func (*GitCredentialRequest) GetProtocol

func (m *GitCredentialRequest) GetProtocol() string

func (*GitCredentialRequest) GoString

func (this *GitCredentialRequest) GoString() string

func (*GitCredentialRequest) Marshal

func (m *GitCredentialRequest) Marshal() (dAtA []byte, err error)

func (*GitCredentialRequest) MarshalTo

func (m *GitCredentialRequest) MarshalTo(dAtA []byte) (int, error)

func (*GitCredentialRequest) MarshalToSizedBuffer

func (m *GitCredentialRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GitCredentialRequest) ProtoMessage

func (*GitCredentialRequest) ProtoMessage()

func (*GitCredentialRequest) Reset

func (m *GitCredentialRequest) Reset()

func (*GitCredentialRequest) Size

func (m *GitCredentialRequest) Size() (n int)

func (*GitCredentialRequest) String

func (this *GitCredentialRequest) String() string

func (*GitCredentialRequest) Unmarshal

func (m *GitCredentialRequest) Unmarshal(dAtA []byte) error

func (*GitCredentialRequest) XXX_DiscardUnknown

func (m *GitCredentialRequest) XXX_DiscardUnknown()

func (*GitCredentialRequest) XXX_Marshal

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

func (*GitCredentialRequest) XXX_Merge

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

func (*GitCredentialRequest) XXX_Size

func (m *GitCredentialRequest) XXX_Size() int

func (*GitCredentialRequest) XXX_Unmarshal

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

type GitCredentialResponse

type GitCredentialResponse struct {
	// Types that are valid to be assigned to Result:
	//
	//	*GitCredentialResponse_Credential
	//	*GitCredentialResponse_Error
	Result isGitCredentialResponse_Result `protobuf_oneof:"result"`
}

func (*GitCredentialResponse) Descriptor

func (*GitCredentialResponse) Descriptor() ([]byte, []int)

func (*GitCredentialResponse) Equal

func (this *GitCredentialResponse) Equal(that interface{}) bool

func (*GitCredentialResponse) GetCredential

func (m *GitCredentialResponse) GetCredential() *CredentialInfo

func (*GitCredentialResponse) GetError

func (m *GitCredentialResponse) GetError() *ErrorInfo

func (*GitCredentialResponse) GetResult

func (m *GitCredentialResponse) GetResult() isGitCredentialResponse_Result

func (*GitCredentialResponse) GoString

func (this *GitCredentialResponse) GoString() string

func (*GitCredentialResponse) Marshal

func (m *GitCredentialResponse) Marshal() (dAtA []byte, err error)

func (*GitCredentialResponse) MarshalTo

func (m *GitCredentialResponse) MarshalTo(dAtA []byte) (int, error)

func (*GitCredentialResponse) MarshalToSizedBuffer

func (m *GitCredentialResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GitCredentialResponse) ProtoMessage

func (*GitCredentialResponse) ProtoMessage()

func (*GitCredentialResponse) Reset

func (m *GitCredentialResponse) Reset()

func (*GitCredentialResponse) Size

func (m *GitCredentialResponse) Size() (n int)

func (*GitCredentialResponse) String

func (this *GitCredentialResponse) String() string

func (*GitCredentialResponse) Unmarshal

func (m *GitCredentialResponse) Unmarshal(dAtA []byte) error

func (*GitCredentialResponse) XXX_DiscardUnknown

func (m *GitCredentialResponse) XXX_DiscardUnknown()

func (*GitCredentialResponse) XXX_Marshal

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

func (*GitCredentialResponse) XXX_Merge

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

func (*GitCredentialResponse) XXX_OneofWrappers

func (*GitCredentialResponse) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*GitCredentialResponse) XXX_Size

func (m *GitCredentialResponse) XXX_Size() int

func (*GitCredentialResponse) XXX_Unmarshal

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

type GitCredentialResponse_Credential

type GitCredentialResponse_Credential struct {
	Credential *CredentialInfo `protobuf:"bytes,1,opt,name=credential,proto3,oneof" json:"credential,omitempty"`
}

func (*GitCredentialResponse_Credential) Equal

func (this *GitCredentialResponse_Credential) Equal(that interface{}) bool

func (*GitCredentialResponse_Credential) GoString

func (this *GitCredentialResponse_Credential) GoString() string

func (*GitCredentialResponse_Credential) MarshalTo

func (m *GitCredentialResponse_Credential) MarshalTo(dAtA []byte) (int, error)

func (*GitCredentialResponse_Credential) MarshalToSizedBuffer

func (m *GitCredentialResponse_Credential) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GitCredentialResponse_Credential) Size

func (m *GitCredentialResponse_Credential) Size() (n int)

func (*GitCredentialResponse_Credential) String

type GitCredentialResponse_Error

type GitCredentialResponse_Error struct {
	Error *ErrorInfo `protobuf:"bytes,2,opt,name=error,proto3,oneof" json:"error,omitempty"`
}

func (*GitCredentialResponse_Error) Equal

func (this *GitCredentialResponse_Error) Equal(that interface{}) bool

func (*GitCredentialResponse_Error) GoString

func (this *GitCredentialResponse_Error) GoString() string

func (*GitCredentialResponse_Error) MarshalTo

func (m *GitCredentialResponse_Error) MarshalTo(dAtA []byte) (int, error)

func (*GitCredentialResponse_Error) MarshalToSizedBuffer

func (m *GitCredentialResponse_Error) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GitCredentialResponse_Error) Size

func (m *GitCredentialResponse_Error) Size() (n int)

func (*GitCredentialResponse_Error) String

func (this *GitCredentialResponse_Error) String() string

type GitServer

type GitServer interface {
	GetCredential(context.Context, *GitCredentialRequest) (*GitCredentialResponse, error)
	GetConfig(context.Context, *GitConfigRequest) (*GitConfigResponse, error)
}

GitServer is the server API for Git service.

type UnimplementedGitServer

type UnimplementedGitServer struct {
}

UnimplementedGitServer can be embedded to have forward compatible implementations.

func (*UnimplementedGitServer) GetConfig

func (*UnimplementedGitServer) GetCredential

Jump to

Keyboard shortcuts

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