config

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 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 (
	SendGridApiKeyField = field.StringField(
		"sendgrid-api-key",
		field.WithRequired(true),
		field.WithDescription("API key for SendGrid service."),
		field.WithIsSecret(true),
		field.WithDisplayName("API Key"),
		field.WithPlaceholder("SG.xxxxxxxxxxxxxxxxxxxx"),
	)

	SendGridRegionField = field.SelectField(
		"sendgrid-region",
		[]string{"global", "eu"},
		field.WithDefaultValue("global"),
		field.WithDescription("Region for SendGrid service: global or eu."),
		field.WithDisplayName("Region"),
		field.WithPlaceholder("global"),
	)

	IgnoreSubusers = field.BoolField(
		"ignore-subusers",
		field.WithDefaultValue(false),
		field.WithDescription("Ignore subusers in the SendGrid account, subusers are an upgraded feature of sendgrid."),
		field.WithDisplayName("Ignore Subusers"),
	)

	BaseURLField = field.StringField(
		"base-url",
		field.WithDescription("Override the SendGrid API URL (for testing)"),
		field.WithHidden(true),
		field.WithExportTarget(field.ExportTargetCLIOnly),
	)
)

Functions

This section is empty.

Types

type Sendgrid

type Sendgrid struct {
	SendgridApiKey string `mapstructure:"sendgrid-api-key"`
	SendgridRegion string `mapstructure:"sendgrid-region"`
	IgnoreSubusers bool   `mapstructure:"ignore-subusers"`
	BaseUrl        string `mapstructure:"base-url"`
}

func (*Sendgrid) GetBool

func (c *Sendgrid) GetBool(fieldName string) bool

func (*Sendgrid) GetInt

func (c *Sendgrid) GetInt(fieldName string) int

func (*Sendgrid) GetString

func (c *Sendgrid) GetString(fieldName string) string

func (*Sendgrid) GetStringMap

func (c *Sendgrid) GetStringMap(fieldName string) map[string]any

func (*Sendgrid) GetStringSlice

func (c *Sendgrid) 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