mocks

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: BSD-3-Clause-LBNL Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertNotificationsApi

type AlertNotificationsApi struct {
	mock.Mock
}

AlertNotificationsApi is an autogenerated mock type for the AlertNotificationsApi type

func NewAlertNotificationsApi

func NewAlertNotificationsApi(t interface {
	mock.TestingT
	Cleanup(func())
}) *AlertNotificationsApi

NewAlertNotificationsApi creates a new instance of AlertNotificationsApi. 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 (*AlertNotificationsApi) DeleteAllAlertNotifications

func (_m *AlertNotificationsApi) DeleteAllAlertNotifications() []string

DeleteAllAlertNotifications provides a mock function with given fields:

func (*AlertNotificationsApi) DownloadAlertNotifications

func (_m *AlertNotificationsApi) DownloadAlertNotifications() []string

DownloadAlertNotifications provides a mock function with given fields:

func (*AlertNotificationsApi) ListAlertNotifications

func (_m *AlertNotificationsApi) ListAlertNotifications() []*models.AlertNotification

ListAlertNotifications provides a mock function with given fields:

func (*AlertNotificationsApi) UploadAlertNotifications

func (_m *AlertNotificationsApi) UploadAlertNotifications() []string

UploadAlertNotifications provides a mock function with given fields:

type AuthenticationApi

type AuthenticationApi struct {
	mock.Mock
}

AuthenticationApi is an autogenerated mock type for the AuthenticationApi type

func NewAuthenticationApi

func NewAuthenticationApi(t interface {
	mock.TestingT
	Cleanup(func())
}) *AuthenticationApi

NewAuthenticationApi creates a new instance of AuthenticationApi. 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 (*AuthenticationApi) CreateAPIKey

func (_m *AuthenticationApi) CreateAPIKey(name string, role string, expiration int64) (*models.NewAPIKeyResult, error)

CreateAPIKey provides a mock function with given fields: name, role, expiration

func (*AuthenticationApi) CreateServiceAccount

func (_m *AuthenticationApi) CreateServiceAccount(name string, role string, expiration int64) (*models.ServiceAccountDTO, error)

CreateServiceAccount provides a mock function with given fields: name, role, expiration

func (*AuthenticationApi) CreateServiceAccountToken

func (_m *AuthenticationApi) CreateServiceAccountToken(name int64, role string, expiration int64) (*models.NewAPIKeyResult, error)

CreateServiceAccountToken provides a mock function with given fields: name, role, expiration

func (*AuthenticationApi) DeleteAllServiceAccounts

func (_m *AuthenticationApi) DeleteAllServiceAccounts() []string

DeleteAllServiceAccounts provides a mock function with given fields:

func (*AuthenticationApi) DeleteAllTokens

func (_m *AuthenticationApi) DeleteAllTokens() []string

DeleteAllTokens provides a mock function with given fields:

func (*AuthenticationApi) DeleteServiceAccountTokens

func (_m *AuthenticationApi) DeleteServiceAccountTokens(serviceId int64) []string

DeleteServiceAccountTokens provides a mock function with given fields: serviceId

func (*AuthenticationApi) ListAPIKeys

func (_m *AuthenticationApi) ListAPIKeys() []*models.APIKeyDTO

ListAPIKeys provides a mock function with given fields:

func (*AuthenticationApi) ListServiceAccounts

func (_m *AuthenticationApi) ListServiceAccounts() []*api.ServiceAccountDTOWithTokens

ListServiceAccounts provides a mock function with given fields:

func (*AuthenticationApi) ListServiceAccountsTokens

func (_m *AuthenticationApi) ListServiceAccountsTokens(id int64) ([]*models.TokenDTO, error)

ListServiceAccountsTokens provides a mock function with given fields: id

func (*AuthenticationApi) Login

func (_m *AuthenticationApi) Login()

Login provides a mock function with given fields:

type ConnectionPermissions

type ConnectionPermissions struct {
	mock.Mock
}

ConnectionPermissions is an autogenerated mock type for the ConnectionPermissions type

func NewConnectionPermissions

func NewConnectionPermissions(t interface {
	mock.TestingT
	Cleanup(func())
}) *ConnectionPermissions

NewConnectionPermissions creates a new instance of ConnectionPermissions. 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 (*ConnectionPermissions) DeleteAllConnectionPermissions

func (_m *ConnectionPermissions) DeleteAllConnectionPermissions(filter filters.Filter) []string

DeleteAllConnectionPermissions provides a mock function with given fields: filter

func (*ConnectionPermissions) DownloadConnectionPermissions

func (_m *ConnectionPermissions) DownloadConnectionPermissions(filter filters.Filter) []string

DownloadConnectionPermissions provides a mock function with given fields: filter

func (*ConnectionPermissions) ListConnectionPermissions

ListConnectionPermissions provides a mock function with given fields: filter

func (*ConnectionPermissions) UploadConnectionPermissions

func (_m *ConnectionPermissions) UploadConnectionPermissions(filter filters.Filter) []string

UploadConnectionPermissions provides a mock function with given fields: filter

type ConnectionsApi

type ConnectionsApi struct {
	mock.Mock
}

ConnectionsApi is an autogenerated mock type for the ConnectionsApi type

func NewConnectionsApi

func NewConnectionsApi(t interface {
	mock.TestingT
	Cleanup(func())
}) *ConnectionsApi

NewConnectionsApi creates a new instance of ConnectionsApi. 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 (*ConnectionsApi) DeleteAllConnectionPermissions

func (_m *ConnectionsApi) DeleteAllConnectionPermissions(filter filters.Filter) []string

DeleteAllConnectionPermissions provides a mock function with given fields: filter

func (*ConnectionsApi) DeleteAllConnections

func (_m *ConnectionsApi) DeleteAllConnections(filter filters.Filter) []string

DeleteAllConnections provides a mock function with given fields: filter

func (*ConnectionsApi) DownloadConnectionPermissions

func (_m *ConnectionsApi) DownloadConnectionPermissions(filter filters.Filter) []string

DownloadConnectionPermissions provides a mock function with given fields: filter

func (*ConnectionsApi) DownloadConnections

func (_m *ConnectionsApi) DownloadConnections(filter filters.Filter) []string

DownloadConnections provides a mock function with given fields: filter

func (*ConnectionsApi) ListConnectionPermissions

func (_m *ConnectionsApi) ListConnectionPermissions(filter filters.Filter) map[*models.DataSourceListItemDTO]*models.DataSourcePermissionsDTO

ListConnectionPermissions provides a mock function with given fields: filter

func (*ConnectionsApi) ListConnections

func (_m *ConnectionsApi) ListConnections(filter filters.Filter) []models.DataSourceListItemDTO

ListConnections provides a mock function with given fields: filter

func (*ConnectionsApi) UploadConnectionPermissions

func (_m *ConnectionsApi) UploadConnectionPermissions(filter filters.Filter) []string

UploadConnectionPermissions provides a mock function with given fields: filter

func (*ConnectionsApi) UploadConnections

func (_m *ConnectionsApi) UploadConnections(filter filters.Filter) []string

UploadConnections provides a mock function with given fields: filter

type DashboardsApi

type DashboardsApi struct {
	mock.Mock
}

DashboardsApi is an autogenerated mock type for the DashboardsApi type

func NewDashboardsApi

func NewDashboardsApi(t interface {
	mock.TestingT
	Cleanup(func())
}) *DashboardsApi

NewDashboardsApi creates a new instance of DashboardsApi. 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 (*DashboardsApi) DeleteAllDashboards

func (_m *DashboardsApi) DeleteAllDashboards(filter filters.Filter) []string

DeleteAllDashboards provides a mock function with given fields: filter

func (*DashboardsApi) DownloadDashboards

func (_m *DashboardsApi) DownloadDashboards(filter filters.Filter) []string

DownloadDashboards provides a mock function with given fields: filter

func (*DashboardsApi) ListDashboards

func (_m *DashboardsApi) ListDashboards(filter filters.Filter) []*models.Hit

ListDashboards provides a mock function with given fields: filter

func (*DashboardsApi) UploadDashboards

func (_m *DashboardsApi) UploadDashboards(filter filters.Filter)

UploadDashboards provides a mock function with given fields: filter

type Filter

type Filter struct {
	mock.Mock
}

Filter is an autogenerated mock type for the Filter type

func NewFilter

func NewFilter(t interface {
	mock.TestingT
	Cleanup(func())
}) *Filter

NewFilter creates a new instance of Filter. 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 (*Filter) AddFilter

func (_m *Filter) AddFilter(key filters.FilterType, value string)

AddFilter provides a mock function with given fields: key, value

func (*Filter) AddRegex

func (_m *Filter) AddRegex(_a0 filters.FilterType, _a1 *regexp.Regexp)

AddRegex provides a mock function with given fields: _a0, _a1

func (*Filter) AddValidation

func (_m *Filter) AddValidation(_a0 filters.FilterType, _a1 func(interface{}) bool)

AddValidation provides a mock function with given fields: _a0, _a1

func (*Filter) GetEntity

func (_m *Filter) GetEntity(_a0 filters.FilterType) []string

GetEntity provides a mock function with given fields: _a0

func (*Filter) GetFilter

func (_m *Filter) GetFilter(key filters.FilterType) string

GetFilter provides a mock function with given fields: key

func (*Filter) InvokeValidation

func (_m *Filter) InvokeValidation(_a0 filters.FilterType, _a1 interface{}) bool

InvokeValidation provides a mock function with given fields: _a0, _a1

func (*Filter) ValidateAll

func (_m *Filter) ValidateAll(_a0 interface{}) bool

ValidateAll provides a mock function with given fields: _a0

type FoldersApi

type FoldersApi struct {
	mock.Mock
}

FoldersApi is an autogenerated mock type for the FoldersApi type

func NewFoldersApi

func NewFoldersApi(t interface {
	mock.TestingT
	Cleanup(func())
}) *FoldersApi

NewFoldersApi creates a new instance of FoldersApi. 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 (*FoldersApi) DeleteAllFolders

func (_m *FoldersApi) DeleteAllFolders(filter filters.Filter) []string

DeleteAllFolders provides a mock function with given fields: filter

func (*FoldersApi) DownloadFolderPermissions

func (_m *FoldersApi) DownloadFolderPermissions(filter filters.Filter) []string

DownloadFolderPermissions provides a mock function with given fields: filter

func (*FoldersApi) DownloadFolders

func (_m *FoldersApi) DownloadFolders(filter filters.Filter) []string

DownloadFolders provides a mock function with given fields: filter

func (*FoldersApi) ListFolder

func (_m *FoldersApi) ListFolder(filter filters.Filter) []*models.Hit

ListFolder provides a mock function with given fields: filter

func (*FoldersApi) ListFolderPermissions

func (_m *FoldersApi) ListFolderPermissions(filter filters.Filter) map[*models.Hit][]*models.DashboardACLInfoDTO

ListFolderPermissions provides a mock function with given fields: filter

func (*FoldersApi) UploadFolderPermissions

func (_m *FoldersApi) UploadFolderPermissions(filter filters.Filter) []string

UploadFolderPermissions provides a mock function with given fields: filter

func (*FoldersApi) UploadFolders

func (_m *FoldersApi) UploadFolders(filter filters.Filter) []string

UploadFolders provides a mock function with given fields: filter

type GrafanaService

type GrafanaService struct {
	mock.Mock
}

GrafanaService is an autogenerated mock type for the GrafanaService type

func NewGrafanaService

func NewGrafanaService(t interface {
	mock.TestingT
	Cleanup(func())
}) *GrafanaService

NewGrafanaService creates a new instance of GrafanaService. 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 (*GrafanaService) AddUserToOrg

func (_m *GrafanaService) AddUserToOrg(role string, userId int64, orgId int64) error

AddUserToOrg provides a mock function with given fields: role, userId, orgId

func (*GrafanaService) CreateAPIKey

func (_m *GrafanaService) CreateAPIKey(name string, role string, expiration int64) (*models.NewAPIKeyResult, error)

CreateAPIKey provides a mock function with given fields: name, role, expiration

func (*GrafanaService) CreateServiceAccount

func (_m *GrafanaService) CreateServiceAccount(name string, role string, expiration int64) (*models.ServiceAccountDTO, error)

CreateServiceAccount provides a mock function with given fields: name, role, expiration

func (*GrafanaService) CreateServiceAccountToken

func (_m *GrafanaService) CreateServiceAccountToken(name int64, role string, expiration int64) (*models.NewAPIKeyResult, error)

CreateServiceAccountToken provides a mock function with given fields: name, role, expiration

func (*GrafanaService) DeleteAllAlertNotifications

func (_m *GrafanaService) DeleteAllAlertNotifications() []string

DeleteAllAlertNotifications provides a mock function with given fields:

func (*GrafanaService) DeleteAllConnectionPermissions

func (_m *GrafanaService) DeleteAllConnectionPermissions(filter filters.Filter) []string

DeleteAllConnectionPermissions provides a mock function with given fields: filter

func (*GrafanaService) DeleteAllConnections

func (_m *GrafanaService) DeleteAllConnections(filter filters.Filter) []string

DeleteAllConnections provides a mock function with given fields: filter

func (*GrafanaService) DeleteAllDashboards

func (_m *GrafanaService) DeleteAllDashboards(filter filters.Filter) []string

DeleteAllDashboards provides a mock function with given fields: filter

func (*GrafanaService) DeleteAllFolders

func (_m *GrafanaService) DeleteAllFolders(filter filters.Filter) []string

DeleteAllFolders provides a mock function with given fields: filter

func (*GrafanaService) DeleteAllLibraryElements

func (_m *GrafanaService) DeleteAllLibraryElements(filter filters.Filter) []string

DeleteAllLibraryElements provides a mock function with given fields: filter

func (*GrafanaService) DeleteAllServiceAccounts

func (_m *GrafanaService) DeleteAllServiceAccounts() []string

DeleteAllServiceAccounts provides a mock function with given fields:

func (*GrafanaService) DeleteAllTokens

func (_m *GrafanaService) DeleteAllTokens() []string

DeleteAllTokens provides a mock function with given fields:

func (*GrafanaService) DeleteAllUsers

func (_m *GrafanaService) DeleteAllUsers(filter filters.Filter) []string

DeleteAllUsers provides a mock function with given fields: filter

func (*GrafanaService) DeleteServiceAccountTokens

func (_m *GrafanaService) DeleteServiceAccountTokens(serviceId int64) []string

DeleteServiceAccountTokens provides a mock function with given fields: serviceId

func (*GrafanaService) DeleteTeam

func (_m *GrafanaService) DeleteTeam(filter filters.Filter) ([]*models.TeamDTO, error)

DeleteTeam provides a mock function with given fields: filter

func (*GrafanaService) DeleteUserFromOrg

func (_m *GrafanaService) DeleteUserFromOrg(userId int64, orgId int64) error

DeleteUserFromOrg provides a mock function with given fields: userId, orgId

func (*GrafanaService) DownloadAlertNotifications

func (_m *GrafanaService) DownloadAlertNotifications() []string

DownloadAlertNotifications provides a mock function with given fields:

func (*GrafanaService) DownloadConnectionPermissions

func (_m *GrafanaService) DownloadConnectionPermissions(filter filters.Filter) []string

DownloadConnectionPermissions provides a mock function with given fields: filter

func (*GrafanaService) DownloadConnections

func (_m *GrafanaService) DownloadConnections(filter filters.Filter) []string

DownloadConnections provides a mock function with given fields: filter

func (*GrafanaService) DownloadDashboards

func (_m *GrafanaService) DownloadDashboards(filter filters.Filter) []string

DownloadDashboards provides a mock function with given fields: filter

func (*GrafanaService) DownloadFolderPermissions

func (_m *GrafanaService) DownloadFolderPermissions(filter filters.Filter) []string

DownloadFolderPermissions provides a mock function with given fields: filter

func (*GrafanaService) DownloadFolders

func (_m *GrafanaService) DownloadFolders(filter filters.Filter) []string

DownloadFolders provides a mock function with given fields: filter

func (*GrafanaService) DownloadLibraryElements

func (_m *GrafanaService) DownloadLibraryElements(filter filters.Filter) []string

DownloadLibraryElements provides a mock function with given fields: filter

func (*GrafanaService) DownloadOrganizations

func (_m *GrafanaService) DownloadOrganizations() []string

DownloadOrganizations provides a mock function with given fields:

func (*GrafanaService) DownloadTeams

func (_m *GrafanaService) DownloadTeams(filter filters.Filter) map[*models.TeamDTO][]*models.TeamMemberDTO

DownloadTeams provides a mock function with given fields: filter

func (*GrafanaService) DownloadUsers

func (_m *GrafanaService) DownloadUsers(filter filters.Filter) []string

DownloadUsers provides a mock function with given fields: filter

func (*GrafanaService) GetServerInfo

func (_m *GrafanaService) GetServerInfo() map[string]interface{}

GetServerInfo provides a mock function with given fields:

func (*GrafanaService) GetTokenOrganization

func (_m *GrafanaService) GetTokenOrganization() *models.OrgDetailsDTO

GetTokenOrganization provides a mock function with given fields:

func (*GrafanaService) GetUserInfo

func (_m *GrafanaService) GetUserInfo() (*models.UserProfileDTO, error)

GetUserInfo provides a mock function with given fields:

func (*GrafanaService) GetUserOrganization

func (_m *GrafanaService) GetUserOrganization() *models.OrgDetailsDTO

GetUserOrganization provides a mock function with given fields:

func (*GrafanaService) InitOrganizations

func (_m *GrafanaService) InitOrganizations()

InitOrganizations provides a mock function with given fields:

func (*GrafanaService) ListAPIKeys

func (_m *GrafanaService) ListAPIKeys() []*models.APIKeyDTO

ListAPIKeys provides a mock function with given fields:

func (*GrafanaService) ListAlertNotifications

func (_m *GrafanaService) ListAlertNotifications() []*models.AlertNotification

ListAlertNotifications provides a mock function with given fields:

func (*GrafanaService) ListConnectionPermissions

func (_m *GrafanaService) ListConnectionPermissions(filter filters.Filter) map[*models.DataSourceListItemDTO]*models.DataSourcePermissionsDTO

ListConnectionPermissions provides a mock function with given fields: filter

func (*GrafanaService) ListConnections

func (_m *GrafanaService) ListConnections(filter filters.Filter) []models.DataSourceListItemDTO

ListConnections provides a mock function with given fields: filter

func (*GrafanaService) ListDashboards

func (_m *GrafanaService) ListDashboards(filter filters.Filter) []*models.Hit

ListDashboards provides a mock function with given fields: filter

func (*GrafanaService) ListFolder

func (_m *GrafanaService) ListFolder(filter filters.Filter) []*models.Hit

ListFolder provides a mock function with given fields: filter

func (*GrafanaService) ListFolderPermissions

func (_m *GrafanaService) ListFolderPermissions(filter filters.Filter) map[*models.Hit][]*models.DashboardACLInfoDTO

ListFolderPermissions provides a mock function with given fields: filter

func (*GrafanaService) ListLibraryElements

func (_m *GrafanaService) ListLibraryElements(filter filters.Filter) []*models.LibraryElementDTO

ListLibraryElements provides a mock function with given fields: filter

func (*GrafanaService) ListLibraryElementsConnections

func (_m *GrafanaService) ListLibraryElementsConnections(filter filters.Filter, connectionID string) []*models.DashboardFullWithMeta

ListLibraryElementsConnections provides a mock function with given fields: filter, connectionID

func (*GrafanaService) ListOrgUsers

func (_m *GrafanaService) ListOrgUsers(orgId int64) []*models.OrgUserDTO

ListOrgUsers provides a mock function with given fields: orgId

func (*GrafanaService) ListOrganizations

func (_m *GrafanaService) ListOrganizations() []*models.OrgDTO

ListOrganizations provides a mock function with given fields:

func (*GrafanaService) ListServiceAccounts

func (_m *GrafanaService) ListServiceAccounts() []*api.ServiceAccountDTOWithTokens

ListServiceAccounts provides a mock function with given fields:

func (*GrafanaService) ListServiceAccountsTokens

func (_m *GrafanaService) ListServiceAccountsTokens(id int64) ([]*models.TokenDTO, error)

ListServiceAccountsTokens provides a mock function with given fields: id

func (*GrafanaService) ListTeams

func (_m *GrafanaService) ListTeams(filter filters.Filter) map[*models.TeamDTO][]*models.TeamMemberDTO

ListTeams provides a mock function with given fields: filter

func (*GrafanaService) ListUsers

func (_m *GrafanaService) ListUsers(filter filters.Filter) []*models.UserSearchHitDTO

ListUsers provides a mock function with given fields: filter

func (*GrafanaService) Login

func (_m *GrafanaService) Login()

Login provides a mock function with given fields:

func (*GrafanaService) PromoteUser

func (_m *GrafanaService) PromoteUser(userLogin string) (string, error)

PromoteUser provides a mock function with given fields: userLogin

func (*GrafanaService) SetOrganization

func (_m *GrafanaService) SetOrganization(id int64) error

SetOrganization provides a mock function with given fields: id

func (*GrafanaService) SetUserOrganizations

func (_m *GrafanaService) SetUserOrganizations(id int64) error

SetUserOrganizations provides a mock function with given fields: id

func (*GrafanaService) UpdateUserInOrg

func (_m *GrafanaService) UpdateUserInOrg(role string, userId int64, orgId int64) error

UpdateUserInOrg provides a mock function with given fields: role, userId, orgId

func (*GrafanaService) UploadAlertNotifications

func (_m *GrafanaService) UploadAlertNotifications() []string

UploadAlertNotifications provides a mock function with given fields:

func (*GrafanaService) UploadConnectionPermissions

func (_m *GrafanaService) UploadConnectionPermissions(filter filters.Filter) []string

UploadConnectionPermissions provides a mock function with given fields: filter

func (*GrafanaService) UploadConnections

func (_m *GrafanaService) UploadConnections(filter filters.Filter) []string

UploadConnections provides a mock function with given fields: filter

func (*GrafanaService) UploadDashboards

func (_m *GrafanaService) UploadDashboards(filter filters.Filter)

UploadDashboards provides a mock function with given fields: filter

func (*GrafanaService) UploadFolderPermissions

func (_m *GrafanaService) UploadFolderPermissions(filter filters.Filter) []string

UploadFolderPermissions provides a mock function with given fields: filter

func (*GrafanaService) UploadFolders

func (_m *GrafanaService) UploadFolders(filter filters.Filter) []string

UploadFolders provides a mock function with given fields: filter

func (*GrafanaService) UploadLibraryElements

func (_m *GrafanaService) UploadLibraryElements(filter filters.Filter) []string

UploadLibraryElements provides a mock function with given fields: filter

func (*GrafanaService) UploadOrganizations

func (_m *GrafanaService) UploadOrganizations() []string

UploadOrganizations provides a mock function with given fields:

func (*GrafanaService) UploadTeams

func (_m *GrafanaService) UploadTeams(filter filters.Filter) map[*models.TeamDTO][]*models.TeamMemberDTO

UploadTeams provides a mock function with given fields: filter

func (*GrafanaService) UploadUsers

func (_m *GrafanaService) UploadUsers(filter filters.Filter) []models.UserProfileDTO

UploadUsers provides a mock function with given fields: filter

type LibraryElementsApi

type LibraryElementsApi struct {
	mock.Mock
}

LibraryElementsApi is an autogenerated mock type for the LibraryElementsApi type

func NewLibraryElementsApi

func NewLibraryElementsApi(t interface {
	mock.TestingT
	Cleanup(func())
}) *LibraryElementsApi

NewLibraryElementsApi creates a new instance of LibraryElementsApi. 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 (*LibraryElementsApi) DeleteAllLibraryElements

func (_m *LibraryElementsApi) DeleteAllLibraryElements(filter filters.Filter) []string

DeleteAllLibraryElements provides a mock function with given fields: filter

func (*LibraryElementsApi) DownloadLibraryElements

func (_m *LibraryElementsApi) DownloadLibraryElements(filter filters.Filter) []string

DownloadLibraryElements provides a mock function with given fields: filter

func (*LibraryElementsApi) ListLibraryElements

func (_m *LibraryElementsApi) ListLibraryElements(filter filters.Filter) []*models.LibraryElementDTO

ListLibraryElements provides a mock function with given fields: filter

func (*LibraryElementsApi) ListLibraryElementsConnections

func (_m *LibraryElementsApi) ListLibraryElementsConnections(filter filters.Filter, connectionID string) []*models.DashboardFullWithMeta

ListLibraryElementsConnections provides a mock function with given fields: filter, connectionID

func (*LibraryElementsApi) UploadLibraryElements

func (_m *LibraryElementsApi) UploadLibraryElements(filter filters.Filter) []string

UploadLibraryElements provides a mock function with given fields: filter

type OrganizationsApi

type OrganizationsApi struct {
	mock.Mock
}

OrganizationsApi is an autogenerated mock type for the OrganizationsApi type

func NewOrganizationsApi

func NewOrganizationsApi(t interface {
	mock.TestingT
	Cleanup(func())
}) *OrganizationsApi

NewOrganizationsApi creates a new instance of OrganizationsApi. 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 (*OrganizationsApi) AddUserToOrg

func (_m *OrganizationsApi) AddUserToOrg(role string, userId int64, orgId int64) error

AddUserToOrg provides a mock function with given fields: role, userId, orgId

func (*OrganizationsApi) DeleteUserFromOrg

func (_m *OrganizationsApi) DeleteUserFromOrg(userId int64, orgId int64) error

DeleteUserFromOrg provides a mock function with given fields: userId, orgId

func (*OrganizationsApi) DownloadOrganizations

func (_m *OrganizationsApi) DownloadOrganizations() []string

DownloadOrganizations provides a mock function with given fields:

func (*OrganizationsApi) GetTokenOrganization

func (_m *OrganizationsApi) GetTokenOrganization() *models.OrgDetailsDTO

GetTokenOrganization provides a mock function with given fields:

func (*OrganizationsApi) GetUserOrganization

func (_m *OrganizationsApi) GetUserOrganization() *models.OrgDetailsDTO

GetUserOrganization provides a mock function with given fields:

func (*OrganizationsApi) InitOrganizations

func (_m *OrganizationsApi) InitOrganizations()

InitOrganizations provides a mock function with given fields:

func (*OrganizationsApi) ListOrgUsers

func (_m *OrganizationsApi) ListOrgUsers(orgId int64) []*models.OrgUserDTO

ListOrgUsers provides a mock function with given fields: orgId

func (*OrganizationsApi) ListOrganizations

func (_m *OrganizationsApi) ListOrganizations() []*models.OrgDTO

ListOrganizations provides a mock function with given fields:

func (*OrganizationsApi) SetOrganization

func (_m *OrganizationsApi) SetOrganization(id int64) error

SetOrganization provides a mock function with given fields: id

func (*OrganizationsApi) SetUserOrganizations

func (_m *OrganizationsApi) SetUserOrganizations(id int64) error

SetUserOrganizations provides a mock function with given fields: id

func (*OrganizationsApi) UpdateUserInOrg

func (_m *OrganizationsApi) UpdateUserInOrg(role string, userId int64, orgId int64) error

UpdateUserInOrg provides a mock function with given fields: role, userId, orgId

func (*OrganizationsApi) UploadOrganizations

func (_m *OrganizationsApi) UploadOrganizations() []string

UploadOrganizations provides a mock function with given fields:

type ServiceAccountApi

type ServiceAccountApi struct {
	mock.Mock
}

ServiceAccountApi is an autogenerated mock type for the ServiceAccountApi type

func NewServiceAccountApi

func NewServiceAccountApi(t interface {
	mock.TestingT
	Cleanup(func())
}) *ServiceAccountApi

NewServiceAccountApi creates a new instance of ServiceAccountApi. 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 (*ServiceAccountApi) CreateServiceAccount

func (_m *ServiceAccountApi) CreateServiceAccount(name string, role string, expiration int64) (*models.ServiceAccountDTO, error)

CreateServiceAccount provides a mock function with given fields: name, role, expiration

func (*ServiceAccountApi) CreateServiceAccountToken

func (_m *ServiceAccountApi) CreateServiceAccountToken(name int64, role string, expiration int64) (*models.NewAPIKeyResult, error)

CreateServiceAccountToken provides a mock function with given fields: name, role, expiration

func (*ServiceAccountApi) DeleteAllServiceAccounts

func (_m *ServiceAccountApi) DeleteAllServiceAccounts() []string

DeleteAllServiceAccounts provides a mock function with given fields:

func (*ServiceAccountApi) DeleteServiceAccountTokens

func (_m *ServiceAccountApi) DeleteServiceAccountTokens(serviceId int64) []string

DeleteServiceAccountTokens provides a mock function with given fields: serviceId

func (*ServiceAccountApi) ListServiceAccounts

func (_m *ServiceAccountApi) ListServiceAccounts() []*api.ServiceAccountDTOWithTokens

ListServiceAccounts provides a mock function with given fields:

func (*ServiceAccountApi) ListServiceAccountsTokens

func (_m *ServiceAccountApi) ListServiceAccountsTokens(id int64) ([]*models.TokenDTO, error)

ListServiceAccountsTokens provides a mock function with given fields: id

type Storage

type Storage struct {
	mock.Mock
}

Storage is an autogenerated mock type for the Storage type

func NewStorage

func NewStorage(t interface {
	mock.TestingT
	Cleanup(func())
}) *Storage

NewStorage creates a new instance of Storage. 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 (*Storage) FindAllFiles

func (_m *Storage) FindAllFiles(folder string, fullPath bool) ([]string, error)

FindAllFiles provides a mock function with given fields: folder, fullPath

func (*Storage) Name

func (_m *Storage) Name() string

Name provides a mock function with given fields:

func (*Storage) ReadFile

func (_m *Storage) ReadFile(filename string) ([]byte, error)

ReadFile provides a mock function with given fields: filename

func (*Storage) WriteFile

func (_m *Storage) WriteFile(filename string, data []byte) error

WriteFile provides a mock function with given fields: filename, data

type TeamsApi

type TeamsApi struct {
	mock.Mock
}

TeamsApi is an autogenerated mock type for the TeamsApi type

func NewTeamsApi

func NewTeamsApi(t interface {
	mock.TestingT
	Cleanup(func())
}) *TeamsApi

NewTeamsApi creates a new instance of TeamsApi. 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 (*TeamsApi) DeleteTeam

func (_m *TeamsApi) DeleteTeam(filter filters.Filter) ([]*models.TeamDTO, error)

DeleteTeam provides a mock function with given fields: filter

func (*TeamsApi) DownloadTeams

func (_m *TeamsApi) DownloadTeams(filter filters.Filter) map[*models.TeamDTO][]*models.TeamMemberDTO

DownloadTeams provides a mock function with given fields: filter

func (*TeamsApi) ListTeams

func (_m *TeamsApi) ListTeams(filter filters.Filter) map[*models.TeamDTO][]*models.TeamMemberDTO

ListTeams provides a mock function with given fields: filter

func (*TeamsApi) UploadTeams

func (_m *TeamsApi) UploadTeams(filter filters.Filter) map[*models.TeamDTO][]*models.TeamMemberDTO

UploadTeams provides a mock function with given fields: filter

type TokenApi

type TokenApi struct {
	mock.Mock
}

TokenApi is an autogenerated mock type for the TokenApi type

func NewTokenApi

func NewTokenApi(t interface {
	mock.TestingT
	Cleanup(func())
}) *TokenApi

NewTokenApi creates a new instance of TokenApi. 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 (*TokenApi) CreateAPIKey

func (_m *TokenApi) CreateAPIKey(name string, role string, expiration int64) (*models.NewAPIKeyResult, error)

CreateAPIKey provides a mock function with given fields: name, role, expiration

func (*TokenApi) DeleteAllTokens

func (_m *TokenApi) DeleteAllTokens() []string

DeleteAllTokens provides a mock function with given fields:

func (*TokenApi) ListAPIKeys

func (_m *TokenApi) ListAPIKeys() []*models.APIKeyDTO

ListAPIKeys provides a mock function with given fields:

type UsersApi

type UsersApi struct {
	mock.Mock
}

UsersApi is an autogenerated mock type for the UsersApi type

func NewUsersApi

func NewUsersApi(t interface {
	mock.TestingT
	Cleanup(func())
}) *UsersApi

NewUsersApi creates a new instance of UsersApi. 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 (*UsersApi) DeleteAllUsers

func (_m *UsersApi) DeleteAllUsers(filter filters.Filter) []string

DeleteAllUsers provides a mock function with given fields: filter

func (*UsersApi) DownloadUsers

func (_m *UsersApi) DownloadUsers(filter filters.Filter) []string

DownloadUsers provides a mock function with given fields: filter

func (*UsersApi) GetUserInfo

func (_m *UsersApi) GetUserInfo() (*models.UserProfileDTO, error)

GetUserInfo provides a mock function with given fields:

func (*UsersApi) ListUsers

func (_m *UsersApi) ListUsers(filter filters.Filter) []*models.UserSearchHitDTO

ListUsers provides a mock function with given fields: filter

func (*UsersApi) PromoteUser

func (_m *UsersApi) PromoteUser(userLogin string) (string, error)

PromoteUser provides a mock function with given fields: userLogin

func (*UsersApi) UploadUsers

func (_m *UsersApi) UploadUsers(filter filters.Filter) []models.UserProfileDTO

UploadUsers provides a mock function with given fields: filter

Jump to

Keyboard shortcuts

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