Documentation
¶
Index ¶
- func DefaultConfigEnv() map[string]string
- func DefaultConfigYAML() string
- func MinimumConfigYAML() string
- type HeadscaleInContainer
- func (t *HeadscaleInContainer) CreateAuthKey(user string, reusable bool, ephemeral bool) (*v1.PreAuthKey, error)
- func (t *HeadscaleInContainer) CreateUser(user string) error
- func (t *HeadscaleInContainer) Execute(command []string) (string, error)
- func (t *HeadscaleInContainer) GetCert() []byte
- func (t *HeadscaleInContainer) GetEndpoint() string
- func (t *HeadscaleInContainer) GetHealthEndpoint() string
- func (t *HeadscaleInContainer) GetHostname() string
- func (t *HeadscaleInContainer) GetIP() string
- func (t *HeadscaleInContainer) GetPort() string
- func (t *HeadscaleInContainer) ListMachinesInUser(user string) ([]*v1.Machine, error)
- func (t *HeadscaleInContainer) Shutdown() error
- func (t *HeadscaleInContainer) WaitForReady() error
- func (t *HeadscaleInContainer) WriteFile(path string, data []byte) error
- type Option
- func WithACLPolicy(acl *headscale.ACLPolicy) Option
- func WithConfigEnv(configEnv map[string]string) Option
- func WithFileInContainer(path string, contents []byte) Option
- func WithHostnameAsServerURL() Option
- func WithPort(port int) Option
- func WithTLS() Option
- func WithTestName(testName string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultConfigEnv ¶ added in v0.18.0
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
type Option ¶
type Option = func(c *HeadscaleInContainer)
func WithACLPolicy ¶
func WithConfigEnv ¶
func WithFileInContainer ¶ added in v0.18.0
func WithHostnameAsServerURL ¶
func WithHostnameAsServerURL() Option
func WithTestName ¶
Click to show internal directories.
Click to hide internal directories.