policyfakes

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0, BSD-3-Clause, MIT Imports: 4 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeCache

type FakeCache struct {
	SetStub func(context.Context, string, string, string, []byte, int) error
	// contains filtered or unexported fields
}

func (*FakeCache) Invocations

func (fake *FakeCache) Invocations() map[string][][]interface{}

func (*FakeCache) Set

func (fake *FakeCache) Set(arg1 context.Context, arg2 string, arg3 string, arg4 string, arg5 []byte, arg6 int) error

func (*FakeCache) SetArgsForCall

func (fake *FakeCache) SetArgsForCall(i int) (context.Context, string, string, string, []byte, int)

func (*FakeCache) SetCallCount

func (fake *FakeCache) SetCallCount() int

func (*FakeCache) SetCalls

func (fake *FakeCache) SetCalls(stub func(context.Context, string, string, string, []byte, int) error)

func (*FakeCache) SetReturns

func (fake *FakeCache) SetReturns(result1 error)

func (*FakeCache) SetReturnsOnCall

func (fake *FakeCache) SetReturnsOnCall(i int, result1 error)

type FakeRegoCache

type FakeRegoCache struct {
	GetStub func(string) (*storage.Policy, bool)

	SetStub func(string, *storage.Policy)
	// contains filtered or unexported fields
}

func (*FakeRegoCache) Get

func (fake *FakeRegoCache) Get(arg1 string) (*storage.Policy, bool)

func (*FakeRegoCache) GetArgsForCall

func (fake *FakeRegoCache) GetArgsForCall(i int) string

func (*FakeRegoCache) GetCallCount

func (fake *FakeRegoCache) GetCallCount() int

func (*FakeRegoCache) GetCalls

func (fake *FakeRegoCache) GetCalls(stub func(string) (*storage.Policy, bool))

func (*FakeRegoCache) GetReturns

func (fake *FakeRegoCache) GetReturns(result1 *storage.Policy, result2 bool)

func (*FakeRegoCache) GetReturnsOnCall

func (fake *FakeRegoCache) GetReturnsOnCall(i int, result1 *storage.Policy, result2 bool)

func (*FakeRegoCache) Invocations

func (fake *FakeRegoCache) Invocations() map[string][][]interface{}

func (*FakeRegoCache) Set

func (fake *FakeRegoCache) Set(arg1 string, arg2 *storage.Policy)

func (*FakeRegoCache) SetArgsForCall

func (fake *FakeRegoCache) SetArgsForCall(i int) (string, *storage.Policy)

func (*FakeRegoCache) SetCallCount

func (fake *FakeRegoCache) SetCallCount() int

func (*FakeRegoCache) SetCalls

func (fake *FakeRegoCache) SetCalls(stub func(string, *storage.Policy))

type FakeSigner

type FakeSigner struct {
	KeyStub func(context.Context, string, string) (any, error)

	SignStub func(context.Context, string, string, []byte) ([]byte, error)
	// contains filtered or unexported fields
}

func (*FakeSigner) Invocations

func (fake *FakeSigner) Invocations() map[string][][]interface{}

func (*FakeSigner) Key

func (fake *FakeSigner) Key(arg1 context.Context, arg2 string, arg3 string) (any, error)

func (*FakeSigner) KeyArgsForCall

func (fake *FakeSigner) KeyArgsForCall(i int) (context.Context, string, string)

func (*FakeSigner) KeyCallCount

func (fake *FakeSigner) KeyCallCount() int

func (*FakeSigner) KeyCalls

func (fake *FakeSigner) KeyCalls(stub func(context.Context, string, string) (any, error))

func (*FakeSigner) KeyReturns

func (fake *FakeSigner) KeyReturns(result1 any, result2 error)

func (*FakeSigner) KeyReturnsOnCall

func (fake *FakeSigner) KeyReturnsOnCall(i int, result1 any, result2 error)

func (*FakeSigner) Sign

func (fake *FakeSigner) Sign(arg1 context.Context, arg2 string, arg3 string, arg4 []byte) ([]byte, error)

func (*FakeSigner) SignArgsForCall

func (fake *FakeSigner) SignArgsForCall(i int) (context.Context, string, string, []byte)

func (*FakeSigner) SignCallCount

func (fake *FakeSigner) SignCallCount() int

func (*FakeSigner) SignCalls

func (fake *FakeSigner) SignCalls(stub func(context.Context, string, string, []byte) ([]byte, error))

func (*FakeSigner) SignReturns

func (fake *FakeSigner) SignReturns(result1 []byte, result2 error)

func (*FakeSigner) SignReturnsOnCall

func (fake *FakeSigner) SignReturnsOnCall(i int, result1 []byte, result2 error)

type FakeStorage

type FakeStorage struct {
	ActiveImportConfigsStub func(context.Context) ([]*storage.PolicyAutoImport, error)

	AddPolicySubscribersStub func(...storage.PolicySubscriber)

	AutoImportConfigStub func(context.Context, string) (*storage.PolicyAutoImport, error)

	AutoImportConfigsStub func(context.Context) ([]*storage.PolicyAutoImport, error)

	CloseStub func(context.Context)

	CreateSubscriberStub func(context.Context, *storage.Subscriber) (*storage.Subscriber, error)

	DeleteAutoImportConfigStub func(context.Context, string) error

	DeleteDataStub func(context.Context, string) error

	GetDataStub func(context.Context, string) (any, error)

	GetPoliciesStub func(context.Context, *bool, *string) ([]*storage.Policy, error)

	ListenPolicyDataChangesStub func(context.Context) error

	PolicyStub func(context.Context, string, string, string, string) (*storage.Policy, error)

	SaveAutoImportConfigStub func(context.Context, *storage.PolicyAutoImport) error

	SavePolicyStub func(context.Context, *storage.Policy) error

	SetDataStub func(context.Context, string, map[string]interface{}) error

	SetPolicyLockStub func(context.Context, string, string, string, string, bool) error

	SubscriberStub func(context.Context, string, string, string, string, string, string) (*storage.Subscriber, error)
	// contains filtered or unexported fields
}

func (*FakeStorage) ActiveImportConfigs added in v1.2.0

func (fake *FakeStorage) ActiveImportConfigs(arg1 context.Context) ([]*storage.PolicyAutoImport, error)

func (*FakeStorage) ActiveImportConfigsArgsForCall added in v1.2.0

func (fake *FakeStorage) ActiveImportConfigsArgsForCall(i int) context.Context

func (*FakeStorage) ActiveImportConfigsCallCount added in v1.2.0

func (fake *FakeStorage) ActiveImportConfigsCallCount() int

func (*FakeStorage) ActiveImportConfigsCalls added in v1.2.0

func (fake *FakeStorage) ActiveImportConfigsCalls(stub func(context.Context) ([]*storage.PolicyAutoImport, error))

func (*FakeStorage) ActiveImportConfigsReturns added in v1.2.0

func (fake *FakeStorage) ActiveImportConfigsReturns(result1 []*storage.PolicyAutoImport, result2 error)

func (*FakeStorage) ActiveImportConfigsReturnsOnCall added in v1.2.0

func (fake *FakeStorage) ActiveImportConfigsReturnsOnCall(i int, result1 []*storage.PolicyAutoImport, result2 error)

func (*FakeStorage) AddPolicySubscribers added in v1.2.0

func (fake *FakeStorage) AddPolicySubscribers(arg1 ...storage.PolicySubscriber)

func (*FakeStorage) AddPolicySubscribersArgsForCall added in v1.2.0

func (fake *FakeStorage) AddPolicySubscribersArgsForCall(i int) []storage.PolicySubscriber

func (*FakeStorage) AddPolicySubscribersCallCount added in v1.2.0

func (fake *FakeStorage) AddPolicySubscribersCallCount() int

func (*FakeStorage) AddPolicySubscribersCalls added in v1.2.0

func (fake *FakeStorage) AddPolicySubscribersCalls(stub func(...storage.PolicySubscriber))

func (*FakeStorage) AutoImportConfig added in v1.2.0

func (fake *FakeStorage) AutoImportConfig(arg1 context.Context, arg2 string) (*storage.PolicyAutoImport, error)

func (*FakeStorage) AutoImportConfigArgsForCall added in v1.2.0

func (fake *FakeStorage) AutoImportConfigArgsForCall(i int) (context.Context, string)

func (*FakeStorage) AutoImportConfigCallCount added in v1.2.0

func (fake *FakeStorage) AutoImportConfigCallCount() int

func (*FakeStorage) AutoImportConfigCalls added in v1.2.0

func (fake *FakeStorage) AutoImportConfigCalls(stub func(context.Context, string) (*storage.PolicyAutoImport, error))

func (*FakeStorage) AutoImportConfigReturns added in v1.2.0

func (fake *FakeStorage) AutoImportConfigReturns(result1 *storage.PolicyAutoImport, result2 error)

func (*FakeStorage) AutoImportConfigReturnsOnCall added in v1.2.0

func (fake *FakeStorage) AutoImportConfigReturnsOnCall(i int, result1 *storage.PolicyAutoImport, result2 error)

func (*FakeStorage) AutoImportConfigs added in v1.2.0

func (fake *FakeStorage) AutoImportConfigs(arg1 context.Context) ([]*storage.PolicyAutoImport, error)

func (*FakeStorage) AutoImportConfigsArgsForCall added in v1.2.0

func (fake *FakeStorage) AutoImportConfigsArgsForCall(i int) context.Context

func (*FakeStorage) AutoImportConfigsCallCount added in v1.2.0

func (fake *FakeStorage) AutoImportConfigsCallCount() int

func (*FakeStorage) AutoImportConfigsCalls added in v1.2.0

func (fake *FakeStorage) AutoImportConfigsCalls(stub func(context.Context) ([]*storage.PolicyAutoImport, error))

func (*FakeStorage) AutoImportConfigsReturns added in v1.2.0

func (fake *FakeStorage) AutoImportConfigsReturns(result1 []*storage.PolicyAutoImport, result2 error)

func (*FakeStorage) AutoImportConfigsReturnsOnCall added in v1.2.0

func (fake *FakeStorage) AutoImportConfigsReturnsOnCall(i int, result1 []*storage.PolicyAutoImport, result2 error)

func (*FakeStorage) Close

func (fake *FakeStorage) Close(arg1 context.Context)

func (*FakeStorage) CloseArgsForCall

func (fake *FakeStorage) CloseArgsForCall(i int) context.Context

func (*FakeStorage) CloseCallCount

func (fake *FakeStorage) CloseCallCount() int

func (*FakeStorage) CloseCalls

func (fake *FakeStorage) CloseCalls(stub func(context.Context))

func (*FakeStorage) CreateSubscriber

func (fake *FakeStorage) CreateSubscriber(arg1 context.Context, arg2 *storage.Subscriber) (*storage.Subscriber, error)

func (*FakeStorage) CreateSubscriberArgsForCall

func (fake *FakeStorage) CreateSubscriberArgsForCall(i int) (context.Context, *storage.Subscriber)

func (*FakeStorage) CreateSubscriberCallCount

func (fake *FakeStorage) CreateSubscriberCallCount() int

func (*FakeStorage) CreateSubscriberCalls

func (fake *FakeStorage) CreateSubscriberCalls(stub func(context.Context, *storage.Subscriber) (*storage.Subscriber, error))

func (*FakeStorage) CreateSubscriberReturns

func (fake *FakeStorage) CreateSubscriberReturns(result1 *storage.Subscriber, result2 error)

func (*FakeStorage) CreateSubscriberReturnsOnCall

func (fake *FakeStorage) CreateSubscriberReturnsOnCall(i int, result1 *storage.Subscriber, result2 error)

func (*FakeStorage) DeleteAutoImportConfig added in v1.2.0

func (fake *FakeStorage) DeleteAutoImportConfig(arg1 context.Context, arg2 string) error

func (*FakeStorage) DeleteAutoImportConfigArgsForCall added in v1.2.0

func (fake *FakeStorage) DeleteAutoImportConfigArgsForCall(i int) (context.Context, string)

func (*FakeStorage) DeleteAutoImportConfigCallCount added in v1.2.0

func (fake *FakeStorage) DeleteAutoImportConfigCallCount() int

func (*FakeStorage) DeleteAutoImportConfigCalls added in v1.2.0

func (fake *FakeStorage) DeleteAutoImportConfigCalls(stub func(context.Context, string) error)

func (*FakeStorage) DeleteAutoImportConfigReturns added in v1.2.0

func (fake *FakeStorage) DeleteAutoImportConfigReturns(result1 error)

func (*FakeStorage) DeleteAutoImportConfigReturnsOnCall added in v1.2.0

func (fake *FakeStorage) DeleteAutoImportConfigReturnsOnCall(i int, result1 error)

func (*FakeStorage) DeleteData

func (fake *FakeStorage) DeleteData(arg1 context.Context, arg2 string) error

func (*FakeStorage) DeleteDataArgsForCall

func (fake *FakeStorage) DeleteDataArgsForCall(i int) (context.Context, string)

func (*FakeStorage) DeleteDataCallCount

func (fake *FakeStorage) DeleteDataCallCount() int

func (*FakeStorage) DeleteDataCalls

func (fake *FakeStorage) DeleteDataCalls(stub func(context.Context, string) error)

func (*FakeStorage) DeleteDataReturns

func (fake *FakeStorage) DeleteDataReturns(result1 error)

func (*FakeStorage) DeleteDataReturnsOnCall

func (fake *FakeStorage) DeleteDataReturnsOnCall(i int, result1 error)

func (*FakeStorage) GetData

func (fake *FakeStorage) GetData(arg1 context.Context, arg2 string) (any, error)

func (*FakeStorage) GetDataArgsForCall

func (fake *FakeStorage) GetDataArgsForCall(i int) (context.Context, string)

func (*FakeStorage) GetDataCallCount

func (fake *FakeStorage) GetDataCallCount() int

func (*FakeStorage) GetDataCalls

func (fake *FakeStorage) GetDataCalls(stub func(context.Context, string) (any, error))

func (*FakeStorage) GetDataReturns

func (fake *FakeStorage) GetDataReturns(result1 any, result2 error)

func (*FakeStorage) GetDataReturnsOnCall

func (fake *FakeStorage) GetDataReturnsOnCall(i int, result1 any, result2 error)

func (*FakeStorage) GetPolicies

func (fake *FakeStorage) GetPolicies(arg1 context.Context, arg2 *bool, arg3 *string) ([]*storage.Policy, error)

func (*FakeStorage) GetPoliciesArgsForCall

func (fake *FakeStorage) GetPoliciesArgsForCall(i int) (context.Context, *bool, *string)

func (*FakeStorage) GetPoliciesCallCount

func (fake *FakeStorage) GetPoliciesCallCount() int

func (*FakeStorage) GetPoliciesCalls

func (fake *FakeStorage) GetPoliciesCalls(stub func(context.Context, *bool, *string) ([]*storage.Policy, error))

func (*FakeStorage) GetPoliciesReturns

func (fake *FakeStorage) GetPoliciesReturns(result1 []*storage.Policy, result2 error)

func (*FakeStorage) GetPoliciesReturnsOnCall

func (fake *FakeStorage) GetPoliciesReturnsOnCall(i int, result1 []*storage.Policy, result2 error)

func (*FakeStorage) Invocations

func (fake *FakeStorage) Invocations() map[string][][]interface{}

func (*FakeStorage) ListenPolicyDataChanges

func (fake *FakeStorage) ListenPolicyDataChanges(arg1 context.Context) error

func (*FakeStorage) ListenPolicyDataChangesArgsForCall

func (fake *FakeStorage) ListenPolicyDataChangesArgsForCall(i int) context.Context

func (*FakeStorage) ListenPolicyDataChangesCallCount

func (fake *FakeStorage) ListenPolicyDataChangesCallCount() int

func (*FakeStorage) ListenPolicyDataChangesCalls

func (fake *FakeStorage) ListenPolicyDataChangesCalls(stub func(context.Context) error)

func (*FakeStorage) ListenPolicyDataChangesReturns

func (fake *FakeStorage) ListenPolicyDataChangesReturns(result1 error)

func (*FakeStorage) ListenPolicyDataChangesReturnsOnCall

func (fake *FakeStorage) ListenPolicyDataChangesReturnsOnCall(i int, result1 error)

func (*FakeStorage) Policy

func (fake *FakeStorage) Policy(arg1 context.Context, arg2 string, arg3 string, arg4 string, arg5 string) (*storage.Policy, error)

func (*FakeStorage) PolicyArgsForCall

func (fake *FakeStorage) PolicyArgsForCall(i int) (context.Context, string, string, string, string)

func (*FakeStorage) PolicyCallCount

func (fake *FakeStorage) PolicyCallCount() int

func (*FakeStorage) PolicyCalls

func (fake *FakeStorage) PolicyCalls(stub func(context.Context, string, string, string, string) (*storage.Policy, error))

func (*FakeStorage) PolicyReturns

func (fake *FakeStorage) PolicyReturns(result1 *storage.Policy, result2 error)

func (*FakeStorage) PolicyReturnsOnCall

func (fake *FakeStorage) PolicyReturnsOnCall(i int, result1 *storage.Policy, result2 error)

func (*FakeStorage) SaveAutoImportConfig added in v1.2.0

func (fake *FakeStorage) SaveAutoImportConfig(arg1 context.Context, arg2 *storage.PolicyAutoImport) error

func (*FakeStorage) SaveAutoImportConfigArgsForCall added in v1.2.0

func (fake *FakeStorage) SaveAutoImportConfigArgsForCall(i int) (context.Context, *storage.PolicyAutoImport)

func (*FakeStorage) SaveAutoImportConfigCallCount added in v1.2.0

func (fake *FakeStorage) SaveAutoImportConfigCallCount() int

func (*FakeStorage) SaveAutoImportConfigCalls added in v1.2.0

func (fake *FakeStorage) SaveAutoImportConfigCalls(stub func(context.Context, *storage.PolicyAutoImport) error)

func (*FakeStorage) SaveAutoImportConfigReturns added in v1.2.0

func (fake *FakeStorage) SaveAutoImportConfigReturns(result1 error)

func (*FakeStorage) SaveAutoImportConfigReturnsOnCall added in v1.2.0

func (fake *FakeStorage) SaveAutoImportConfigReturnsOnCall(i int, result1 error)

func (*FakeStorage) SavePolicy

func (fake *FakeStorage) SavePolicy(arg1 context.Context, arg2 *storage.Policy) error

func (*FakeStorage) SavePolicyArgsForCall

func (fake *FakeStorage) SavePolicyArgsForCall(i int) (context.Context, *storage.Policy)

func (*FakeStorage) SavePolicyCallCount

func (fake *FakeStorage) SavePolicyCallCount() int

func (*FakeStorage) SavePolicyCalls

func (fake *FakeStorage) SavePolicyCalls(stub func(context.Context, *storage.Policy) error)

func (*FakeStorage) SavePolicyReturns

func (fake *FakeStorage) SavePolicyReturns(result1 error)

func (*FakeStorage) SavePolicyReturnsOnCall

func (fake *FakeStorage) SavePolicyReturnsOnCall(i int, result1 error)

func (*FakeStorage) SetData

func (fake *FakeStorage) SetData(arg1 context.Context, arg2 string, arg3 map[string]interface{}) error

func (*FakeStorage) SetDataArgsForCall

func (fake *FakeStorage) SetDataArgsForCall(i int) (context.Context, string, map[string]interface{})

func (*FakeStorage) SetDataCallCount

func (fake *FakeStorage) SetDataCallCount() int

func (*FakeStorage) SetDataCalls

func (fake *FakeStorage) SetDataCalls(stub func(context.Context, string, map[string]interface{}) error)

func (*FakeStorage) SetDataReturns

func (fake *FakeStorage) SetDataReturns(result1 error)

func (*FakeStorage) SetDataReturnsOnCall

func (fake *FakeStorage) SetDataReturnsOnCall(i int, result1 error)

func (*FakeStorage) SetPolicyLock

func (fake *FakeStorage) SetPolicyLock(arg1 context.Context, arg2 string, arg3 string, arg4 string, arg5 string, arg6 bool) error

func (*FakeStorage) SetPolicyLockArgsForCall

func (fake *FakeStorage) SetPolicyLockArgsForCall(i int) (context.Context, string, string, string, string, bool)

func (*FakeStorage) SetPolicyLockCallCount

func (fake *FakeStorage) SetPolicyLockCallCount() int

func (*FakeStorage) SetPolicyLockCalls

func (fake *FakeStorage) SetPolicyLockCalls(stub func(context.Context, string, string, string, string, bool) error)

func (*FakeStorage) SetPolicyLockReturns

func (fake *FakeStorage) SetPolicyLockReturns(result1 error)

func (*FakeStorage) SetPolicyLockReturnsOnCall

func (fake *FakeStorage) SetPolicyLockReturnsOnCall(i int, result1 error)

func (*FakeStorage) Subscriber added in v1.2.0

func (fake *FakeStorage) Subscriber(arg1 context.Context, arg2 string, arg3 string, arg4 string, arg5 string, arg6 string, arg7 string) (*storage.Subscriber, error)

func (*FakeStorage) SubscriberArgsForCall added in v1.2.0

func (fake *FakeStorage) SubscriberArgsForCall(i int) (context.Context, string, string, string, string, string, string)

func (*FakeStorage) SubscriberCallCount added in v1.2.0

func (fake *FakeStorage) SubscriberCallCount() int

func (*FakeStorage) SubscriberCalls added in v1.2.0

func (fake *FakeStorage) SubscriberCalls(stub func(context.Context, string, string, string, string, string, string) (*storage.Subscriber, error))

func (*FakeStorage) SubscriberReturns added in v1.2.0

func (fake *FakeStorage) SubscriberReturns(result1 *storage.Subscriber, result2 error)

func (*FakeStorage) SubscriberReturnsOnCall added in v1.2.0

func (fake *FakeStorage) SubscriberReturnsOnCall(i int, result1 *storage.Subscriber, result2 error)

Jump to

Keyboard shortcuts

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