Documentation
¶
Index ¶
- func Test[T any](t *testing.T, loadFunc func(path ...string) (*T, error), envs Inputs)
- type FileEnvManager
- type Input
- func CaCert(value string) Input
- func Cert(cert string, key string) Input
- func CertKey(key string, cert string) Input
- func Duration(value string) Input
- func Durations(value string) Input
- func Enum(value string, allowed ...string) Input
- func Int(value string) Input
- func NatsCreds(path string) Input
- func String(value string) Input
- func Url(value string) Input
- func Urls(value string) Input
- type Inputs
- type Manager
- type SystemEnvManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileEnvManager ¶
type FileEnvManager struct {
// contains filtered or unexported fields
}
func (*FileEnvManager) Cleanup ¶
func (fem *FileEnvManager) Cleanup()
func (*FileEnvManager) New ¶
func (fem *FileEnvManager) New(t *testing.T)
func (*FileEnvManager) PathIfExists ¶
func (fem *FileEnvManager) PathIfExists() []string
func (*FileEnvManager) SetEnv ¶
func (fem *FileEnvManager) SetEnv(key, value string)
type Input ¶
type Input interface {
NotRequire() Input
// contains filtered or unexported methods
}
type SystemEnvManager ¶
type SystemEnvManager struct {
// contains filtered or unexported fields
}
func (*SystemEnvManager) Cleanup ¶
func (sem *SystemEnvManager) Cleanup()
func (*SystemEnvManager) New ¶
func (sem *SystemEnvManager) New(t *testing.T)
func (*SystemEnvManager) PathIfExists ¶
func (sem *SystemEnvManager) PathIfExists() []string
func (*SystemEnvManager) SetEnv ¶
func (sem *SystemEnvManager) SetEnv(key, value string)
Click to show internal directories.
Click to hide internal directories.