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.
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.
Code generated by counterfeiter. DO NOT EDIT.
Index ¶
- type Db
- func (fake *Db) Beginx() (*sqlx.Tx, error)
- func (fake *Db) BeginxCallCount() int
- func (fake *Db) BeginxReturns(result1 *sqlx.Tx, result2 error)
- func (fake *Db) BeginxReturnsOnCall(i int, result1 *sqlx.Tx, result2 error)
- func (fake *Db) DriverName() string
- func (fake *Db) DriverNameCallCount() int
- func (fake *Db) DriverNameReturns(result1 string)
- func (fake *Db) DriverNameReturnsOnCall(i int, result1 string)
- func (fake *Db) Exec(query string, args ...interface{}) (sql.Result, error)
- func (fake *Db) ExecArgsForCall(i int) (string, []interface{})
- func (fake *Db) ExecCallCount() int
- func (fake *Db) ExecReturns(result1 sql.Result, result2 error)
- func (fake *Db) ExecReturnsOnCall(i int, result1 sql.Result, result2 error)
- func (fake *Db) Get(dest interface{}, query string, args ...interface{}) error
- func (fake *Db) GetArgsForCall(i int) (interface{}, string, []interface{})
- func (fake *Db) GetCallCount() int
- func (fake *Db) GetReturns(result1 error)
- func (fake *Db) GetReturnsOnCall(i int, result1 error)
- func (fake *Db) Invocations() map[string][][]interface{}
- func (fake *Db) NamedExec(query string, arg interface{}) (sql.Result, error)
- func (fake *Db) NamedExecArgsForCall(i int) (string, interface{})
- func (fake *Db) NamedExecCallCount() int
- func (fake *Db) NamedExecReturns(result1 sql.Result, result2 error)
- func (fake *Db) NamedExecReturnsOnCall(i int, result1 sql.Result, result2 error)
- func (fake *Db) Query(query string, args ...interface{}) (*sql.Rows, error)
- func (fake *Db) QueryArgsForCall(i int) (string, []interface{})
- func (fake *Db) QueryCallCount() int
- func (fake *Db) QueryReturns(result1 *sql.Rows, result2 error)
- func (fake *Db) QueryReturnsOnCall(i int, result1 *sql.Rows, result2 error)
- func (fake *Db) QueryRow(query string, args ...interface{}) *sql.Row
- func (fake *Db) QueryRowArgsForCall(i int) (string, []interface{})
- func (fake *Db) QueryRowCallCount() int
- func (fake *Db) QueryRowReturns(result1 *sql.Row)
- func (fake *Db) QueryRowReturnsOnCall(i int, result1 *sql.Row)
- func (fake *Db) Select(dest interface{}, query string, args ...interface{}) error
- func (fake *Db) SelectArgsForCall(i int) (interface{}, string, []interface{})
- func (fake *Db) SelectCallCount() int
- func (fake *Db) SelectReturns(result1 error)
- func (fake *Db) SelectReturnsOnCall(i int, result1 error)
- type DestinationRepo
- func (fake *DestinationRepo) CountWhereGroupID(arg1 store.Transaction, arg2 int) (int, error)
- func (fake *DestinationRepo) CountWhereGroupIDArgsForCall(i int) (store.Transaction, int)
- func (fake *DestinationRepo) CountWhereGroupIDCallCount() int
- func (fake *DestinationRepo) CountWhereGroupIDReturns(result1 int, result2 error)
- func (fake *DestinationRepo) CountWhereGroupIDReturnsOnCall(i int, result1 int, result2 error)
- func (fake *DestinationRepo) Create(arg1 store.Transaction, arg2 int, arg3 int, arg4 string) (int, error)
- func (fake *DestinationRepo) CreateArgsForCall(i int) (store.Transaction, int, int, string)
- func (fake *DestinationRepo) CreateCallCount() int
- func (fake *DestinationRepo) CreateReturns(result1 int, result2 error)
- func (fake *DestinationRepo) CreateReturnsOnCall(i int, result1 int, result2 error)
- func (fake *DestinationRepo) Delete(arg1 store.Transaction, arg2 int) error
- func (fake *DestinationRepo) DeleteArgsForCall(i int) (store.Transaction, int)
- func (fake *DestinationRepo) DeleteCallCount() int
- func (fake *DestinationRepo) DeleteReturns(result1 error)
- func (fake *DestinationRepo) DeleteReturnsOnCall(i int, result1 error)
- func (fake *DestinationRepo) GetID(arg1 store.Transaction, arg2 int, arg3 int, arg4 string) (int, error)
- func (fake *DestinationRepo) GetIDArgsForCall(i int) (store.Transaction, int, int, string)
- func (fake *DestinationRepo) GetIDCallCount() int
- func (fake *DestinationRepo) GetIDReturns(result1 int, result2 error)
- func (fake *DestinationRepo) GetIDReturnsOnCall(i int, result1 int, result2 error)
- func (fake *DestinationRepo) Invocations() map[string][][]interface{}
- type GroupRepo
- func (fake *GroupRepo) Create(arg1 store.Transaction, arg2 string) (int, error)
- func (fake *GroupRepo) CreateArgsForCall(i int) (store.Transaction, string)
- func (fake *GroupRepo) CreateCallCount() int
- func (fake *GroupRepo) CreateReturns(result1 int, result2 error)
- func (fake *GroupRepo) CreateReturnsOnCall(i int, result1 int, result2 error)
- func (fake *GroupRepo) Delete(arg1 store.Transaction, arg2 int) error
- func (fake *GroupRepo) DeleteArgsForCall(i int) (store.Transaction, int)
- func (fake *GroupRepo) DeleteCallCount() int
- func (fake *GroupRepo) DeleteReturns(result1 error)
- func (fake *GroupRepo) DeleteReturnsOnCall(i int, result1 error)
- func (fake *GroupRepo) GetID(arg1 store.Transaction, arg2 string) (int, error)
- func (fake *GroupRepo) GetIDArgsForCall(i int) (store.Transaction, string)
- func (fake *GroupRepo) GetIDCallCount() int
- func (fake *GroupRepo) GetIDReturns(result1 int, result2 error)
- func (fake *GroupRepo) GetIDReturnsOnCall(i int, result1 int, result2 error)
- func (fake *GroupRepo) Invocations() map[string][][]interface{}
- type MetricsSender
- func (fake *MetricsSender) IncrementCounter(arg1 string)
- func (fake *MetricsSender) IncrementCounterArgsForCall(i int) string
- func (fake *MetricsSender) IncrementCounterCallCount() int
- func (fake *MetricsSender) Invocations() map[string][][]interface{}
- func (fake *MetricsSender) SendDuration(arg1 string, arg2 time.Duration)
- func (fake *MetricsSender) SendDurationArgsForCall(i int) (string, time.Duration)
- func (fake *MetricsSender) SendDurationCallCount() int
- type MigrateAdapter
- func (fake *MigrateAdapter) Exec(db store.MigrationDb, dialect string, m migrate.MigrationSource, ...) (int, error)
- func (fake *MigrateAdapter) ExecArgsForCall(i int) (store.MigrationDb, string, migrate.MigrationSource, migrate.MigrationDirection)
- func (fake *MigrateAdapter) ExecCallCount() int
- func (fake *MigrateAdapter) ExecReturns(result1 int, result2 error)
- func (fake *MigrateAdapter) ExecReturnsOnCall(i int, result1 int, result2 error)
- func (fake *MigrateAdapter) Invocations() map[string][][]interface{}
- type MigrationDb
- func (fake *MigrationDb) DriverName() string
- func (fake *MigrationDb) DriverNameCallCount() int
- func (fake *MigrationDb) DriverNameReturns(result1 string)
- func (fake *MigrationDb) DriverNameReturnsOnCall(i int, result1 string)
- func (fake *MigrationDb) Exec(query string, args ...interface{}) (sql.Result, error)
- func (fake *MigrationDb) ExecArgsForCall(i int) (string, []interface{})
- func (fake *MigrationDb) ExecCallCount() int
- func (fake *MigrationDb) ExecReturns(result1 sql.Result, result2 error)
- func (fake *MigrationDb) ExecReturnsOnCall(i int, result1 sql.Result, result2 error)
- func (fake *MigrationDb) Invocations() map[string][][]interface{}
- func (fake *MigrationDb) Query(query string, args ...interface{}) (*sql.Rows, error)
- func (fake *MigrationDb) QueryArgsForCall(i int) (string, []interface{})
- func (fake *MigrationDb) QueryCallCount() int
- func (fake *MigrationDb) QueryReturns(result1 *sql.Rows, result2 error)
- func (fake *MigrationDb) QueryReturnsOnCall(i int, result1 *sql.Rows, result2 error)
- func (fake *MigrationDb) QueryRow(query string, args ...interface{}) *sql.Row
- func (fake *MigrationDb) QueryRowArgsForCall(i int) (string, []interface{})
- func (fake *MigrationDb) QueryRowCallCount() int
- func (fake *MigrationDb) QueryRowReturns(result1 *sql.Row)
- func (fake *MigrationDb) QueryRowReturnsOnCall(i int, result1 *sql.Row)
- type PolicyRepo
- func (fake *PolicyRepo) CountWhereDestinationID(arg1 store.Transaction, arg2 int) (int, error)
- func (fake *PolicyRepo) CountWhereDestinationIDArgsForCall(i int) (store.Transaction, int)
- func (fake *PolicyRepo) CountWhereDestinationIDCallCount() int
- func (fake *PolicyRepo) CountWhereDestinationIDReturns(result1 int, result2 error)
- func (fake *PolicyRepo) CountWhereDestinationIDReturnsOnCall(i int, result1 int, result2 error)
- func (fake *PolicyRepo) CountWhereGroupID(arg1 store.Transaction, arg2 int) (int, error)
- func (fake *PolicyRepo) CountWhereGroupIDArgsForCall(i int) (store.Transaction, int)
- func (fake *PolicyRepo) CountWhereGroupIDCallCount() int
- func (fake *PolicyRepo) CountWhereGroupIDReturns(result1 int, result2 error)
- func (fake *PolicyRepo) CountWhereGroupIDReturnsOnCall(i int, result1 int, result2 error)
- func (fake *PolicyRepo) Create(arg1 store.Transaction, arg2 int, arg3 int) error
- func (fake *PolicyRepo) CreateArgsForCall(i int) (store.Transaction, int, int)
- func (fake *PolicyRepo) CreateCallCount() int
- func (fake *PolicyRepo) CreateReturns(result1 error)
- func (fake *PolicyRepo) CreateReturnsOnCall(i int, result1 error)
- func (fake *PolicyRepo) Delete(arg1 store.Transaction, arg2 int, arg3 int) error
- func (fake *PolicyRepo) DeleteArgsForCall(i int) (store.Transaction, int, int)
- func (fake *PolicyRepo) DeleteCallCount() int
- func (fake *PolicyRepo) DeleteReturns(result1 error)
- func (fake *PolicyRepo) DeleteReturnsOnCall(i int, result1 error)
- func (fake *PolicyRepo) Invocations() map[string][][]interface{}
- type SqlResult
- func (fake *SqlResult) Invocations() map[string][][]interface{}
- func (fake *SqlResult) LastInsertId() (int64, error)
- func (fake *SqlResult) LastInsertIdCallCount() int
- func (fake *SqlResult) LastInsertIdReturns(result1 int64, result2 error)
- func (fake *SqlResult) LastInsertIdReturnsOnCall(i int, result1 int64, result2 error)
- func (fake *SqlResult) RowsAffected() (int64, error)
- func (fake *SqlResult) RowsAffectedCallCount() int
- func (fake *SqlResult) RowsAffectedReturns(result1 int64, result2 error)
- func (fake *SqlResult) RowsAffectedReturnsOnCall(i int, result1 int64, result2 error)
- type Store
- func (fake *Store) All() ([]models.Policy, error)
- func (fake *Store) AllCallCount() int
- func (fake *Store) AllReturns(result1 []models.Policy, result2 error)
- func (fake *Store) AllReturnsOnCall(i int, result1 []models.Policy, result2 error)
- func (fake *Store) ByGuids(arg1 []string, arg2 []string) ([]models.Policy, error)
- func (fake *Store) ByGuidsArgsForCall(i int) ([]string, []string)
- func (fake *Store) ByGuidsCallCount() int
- func (fake *Store) ByGuidsReturns(result1 []models.Policy, result2 error)
- func (fake *Store) ByGuidsReturnsOnCall(i int, result1 []models.Policy, result2 error)
- func (fake *Store) CheckDatabase() error
- func (fake *Store) CheckDatabaseCallCount() int
- func (fake *Store) CheckDatabaseReturns(result1 error)
- func (fake *Store) CheckDatabaseReturnsOnCall(i int, result1 error)
- func (fake *Store) Create(arg1 []models.Policy) error
- func (fake *Store) CreateArgsForCall(i int) []models.Policy
- func (fake *Store) CreateCallCount() int
- func (fake *Store) CreateReturns(result1 error)
- func (fake *Store) CreateReturnsOnCall(i int, result1 error)
- func (fake *Store) Delete(arg1 []models.Policy) error
- func (fake *Store) DeleteArgsForCall(i int) []models.Policy
- func (fake *Store) DeleteCallCount() int
- func (fake *Store) DeleteReturns(result1 error)
- func (fake *Store) DeleteReturnsOnCall(i int, result1 error)
- func (fake *Store) Invocations() map[string][][]interface{}
- func (fake *Store) Tags() ([]models.Tag, error)
- func (fake *Store) TagsCallCount() int
- func (fake *Store) TagsReturns(result1 []models.Tag, result2 error)
- func (fake *Store) TagsReturnsOnCall(i int, result1 []models.Tag, result2 error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Db ¶
type Db struct { BeginxStub func() (*sqlx.Tx, error) ExecStub func(query string, args ...interface{}) (sql.Result, error) NamedExecStub func(query string, arg interface{}) (sql.Result, error) GetStub func(dest interface{}, query string, args ...interface{}) error SelectStub func(dest interface{}, query string, args ...interface{}) error QueryRowStub func(query string, args ...interface{}) *sql.Row QueryStub func(query string, args ...interface{}) (*sql.Rows, error) DriverNameStub func() string // contains filtered or unexported fields }
func (*Db) BeginxCallCount ¶
func (*Db) BeginxReturnsOnCall ¶ added in v0.22.0
func (*Db) DriverName ¶
func (*Db) DriverNameCallCount ¶
func (*Db) DriverNameReturns ¶
func (*Db) DriverNameReturnsOnCall ¶ added in v0.22.0
func (*Db) ExecArgsForCall ¶
func (*Db) ExecCallCount ¶
func (*Db) ExecReturnsOnCall ¶ added in v0.22.0
func (*Db) GetArgsForCall ¶
func (*Db) GetCallCount ¶
func (*Db) GetReturns ¶
func (*Db) GetReturnsOnCall ¶ added in v0.22.0
func (*Db) Invocations ¶
func (*Db) NamedExecArgsForCall ¶
func (*Db) NamedExecCallCount ¶
func (*Db) NamedExecReturnsOnCall ¶ added in v0.22.0
func (*Db) QueryArgsForCall ¶
func (*Db) QueryCallCount ¶
func (*Db) QueryReturnsOnCall ¶ added in v0.22.0
func (*Db) QueryRowArgsForCall ¶
func (*Db) QueryRowCallCount ¶
func (*Db) QueryRowReturns ¶
func (*Db) QueryRowReturnsOnCall ¶ added in v0.22.0
func (*Db) SelectArgsForCall ¶
func (*Db) SelectCallCount ¶
func (*Db) SelectReturns ¶
func (*Db) SelectReturnsOnCall ¶ added in v0.22.0
type DestinationRepo ¶
type DestinationRepo struct { CreateStub func(store.Transaction, int, int, string) (int, error) DeleteStub func(store.Transaction, int) error GetIDStub func(store.Transaction, int, int, string) (int, error) CountWhereGroupIDStub func(store.Transaction, int) (int, error) // contains filtered or unexported fields }
func (*DestinationRepo) CountWhereGroupID ¶
func (fake *DestinationRepo) CountWhereGroupID(arg1 store.Transaction, arg2 int) (int, error)
func (*DestinationRepo) CountWhereGroupIDArgsForCall ¶
func (fake *DestinationRepo) CountWhereGroupIDArgsForCall(i int) (store.Transaction, int)
func (*DestinationRepo) CountWhereGroupIDCallCount ¶
func (fake *DestinationRepo) CountWhereGroupIDCallCount() int
func (*DestinationRepo) CountWhereGroupIDReturns ¶
func (fake *DestinationRepo) CountWhereGroupIDReturns(result1 int, result2 error)
func (*DestinationRepo) CountWhereGroupIDReturnsOnCall ¶ added in v0.22.0
func (fake *DestinationRepo) CountWhereGroupIDReturnsOnCall(i int, result1 int, result2 error)
func (*DestinationRepo) Create ¶
func (fake *DestinationRepo) Create(arg1 store.Transaction, arg2 int, arg3 int, arg4 string) (int, error)
func (*DestinationRepo) CreateArgsForCall ¶
func (fake *DestinationRepo) CreateArgsForCall(i int) (store.Transaction, int, int, string)
func (*DestinationRepo) CreateCallCount ¶
func (fake *DestinationRepo) CreateCallCount() int
func (*DestinationRepo) CreateReturns ¶
func (fake *DestinationRepo) CreateReturns(result1 int, result2 error)
func (*DestinationRepo) CreateReturnsOnCall ¶ added in v0.22.0
func (fake *DestinationRepo) CreateReturnsOnCall(i int, result1 int, result2 error)
func (*DestinationRepo) Delete ¶
func (fake *DestinationRepo) Delete(arg1 store.Transaction, arg2 int) error
func (*DestinationRepo) DeleteArgsForCall ¶
func (fake *DestinationRepo) DeleteArgsForCall(i int) (store.Transaction, int)
func (*DestinationRepo) DeleteCallCount ¶
func (fake *DestinationRepo) DeleteCallCount() int
func (*DestinationRepo) DeleteReturns ¶
func (fake *DestinationRepo) DeleteReturns(result1 error)
func (*DestinationRepo) DeleteReturnsOnCall ¶ added in v0.22.0
func (fake *DestinationRepo) DeleteReturnsOnCall(i int, result1 error)
func (*DestinationRepo) GetID ¶
func (fake *DestinationRepo) GetID(arg1 store.Transaction, arg2 int, arg3 int, arg4 string) (int, error)
func (*DestinationRepo) GetIDArgsForCall ¶
func (fake *DestinationRepo) GetIDArgsForCall(i int) (store.Transaction, int, int, string)
func (*DestinationRepo) GetIDCallCount ¶
func (fake *DestinationRepo) GetIDCallCount() int
func (*DestinationRepo) GetIDReturns ¶
func (fake *DestinationRepo) GetIDReturns(result1 int, result2 error)
func (*DestinationRepo) GetIDReturnsOnCall ¶ added in v0.22.0
func (fake *DestinationRepo) GetIDReturnsOnCall(i int, result1 int, result2 error)
func (*DestinationRepo) Invocations ¶
func (fake *DestinationRepo) Invocations() map[string][][]interface{}
type GroupRepo ¶
type GroupRepo struct { CreateStub func(store.Transaction, string) (int, error) DeleteStub func(store.Transaction, int) error GetIDStub func(store.Transaction, string) (int, error) // contains filtered or unexported fields }
func (*GroupRepo) CreateArgsForCall ¶
func (fake *GroupRepo) CreateArgsForCall(i int) (store.Transaction, string)
func (*GroupRepo) CreateCallCount ¶
func (*GroupRepo) CreateReturns ¶
func (*GroupRepo) CreateReturnsOnCall ¶ added in v0.22.0
func (*GroupRepo) DeleteArgsForCall ¶
func (fake *GroupRepo) DeleteArgsForCall(i int) (store.Transaction, int)
func (*GroupRepo) DeleteCallCount ¶
func (*GroupRepo) DeleteReturns ¶
func (*GroupRepo) DeleteReturnsOnCall ¶ added in v0.22.0
func (*GroupRepo) GetIDArgsForCall ¶
func (fake *GroupRepo) GetIDArgsForCall(i int) (store.Transaction, string)
func (*GroupRepo) GetIDCallCount ¶
func (*GroupRepo) GetIDReturns ¶
func (*GroupRepo) GetIDReturnsOnCall ¶ added in v0.22.0
func (*GroupRepo) Invocations ¶
type MetricsSender ¶ added in v0.17.0
type MetricsSender struct { IncrementCounterStub func(string) SendDurationStub func(string, time.Duration) // contains filtered or unexported fields }
func (*MetricsSender) IncrementCounter ¶ added in v0.17.0
func (fake *MetricsSender) IncrementCounter(arg1 string)
func (*MetricsSender) IncrementCounterArgsForCall ¶ added in v0.17.0
func (fake *MetricsSender) IncrementCounterArgsForCall(i int) string
func (*MetricsSender) IncrementCounterCallCount ¶ added in v0.17.0
func (fake *MetricsSender) IncrementCounterCallCount() int
func (*MetricsSender) Invocations ¶ added in v0.17.0
func (fake *MetricsSender) Invocations() map[string][][]interface{}
func (*MetricsSender) SendDuration ¶ added in v0.17.0
func (fake *MetricsSender) SendDuration(arg1 string, arg2 time.Duration)
func (*MetricsSender) SendDurationArgsForCall ¶ added in v0.17.0
func (fake *MetricsSender) SendDurationArgsForCall(i int) (string, time.Duration)
func (*MetricsSender) SendDurationCallCount ¶ added in v0.17.0
func (fake *MetricsSender) SendDurationCallCount() int
type MigrateAdapter ¶ added in v1.3.0
type MigrateAdapter struct { ExecStub func(db store.MigrationDb, dialect string, m migrate.MigrationSource, dir migrate.MigrationDirection) (int, error) // contains filtered or unexported fields }
func (*MigrateAdapter) Exec ¶ added in v1.3.0
func (fake *MigrateAdapter) Exec(db store.MigrationDb, dialect string, m migrate.MigrationSource, dir migrate.MigrationDirection) (int, error)
func (*MigrateAdapter) ExecArgsForCall ¶ added in v1.3.0
func (fake *MigrateAdapter) ExecArgsForCall(i int) (store.MigrationDb, string, migrate.MigrationSource, migrate.MigrationDirection)
func (*MigrateAdapter) ExecCallCount ¶ added in v1.3.0
func (fake *MigrateAdapter) ExecCallCount() int
func (*MigrateAdapter) ExecReturns ¶ added in v1.3.0
func (fake *MigrateAdapter) ExecReturns(result1 int, result2 error)
func (*MigrateAdapter) ExecReturnsOnCall ¶ added in v1.3.0
func (fake *MigrateAdapter) ExecReturnsOnCall(i int, result1 int, result2 error)
func (*MigrateAdapter) Invocations ¶ added in v1.3.0
func (fake *MigrateAdapter) Invocations() map[string][][]interface{}
type MigrationDb ¶ added in v1.3.0
type MigrationDb struct { ExecStub func(query string, args ...interface{}) (sql.Result, error) QueryStub func(query string, args ...interface{}) (*sql.Rows, error) QueryRowStub func(query string, args ...interface{}) *sql.Row DriverNameStub func() string // contains filtered or unexported fields }
func (*MigrationDb) DriverName ¶ added in v1.3.0
func (fake *MigrationDb) DriverName() string
func (*MigrationDb) DriverNameCallCount ¶ added in v1.3.0
func (fake *MigrationDb) DriverNameCallCount() int
func (*MigrationDb) DriverNameReturns ¶ added in v1.3.0
func (fake *MigrationDb) DriverNameReturns(result1 string)
func (*MigrationDb) DriverNameReturnsOnCall ¶ added in v1.3.0
func (fake *MigrationDb) DriverNameReturnsOnCall(i int, result1 string)
func (*MigrationDb) Exec ¶ added in v1.3.0
func (fake *MigrationDb) Exec(query string, args ...interface{}) (sql.Result, error)
func (*MigrationDb) ExecArgsForCall ¶ added in v1.3.0
func (fake *MigrationDb) ExecArgsForCall(i int) (string, []interface{})
func (*MigrationDb) ExecCallCount ¶ added in v1.3.0
func (fake *MigrationDb) ExecCallCount() int
func (*MigrationDb) ExecReturns ¶ added in v1.3.0
func (fake *MigrationDb) ExecReturns(result1 sql.Result, result2 error)
func (*MigrationDb) ExecReturnsOnCall ¶ added in v1.3.0
func (fake *MigrationDb) ExecReturnsOnCall(i int, result1 sql.Result, result2 error)
func (*MigrationDb) Invocations ¶ added in v1.3.0
func (fake *MigrationDb) Invocations() map[string][][]interface{}
func (*MigrationDb) Query ¶ added in v1.3.0
func (fake *MigrationDb) Query(query string, args ...interface{}) (*sql.Rows, error)
func (*MigrationDb) QueryArgsForCall ¶ added in v1.3.0
func (fake *MigrationDb) QueryArgsForCall(i int) (string, []interface{})
func (*MigrationDb) QueryCallCount ¶ added in v1.3.0
func (fake *MigrationDb) QueryCallCount() int
func (*MigrationDb) QueryReturns ¶ added in v1.3.0
func (fake *MigrationDb) QueryReturns(result1 *sql.Rows, result2 error)
func (*MigrationDb) QueryReturnsOnCall ¶ added in v1.3.0
func (fake *MigrationDb) QueryReturnsOnCall(i int, result1 *sql.Rows, result2 error)
func (*MigrationDb) QueryRow ¶ added in v1.3.0
func (fake *MigrationDb) QueryRow(query string, args ...interface{}) *sql.Row
func (*MigrationDb) QueryRowArgsForCall ¶ added in v1.3.0
func (fake *MigrationDb) QueryRowArgsForCall(i int) (string, []interface{})
func (*MigrationDb) QueryRowCallCount ¶ added in v1.3.0
func (fake *MigrationDb) QueryRowCallCount() int
func (*MigrationDb) QueryRowReturns ¶ added in v1.3.0
func (fake *MigrationDb) QueryRowReturns(result1 *sql.Row)
func (*MigrationDb) QueryRowReturnsOnCall ¶ added in v1.3.0
func (fake *MigrationDb) QueryRowReturnsOnCall(i int, result1 *sql.Row)
type PolicyRepo ¶
type PolicyRepo struct { CreateStub func(store.Transaction, int, int) error DeleteStub func(store.Transaction, int, int) error CountWhereGroupIDStub func(store.Transaction, int) (int, error) CountWhereDestinationIDStub func(store.Transaction, int) (int, error) // contains filtered or unexported fields }
func (*PolicyRepo) CountWhereDestinationID ¶
func (fake *PolicyRepo) CountWhereDestinationID(arg1 store.Transaction, arg2 int) (int, error)
func (*PolicyRepo) CountWhereDestinationIDArgsForCall ¶
func (fake *PolicyRepo) CountWhereDestinationIDArgsForCall(i int) (store.Transaction, int)
func (*PolicyRepo) CountWhereDestinationIDCallCount ¶
func (fake *PolicyRepo) CountWhereDestinationIDCallCount() int
func (*PolicyRepo) CountWhereDestinationIDReturns ¶
func (fake *PolicyRepo) CountWhereDestinationIDReturns(result1 int, result2 error)
func (*PolicyRepo) CountWhereDestinationIDReturnsOnCall ¶ added in v0.22.0
func (fake *PolicyRepo) CountWhereDestinationIDReturnsOnCall(i int, result1 int, result2 error)
func (*PolicyRepo) CountWhereGroupID ¶
func (fake *PolicyRepo) CountWhereGroupID(arg1 store.Transaction, arg2 int) (int, error)
func (*PolicyRepo) CountWhereGroupIDArgsForCall ¶
func (fake *PolicyRepo) CountWhereGroupIDArgsForCall(i int) (store.Transaction, int)
func (*PolicyRepo) CountWhereGroupIDCallCount ¶
func (fake *PolicyRepo) CountWhereGroupIDCallCount() int
func (*PolicyRepo) CountWhereGroupIDReturns ¶
func (fake *PolicyRepo) CountWhereGroupIDReturns(result1 int, result2 error)
func (*PolicyRepo) CountWhereGroupIDReturnsOnCall ¶ added in v0.22.0
func (fake *PolicyRepo) CountWhereGroupIDReturnsOnCall(i int, result1 int, result2 error)
func (*PolicyRepo) Create ¶
func (fake *PolicyRepo) Create(arg1 store.Transaction, arg2 int, arg3 int) error
func (*PolicyRepo) CreateArgsForCall ¶
func (fake *PolicyRepo) CreateArgsForCall(i int) (store.Transaction, int, int)
func (*PolicyRepo) CreateCallCount ¶
func (fake *PolicyRepo) CreateCallCount() int
func (*PolicyRepo) CreateReturns ¶
func (fake *PolicyRepo) CreateReturns(result1 error)
func (*PolicyRepo) CreateReturnsOnCall ¶ added in v0.22.0
func (fake *PolicyRepo) CreateReturnsOnCall(i int, result1 error)
func (*PolicyRepo) Delete ¶
func (fake *PolicyRepo) Delete(arg1 store.Transaction, arg2 int, arg3 int) error
func (*PolicyRepo) DeleteArgsForCall ¶
func (fake *PolicyRepo) DeleteArgsForCall(i int) (store.Transaction, int, int)
func (*PolicyRepo) DeleteCallCount ¶
func (fake *PolicyRepo) DeleteCallCount() int
func (*PolicyRepo) DeleteReturns ¶
func (fake *PolicyRepo) DeleteReturns(result1 error)
func (*PolicyRepo) DeleteReturnsOnCall ¶ added in v0.22.0
func (fake *PolicyRepo) DeleteReturnsOnCall(i int, result1 error)
func (*PolicyRepo) Invocations ¶
func (fake *PolicyRepo) Invocations() map[string][][]interface{}
type SqlResult ¶
type SqlResult struct { LastInsertIdStub func() (int64, error) RowsAffectedStub func() (int64, error) // contains filtered or unexported fields }
func (*SqlResult) Invocations ¶
func (*SqlResult) LastInsertId ¶
func (*SqlResult) LastInsertIdCallCount ¶
func (*SqlResult) LastInsertIdReturns ¶
func (*SqlResult) LastInsertIdReturnsOnCall ¶ added in v0.22.0
func (*SqlResult) RowsAffected ¶
func (*SqlResult) RowsAffectedCallCount ¶
func (*SqlResult) RowsAffectedReturns ¶
type Store ¶ added in v0.17.0
type Store struct { CreateStub func([]models.Policy) error AllStub func() ([]models.Policy, error) DeleteStub func([]models.Policy) error TagsStub func() ([]models.Tag, error) ByGuidsStub func([]string, []string) ([]models.Policy, error) CheckDatabaseStub func() error // contains filtered or unexported fields }
func (*Store) AllCallCount ¶ added in v0.17.0
func (*Store) AllReturns ¶ added in v0.17.0
func (*Store) AllReturnsOnCall ¶ added in v0.22.0
func (*Store) ByGuidsArgsForCall ¶ added in v0.17.0
func (*Store) ByGuidsCallCount ¶ added in v0.17.0
func (*Store) ByGuidsReturns ¶ added in v0.17.0
func (*Store) ByGuidsReturnsOnCall ¶ added in v0.22.0
func (*Store) CheckDatabase ¶ added in v1.0.0
func (*Store) CheckDatabaseCallCount ¶ added in v1.0.0
func (*Store) CheckDatabaseReturns ¶ added in v1.0.0
func (*Store) CheckDatabaseReturnsOnCall ¶ added in v1.0.0
func (*Store) CreateArgsForCall ¶ added in v0.17.0
func (*Store) CreateCallCount ¶ added in v0.17.0
func (*Store) CreateReturns ¶ added in v0.17.0
func (*Store) CreateReturnsOnCall ¶ added in v0.22.0
func (*Store) DeleteArgsForCall ¶ added in v0.17.0
func (*Store) DeleteCallCount ¶ added in v0.17.0
func (*Store) DeleteReturns ¶ added in v0.17.0
func (*Store) DeleteReturnsOnCall ¶ added in v0.22.0
func (*Store) Invocations ¶ added in v0.17.0
func (*Store) TagsCallCount ¶ added in v0.17.0
func (*Store) TagsReturns ¶ added in v0.17.0
Click to show internal directories.
Click to hide internal directories.