Generate reference page in configuration

This commit is contained in:
Joel Speed
2021-01-18 09:57:44 +00:00
parent eb129a342c
commit 5c64e236fb
8 changed files with 344 additions and 1 deletions
+1
View File
@@ -28,6 +28,7 @@ type SecretSource struct {
// A duration string is a is a possibly signed sequence of decimal numbers,
// each with optional fraction and a unit suffix, such as "300ms", "-1.5h" or "2h45m".
// Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
// +reference-gen:alias-name=string
type Duration time.Duration
// UnmarshalJSON parses the duration string and sets the value of duration
+2
View File
@@ -0,0 +1,2 @@
//go:generate go run github.com/oauth2-proxy/tools/reference-gen/cmd/reference-gen --package github.com/oauth2-proxy/oauth2-proxy/v7/pkg/apis/options --types AlphaOptions --header-file ../../../docs/docs/configuration/alpha_config.md.tmpl --out-file ../../../docs/docs/configuration/alpha_config.md
package options