Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeInformer ¶
type FakeInformer struct { // Started indicates if Starting was called. Started bool // DoneWith is the error passed to Done. DoneWith error }
FakeInformer is a fake implementation of validation.Informer.
type TestServer ¶
TestServer is a wrapper around httptest.Server.
func NewEKSDescribeClusterAPI ¶
func NewEKSDescribeClusterAPI(tb testing.TB, resp *eks.DescribeClusterOutput) TestServer
NewEKSDescribeClusterAPI creates a new TestServer that behaves like the EKS DescribeCluster API.
func NewHTTPSServer ¶
func NewHTTPSServer(tb testing.TB, handle func(w http.ResponseWriter, r *http.Request)) TestServer
NewHTTPSServer creates a new TestServer with a TLS certificate. The server is automatically closed when the test ends.
func NewHTTPSServerForJSON ¶
func NewHTTPSServerForJSON(tb testing.TB, status int, resp any) TestServer
NewHTTPSServerForJSON creates a new TestServer that responds with a JSON body.
func (TestServer) CAPEM ¶
func (s TestServer) CAPEM() []byte
CAPEM returns the PEM-encoded certificate of the server.
func (TestServer) Port ¶
func (s TestServer) Port() (int, error)
Port returns the port the server is listening on.
Click to show internal directories.
Click to hide internal directories.