util

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: MIT Imports: 8 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)

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