admin_test

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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