hsic

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2023 License: BSD-3-Clause Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultConfigEnv added in v0.18.0

func DefaultConfigEnv() map[string]string

func DefaultConfigYAML

func DefaultConfigYAML() string

TODO: Reuse the actual configuration object above. Deprecated: use env function instead as it is easier to override.

func MinimumConfigYAML added in v0.18.0

func MinimumConfigYAML() string

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(
	user string,
	reusable bool,
	ephemeral bool,
) (*v1.PreAuthKey, error)

func (*HeadscaleInContainer) CreateUser added in v0.19.0

func (t *HeadscaleInContainer) CreateUser(
	user 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) ListMachinesInUser added in v0.19.0

func (t *HeadscaleInContainer) ListMachinesInUser(
	user 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 WithFileInContainer added in v0.18.0

func WithFileInContainer(path string, contents []byte) 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