Documentation
¶
Overview ¶
Package cluster is used to configure a kubernetes cluster for testing.
Index ¶
- type Cluster
- func (cluster *Cluster) GetNodePortAddr(ctx context.Context, namespace, svcName string) (hostport string, err error)
- func (cluster *Cluster) NewHTTPClient() *http.Client
- func (cluster *Cluster) NewHTTPClientWithTransport(transport http.RoundTripper) *http.Client
- func (cluster *Cluster) Setup(ctx context.Context) error
- type TLSCerts
- type TLSCertsBundle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
A Cluster is used to configure a kubernetes cluster.
func (*Cluster) GetNodePortAddr ¶ added in v0.9.0
func (cluster *Cluster) GetNodePortAddr(ctx context.Context, namespace, svcName string) (hostport string, err error)
GetNodePortAddr returns the node:port address for a NodePort kubernetes service.
func (*Cluster) NewHTTPClient ¶
NewHTTPClient calls NewHTTPClientWithTransport with the default cluster transport.
func (*Cluster) NewHTTPClientWithTransport ¶ added in v0.9.0
func (cluster *Cluster) NewHTTPClientWithTransport(transport http.RoundTripper) *http.Client
NewHTTPClientWithTransport creates a new *http.Client, with a cookie jar, and a LocalRoundTripper which routes traffic to the nginx ingress controller.
type TLSCerts ¶
TLSCerts holds the certificate authority, certificate and certificate key for a TLS connection.
type TLSCertsBundle ¶ added in v0.9.0
TLSCertsBundle holds various TLSCerts.
Click to show internal directories.
Click to hide internal directories.