Documentation
¶
Index ¶
- type Client
- type MockClient
- func (_m *MockClient) GetApplicationByID(ctx context.Context, id string) (*v1.ApplicationSpec, error)
- func (_m *MockClient) GetApplications(ctx context.Context) ([]v1.ApplicationSpec, error)
- func (_m *MockClient) GetApplicationsByFilter(ctx context.Context, teams []string, clusterIDs []string, ...) ([]v1.ApplicationSpec, error)
- func (_m *MockClient) GetApplicationsByFilterCount(ctx context.Context, teams []string, clusterIDs []string, ...) (int, error)
- func (_m *MockClient) GetCRDByID(ctx context.Context, id string) (*cluster.CRD, error)
- func (_m *MockClient) GetCRDs(ctx context.Context) ([]cluster.CRD, error)
- func (_m *MockClient) GetClusters(ctx context.Context) ([]shared.Cluster, error)
- func (_m *MockClient) GetDashboardByID(ctx context.Context, id string) (*dashboardv1.DashboardSpec, error)
- func (_m *MockClient) GetDashboards(ctx context.Context) ([]dashboardv1.DashboardSpec, error)
- func (_m *MockClient) GetNamespaces(ctx context.Context) ([]shared.Namespace, error)
- func (_m *MockClient) GetNamespacesByClusterIDs(ctx context.Context, clusterIDs []string) ([]shared.Namespace, error)
- func (_m *MockClient) GetPlugins(ctx context.Context) ([]plugin.Instance, error)
- func (_m *MockClient) GetTags(ctx context.Context) ([]shared.Tag, error)
- func (_m *MockClient) GetTeamByGroup(ctx context.Context, group string) (*teamv1.TeamSpec, error)
- func (_m *MockClient) GetTeams(ctx context.Context) ([]teamv1.TeamSpec, error)
- func (_m *MockClient) GetTeamsByGroups(ctx context.Context, groups []string) ([]teamv1.TeamSpec, error)
- func (_m *MockClient) GetTopologyByIDs(ctx context.Context, field string, ids []string) ([]shared.Topology, error)
- func (_m *MockClient) GetUsers(ctx context.Context) ([]userv1.UserSpec, error)
- func (_m *MockClient) GetUsersByEmail(ctx context.Context, email string) ([]userv1.UserSpec, error)
- func (_m *MockClient) SaveApplications(ctx context.Context, satellite string, applications []v1.ApplicationSpec) error
- func (_m *MockClient) SaveCRDs(ctx context.Context, crds []cluster.CRD) error
- func (_m *MockClient) SaveClusters(ctx context.Context, satellite string, clusters []string) error
- func (_m *MockClient) SaveDashboards(ctx context.Context, satellite string, dashboards []dashboardv1.DashboardSpec) error
- func (_m *MockClient) SaveNamespaces(ctx context.Context, satellite string, namespaces map[string][]string) error
- func (_m *MockClient) SavePlugins(ctx context.Context, satellite string, plugins []plugin.Instance) error
- func (_m *MockClient) SaveTags(ctx context.Context, applications []v1.ApplicationSpec) error
- func (_m *MockClient) SaveTeams(ctx context.Context, satellite string, teams []teamv1.TeamSpec) error
- func (_m *MockClient) SaveTopology(ctx context.Context, satellite string, applications []v1.ApplicationSpec) error
- func (_m *MockClient) SaveUsers(ctx context.Context, satellite string, users []userv1.UserSpec) error
- type NewMockClientT
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
SavePlugins(ctx context.Context, satellite string, plugins []plugin.Instance) error
SaveClusters(ctx context.Context, satellite string, clusters []string) error
SaveNamespaces(ctx context.Context, satellite string, namespaces map[string][]string) error
SaveCRDs(ctx context.Context, crds []cluster.CRD) error
SaveApplications(ctx context.Context, satellite string, applications []applicationv1.ApplicationSpec) error
SaveDashboards(ctx context.Context, satellite string, dashboards []dashboardv1.DashboardSpec) error
SaveTeams(ctx context.Context, satellite string, teams []teamv1.TeamSpec) error
SaveUsers(ctx context.Context, satellite string, users []userv1.UserSpec) error
SaveTags(ctx context.Context, applications []applicationv1.ApplicationSpec) error
SaveTopology(ctx context.Context, satellite string, applications []applicationv1.ApplicationSpec) error
GetPlugins(ctx context.Context) ([]plugin.Instance, error)
GetClusters(ctx context.Context) ([]shared.Cluster, error)
GetNamespaces(ctx context.Context) ([]shared.Namespace, error)
GetNamespacesByClusterIDs(ctx context.Context, clusterIDs []string) ([]shared.Namespace, error)
GetCRDs(ctx context.Context) ([]cluster.CRD, error)
GetCRDByID(ctx context.Context, id string) (*cluster.CRD, error)
GetApplications(ctx context.Context) ([]applicationv1.ApplicationSpec, error)
GetApplicationsByFilter(ctx context.Context, teams, clusterIDs, namespaceIDs, tags []string, searchTerm, external string, limit, offset int) ([]applicationv1.ApplicationSpec, error)
GetApplicationsByFilterCount(ctx context.Context, teams, clusterIDs, namespaceIDs, tags []string, searchTerm, external string) (int, error)
GetApplicationByID(ctx context.Context, id string) (*applicationv1.ApplicationSpec, error)
GetDashboards(ctx context.Context) ([]dashboardv1.DashboardSpec, error)
GetDashboardByID(ctx context.Context, id string) (*dashboardv1.DashboardSpec, error)
GetTeams(ctx context.Context) ([]teamv1.TeamSpec, error)
GetTeamsByGroups(ctx context.Context, groups []string) ([]teamv1.TeamSpec, error)
GetTeamByGroup(ctx context.Context, group string) (*teamv1.TeamSpec, error)
GetUsers(ctx context.Context) ([]userv1.UserSpec, error)
GetUsersByEmail(ctx context.Context, email string) ([]userv1.UserSpec, error)
GetTags(ctx context.Context) ([]shared.Tag, error)
GetTopologyByIDs(ctx context.Context, field string, ids []string) ([]shared.Topology, error)
}
Client is the interface with all the methods to interact with the store.
type MockClient ¶
MockClient is an autogenerated mock type for the Client type
func NewMockClient ¶
func NewMockClient(t NewMockClientT) *MockClient
NewMockClient creates a new instance of MockClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockClient) GetApplicationByID ¶
func (_m *MockClient) GetApplicationByID(ctx context.Context, id string) (*v1.ApplicationSpec, error)
GetApplicationByID provides a mock function with given fields: ctx, id
func (*MockClient) GetApplications ¶
func (_m *MockClient) GetApplications(ctx context.Context) ([]v1.ApplicationSpec, error)
GetApplications provides a mock function with given fields: ctx
func (*MockClient) GetApplicationsByFilter ¶
func (_m *MockClient) GetApplicationsByFilter(ctx context.Context, teams []string, clusterIDs []string, namespaceIDs []string, tags []string, searchTerm string, external string, limit int, offset int) ([]v1.ApplicationSpec, error)
GetApplicationsByFilter provides a mock function with given fields: ctx, teams, clusterIDs, namespaceIDs, tags, searchTerm, external, limit, offset
func (*MockClient) GetApplicationsByFilterCount ¶
func (_m *MockClient) GetApplicationsByFilterCount(ctx context.Context, teams []string, clusterIDs []string, namespaceIDs []string, tags []string, searchTerm string, external string) (int, error)
GetApplicationsByFilterCount provides a mock function with given fields: ctx, teams, clusterIDs, namespaceIDs, tags, searchTerm, external
func (*MockClient) GetCRDByID ¶
GetCRDByID provides a mock function with given fields: ctx, id
func (*MockClient) GetClusters ¶
GetClusters provides a mock function with given fields: ctx
func (*MockClient) GetDashboardByID ¶
func (_m *MockClient) GetDashboardByID(ctx context.Context, id string) (*dashboardv1.DashboardSpec, error)
GetDashboardByID provides a mock function with given fields: ctx, id
func (*MockClient) GetDashboards ¶
func (_m *MockClient) GetDashboards(ctx context.Context) ([]dashboardv1.DashboardSpec, error)
GetDashboards provides a mock function with given fields: ctx
func (*MockClient) GetNamespaces ¶
GetNamespaces provides a mock function with given fields: ctx
func (*MockClient) GetNamespacesByClusterIDs ¶
func (_m *MockClient) GetNamespacesByClusterIDs(ctx context.Context, clusterIDs []string) ([]shared.Namespace, error)
GetNamespacesByClusterIDs provides a mock function with given fields: ctx, clusterIDs
func (*MockClient) GetPlugins ¶
GetPlugins provides a mock function with given fields: ctx
func (*MockClient) GetTeamByGroup ¶
GetTeamByGroup provides a mock function with given fields: ctx, group
func (*MockClient) GetTeamsByGroups ¶
func (_m *MockClient) GetTeamsByGroups(ctx context.Context, groups []string) ([]teamv1.TeamSpec, error)
GetTeamsByGroups provides a mock function with given fields: ctx, groups
func (*MockClient) GetTopologyByIDs ¶
func (_m *MockClient) GetTopologyByIDs(ctx context.Context, field string, ids []string) ([]shared.Topology, error)
GetTopologyByIDs provides a mock function with given fields: ctx, field, ids
func (*MockClient) GetUsersByEmail ¶
GetUsersByEmail provides a mock function with given fields: ctx, email
func (*MockClient) SaveApplications ¶
func (_m *MockClient) SaveApplications(ctx context.Context, satellite string, applications []v1.ApplicationSpec) error
SaveApplications provides a mock function with given fields: ctx, satellite, applications
func (*MockClient) SaveClusters ¶
SaveClusters provides a mock function with given fields: ctx, satellite, clusters
func (*MockClient) SaveDashboards ¶
func (_m *MockClient) SaveDashboards(ctx context.Context, satellite string, dashboards []dashboardv1.DashboardSpec) error
SaveDashboards provides a mock function with given fields: ctx, satellite, dashboards
func (*MockClient) SaveNamespaces ¶
func (_m *MockClient) SaveNamespaces(ctx context.Context, satellite string, namespaces map[string][]string) error
SaveNamespaces provides a mock function with given fields: ctx, satellite, namespaces
func (*MockClient) SavePlugins ¶
func (_m *MockClient) SavePlugins(ctx context.Context, satellite string, plugins []plugin.Instance) error
SavePlugins provides a mock function with given fields: ctx, satellite, plugins
func (*MockClient) SaveTags ¶
func (_m *MockClient) SaveTags(ctx context.Context, applications []v1.ApplicationSpec) error
SaveTags provides a mock function with given fields: ctx, applications
func (*MockClient) SaveTeams ¶
func (_m *MockClient) SaveTeams(ctx context.Context, satellite string, teams []teamv1.TeamSpec) error
SaveTeams provides a mock function with given fields: ctx, satellite, teams
func (*MockClient) SaveTopology ¶
func (_m *MockClient) SaveTopology(ctx context.Context, satellite string, applications []v1.ApplicationSpec) error
SaveTopology provides a mock function with given fields: ctx, satellite, applications