Help us shape the future of Go! Take the 2026 Go Developer Survey

gitpush

package
v0.36.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Overview

Package gitpush implements bounded, non-forcing mirror pushes over git/ssh.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Bin, Path, Home, KnownHosts, TempDir string
	Timeout                              time.Duration
	MaxOutput                            int
	AllowedProtocols                     string
	SSHOptions                           []string
	RepoDir                              func(domain.RepoName) string
}

type Pusher

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

func New

func New(cfg Config) *Pusher

func (*Pusher) Push

func (p *Pusher) Push(parent context.Context, req ports.MirrorPush) (result ports.MirrorPushResult, err error)

Source Files

  • gitpush.go
  • run_linux.go

Jump to

Keyboard shortcuts

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