Skip to content

Commit

Permalink
Clarify kmsfs's Open comments
Browse files Browse the repository at this point in the history
  • Loading branch information
maraino committed Jul 14, 2022
1 parent 50e7493 commit a676670
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions kms/kmfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func CertFS(ctx context.Context, kmsuri string) (fs.FS, error) {
return &certFS{kmsfs: km}, nil
}

// Open opens a certificate from an KMS.
// Open returns a file representing a certificate in an KMS.
func (f *certFS) Open(name string) (fs.File, error) {
km, err := f.getKMS(name)
if err != nil {
Expand Down Expand Up @@ -95,8 +95,7 @@ func KeyFS(ctx context.Context, kmsuri string) (fs.FS, error) {
return &keyFS{kmsfs: km}, nil
}

// Open opens a file from a regular filesystem or a public key or certificate
// from an KMS.
// Open returns a file representing a public key in a KMS.
func (f *keyFS) Open(name string) (fs.File, error) {
km, err := f.getKMS(name)
if err != nil {
Expand Down

0 comments on commit a676670

Please sign in to comment.