Documentation ¶
Index ¶
- type MockClient
- func (m *MockClient) Application(id string) (admin.Application, error)
- func (m *MockClient) Applications(bool) ([]admin.Application, error)
- func (m *MockClient) CreateIntegration(name string, provider string, key []byte) error
- func (m *MockClient) DeleteIntegration(id string) error
- func (m *MockClient) GetHttpClient() admin.HTTPClient
- func (m *MockClient) GetPolicies(id string) ([]hexapolicy.PolicyInfo, string, error)
- func (m *MockClient) Health() (string, error)
- func (m *MockClient) Integrations() ([]admin.Integration, error)
- func (m *MockClient) Orchestration(_ string, _ string) error
- func (m *MockClient) SetPolicies(id string, _ string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
type MockClient struct { mock.Mock Name string Provider string Key []byte Errs map[string]error Status string Url string DesiredApplications []admin.Application DesiredPolicies []hexapolicy.PolicyInfo }
func (*MockClient) Application ¶
func (m *MockClient) Application(id string) (admin.Application, error)
func (*MockClient) Applications ¶
func (m *MockClient) Applications(bool) ([]admin.Application, error)
func (*MockClient) CreateIntegration ¶
func (m *MockClient) CreateIntegration(name string, provider string, key []byte) error
func (*MockClient) DeleteIntegration ¶
func (m *MockClient) DeleteIntegration(id string) error
func (*MockClient) GetHttpClient ¶
func (m *MockClient) GetHttpClient() admin.HTTPClient
GetHttpClient used mainly for testing
func (*MockClient) GetPolicies ¶
func (m *MockClient) GetPolicies(id string) ([]hexapolicy.PolicyInfo, string, error)
func (*MockClient) Health ¶
func (m *MockClient) Health() (string, error)
func (*MockClient) Integrations ¶
func (m *MockClient) Integrations() ([]admin.Integration, error)
func (*MockClient) Orchestration ¶
func (m *MockClient) Orchestration(_ string, _ string) error
func (*MockClient) SetPolicies ¶
func (m *MockClient) SetPolicies(id string, _ string) error
Click to show internal directories.
Click to hide internal directories.