Skip to content

Commit

Permalink
Fix hound issues
Browse files Browse the repository at this point in the history
  • Loading branch information
aduffeck committed Sep 8, 2022
1 parent 93add80 commit 0708a3a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/publicshare/manager/json/json.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ func NewCS3(c map[string]interface{}) (publicshare.Manager, error) {
return New(conf.GatewayAddr, conf.SharePasswordHashCost, conf.JanitorRunInterval, conf.EnableExpiredSharesCleanup, p)
}

// New returns a new public share manager instance
func New(gwAddr string, pwHashCost, janitorRunInterval int, enableCleanup bool, p persistence.Persistence) (publicshare.Manager, error) {
m := &manager{
gatewayAddr: gwAddr,
Expand Down
2 changes: 2 additions & 0 deletions pkg/publicshare/manager/json/persistence/persistence.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ package persistence

import "context"

// PublicShares is a map indexing publicshares by their ids
type PublicShares map[string]interface{}

// Persistence defines the interface for the json publicshare manager persistence layers
type Persistence interface {
Init(context.Context) error
Read(context.Context) (PublicShares, error)
Expand Down

0 comments on commit 0708a3a

Please sign in to comment.