vcs

package
v0.54.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: BSD-3-Clause Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanAllSSHKeys

func CleanAllSSHKeys(fs afero.Fs, path string) error

CleanAllSSHKeys erase all the keys in the path

func CleanSSHKey

func CleanSSHKey(fs afero.Fs, path string, key sdk.Variable) error

CleanSSHKey erase the specified key

func SetupSSHKey

func SetupSSHKey(fs afero.Fs, path string, key sdk.Variable) error

SetupSSHKey write the key in the specific path

func WriteKey

func WriteKey(fs afero.Fs, path, content string) error

Types

type PGPKey

type PGPKey struct {
	Name    string
	Public  string
	Private string
	ID      string
}

PGPKey is a type for a pgp key

type SSHKey

type SSHKey struct {
	Filename string
	Content  []byte
}

SSHKey is a type for a ssh key

func GetSSHKey

func GetSSHKey(vars []sdk.Variable, path string, key *sdk.Variable) (*SSHKey, error)

GetSSHKey get a key in the path. If the key is nil, it will choose a default key among project, application and env variables

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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