Documentation ¶
Index ¶
- func NewFakeElasticsearchClient(cluster, namespace string, k8sClient client.Client, ...) esclient.Client
- func NewFakeSendRequestFn(chatter *FakeElasticsearchChatter) esclient.FnEsSendRequest
- func NormalizeJSON(doc string) string
- func NormalizeYaml(doc string) string
- type EnvVarExpectation
- type EnvVarsExpectation
- type FakeElasticsearchChatter
- type FakeElasticsearchRequest
- type FakeElasticsearchRequests
- type FakeElasticsearchResponse
- type FakeElasticsearchResponses
- type JSONExpectation
- type YamlExpectation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFakeSendRequestFn ¶
func NewFakeSendRequestFn(chatter *FakeElasticsearchChatter) esclient.FnEsSendRequest
func NormalizeJSON ¶
func NormalizeYaml ¶
Types ¶
type EnvVarExpectation ¶
type EnvVarExpectation struct {
// contains filtered or unexported fields
}
func (*EnvVarExpectation) WithFieldRefPath ¶
func (exp *EnvVarExpectation) WithFieldRefPath(path string) *EnvVarExpectation
func (*EnvVarExpectation) WithValue ¶
func (exp *EnvVarExpectation) WithValue(value string) *EnvVarExpectation
type EnvVarsExpectation ¶
type EnvVarsExpectation struct {
// contains filtered or unexported fields
}
func ExpectEnvVars ¶
func ExpectEnvVars(envVars []v1.EnvVar) *EnvVarsExpectation
func (*EnvVarsExpectation) ToIncludeName ¶
func (exp *EnvVarsExpectation) ToIncludeName(name string) *EnvVarExpectation
type FakeElasticsearchChatter ¶
type FakeElasticsearchChatter struct { Requests map[string]FakeElasticsearchRequests RequestOrder map[string]int Responses map[string]FakeElasticsearchResponses // contains filtered or unexported fields }
func NewFakeElasticsearchChatter ¶
func NewFakeElasticsearchChatter(responses map[string]FakeElasticsearchResponses) *FakeElasticsearchChatter
func (*FakeElasticsearchChatter) GetRequest ¶
func (chat *FakeElasticsearchChatter) GetRequest(key string) (*FakeElasticsearchRequest, bool)
func (*FakeElasticsearchChatter) GetResponse ¶
func (chat *FakeElasticsearchChatter) GetResponse(key string) (*FakeElasticsearchResponse, bool)
type FakeElasticsearchRequests ¶
type FakeElasticsearchRequests []FakeElasticsearchRequest
type FakeElasticsearchResponse ¶
func (*FakeElasticsearchResponse) BodyAsResponseBody ¶
func (response *FakeElasticsearchResponse) BodyAsResponseBody() map[string]interface{}
type FakeElasticsearchResponses ¶
type FakeElasticsearchResponses []FakeElasticsearchResponse
type JSONExpectation ¶
type JSONExpectation struct {
// contains filtered or unexported fields
}
func ExpectJSON ¶
func ExpectJSON(doc string) *JSONExpectation
func (*JSONExpectation) ToEqual ¶
func (exp *JSONExpectation) ToEqual(doc string)
type YamlExpectation ¶
type YamlExpectation struct {
// contains filtered or unexported fields
}
func ExpectYaml ¶
func ExpectYaml(doc string) *YamlExpectation
func (*YamlExpectation) ToEqual ¶
func (exp *YamlExpectation) ToEqual(doc string)
Click to show internal directories.
Click to hide internal directories.