ssh

package
v15.3.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(
	locator storage.Locator,
	gitCmdFactory git.CommandFactory,
	txManager transaction.Manager,
	serverOpts ...ServerOpt,
) gitalypb.SSHServiceServer

NewServer creates a new instance of a grpc SSHServer

Types

type ServerOpt

type ServerOpt func(s *server)

ServerOpt is a self referential option for server

func WithArchiveRequestTimeout

func WithArchiveRequestTimeout(d time.Duration) ServerOpt

WithArchiveRequestTimeout sets the upload pack request timeout

func WithPackfileNegotiationMetrics

func WithPackfileNegotiationMetrics(c *prometheus.CounterVec) ServerOpt

nolint: revive,stylecheck // This is unintentionally missing documentation.

func WithUploadPackRequestTimeout

func WithUploadPackRequestTimeout(d time.Duration) ServerOpt

WithUploadPackRequestTimeout sets the upload pack request timeout

Jump to

Keyboard shortcuts

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