Documentation ¶
Index ¶
- func CreateSSHKeyPair(secrets interface{ ... }, organizationID uint, clusterID uint, ...) (sshKeyPair ssh.KeyPair, sshSecretID string, err error)
- func GetOrCreateSSHKeyPair(secrets interface{ ... }, cluster interface{ ... }) (ssh.KeyPair, string, error)
- func GetSSHKeyPair(secrets interface{ ... }, organizationID uint, sshSecretID string) (ssh.KeyPair, error)
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.
Click to show internal directories.
Click to hide internal directories.