Documentation
¶
Overview ¶
Code generated by baton-sdk. DO NOT EDIT!!!
Index ¶
- Variables
- type CloudflareZeroTrust
- func (c *CloudflareZeroTrust) GetBool(fieldName string) bool
- func (c *CloudflareZeroTrust) GetInt(fieldName string) int
- func (c *CloudflareZeroTrust) GetString(fieldName string) string
- func (c *CloudflareZeroTrust) GetStringMap(fieldName string) map[string]any
- func (c *CloudflareZeroTrust) GetStringSlice(fieldName string) []string
Constants ¶
This section is empty.
Variables ¶
View Source
var Config = field.NewConfiguration( configurationFields, field.WithConnectorDisplayName("Cloudflare Zero Trust"), field.WithHelpUrl("/docs/baton/cloudflare-zero-trust"), field.WithIconUrl("/static/app-icons/cloudflare-zero-trust.svg"), field.WithFieldGroups([]field.SchemaFieldGroup{ { Name: "api-token-group", DisplayName: "API Token", HelpText: "Use an API token for authentication.", Fields: []field.SchemaField{accountIdField, apiTokenField}, Default: true, }, { Name: "api-key-group", DisplayName: "Email + API key", HelpText: "Use an API key with email for authentication.", Fields: []field.SchemaField{accountIdField, emailField, apiKeyField}, }, }), )
Functions ¶
This section is empty.
Types ¶
type CloudflareZeroTrust ¶
type CloudflareZeroTrust struct {
AccountId string `mapstructure:"account-id"`
ApiKey string `mapstructure:"api-key"`
ApiToken string `mapstructure:"api-token"`
Email string `mapstructure:"email"`
BaseUrl string `mapstructure:"base-url"`
}
func (*CloudflareZeroTrust) GetBool ¶
func (c *CloudflareZeroTrust) GetBool(fieldName string) bool
func (*CloudflareZeroTrust) GetInt ¶
func (c *CloudflareZeroTrust) GetInt(fieldName string) int
func (*CloudflareZeroTrust) GetString ¶
func (c *CloudflareZeroTrust) GetString(fieldName string) string
func (*CloudflareZeroTrust) GetStringMap ¶
func (c *CloudflareZeroTrust) GetStringMap(fieldName string) map[string]any
func (*CloudflareZeroTrust) GetStringSlice ¶
func (c *CloudflareZeroTrust) GetStringSlice(fieldName string) []string
Click to show internal directories.
Click to hide internal directories.