mocks

package
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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) RoundTrip

func (c *MockHttpClient) RoundTrip(req *http.Request) (*http.Response, error)

func (*MockHttpClient) ShouldRequestResponse

func (c *MockHttpClient) ShouldRequestResponse(expects map[string]string) *MockHttpClient

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL