Merge pull request #51440 from thaJeztah/plugins_no_pointer

api, client: don't use a pointer-slice for plugins
This commit is contained in:
Paweł Gronowski
2025-11-10 12:18:57 +01:00
committed by GitHub
5 changed files with 5 additions and 5 deletions

View File

@@ -5,7 +5,7 @@ import (
)
// ListResponse contains the response for the Engine API
type ListResponse []*Plugin
type ListResponse []Plugin
// Privilege describes a permission the user has to accept
// upon installing a plugin.

View File

@@ -15,7 +15,7 @@ type PluginListOptions struct {
// PluginListResult represents the result of a plugin list operation.
type PluginListResult struct {
Items []*plugin.Plugin
Items []plugin.Plugin
}
// PluginList returns the installed plugins

View File

@@ -64,7 +64,7 @@ func TestPluginList(t *testing.T) {
return nil, fmt.Errorf("%s not set in URL query properly. Expected '%s', got %s", key, expected, actual)
}
}
return mockJSONResponse(http.StatusOK, nil, []*plugin.Plugin{
return mockJSONResponse(http.StatusOK, nil, []plugin.Plugin{
{ID: "plugin_id1"},
{ID: "plugin_id2"},
})(req)

View File

@@ -5,7 +5,7 @@ import (
)
// ListResponse contains the response for the Engine API
type ListResponse []*Plugin
type ListResponse []Plugin
// Privilege describes a permission the user has to accept
// upon installing a plugin.

View File

@@ -15,7 +15,7 @@ type PluginListOptions struct {
// PluginListResult represents the result of a plugin list operation.
type PluginListResult struct {
Items []*plugin.Plugin
Items []plugin.Plugin
}
// PluginList returns the installed plugins