Documentation ¶
Overview ¶
Package repository is a generated GoMock package.
Package repository is a generated GoMock package.
Index ¶
- type Auth
- type MockAuth
- type MockAuthMockRecorder
- type MockOrganization
- func (m *MockOrganization) Create(org model.Organization) (*model.OrganizationCreate, error)
- func (m *MockOrganization) EXPECT() *MockOrganizationMockRecorder
- func (m *MockOrganization) Get(limit, page int) (*model.OrganizationList, error)
- func (m *MockOrganization) GetByID(organizationID string) (*model.OrganizationItem, error)
- func (m *MockOrganization) Update(organizationID string, orgInput model.OrganizationUpdate) (*model.OrganizationItem, error)
- type MockOrganizationMockRecorder
- func (mr *MockOrganizationMockRecorder) Create(org any) *gomock.Call
- func (mr *MockOrganizationMockRecorder) Get(limit, page any) *gomock.Call
- func (mr *MockOrganizationMockRecorder) GetByID(organizationID any) *gomock.Call
- func (mr *MockOrganizationMockRecorder) Update(organizationID, orgInput any) *gomock.Call
- type Organization
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth interface { AuthenticateWithCredentials(username, password string) (*model.TokenResponse, error) ExchangeToken(code string) (*model.TokenResponse, error) }
type MockAuth ¶ added in v1.22.0
type MockAuth struct {
// contains filtered or unexported fields
}
MockAuth is a mock of Auth interface.
func NewMockAuth ¶ added in v1.22.0
func NewMockAuth(ctrl *gomock.Controller) *MockAuth
NewMockAuth creates a new mock instance.
func (*MockAuth) AuthenticateWithCredentials ¶ added in v1.22.0
func (m *MockAuth) AuthenticateWithCredentials(username, password string) (*model.TokenResponse, error)
AuthenticateWithCredentials mocks base method.
func (*MockAuth) EXPECT ¶ added in v1.22.0
func (m *MockAuth) EXPECT() *MockAuthMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAuth) ExchangeToken ¶ added in v1.22.0
func (m *MockAuth) ExchangeToken(code string) (*model.TokenResponse, error)
ExchangeToken mocks base method.
type MockAuthMockRecorder ¶ added in v1.22.0
type MockAuthMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthMockRecorder is the mock recorder for MockAuth.
func (*MockAuthMockRecorder) AuthenticateWithCredentials ¶ added in v1.22.0
func (mr *MockAuthMockRecorder) AuthenticateWithCredentials(username, password any) *gomock.Call
AuthenticateWithCredentials indicates an expected call of AuthenticateWithCredentials.
func (*MockAuthMockRecorder) ExchangeToken ¶ added in v1.22.0
func (mr *MockAuthMockRecorder) ExchangeToken(code any) *gomock.Call
ExchangeToken indicates an expected call of ExchangeToken.
type MockOrganization ¶ added in v1.25.0
type MockOrganization struct {
// contains filtered or unexported fields
}
MockOrganization is a mock of Organization interface.
func NewMockOrganization ¶ added in v1.25.0
func NewMockOrganization(ctrl *gomock.Controller) *MockOrganization
NewMockOrganization creates a new mock instance.
func (*MockOrganization) Create ¶ added in v1.25.0
func (m *MockOrganization) Create(org model.Organization) (*model.OrganizationCreate, error)
Create mocks base method.
func (*MockOrganization) EXPECT ¶ added in v1.25.0
func (m *MockOrganization) EXPECT() *MockOrganizationMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockOrganization) Get ¶ added in v1.25.0
func (m *MockOrganization) Get(limit, page int) (*model.OrganizationList, error)
Get mocks base method.
func (*MockOrganization) GetByID ¶ added in v1.25.0
func (m *MockOrganization) GetByID(organizationID string) (*model.OrganizationItem, error)
GetByID mocks base method.
func (*MockOrganization) Update ¶ added in v1.26.0
func (m *MockOrganization) Update(organizationID string, orgInput model.OrganizationUpdate) (*model.OrganizationItem, error)
Update mocks base method.
type MockOrganizationMockRecorder ¶ added in v1.25.0
type MockOrganizationMockRecorder struct {
// contains filtered or unexported fields
}
MockOrganizationMockRecorder is the mock recorder for MockOrganization.
func (*MockOrganizationMockRecorder) Create ¶ added in v1.25.0
func (mr *MockOrganizationMockRecorder) Create(org any) *gomock.Call
Create indicates an expected call of Create.
func (*MockOrganizationMockRecorder) Get ¶ added in v1.25.0
func (mr *MockOrganizationMockRecorder) Get(limit, page any) *gomock.Call
Get indicates an expected call of Get.
type Organization ¶ added in v1.25.0
type Organization interface { Create(org model.Organization) (*model.OrganizationCreate, error) Get(limit, page int) (*model.OrganizationList, error) GetByID(organizationID string) (*model.OrganizationItem, error) Update(organizationID string, orgInput model.OrganizationUpdate) (*model.OrganizationItem, error) }