utils

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package utils implements utilities for the pcompose application

Index

Constants

View Source
const (
	// HooksDirName is the directory that contains git hooks.
	HooksDirName = "hooks/"

	// HooksConfigFile is the config file used for hooks.
	HooksConfigFile = "hooks.yml"

	// UploadPackServiceName is the command name for uploading a git pack.
	UploadPackServiceName = "git-upload-pack"

	// ReceivePackServiceName is the command name for receiving a git pack.
	ReceivePackServiceName = "git-receive-pack"
)

Variables

This section is empty.

Functions

func ParseDims

func ParseDims(b []byte) (uint32, uint32)

ParseDims parses dimensions into width and height.

func SetWinSize

func SetWinSize(fd uintptr, w, h uint32)

SetWinSize sends a syscall to change the window size.

Types

type SSHConnHolder

type SSHConnHolder struct {
	MainConn *ssh.ServerConn
	W        uint32
	H        uint32
	Mu       sync.Mutex
	Term     *os.File
}

SSHConnHolder is the ssh connection we hold onto.

Jump to

Keyboard shortcuts

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