Documentation ¶
Index ¶
- Constants
- type MockProvider
- func (p *MockProvider) DiscoverApplications(info policyprovider.IntegrationInfo) ([]policyprovider.ApplicationInfo, error)
- func (p *MockProvider) GetPolicyInfo(info policyprovider.IntegrationInfo, pap policyprovider.ApplicationInfo) ([]hexapolicy.PolicyInfo, error)
- func (p *MockProvider) Name() string
- func (p *MockProvider) Reconcile(info policyprovider.IntegrationInfo, app policyprovider.ApplicationInfo, ...) ([]hexapolicy.PolicyDif, error)
- func (p *MockProvider) SetPolicyInfo(info policyprovider.IntegrationInfo, pap policyprovider.ApplicationInfo, ...) (status int, foundErr error)
Constants ¶
View Source
const ( ProviderTypeMock string = "mock" PapIdTest string = "somewhereToMock" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockProvider ¶
type MockProvider struct { Policies []hexapolicy.PolicyInfo PapId string Info policyprovider.IntegrationInfo }
func (*MockProvider) DiscoverApplications ¶
func (p *MockProvider) DiscoverApplications(info policyprovider.IntegrationInfo) ([]policyprovider.ApplicationInfo, error)
func (*MockProvider) GetPolicyInfo ¶
func (p *MockProvider) GetPolicyInfo(info policyprovider.IntegrationInfo, pap policyprovider.ApplicationInfo) ([]hexapolicy.PolicyInfo, error)
func (*MockProvider) Name ¶
func (p *MockProvider) Name() string
func (*MockProvider) Reconcile ¶
func (p *MockProvider) Reconcile(info policyprovider.IntegrationInfo, app policyprovider.ApplicationInfo, comparePolicies []hexapolicy.PolicyInfo, diffsOnly bool) ([]hexapolicy.PolicyDif, error)
func (*MockProvider) SetPolicyInfo ¶
func (p *MockProvider) SetPolicyInfo(info policyprovider.IntegrationInfo, pap policyprovider.ApplicationInfo, policies []hexapolicy.PolicyInfo) (status int, foundErr error)
Click to show internal directories.
Click to hide internal directories.