@@ -22,7 +22,7 @@ type storager struct {
2222 config * jwt.Config
2323}
2424
25- //Exists returns true if location exists
25+ // Exists returns true if location exists
2626func (s * storager ) Exists (ctx context.Context , resourceID string , options ... storage.Option ) (bool , error ) {
2727 resource , err := newResource (resourceID )
2828 if err != nil {
@@ -32,7 +32,7 @@ func (s *storager) Exists(ctx context.Context, resourceID string, options ...sto
3232 return secret != nil , nil
3333}
3434
35- //Get returns a file info for supplied location
35+ // Get returns a file info for supplied location
3636func (s * storager ) Get (ctx context.Context , location string , options ... storage.Option ) (os.FileInfo , error ) {
3737 list , err := s .List (ctx , location , options ... )
3838 if err != nil {
@@ -44,17 +44,17 @@ func (s *storager) Get(ctx context.Context, location string, options ...storage.
4444 return list [0 ], nil
4545}
4646
47- //Delete deletes locations
47+ // Delete deletes locations
4848func (s * storager ) Delete (ctx context.Context , location string , options ... storage.Option ) error {
4949 return fmt .Errorf ("unsupported operation" )
5050}
5151
52- //Close closes storage
52+ // Close closes storage
5353func (s * storager ) Close () error {
5454 return s .client .Close ()
5555}
5656
57- //NewStorager create a new secreate manager storager
57+ // NewStorager create a new secreate manager storager
5858func NewStorager (ctx context.Context , baseURL string , options ... storage.Option ) (* storager , error ) {
5959 authority := strings .ToLower (url .Host (baseURL ))
6060 var gcpOptions gs.ClientOptions
@@ -63,7 +63,7 @@ func NewStorager(ctx context.Context, baseURL string, options ...storage.Option)
6363 if len (gcpOptions ) == 0 {
6464 gcpOptions = make (gs.ClientOptions , 0 )
6565 }
66- gcpOptions = append (gs .DefaultOptions , gcpOptions ... )
66+ gcpOptions = gs . Options (gs .DefaultOptions , gcpOptions )
6767 client , err := secretmanager .NewClient (ctx , gcpOptions ... )
6868 if err != nil {
6969 return nil , err
0 commit comments