hsic

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2022 License: BSD-3-Clause Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultConfigYAML

func DefaultConfigYAML() string

TODO: Reuse the actual configuration object above.

Types

type HeadscaleInContainer

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

func New

func New(
	pool *dockertest.Pool,
	network *dockertest.Network,
	opts ...Option,
) (*HeadscaleInContainer, error)

func (*HeadscaleInContainer) CreateAuthKey

func (t *HeadscaleInContainer) CreateAuthKey(
	namespace string,
) (*v1.PreAuthKey, error)

func (*HeadscaleInContainer) CreateNamespace

func (t *HeadscaleInContainer) CreateNamespace(
	namespace string,
) error

func (*HeadscaleInContainer) Execute

func (t *HeadscaleInContainer) Execute(
	command []string,
) (string, error)

func (*HeadscaleInContainer) GetCert

func (t *HeadscaleInContainer) GetCert() []byte

func (*HeadscaleInContainer) GetEndpoint

func (t *HeadscaleInContainer) GetEndpoint() string

func (*HeadscaleInContainer) GetHealthEndpoint

func (t *HeadscaleInContainer) GetHealthEndpoint() string

func (*HeadscaleInContainer) GetHostname

func (t *HeadscaleInContainer) GetHostname() string

func (*HeadscaleInContainer) GetIP

func (t *HeadscaleInContainer) GetIP() string

func (*HeadscaleInContainer) GetPort

func (t *HeadscaleInContainer) GetPort() string

func (*HeadscaleInContainer) ListMachinesInNamespace

func (t *HeadscaleInContainer) ListMachinesInNamespace(
	namespace string,
) ([]*v1.Machine, error)

func (*HeadscaleInContainer) Shutdown

func (t *HeadscaleInContainer) Shutdown() error

func (*HeadscaleInContainer) WaitForReady

func (t *HeadscaleInContainer) WaitForReady() error

func (*HeadscaleInContainer) WriteFile

func (t *HeadscaleInContainer) WriteFile(path string, data []byte) error

type Option

type Option = func(c *HeadscaleInContainer)

func WithACLPolicy

func WithACLPolicy(acl *headscale.ACLPolicy) Option

func WithConfigEnv

func WithConfigEnv(configEnv map[string]string) Option

func WithHostnameAsServerURL

func WithHostnameAsServerURL() Option

func WithPort

func WithPort(port int) Option

func WithTLS

func WithTLS() Option

func WithTestName

func WithTestName(testName string) Option

Jump to

Keyboard shortcuts

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