Move StringSet to new collections package
As part of the efforts to break up the common package before disaster strikes, a new collections package has been created. More may belong there but for now, it only includes an implementation of StringSet. Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
parent
c08c6c506e
commit
1266f13afa
5 changed files with 13 additions and 13 deletions
|
@ -5,7 +5,7 @@ import (
|
|||
"errors"
|
||||
"strings"
|
||||
|
||||
"github.com/docker/distribution/common"
|
||||
"github.com/docker/distribution/collections"
|
||||
)
|
||||
|
||||
// joseBase64UrlEncode encodes the given data using the standard base64 url
|
||||
|
@ -35,11 +35,11 @@ func joseBase64UrlDecode(s string) ([]byte, error) {
|
|||
|
||||
// actionSet is a special type of stringSet.
|
||||
type actionSet struct {
|
||||
common.StringSet
|
||||
collections.StringSet
|
||||
}
|
||||
|
||||
func newActionSet(actions ...string) actionSet {
|
||||
return actionSet{common.NewStringSet(actions...)}
|
||||
return actionSet{collections.NewStringSet(actions...)}
|
||||
}
|
||||
|
||||
// Contains calls StringSet.Contains() for
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue