config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 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 (
	// Add the SchemaFields for the Config.
	ApiToken = field.StringField(
		"api-token",
		field.WithDisplayName("API Token"),
		field.WithDescription("API Token for Sentry"),
		field.WithIsSecret(true),
		field.WithRequired(true),
	)

	ConfigurationFields = []field.SchemaField{ApiToken}

	// FieldRelationships defines relationships between the ConfigurationFields that can be automatically validated.
	// For example, a username and password can be required together, or an access token can be
	// marked as mutually exclusive from the username password pair.
	FieldRelationships = []field.SchemaFieldRelationship{}
)

Functions

This section is empty.

Types

type Sentry

type Sentry struct {
	ApiToken string `mapstructure:"api-token"`
}

func (*Sentry) GetBool

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

func (*Sentry) GetInt

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

func (*Sentry) GetString

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

func (*Sentry) GetStringMap

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

func (*Sentry) GetStringSlice

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