utils

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const HostConfigRegex = `(?s)(# workspace start {{.Name}}.{{.Namespace}}.workspace)(.*)(# workspace end {{.Name}}.{{.Namespace}}.workspace)`
View Source
const HostConfigTemplate = `` /* 314-byte string literal not displayed */
View Source
View Source
const PrivateKeyFileName = "id_devspace_ecdsa"

Variables

This section is empty.

Functions

func AppendSshConfEntry

func AppendSshConfEntry(name string, namespace string, privateKeyPath string) error

func DeleteSshConfEntry

func DeleteSshConfEntry(name string, namespace string) error

func EnsureConfigFolder

func EnsureConfigFolder(name string, namespace string) error

func NewHostConfig

func NewHostConfig(name string, namespace string, privateKeyPath string) (string, error)

func WritePrivateKey

func WritePrivateKey(name string, namespace string, privateKey []byte) (string, error)

Types

type HostConfig

type HostConfig struct {
	Name           string
	Namespace      string
	Hostname       string
	Port           uint16
	PrivateKeyPath string
	// contains filtered or unexported fields
}

type Terminal

type Terminal struct {
	SizeQueue termSizeQueue
	// contains filtered or unexported fields
}

func NewTerminal

func NewTerminal() (*Terminal, error)

func (*Terminal) Close

func (o *Terminal) Close() error

func (*Terminal) MonitorSize

func (o *Terminal) MonitorSize()

Jump to

Keyboard shortcuts

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