testutils

package
v0.0.0-...-17f2109 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRSAKeyPair

func GenerateRSAKeyPair() (*rsaKeyPair, error)

Types

type DokkuContainer

type DokkuContainer struct {
	testcontainers.Container
	Host    string
	SSHPort string
	// contains filtered or unexported fields
}

func CreateDokkuContainer

func CreateDokkuContainer(ctx context.Context, withLogs bool) (*DokkuContainer, error)

func (*DokkuContainer) AttachTestLogger

func (dc *DokkuContainer) AttachTestLogger(ctx context.Context, tb testing.TB) error

func (*DokkuContainer) Cleanup

func (dc *DokkuContainer) Cleanup(ctx context.Context)

func (*DokkuContainer) HostKeyFunc

func (dc *DokkuContainer) HostKeyFunc() func(string, net.Addr, ssh.PublicKey) error

func (*DokkuContainer) InstallBuildPacksCLI

func (dc *DokkuContainer) InstallBuildPacksCLI(ctx context.Context) error

func (*DokkuContainer) RegisterPublicKey

func (dc *DokkuContainer) RegisterPublicKey(ctx context.Context, key []byte, name string) error

Jump to

Keyboard shortcuts

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