githttp

package
v14.39.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

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
}

func (*PullCommand) Execute added in v14.28.0

func (c *PullCommand) Execute(ctx context.Context) error

type PushCommand

type PushCommand struct {
	Config     *config.Config
	ReadWriter *readwriter.ReadWriter
	Response   *accessverifier.Response
	Args       *commandargs.Shell
}

func (*PushCommand) Execute

func (c *PushCommand) Execute(ctx context.Context) error

See Uploading Data > HTTP(S) section at: https://git-scm.com/book/en/v2/Git-Internals-Transfer-Protocols

1. Perform /info/refs?service=git-receive-pack request 2. Remove the header to make it consumable by SSH protocol 3. Send the result to the user via SSH (writeToStdout) 4. Read the send-pack data provided by user via SSH (stdinReader) 5. Perform /git-receive-pack request and send this data 6. Return the output to the user

Jump to

Keyboard shortcuts

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