Documentation
¶
Index ¶
- Constants
- type Database
- type ErrataListFilters
- type ErrataListItem
- type Logger
- type MockTangy
- func (_mock *MockTangy) Close()
- func (_m *MockTangy) EXPECT() *MockTangy_Expecter
- func (_mock *MockTangy) RpmRepositoryVersionEnvironmentSearch(ctx context.Context, hrefs []string, search string, limit int) ([]RpmEnvironmentSearch, error)
- func (_mock *MockTangy) RpmRepositoryVersionErrataList(ctx context.Context, hrefs []string, filterOpts ErrataListFilters, ...) ([]ErrataListItem, int, error)
- func (_mock *MockTangy) RpmRepositoryVersionModuleStreamsList(ctx context.Context, hrefs []string, filterOpts ModuleStreamListFilters, ...) ([]ModuleStreams, error)
- func (_mock *MockTangy) RpmRepositoryVersionPackageGroupSearch(ctx context.Context, hrefs []string, search string, limit int) ([]RpmPackageGroupSearch, error)
- func (_mock *MockTangy) RpmRepositoryVersionPackageList(ctx context.Context, hrefs []string, filterOpts RpmListFilters, ...) ([]RpmListItem, int, error)
- func (_mock *MockTangy) RpmRepositoryVersionPackageSearch(ctx context.Context, hrefs []string, search string, limit int) ([]RpmPackageSearch, error)
- type MockTangy_Close_Call
- type MockTangy_Expecter
- func (_e *MockTangy_Expecter) Close() *MockTangy_Close_Call
- func (_e *MockTangy_Expecter) RpmRepositoryVersionEnvironmentSearch(ctx interface{}, hrefs interface{}, search interface{}, limit interface{}) *MockTangy_RpmRepositoryVersionEnvironmentSearch_Call
- func (_e *MockTangy_Expecter) RpmRepositoryVersionErrataList(ctx interface{}, hrefs interface{}, filterOpts interface{}, ...) *MockTangy_RpmRepositoryVersionErrataList_Call
- func (_e *MockTangy_Expecter) RpmRepositoryVersionModuleStreamsList(ctx interface{}, hrefs interface{}, filterOpts interface{}, sortBy interface{}) *MockTangy_RpmRepositoryVersionModuleStreamsList_Call
- func (_e *MockTangy_Expecter) RpmRepositoryVersionPackageGroupSearch(ctx interface{}, hrefs interface{}, search interface{}, limit interface{}) *MockTangy_RpmRepositoryVersionPackageGroupSearch_Call
- func (_e *MockTangy_Expecter) RpmRepositoryVersionPackageList(ctx interface{}, hrefs interface{}, filterOpts interface{}, ...) *MockTangy_RpmRepositoryVersionPackageList_Call
- func (_e *MockTangy_Expecter) RpmRepositoryVersionPackageSearch(ctx interface{}, hrefs interface{}, search interface{}, limit interface{}) *MockTangy_RpmRepositoryVersionPackageSearch_Call
- type MockTangy_RpmRepositoryVersionEnvironmentSearch_Call
- func (_c *MockTangy_RpmRepositoryVersionEnvironmentSearch_Call) Return(rpmEnvironmentSearchs []RpmEnvironmentSearch, err error) *MockTangy_RpmRepositoryVersionEnvironmentSearch_Call
- func (_c *MockTangy_RpmRepositoryVersionEnvironmentSearch_Call) Run(run func(ctx context.Context, hrefs []string, search string, limit int)) *MockTangy_RpmRepositoryVersionEnvironmentSearch_Call
- func (_c *MockTangy_RpmRepositoryVersionEnvironmentSearch_Call) RunAndReturn(...) *MockTangy_RpmRepositoryVersionEnvironmentSearch_Call
- type MockTangy_RpmRepositoryVersionErrataList_Call
- func (_c *MockTangy_RpmRepositoryVersionErrataList_Call) Return(errataListItems []ErrataListItem, n int, err error) *MockTangy_RpmRepositoryVersionErrataList_Call
- func (_c *MockTangy_RpmRepositoryVersionErrataList_Call) Run(...) *MockTangy_RpmRepositoryVersionErrataList_Call
- func (_c *MockTangy_RpmRepositoryVersionErrataList_Call) RunAndReturn(...) *MockTangy_RpmRepositoryVersionErrataList_Call
- type MockTangy_RpmRepositoryVersionModuleStreamsList_Call
- func (_c *MockTangy_RpmRepositoryVersionModuleStreamsList_Call) Return(moduleStreamss []ModuleStreams, err error) *MockTangy_RpmRepositoryVersionModuleStreamsList_Call
- func (_c *MockTangy_RpmRepositoryVersionModuleStreamsList_Call) Run(...) *MockTangy_RpmRepositoryVersionModuleStreamsList_Call
- func (_c *MockTangy_RpmRepositoryVersionModuleStreamsList_Call) RunAndReturn(...) *MockTangy_RpmRepositoryVersionModuleStreamsList_Call
- type MockTangy_RpmRepositoryVersionPackageGroupSearch_Call
- func (_c *MockTangy_RpmRepositoryVersionPackageGroupSearch_Call) Return(rpmPackageGroupSearchs []RpmPackageGroupSearch, err error) *MockTangy_RpmRepositoryVersionPackageGroupSearch_Call
- func (_c *MockTangy_RpmRepositoryVersionPackageGroupSearch_Call) Run(run func(ctx context.Context, hrefs []string, search string, limit int)) *MockTangy_RpmRepositoryVersionPackageGroupSearch_Call
- func (_c *MockTangy_RpmRepositoryVersionPackageGroupSearch_Call) RunAndReturn(...) *MockTangy_RpmRepositoryVersionPackageGroupSearch_Call
- type MockTangy_RpmRepositoryVersionPackageList_Call
- func (_c *MockTangy_RpmRepositoryVersionPackageList_Call) Return(rpmListItems []RpmListItem, n int, err error) *MockTangy_RpmRepositoryVersionPackageList_Call
- func (_c *MockTangy_RpmRepositoryVersionPackageList_Call) Run(run func(ctx context.Context, hrefs []string, filterOpts RpmListFilters, ...)) *MockTangy_RpmRepositoryVersionPackageList_Call
- func (_c *MockTangy_RpmRepositoryVersionPackageList_Call) RunAndReturn(...) *MockTangy_RpmRepositoryVersionPackageList_Call
- type MockTangy_RpmRepositoryVersionPackageSearch_Call
- func (_c *MockTangy_RpmRepositoryVersionPackageSearch_Call) Return(rpmPackageSearchs []RpmPackageSearch, err error) *MockTangy_RpmRepositoryVersionPackageSearch_Call
- func (_c *MockTangy_RpmRepositoryVersionPackageSearch_Call) Run(run func(ctx context.Context, hrefs []string, search string, limit int)) *MockTangy_RpmRepositoryVersionPackageSearch_Call
- func (_c *MockTangy_RpmRepositoryVersionPackageSearch_Call) RunAndReturn(...) *MockTangy_RpmRepositoryVersionPackageSearch_Call
- type ModuleStreamListFilters
- type ModuleStreams
- type PageOptions
- type ParsedRepoVersion
- type RpmEnvironmentSearch
- type RpmListFilters
- type RpmListItem
- type RpmPackageGroupSearch
- type RpmPackageSearch
- type Tangy
Constants ¶
const DefaultLimit = 500
const DefaultMaxPoolLimit = 20
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
Name string
Host string
Port int
User string
Password string
CACertPath string `mapstructure:"ca_cert_path"`
PoolLimit int `mapstructure:"pool_limit"`
}
Database configuration options for connection to a pulp database
type ErrataListFilters ¶ added in v0.0.5
type ErrataListItem ¶ added in v0.0.5
type MockTangy ¶
MockTangy is an autogenerated mock type for the Tangy type
func NewMockTangy ¶
NewMockTangy creates a new instance of MockTangy. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockTangy) Close ¶
func (_mock *MockTangy) Close()
Close provides a mock function for the type MockTangy
func (*MockTangy) EXPECT ¶ added in v0.0.16
func (_m *MockTangy) EXPECT() *MockTangy_Expecter
func (*MockTangy) RpmRepositoryVersionEnvironmentSearch ¶ added in v0.0.2
func (_mock *MockTangy) RpmRepositoryVersionEnvironmentSearch(ctx context.Context, hrefs []string, search string, limit int) ([]RpmEnvironmentSearch, error)
RpmRepositoryVersionEnvironmentSearch provides a mock function for the type MockTangy
func (*MockTangy) RpmRepositoryVersionErrataList ¶ added in v0.0.5
func (_mock *MockTangy) RpmRepositoryVersionErrataList(ctx context.Context, hrefs []string, filterOpts ErrataListFilters, pageOpts PageOptions) ([]ErrataListItem, int, error)
RpmRepositoryVersionErrataList provides a mock function for the type MockTangy
func (*MockTangy) RpmRepositoryVersionModuleStreamsList ¶ added in v0.0.11
func (_mock *MockTangy) RpmRepositoryVersionModuleStreamsList(ctx context.Context, hrefs []string, filterOpts ModuleStreamListFilters, sortBy string) ([]ModuleStreams, error)
RpmRepositoryVersionModuleStreamsList provides a mock function for the type MockTangy
func (*MockTangy) RpmRepositoryVersionPackageGroupSearch ¶ added in v0.0.2
func (_mock *MockTangy) RpmRepositoryVersionPackageGroupSearch(ctx context.Context, hrefs []string, search string, limit int) ([]RpmPackageGroupSearch, error)
RpmRepositoryVersionPackageGroupSearch provides a mock function for the type MockTangy
func (*MockTangy) RpmRepositoryVersionPackageList ¶ added in v0.0.4
func (_mock *MockTangy) RpmRepositoryVersionPackageList(ctx context.Context, hrefs []string, filterOpts RpmListFilters, pageOpts PageOptions) ([]RpmListItem, int, error)
RpmRepositoryVersionPackageList provides a mock function for the type MockTangy
func (*MockTangy) RpmRepositoryVersionPackageSearch ¶
func (_mock *MockTangy) RpmRepositoryVersionPackageSearch(ctx context.Context, hrefs []string, search string, limit int) ([]RpmPackageSearch, error)
RpmRepositoryVersionPackageSearch provides a mock function for the type MockTangy
type MockTangy_Close_Call ¶ added in v0.0.16
MockTangy_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*MockTangy_Close_Call) Return ¶ added in v0.0.16
func (_c *MockTangy_Close_Call) Return() *MockTangy_Close_Call
func (*MockTangy_Close_Call) Run ¶ added in v0.0.16
func (_c *MockTangy_Close_Call) Run(run func()) *MockTangy_Close_Call
func (*MockTangy_Close_Call) RunAndReturn ¶ added in v0.0.16
func (_c *MockTangy_Close_Call) RunAndReturn(run func()) *MockTangy_Close_Call
type MockTangy_Expecter ¶ added in v0.0.16
type MockTangy_Expecter struct {
// contains filtered or unexported fields
}
func (*MockTangy_Expecter) Close ¶ added in v0.0.16
func (_e *MockTangy_Expecter) Close() *MockTangy_Close_Call
Close is a helper method to define mock.On call
func (*MockTangy_Expecter) RpmRepositoryVersionEnvironmentSearch ¶ added in v0.0.16
func (_e *MockTangy_Expecter) RpmRepositoryVersionEnvironmentSearch(ctx interface{}, hrefs interface{}, search interface{}, limit interface{}) *MockTangy_RpmRepositoryVersionEnvironmentSearch_Call
RpmRepositoryVersionEnvironmentSearch is a helper method to define mock.On call
- ctx context.Context
- hrefs []string
- search string
- limit int
func (*MockTangy_Expecter) RpmRepositoryVersionErrataList ¶ added in v0.0.16
func (_e *MockTangy_Expecter) RpmRepositoryVersionErrataList(ctx interface{}, hrefs interface{}, filterOpts interface{}, pageOpts interface{}) *MockTangy_RpmRepositoryVersionErrataList_Call
RpmRepositoryVersionErrataList is a helper method to define mock.On call
- ctx context.Context
- hrefs []string
- filterOpts ErrataListFilters
- pageOpts PageOptions
func (*MockTangy_Expecter) RpmRepositoryVersionModuleStreamsList ¶ added in v0.0.16
func (_e *MockTangy_Expecter) RpmRepositoryVersionModuleStreamsList(ctx interface{}, hrefs interface{}, filterOpts interface{}, sortBy interface{}) *MockTangy_RpmRepositoryVersionModuleStreamsList_Call
RpmRepositoryVersionModuleStreamsList is a helper method to define mock.On call
- ctx context.Context
- hrefs []string
- filterOpts ModuleStreamListFilters
- sortBy string
func (*MockTangy_Expecter) RpmRepositoryVersionPackageGroupSearch ¶ added in v0.0.16
func (_e *MockTangy_Expecter) RpmRepositoryVersionPackageGroupSearch(ctx interface{}, hrefs interface{}, search interface{}, limit interface{}) *MockTangy_RpmRepositoryVersionPackageGroupSearch_Call
RpmRepositoryVersionPackageGroupSearch is a helper method to define mock.On call
- ctx context.Context
- hrefs []string
- search string
- limit int
func (*MockTangy_Expecter) RpmRepositoryVersionPackageList ¶ added in v0.0.16
func (_e *MockTangy_Expecter) RpmRepositoryVersionPackageList(ctx interface{}, hrefs interface{}, filterOpts interface{}, pageOpts interface{}) *MockTangy_RpmRepositoryVersionPackageList_Call
RpmRepositoryVersionPackageList is a helper method to define mock.On call
- ctx context.Context
- hrefs []string
- filterOpts RpmListFilters
- pageOpts PageOptions
func (*MockTangy_Expecter) RpmRepositoryVersionPackageSearch ¶ added in v0.0.16
func (_e *MockTangy_Expecter) RpmRepositoryVersionPackageSearch(ctx interface{}, hrefs interface{}, search interface{}, limit interface{}) *MockTangy_RpmRepositoryVersionPackageSearch_Call
RpmRepositoryVersionPackageSearch is a helper method to define mock.On call
- ctx context.Context
- hrefs []string
- search string
- limit int
type MockTangy_RpmRepositoryVersionEnvironmentSearch_Call ¶ added in v0.0.16
MockTangy_RpmRepositoryVersionEnvironmentSearch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RpmRepositoryVersionEnvironmentSearch'
func (*MockTangy_RpmRepositoryVersionEnvironmentSearch_Call) Return ¶ added in v0.0.16
func (_c *MockTangy_RpmRepositoryVersionEnvironmentSearch_Call) Return(rpmEnvironmentSearchs []RpmEnvironmentSearch, err error) *MockTangy_RpmRepositoryVersionEnvironmentSearch_Call
func (*MockTangy_RpmRepositoryVersionEnvironmentSearch_Call) Run ¶ added in v0.0.16
func (_c *MockTangy_RpmRepositoryVersionEnvironmentSearch_Call) Run(run func(ctx context.Context, hrefs []string, search string, limit int)) *MockTangy_RpmRepositoryVersionEnvironmentSearch_Call
func (*MockTangy_RpmRepositoryVersionEnvironmentSearch_Call) RunAndReturn ¶ added in v0.0.16
func (_c *MockTangy_RpmRepositoryVersionEnvironmentSearch_Call) RunAndReturn(run func(ctx context.Context, hrefs []string, search string, limit int) ([]RpmEnvironmentSearch, error)) *MockTangy_RpmRepositoryVersionEnvironmentSearch_Call
type MockTangy_RpmRepositoryVersionErrataList_Call ¶ added in v0.0.16
MockTangy_RpmRepositoryVersionErrataList_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RpmRepositoryVersionErrataList'
func (*MockTangy_RpmRepositoryVersionErrataList_Call) Return ¶ added in v0.0.16
func (_c *MockTangy_RpmRepositoryVersionErrataList_Call) Return(errataListItems []ErrataListItem, n int, err error) *MockTangy_RpmRepositoryVersionErrataList_Call
func (*MockTangy_RpmRepositoryVersionErrataList_Call) Run ¶ added in v0.0.16
func (_c *MockTangy_RpmRepositoryVersionErrataList_Call) Run(run func(ctx context.Context, hrefs []string, filterOpts ErrataListFilters, pageOpts PageOptions)) *MockTangy_RpmRepositoryVersionErrataList_Call
func (*MockTangy_RpmRepositoryVersionErrataList_Call) RunAndReturn ¶ added in v0.0.16
func (_c *MockTangy_RpmRepositoryVersionErrataList_Call) RunAndReturn(run func(ctx context.Context, hrefs []string, filterOpts ErrataListFilters, pageOpts PageOptions) ([]ErrataListItem, int, error)) *MockTangy_RpmRepositoryVersionErrataList_Call
type MockTangy_RpmRepositoryVersionModuleStreamsList_Call ¶ added in v0.0.16
MockTangy_RpmRepositoryVersionModuleStreamsList_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RpmRepositoryVersionModuleStreamsList'
func (*MockTangy_RpmRepositoryVersionModuleStreamsList_Call) Return ¶ added in v0.0.16
func (_c *MockTangy_RpmRepositoryVersionModuleStreamsList_Call) Return(moduleStreamss []ModuleStreams, err error) *MockTangy_RpmRepositoryVersionModuleStreamsList_Call
func (*MockTangy_RpmRepositoryVersionModuleStreamsList_Call) Run ¶ added in v0.0.16
func (_c *MockTangy_RpmRepositoryVersionModuleStreamsList_Call) Run(run func(ctx context.Context, hrefs []string, filterOpts ModuleStreamListFilters, sortBy string)) *MockTangy_RpmRepositoryVersionModuleStreamsList_Call
func (*MockTangy_RpmRepositoryVersionModuleStreamsList_Call) RunAndReturn ¶ added in v0.0.16
func (_c *MockTangy_RpmRepositoryVersionModuleStreamsList_Call) RunAndReturn(run func(ctx context.Context, hrefs []string, filterOpts ModuleStreamListFilters, sortBy string) ([]ModuleStreams, error)) *MockTangy_RpmRepositoryVersionModuleStreamsList_Call
type MockTangy_RpmRepositoryVersionPackageGroupSearch_Call ¶ added in v0.0.16
MockTangy_RpmRepositoryVersionPackageGroupSearch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RpmRepositoryVersionPackageGroupSearch'
func (*MockTangy_RpmRepositoryVersionPackageGroupSearch_Call) Return ¶ added in v0.0.16
func (_c *MockTangy_RpmRepositoryVersionPackageGroupSearch_Call) Return(rpmPackageGroupSearchs []RpmPackageGroupSearch, err error) *MockTangy_RpmRepositoryVersionPackageGroupSearch_Call
func (*MockTangy_RpmRepositoryVersionPackageGroupSearch_Call) Run ¶ added in v0.0.16
func (_c *MockTangy_RpmRepositoryVersionPackageGroupSearch_Call) Run(run func(ctx context.Context, hrefs []string, search string, limit int)) *MockTangy_RpmRepositoryVersionPackageGroupSearch_Call
func (*MockTangy_RpmRepositoryVersionPackageGroupSearch_Call) RunAndReturn ¶ added in v0.0.16
func (_c *MockTangy_RpmRepositoryVersionPackageGroupSearch_Call) RunAndReturn(run func(ctx context.Context, hrefs []string, search string, limit int) ([]RpmPackageGroupSearch, error)) *MockTangy_RpmRepositoryVersionPackageGroupSearch_Call
type MockTangy_RpmRepositoryVersionPackageList_Call ¶ added in v0.0.16
MockTangy_RpmRepositoryVersionPackageList_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RpmRepositoryVersionPackageList'
func (*MockTangy_RpmRepositoryVersionPackageList_Call) Return ¶ added in v0.0.16
func (_c *MockTangy_RpmRepositoryVersionPackageList_Call) Return(rpmListItems []RpmListItem, n int, err error) *MockTangy_RpmRepositoryVersionPackageList_Call
func (*MockTangy_RpmRepositoryVersionPackageList_Call) Run ¶ added in v0.0.16
func (_c *MockTangy_RpmRepositoryVersionPackageList_Call) Run(run func(ctx context.Context, hrefs []string, filterOpts RpmListFilters, pageOpts PageOptions)) *MockTangy_RpmRepositoryVersionPackageList_Call
func (*MockTangy_RpmRepositoryVersionPackageList_Call) RunAndReturn ¶ added in v0.0.16
func (_c *MockTangy_RpmRepositoryVersionPackageList_Call) RunAndReturn(run func(ctx context.Context, hrefs []string, filterOpts RpmListFilters, pageOpts PageOptions) ([]RpmListItem, int, error)) *MockTangy_RpmRepositoryVersionPackageList_Call
type MockTangy_RpmRepositoryVersionPackageSearch_Call ¶ added in v0.0.16
MockTangy_RpmRepositoryVersionPackageSearch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RpmRepositoryVersionPackageSearch'
func (*MockTangy_RpmRepositoryVersionPackageSearch_Call) Return ¶ added in v0.0.16
func (_c *MockTangy_RpmRepositoryVersionPackageSearch_Call) Return(rpmPackageSearchs []RpmPackageSearch, err error) *MockTangy_RpmRepositoryVersionPackageSearch_Call
func (*MockTangy_RpmRepositoryVersionPackageSearch_Call) Run ¶ added in v0.0.16
func (_c *MockTangy_RpmRepositoryVersionPackageSearch_Call) Run(run func(ctx context.Context, hrefs []string, search string, limit int)) *MockTangy_RpmRepositoryVersionPackageSearch_Call
func (*MockTangy_RpmRepositoryVersionPackageSearch_Call) RunAndReturn ¶ added in v0.0.16
func (_c *MockTangy_RpmRepositoryVersionPackageSearch_Call) RunAndReturn(run func(ctx context.Context, hrefs []string, search string, limit int) ([]RpmPackageSearch, error)) *MockTangy_RpmRepositoryVersionPackageSearch_Call
type ModuleStreamListFilters ¶ added in v0.0.11
type ModuleStreams ¶ added in v0.0.11
type ModuleStreams struct {
Name string // Name of the module
Stream string // Module stream version
Version string // The version of the rpm
Context string // Context of the module
Arch string // The Architecture of the rpm
Description string // Module description
Profiles map[string][]string // Module profile data
}
type PageOptions ¶ added in v0.0.4
type ParsedRepoVersion ¶ added in v0.0.4
type RpmEnvironmentSearch ¶ added in v0.0.2
type RpmListFilters ¶ added in v0.0.4
type RpmListFilters struct {
Name string
}
type RpmListItem ¶ added in v0.0.4
type RpmPackageGroupSearch ¶ added in v0.0.2
type RpmPackageSearch ¶
type Tangy ¶
type Tangy interface {
RpmRepositoryVersionPackageSearch(ctx context.Context, hrefs []string, search string, limit int) ([]RpmPackageSearch, error)
RpmRepositoryVersionPackageGroupSearch(ctx context.Context, hrefs []string, search string, limit int) ([]RpmPackageGroupSearch, error)
RpmRepositoryVersionEnvironmentSearch(ctx context.Context, hrefs []string, search string, limit int) ([]RpmEnvironmentSearch, error)
RpmRepositoryVersionPackageList(ctx context.Context, hrefs []string, filterOpts RpmListFilters, pageOpts PageOptions) ([]RpmListItem, int, error)
RpmRepositoryVersionModuleStreamsList(ctx context.Context, hrefs []string, filterOpts ModuleStreamListFilters, sortBy string) ([]ModuleStreams, error)
RpmRepositoryVersionErrataList(ctx context.Context, hrefs []string, filterOpts ErrataListFilters, pageOpts PageOptions) ([]ErrataListItem, int, error)
Close()
}