testutils

package
v5.39.3 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: AGPL-3.0, Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInterface added in v5.26.0

func GetInterface(port int) string

GetInterface returns the best match of an interface that might be listening on a given port. This is helpful when a test is being run in a CI environment under docker.

func ReadTestFile

func ReadTestFile(name string) ([]byte, error)

func ResetLicenseValidator added in v5.37.0

func ResetLicenseValidator()

Types

type StaticConfigService

type StaticConfigService struct {
	Cfg *model.Config
}

func (StaticConfigService) AddConfigListener

func (StaticConfigService) AddConfigListener(func(old, current *model.Config)) string

func (StaticConfigService) AsymmetricSigningKey

func (StaticConfigService) AsymmetricSigningKey() *ecdsa.PrivateKey

func (StaticConfigService) Config

func (s StaticConfigService) Config() *model.Config

func (StaticConfigService) PostActionCookieSecret

func (StaticConfigService) PostActionCookieSecret() []byte

func (StaticConfigService) RemoveConfigListener

func (StaticConfigService) RemoveConfigListener(string)

Jump to

Keyboard shortcuts

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