ssh

package
v0.35.1 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Copyright (C) 2021-2023, Kubefirst

This program is licensed under MIT. See the LICENSE file for more details.

This program is licensed under MIT. See the LICENSE file for more details.

This program is licensed under MIT. See the LICENSE file for more details.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSshKeyPair

func CreateSshKeyPair() (string, string, error)

func EvalSSHKey

func EvalSSHKey(req *EvalSSHKeyRequest) error

EvalSSHKey

func GetHostKey

func GetHostKey(host string) (ssh.PublicKey, error)

GetHostKey checks the local user's known_hosts file If the file doesn't exist, an error is returned If the desired entry does not exist, an error including remediation steps is returned

func PublicKeyV2

func PublicKeyV2() (*goGitSsh.PublicKeys, error)

Types

type EvalSSHKeyRequest

type EvalSSHKeyRequest struct {
	GitProvider     string
	GitlabGroupFlag string
	GitToken        string
}

Jump to

Keyboard shortcuts

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