Documentation
¶
Overview ¶
Package githttp provides functionality to handle Git operations over HTTP(S) and SSH, including executing Git commands like git-upload-pack and converting responses to the expected format for SSH protocols. It integrates with GitLab's internal components for secure access verification and data transfer.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PullCommand ¶ added in v14.28.0
type PullCommand struct { Config *config.Config ReadWriter *readwriter.ReadWriter Args *commandargs.Shell Response *accessverifier.Response }
PullCommand handles the execution of a Git pull operation over HTTP(S) or SSH
func (*PullCommand) Execute ¶ added in v14.28.0
func (c *PullCommand) Execute(ctx context.Context) error
Execute runs the pull command by determining the appropriate method (HTTP/SSH)
func (*PullCommand) ForInfoRefs ¶ added in v14.40.0
func (c *PullCommand) ForInfoRefs() (*readwriter.ReadWriter, string, []byte)
ForInfoRefs returns the necessary Pull specifics for client.InfoRefs()
type PushCommand ¶
type PushCommand struct { Config *config.Config ReadWriter *readwriter.ReadWriter Response *accessverifier.Response Args *commandargs.Shell }
PushCommand handles the execution of a Git push operation, including configuration, input/output handling, and access verification.
func (*PushCommand) Execute ¶
func (c *PushCommand) Execute(ctx context.Context) error
Execute runs the push command by determining the appropriate method (HTTP/SSH)
func (*PushCommand) ForInfoRefs ¶ added in v14.40.0
func (c *PushCommand) ForInfoRefs() (*readwriter.ReadWriter, string, []byte)
ForInfoRefs returns the necessary Push specifics for client.InfoRefs()