diff --git a/jwk/options.yaml b/jwk/options.yaml index 3f7b6e2a1..6dfbded42 100644 --- a/jwk/options.yaml +++ b/jwk/options.yaml @@ -4,7 +4,7 @@ interfaces: - name: CacheOption comment: | CacheOption is a type of Option that can be passed to the - `jwk.Cache` object. + the `jwk.NewCache()` function. - name: AssignKeyIDOption - name: FetchOption methods: @@ -13,8 +13,8 @@ interfaces: - registerOption comment: | FetchOption is a type of Option that can be passed to `jwk.Fetch()` - FetchOption also implements the `CacheOption`, and thus can - safely be passed to `(*jwk.Cache).Configure()` + FetchOption also implements the `RegisterOption`, and thus can + safely be passed to `(*jwk.Cache).Register()` - name: ParseOption methods: - fetchOption diff --git a/jwk/options_gen.go b/jwk/options_gen.go index 644b24711..2aac86fc6 100644 --- a/jwk/options_gen.go +++ b/jwk/options_gen.go @@ -25,7 +25,7 @@ type assignKeyIDOption struct { func (*assignKeyIDOption) assignKeyIDOption() {} // CacheOption is a type of Option that can be passed to the -// `jwk.Cache` object. +// the `jwk.NewCache()` function. type CacheOption interface { Option cacheOption() @@ -38,8 +38,8 @@ type cacheOption struct { func (*cacheOption) cacheOption() {} // FetchOption is a type of Option that can be passed to `jwk.Fetch()` -// FetchOption also implements the `CacheOption`, and thus can -// safely be passed to `(*jwk.Cache).Configure()` +// FetchOption also implements the `RegisterOption`, and thus can +// safely be passed to `(*jwk.Cache).Register()` type FetchOption interface { Option fetchOption()