github.com/Jeffail/benthos/v3@v3.65.0/internal/impl/pulsar/auth/docs.go (about) 1 package auth 2 3 import "github.com/Jeffail/benthos/v3/internal/docs" 4 5 // FieldSpec returns documentation authentication specs for Pulsar components 6 func FieldSpec() docs.FieldSpec { 7 return docs.FieldAdvanced("auth", "Optional configuration of Pulsar authentication methods.").WithChildren( 8 docs.FieldAdvanced("oauth2", "Parameters for Pulsar OAuth2 authentication.").WithChildren( 9 docs.FieldBool("enabled", "Whether OAuth2 is enabled.", true), 10 docs.FieldString("audience", "OAuth2 audience."), 11 docs.FieldString("issuer_url", "OAuth2 issuer URL."), 12 docs.FieldString("private_key_file", "File containing the private key."), 13 ), 14 docs.FieldAdvanced("token", "Parameters for Pulsar Token authentication.").WithChildren( 15 docs.FieldBool("enabled", "Whether Token Auth is enabled.", true), 16 docs.FieldString("token", "Actual base64 encoded token."), 17 ), 18 ).AtVersion("3.60.0") 19 }