config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2025 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 (
	SecretKeyField = field.StringField(
		"secret-key",
		field.WithDescription("Tenable VM secret key to connect to the API"),
		field.WithDisplayName("Secret Key"),
		field.WithPlaceholder("Your Tenable VM Secret Key"),
		field.WithIsSecret(true),
		field.WithRequired(true),
	)
	AccessKeyField = field.StringField(
		"access-key",
		field.WithDescription("Tenable VM access key to connect to the API"),
		field.WithDisplayName("Access Key"),
		field.WithPlaceholder("Your Tenable VM Access Key"),
		field.WithIsSecret(true),
		field.WithRequired(true),
	)
	EnableOnProvisionField = field.BoolField(
		"enable-on-provision",
		field.WithDescription("Enable user on provision if disabled"),
		field.WithDefaultValue(false),
		field.WithDisplayName("Enable user on provisioning"),
	)
	// ConfigurationFields defines the external configuration required for the
	// connector to run. Note: these fields can be marked as optional or
	// required.
	ConfigurationFields = []field.SchemaField{SecretKeyField, AccessKeyField, EnableOnProvisionField}
)
View Source
var Config = field.NewConfiguration(
	[]field.SchemaField{
		SecretKeyField,
		AccessKeyField,
		EnableOnProvisionField,
	},
	field.WithConnectorDisplayName("Tenable VM"),
	field.WithHelpUrl("/docs/baton/tenable-vm"),
	field.WithIconUrl("/static/app-icons/tenable-vm.svg"),
)

Functions

This section is empty.

Types

type TenableVm

type TenableVm struct {
	SecretKey         string `mapstructure:"secret-key"`
	AccessKey         string `mapstructure:"access-key"`
	EnableOnProvision bool   `mapstructure:"enable-on-provision"`
}

func (*TenableVm) GetBool

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

func (*TenableVm) GetInt

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

func (*TenableVm) GetString

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

func (*TenableVm) GetStringMap

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

func (*TenableVm) GetStringSlice

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