Documentation ¶
Index ¶
- Constants
- func AllocateParallelPort(basePort int) int
- func Curl(opts CurlOpts, namespace string) (string, error)
- func CurlEventuallyShouldRespond(opts CurlOpts, namespace, substr string, ginkgoOffset int, ...)
- func DeleteCrd(crd string) error
- func KubeLogs(pod string) string
- func Kubectl(args ...string) error
- func KubectlOut(args ...string) (string, error)
- func KubectlOutAsync(args ...string) (*bytes.Buffer, chan struct{}, error)
- func SetupKubeForTest(namespace string) errordeprecated
- func TeardownKube(namespace string) errordeprecated
- func TestRunner(namespace string, command ...string) (string, error)
- func TestRunnerAsync(args ...string) (*bytes.Buffer, chan struct{}, error)
- func WaitNamespaceStatus(namespace, status string, finished func(output string) bool) error
- func WaitPodStatus(pod, status string, finished func(output string) bool) error
- func WaitPodsRunning(podNames ...string) error
- func WaitPodsTerminated(podNames ...string) error
- type ConsulFactory
- type ConsulInstance
- type ConsulPorts
- type CurlOpts
- type VaultFactory
- type VaultFactoryConfig
- type VaultInstance
Constants ¶
View Source
const DefaultTestPathPrefix = "test-org"
Variables ¶
This section is empty.
Functions ¶
func AllocateParallelPort ¶ added in v0.10.4
func KubectlOut ¶
func SetupKubeForTest
deprecated
func TeardownKube
deprecated
func TestRunner ¶
TestRunner executes a command inside the TestRunner container
func TestRunnerAsync ¶
TestRunnerAsync executes a command inside the TestRunner container returning a buffer that can be read from as it executes
func WaitNamespaceStatus ¶
func WaitPodStatus ¶
func WaitPodsRunning ¶
WaitPodsRunning waits for all pods to be running
func WaitPodsTerminated ¶
waitPodsTerminated waits for all pods to be terminated
Types ¶
type ConsulFactory ¶
type ConsulFactory struct { Ports ConsulPorts // contains filtered or unexported fields }
func NewConsulFactory ¶
func NewConsulFactory() (*ConsulFactory, error)
func (*ConsulFactory) Clean ¶
func (ef *ConsulFactory) Clean() error
func (*ConsulFactory) NewConsulInstance ¶
func (ef *ConsulFactory) NewConsulInstance() (*ConsulInstance, error)
type ConsulInstance ¶
type ConsulInstance struct { Ports ConsulPorts // contains filtered or unexported fields }
func (*ConsulInstance) Binary ¶
func (i *ConsulInstance) Binary() string
func (*ConsulInstance) Clean ¶
func (i *ConsulInstance) Clean() error
func (*ConsulInstance) Run ¶
func (i *ConsulInstance) Run() error
func (*ConsulInstance) RunWithPort ¶
func (i *ConsulInstance) RunWithPort() error
func (*ConsulInstance) Silence ¶
func (i *ConsulInstance) Silence()
type ConsulPorts ¶ added in v0.10.4
type ConsulPorts struct {
DnsPort, HttpPort, GrpcPort, ServerPort, SerfLanPort, SerfWanPort int
}
func NewRandomConsulPorts ¶ added in v0.10.4
func NewRandomConsulPorts() ConsulPorts
func (ConsulPorts) Flags ¶ added in v0.10.4
func (p ConsulPorts) Flags() []string
return flags to set each port type as a string
type VaultFactory ¶
type VaultFactory struct { Port int // contains filtered or unexported fields }
func NewVaultFactory ¶
func NewVaultFactory(config *VaultFactoryConfig) (*VaultFactory, error)
func (*VaultFactory) Clean ¶
func (ef *VaultFactory) Clean() error
func (*VaultFactory) NewVaultInstance ¶
func (ef *VaultFactory) NewVaultInstance() (*VaultInstance, error)
type VaultFactoryConfig ¶ added in v0.26.0
type VaultFactoryConfig struct {
PathPrefix string
}
type VaultInstance ¶
type VaultInstance struct { Port int // contains filtered or unexported fields }
func (*VaultInstance) Binary ¶
func (i *VaultInstance) Binary() string
func (*VaultInstance) Clean ¶
func (i *VaultInstance) Clean() error
func (*VaultInstance) Run ¶
func (i *VaultInstance) Run() error
func (*VaultInstance) RunWithPort ¶
func (i *VaultInstance) RunWithPort() error
func (*VaultInstance) Token ¶
func (i *VaultInstance) Token() string
Click to show internal directories.
Click to hide internal directories.