client

package
v0.0.0-...-ee2d30e Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckKeyExistsInEC2

func CheckKeyExistsInEC2(ctx context.Context, ec2API awsapi.EC2, sshKeyName string) error

CheckKeyExistsInEC2 returns whether a public ssh key already exists in EC2 or error if it couldn't be checked

func DeleteKeys

func DeleteKeys(ctx context.Context, ec2API awsapi.EC2, clusterName string)

DeleteKeys will delete the public SSH key, if it exists

func LoadKeyByContent

func LoadKeyByContent(ctx context.Context, key *string, clusterName, ngName string, ec2API awsapi.EC2) (string, error)

LoadKeyByContent loads and imports an SSH public key into EC2 if it doesn't exist

func LoadKeyFromFile

func LoadKeyFromFile(ctx context.Context, filePath, clusterName, ngName string, ec2API awsapi.EC2) (string, error)

LoadKeyFromFile loads and imports a public SSH key from a file provided a path to that file. returns the name of the key

Types

This section is empty.

Jump to

Keyboard shortcuts

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