Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL