Documentation ¶
Index ¶
- Constants
- func FileExists(ctx context.Context, ctr tc.Container, path string) (bool, error)
- type Host
- func (h *Host) ConnectionDetails(ctx context.Context, internalPort string) (host string, port nat.Port, err error)
- func (h *Host) Ctr(ctx context.Context) (tc.Container, error)
- func (h *Host) Exec(ctx context.Context, args ...string) (string, error)
- func (h *Host) FileExists(ctx context.Context, path string) (bool, error)
- func (h *Host) Ip(ctx context.Context) (string, error)
- func (h *Host) ReadFile(ctx context.Context, path string) ([]byte, error)
- func (h *Host) Start(ctx context.Context) error
- func (h *Host) Stop(ctx context.Context) error
- func (h *Host) WriteFile(ctx context.Context, path string, data []byte) error
- type HostCerts
- type Provisioner
- type Sshd
Constants ¶
View Source
const ( SshUserName string = "pulumi-baremetal" SshPassword string = "Password!123" SshPort int = 2222 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Host ¶
type Host struct {
// contains filtered or unexported fields
}
func (*Host) ConnectionDetails ¶
func (*Host) FileExists ¶
FileExists implements TestHost.
type HostCerts ¶
type HostCerts struct { Bundle util.CertBundle CaPath string CertPath string KeyPath string }
type Provisioner ¶
type Provisioner struct { Host Address string Port string Certs *util.CertBundle }
func NewProvisioner ¶
func NewProvisioner( port string, clientCa *tlscert.Certificate, logger io.Writer, ) (*Provisioner, error)
func (*Provisioner) Ca ¶
func (p *Provisioner) Ca() *tlscert.Certificate
CertBundle implements TestProvisioner.
func (*Provisioner) ConnectionDetails ¶
ConnectionDetails implements TestProvisioner.
type Sshd ¶
type Sshd struct{ Host }
func (*Sshd) ConnectionDetails ¶
func (*Sshd) ConnectionProps ¶
Click to show internal directories.
Click to hide internal directories.