config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2026 License: Apache-2.0 Imports: 2 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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),
	)
	DisableForceDeleteField = field.BoolField(
		"disable-force-delete",
		field.WithDisplayName("Keep users who still own content"),
		field.WithDescription("When enabled, deleting a Box user fails while they still own files or folders, "+
			"instead of deleting that content with them. Use it with the Transfer User Files action so content "+
			"that has not been transferred yet is not deleted with the user."),
		field.WithSuggestedValue(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"`
	DisableForceDelete bool   `mapstructure:"disable-force-delete"`
	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