Documentation
¶
Index ¶
Constants ¶
View Source
const (
// EtcdBinPath is the path to the etcd binary.
EtcdBinPath = "etcd"
// EtcdUsername is the username to etcd cluster.
EtcdUsername = "user"
// EtcdPassword is the password for the EtcdUsername.
EtcdPassword = "password"
)
View Source
const (
// PrometheusBinPath is the path to the prometheus binary.
PrometheusBinPath = "prometheus"
// PrometheusLocalAddress is the local address to bind prometheus to.
PrometheusLocalAddress = "127.0.0.1:9095"
)
Variables ¶
This section is empty.
Functions ¶
func AllocateLocalAddress ¶
func AllocateLocalAddress(address string) (string, error)
AllocateLocalAddress listens on the given address and returns it.
func LocalBinAvailable ¶
func LocalBinAvailable(path string) (string, error)
LocalBinAvailable returns true if the binary is available on PATH.
Types ¶
type EtcdHarness ¶
type EtcdHarness struct {
Client *clientv3.Client
Endpoint string
// contains filtered or unexported fields
}
EtcdHarness represents a running etcd server for an integration test environment.
func NewEtcdHarness ¶
func NewEtcdHarness(etcdErrWriter io.Writer) (*EtcdHarness, error)
NewEtcdHarness initializes a harnessed etcd server and returns the EtcdHarness.
type PrometheusHarness ¶
type PrometheusHarness struct {
Endpoint string
// contains filtered or unexported fields
}
PrometheusHarness represents a running prometheus server for an integration test environment.
func NewPrometheusHarness ¶
func NewPrometheusHarness(prometheusWriter io.Writer) (*PrometheusHarness, error)
NewPrometheusHarness initializes a harnessed prometheus server and returns the PrometheusHarness.
Click to show internal directories.
Click to hide internal directories.