keymaster

package
v0.0.0-...-cd620af Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

type Key struct {
	Name      string
	Region    string
	PublicKey string
}

type Keymaster

type Keymaster struct {
	// contains filtered or unexported fields
}

func MakeKeymaster

func MakeKeymaster() (*Keymaster, error)

MakeKeymaster creates a Keymaster object using shared config

func (*Keymaster) CreateKey

func (km *Keymaster) CreateKey(region string, key Key) error

CreateKey creates a key-pair in the given region using a key

func (*Keymaster) GetAllRegions

func (km *Keymaster) GetAllRegions() ([]string, error)

GetAllRegions returns all AWS regions

func (*Keymaster) ListKeys

func (km *Keymaster) ListKeys(regions ...string) (map[string][]Key, error)

ListKeys returns all key-pairs in the given regions

Jump to

Keyboard shortcuts

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