Skip to content

Commit

Permalink
rename package to pass golint checks
Browse files Browse the repository at this point in the history
  • Loading branch information
jiaqiluo committed Apr 1, 2022
1 parent 7b6e2a6 commit e472396
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/server/server.go
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/rancher/channelserver/pkg/config"
"github.com/rancher/channelserver/pkg/model"
"github.com/rancher/channelserver/pkg/server/store"
"github.com/rancher/channelserver/pkg/server/store/appDefault"
"github.com/rancher/channelserver/pkg/server/store/appdefault"
"github.com/rancher/channelserver/pkg/server/store/release"
)

Expand Down Expand Up @@ -48,7 +48,7 @@ func NewHandler(configs map[string]*config.Config) http.Handler {
schema.CollectionMethods = []string{http.MethodGet}
})
server.Schemas.MustImportAndCustomize(model.AppDefault{}, func(schema *types.APISchema) {
schema.Store = appDefault.New(config)
schema.Store = appdefault.New(config)
schema.CollectionMethods = []string{http.MethodGet}
})
prefix = strings.Trim(prefix, "/")
Expand Down
4 changes: 2 additions & 2 deletions pkg/server/store/appDefault/store.go
@@ -1,4 +1,4 @@
package appDefault
package appdefault

import (
"github.com/rancher/apiserver/pkg/store/empty"
Expand All @@ -21,7 +21,7 @@ func (c *Store) List(_ *types.APIRequest, _ *types.APISchema) (types.APIObjectLi
resp := types.APIObjectList{}
for _, appDefault := range c.config.AppDefaultsConfig().AppDefaults {
resp.Objects = append(resp.Objects, types.APIObject{
Type: "appDefault",
Type: "appdefault",
ID: appDefault.AppName,
Object: appDefault,
})
Expand Down

0 comments on commit e472396

Please sign in to comment.