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

util

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCfgFile

func CreateCfgFile(dataDir, cfgTmpl string, adminKey UserSSH) string

func CreateTmpDir

func CreateTmpDir() string

func GenerateKeys

func GenerateKeys() (UserSSH, UserSSH)

func ParsePRID

func ParsePRID(output string) string

ParsePRID extracts the PR ID from the output of `pr create`. Looks for the URL line: "URL: https://host/prs/123"

Types

type UserSSH

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

func NewUserSSH

func NewUserSSH(username string, signer ssh.Signer) *UserSSH

func (UserSSH) Cmd

func (s UserSSH) Cmd(patch []byte, cmd string) (string, error)

func (UserSSH) MustCmd

func (s UserSSH) MustCmd(patch []byte, cmd string) string

func (UserSSH) Public

func (s UserSSH) Public() string

Jump to

Keyboard shortcuts

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