Documentation
¶
Overview ¶
Code generated by baton-sdk. DO NOT EDIT!!!
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Config = field.NewConfiguration( configurationFields, field.WithConnectorDisplayName("Cloudflare"), field.WithHelpUrl("/docs/baton/cloudflare"), field.WithIconUrl("/static/app-icons/cloudflare.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, emailIdField, apiKeyField}, }, }), )
Functions ¶
This section is empty.
Types ¶
type Cloudflare ¶
type Cloudflare struct {
ApiKey string `mapstructure:"api-key"`
ApiToken string `mapstructure:"api-token"`
AccountId string `mapstructure:"account-id"`
EmailId string `mapstructure:"email-id"`
BaseUrl string `mapstructure:"base-url"`
}
func (*Cloudflare) GetBool ¶
func (c *Cloudflare) GetBool(fieldName string) bool
func (*Cloudflare) GetInt ¶
func (c *Cloudflare) GetInt(fieldName string) int
func (*Cloudflare) GetString ¶
func (c *Cloudflare) GetString(fieldName string) string
func (*Cloudflare) GetStringMap ¶
func (c *Cloudflare) GetStringMap(fieldName string) map[string]any
func (*Cloudflare) GetStringSlice ¶
func (c *Cloudflare) GetStringSlice(fieldName string) []string
Click to show internal directories.
Click to hide internal directories.