testutils

package
v0.0.1-SNAPSHOT Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 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

	RootPrivateKey *rsa.PrivateKey
	RootPublicKey  []byte
	// 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) ConfigureSSHD

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

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

func (*DokkuContainer) RegisterRootPublicKey

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

func (*DokkuContainer) RestartSSHD

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

Jump to

Keyboard shortcuts

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