config

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 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 (
	ClientID = field.StringField(
		"box-client-id",
		field.WithDisplayName("Client ID"),
		field.WithDescription("Client ID used to authenticate to the Box API."),
		field.WithRequired(true),
	)

	ClientSecret = field.StringField(
		"box-client-secret",
		field.WithDisplayName("Client Secret"),
		field.WithDescription("Client Secret used to authenticate to the Box API."),
		field.WithRequired(true),
		field.WithIsSecret(true),
	)

	EnterpriseID = field.StringField(
		"enterprise-id",
		field.WithDisplayName("Enterprise ID"),
		field.WithDescription("ID of your Box enterprise."),
		field.WithRequired(true),
	)
	BaseURLField = field.StringField(
		"base-url",
		field.WithDescription("Override the Box API URL (for testing or enterprise deployments)"),
		field.WithHidden(true),
		field.WithExportTarget(field.ExportTargetCLIOnly),
	)
)

Functions

This section is empty.

Types

type Box

type Box struct {
	BoxClientId     string `mapstructure:"box-client-id"`
	BoxClientSecret string `mapstructure:"box-client-secret"`
	EnterpriseId    string `mapstructure:"enterprise-id"`
	BaseUrl         string `mapstructure:"base-url"`
}

func (*Box) GetBool

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

func (*Box) GetInt

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

func (*Box) GetString

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

func (*Box) GetStringMap

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

func (*Box) GetStringSlice

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