sshsecret

package
v0.0.0-...-e7c744b Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSSHKeyPair

func CreateSSHKeyPair(secrets interface {
	Store(organizationID uint, request *secret.CreateSecretRequest) (string, error)
}, organizationID uint, clusterID uint, clusterName string, clusterUID string,
) (sshKeyPair ssh.KeyPair, sshSecretID string, err error)

CreateSSHKeyPair creates and stores a new SSH key pair for a cluster in the secret store with the specified parameters

func GetOrCreateSSHKeyPair

func GetOrCreateSSHKeyPair(secrets interface {
	Get(organizationID uint, secretID string) (*secret.SecretItemResponse, error)
	Store(organizationID uint, request *secret.CreateSecretRequest) (string, error)
}, cluster interface {
	GetID() uint
	GetName() string
	GetOrganizationID() uint
	GetSSHSecretID() string
	GetUID() string
},
) (ssh.KeyPair, string, error)

GetOrCreateSSHKeyPair gets or creates a SSH key pair in the secret store for the cluster. It returns the SSH key pair and its secret ID in the secret store or an error.

func GetSSHKeyPair

func GetSSHKeyPair(secrets interface {
	Get(organizationID uint, secretID string) (*secret.SecretItemResponse, error)
}, organizationID uint, sshSecretID string,
) (ssh.KeyPair, error)

GetSSHKeyPair return the SSH key pair stored in the secret store under the specified organization and secret ID

Types

This section is empty.

Jump to

Keyboard shortcuts

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