kernel

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSshSession  = errors.New("err ssh session")
	ErrSshConnect  = errors.New("err ssh connect")
	ErrTypeConnect = errors.New("err type connect")
)
View Source
var (
	ErrConnectionByAliasExistsAtCreate = errors.New("connection by alias exists")
	ErrDeletePrivateKeyAtCreate        = errors.New("err delete private key")
	ErrSavePrivateKeyAtCreate          = errors.New("err save private key")
	ErrGetConnectionAtCreate           = errors.New("err get connection")
	ErrSetConnectionAtCreate           = errors.New("err set connection")
)
View Source
var (
	ErrNotFoundConnectionAtDelete = errors.New("err found connection")
	ErrGetConnectionAtDelete      = errors.New("err get connection")
	ErrSetConnectionAtDelete      = errors.New("err set connection")
)
View Source
var (
	ErrNotFoundConnectionAtUpdate = errors.New("err not found connection")
	ErrSavePrivateKeyAtUpdate     = errors.New("err save private key")
	ErrGetConnectionAtUpdate      = errors.New("err get connection")
	ErrSetConnectionAtUpdate      = errors.New("err set connection")
)
View Source
var ErrGetConnectionAtList = errors.New("err get connections")

Functions

func Connect

func Connect(connection *connect.Connect) error

Connect from connection by type connection

func Create

func Create(connection *connect.Connect) error

Create add connection in file

func Delete

func Delete(connection *connect.Connect) error

Delete remove connection from file

func List

func List() (*connect.Connections, error)

List get list with connections from file

func Update

func Update(connection *connect.Connect, oldAlias string) error

Update change connection by alias

Types

This section is empty.

Jump to

Keyboard shortcuts

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