Documentation ¶
Index ¶
- type FakeStorage
- func (s *FakeStorage) QueryAuditWithAuditId(data interface{}, auditid string) error
- func (f *FakeStorage) QueryCreateSloWithResult(data interface{}, requestParams *model.SloOptions) error
- func (s *FakeStorage) QueryDeleteSloWithResult(data interface{}, requestParams *model.SloOptions) error
- func (s *FakeStorage) QueryEventNodeWithPodUid(data interface{}, auditid string) error
- func (s *FakeStorage) QueryEventPodsWithPodUid(data interface{}, auditid string) error
- func (s *FakeStorage) QueryEventWithTimeRange(data interface{}, from, to time.Time) error
- func (f *FakeStorage) QueryLifePhaseWithPodUid(data interface{}, uid string) error
- func (f *FakeStorage) QueryNodeUIDListWithNodeIp(data interface{}, nodeIp string) error
- func (s *FakeStorage) QueryNodeYamlWithParams(data interface{}, requestParams *model.NodeParams) error
- func (f *FakeStorage) QueryNodeYamlsWithNodeIP(data interface{}, nodeIp string) error
- func (f *FakeStorage) QueryNodeYamlsWithNodeName(data interface{}, nodeName string) error
- func (f *FakeStorage) QueryNodeYamlsWithNodeUid(data interface{}, nodeUid string) error
- func (f *FakeStorage) QueryNodephaseWithNodeName(data interface{}, nodeName string) error
- func (f *FakeStorage) QueryNodephaseWithNodeUID(data interface{}, nodeUid string) error
- func (f *FakeStorage) QueryPodInfoWithPodUid(data interface{}, podUid string) error
- func (f *FakeStorage) QueryPodListWithNodeip(data interface{}, nodeIp string, isDeleted bool) error
- func (f *FakeStorage) QueryPodUIDListByHostname(data interface{}, hostName string) error
- func (f *FakeStorage) QueryPodUIDListByPodIP(data interface{}, podIp string) error
- func (f *FakeStorage) QueryPodUIDListByPodName(data interface{}, podName string) error
- func (s *FakeStorage) QueryPodYamlWithParams(data interface{}, requestParams *model.PodParams) error
- func (f *FakeStorage) QueryPodYamlsWithHostName(data interface{}, hostName string) error
- func (f *FakeStorage) QueryPodYamlsWithNodeIP(data interface{}, nodeIp string) error
- func (f *FakeStorage) QueryPodYamlsWithPodIp(data interface{}, podIp string) error
- func (f *FakeStorage) QueryPodYamlsWithPodName(data interface{}, podName string) error
- func (f *FakeStorage) QueryPodYamlsWithPodUID(data interface{}, podUid string) error
- func (f *FakeStorage) QuerySloTraceDataWithPodUID(data interface{}, podUid string) error
- func (f *FakeStorage) QuerySpanWithPodUid(data interface{}, uid string) error
- func (s *FakeStorage) QueryUpgradeSloWithResult(data interface{}, requestParams *model.SloOptions) error
- type MockHttpClient
- func (c *MockHttpClient) MockElasticSearchClient() (*elastic.Client, error)
- func (c *MockHttpClient) MockHttpClient() (*http.Client, error)
- func (c *MockHttpClient) RoundTrip(req *http.Request) (*http.Response, error)
- func (c *MockHttpClient) ShouldRequestResponse(expects map[string]string) *MockHttpClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeStorage ¶
type FakeStorage struct{}
func (*FakeStorage) QueryAuditWithAuditId ¶
func (s *FakeStorage) QueryAuditWithAuditId(data interface{}, auditid string) error
func (*FakeStorage) QueryCreateSloWithResult ¶
func (f *FakeStorage) QueryCreateSloWithResult(data interface{}, requestParams *model.SloOptions) error
func (*FakeStorage) QueryDeleteSloWithResult ¶
func (s *FakeStorage) QueryDeleteSloWithResult(data interface{}, requestParams *model.SloOptions) error
func (*FakeStorage) QueryEventNodeWithPodUid ¶
func (s *FakeStorage) QueryEventNodeWithPodUid(data interface{}, auditid string) error
func (*FakeStorage) QueryEventPodsWithPodUid ¶
func (s *FakeStorage) QueryEventPodsWithPodUid(data interface{}, auditid string) error
func (*FakeStorage) QueryEventWithTimeRange ¶
func (s *FakeStorage) QueryEventWithTimeRange(data interface{}, from, to time.Time) error
func (*FakeStorage) QueryLifePhaseWithPodUid ¶
func (f *FakeStorage) QueryLifePhaseWithPodUid(data interface{}, uid string) error
func (*FakeStorage) QueryNodeUIDListWithNodeIp ¶
func (f *FakeStorage) QueryNodeUIDListWithNodeIp(data interface{}, nodeIp string) error
func (*FakeStorage) QueryNodeYamlWithParams ¶
func (s *FakeStorage) QueryNodeYamlWithParams(data interface{}, requestParams *model.NodeParams) error
func (*FakeStorage) QueryNodeYamlsWithNodeIP ¶
func (f *FakeStorage) QueryNodeYamlsWithNodeIP(data interface{}, nodeIp string) error
func (*FakeStorage) QueryNodeYamlsWithNodeName ¶
func (f *FakeStorage) QueryNodeYamlsWithNodeName(data interface{}, nodeName string) error
func (*FakeStorage) QueryNodeYamlsWithNodeUid ¶
func (f *FakeStorage) QueryNodeYamlsWithNodeUid(data interface{}, nodeUid string) error
func (*FakeStorage) QueryNodephaseWithNodeName ¶
func (f *FakeStorage) QueryNodephaseWithNodeName(data interface{}, nodeName string) error
func (*FakeStorage) QueryNodephaseWithNodeUID ¶
func (f *FakeStorage) QueryNodephaseWithNodeUID(data interface{}, nodeUid string) error
func (*FakeStorage) QueryPodInfoWithPodUid ¶
func (f *FakeStorage) QueryPodInfoWithPodUid(data interface{}, podUid string) error
func (*FakeStorage) QueryPodListWithNodeip ¶
func (f *FakeStorage) QueryPodListWithNodeip(data interface{}, nodeIp string, isDeleted bool) error
func (*FakeStorage) QueryPodUIDListByHostname ¶
func (f *FakeStorage) QueryPodUIDListByHostname(data interface{}, hostName string) error
func (*FakeStorage) QueryPodUIDListByPodIP ¶
func (f *FakeStorage) QueryPodUIDListByPodIP(data interface{}, podIp string) error
func (*FakeStorage) QueryPodUIDListByPodName ¶
func (f *FakeStorage) QueryPodUIDListByPodName(data interface{}, podName string) error
func (*FakeStorage) QueryPodYamlWithParams ¶
func (s *FakeStorage) QueryPodYamlWithParams(data interface{}, requestParams *model.PodParams) error
func (*FakeStorage) QueryPodYamlsWithHostName ¶
func (f *FakeStorage) QueryPodYamlsWithHostName(data interface{}, hostName string) error
func (*FakeStorage) QueryPodYamlsWithNodeIP ¶
func (f *FakeStorage) QueryPodYamlsWithNodeIP(data interface{}, nodeIp string) error
func (*FakeStorage) QueryPodYamlsWithPodIp ¶
func (f *FakeStorage) QueryPodYamlsWithPodIp(data interface{}, podIp string) error
func (*FakeStorage) QueryPodYamlsWithPodName ¶
func (f *FakeStorage) QueryPodYamlsWithPodName(data interface{}, podName string) error
func (*FakeStorage) QueryPodYamlsWithPodUID ¶
func (f *FakeStorage) QueryPodYamlsWithPodUID(data interface{}, podUid string) error
func (*FakeStorage) QuerySloTraceDataWithPodUID ¶
func (f *FakeStorage) QuerySloTraceDataWithPodUID(data interface{}, podUid string) error
func (*FakeStorage) QuerySpanWithPodUid ¶
func (f *FakeStorage) QuerySpanWithPodUid(data interface{}, uid string) error
func (*FakeStorage) QueryUpgradeSloWithResult ¶
func (s *FakeStorage) QueryUpgradeSloWithResult(data interface{}, requestParams *model.SloOptions) error
type MockHttpClient ¶
type MockHttpClient struct { Expects map[string]string // except request and response URL string // connect url }
func NewMock ¶
func NewMock() (httpMock *MockHttpClient)
func (*MockHttpClient) MockElasticSearchClient ¶
func (c *MockHttpClient) MockElasticSearchClient() (*elastic.Client, error)
func (*MockHttpClient) MockHttpClient ¶
func (c *MockHttpClient) MockHttpClient() (*http.Client, error)
func (*MockHttpClient) ShouldRequestResponse ¶
func (c *MockHttpClient) ShouldRequestResponse(expects map[string]string) *MockHttpClient
Click to show internal directories.
Click to hide internal directories.