credentials

package
v0.0.0-...-1624042 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Username is the default windows username on AWS
	Username = "Administrator"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Credentials

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

Credentials holds the information to access the Windows instance created.

func NewCredentials

func NewCredentials(instanceID, ipAddress, user string) *Credentials

NewCredentials takes the instanceID, ip address and user of the Windows instance created and returns the Credentials structure

func (*Credentials) IPAddress

func (cred *Credentials) IPAddress() string

IPAddress returns the ip address of the given node

func (*Credentials) InstanceId

func (cred *Credentials) InstanceId() string

GetInstanceID returns the instanceId associated with the given node

func (*Credentials) SSHKey

func (cred *Credentials) SSHKey() ssh.Signer

SSHKey returns the SSH key associated with the given node

func (*Credentials) SetSSHKey

func (cred *Credentials) SetSSHKey(signer ssh.Signer)

SetSSHKey sets the ssh signer for given node

func (*Credentials) String

func (c *Credentials) String() string

String returns the string representation of Creds. This is required for Creds to be used with flags.

func (*Credentials) UserName

func (cred *Credentials) UserName() string

UserName returns the user name associated with the given node

Jump to

Keyboard shortcuts

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