config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 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 (
	UsernameField = field.StringField(
		"username",
		field.WithDescription("Username for authenticating with Argo CD CLI."),
		field.WithRequired(true),
		field.WithDisplayName("Username"),
	)
	PasswordField = field.StringField(
		"password",
		field.WithDescription("Password for authenticating with Argo CD CLI."),
		field.WithIsSecret(true),
		field.WithRequired(true),
		field.WithDisplayName("Password"),
	)
	ApiUrlField = field.StringField(
		"api-url",
		field.WithDescription("API URL for Argo CD."),
		field.WithRequired(true),
		field.WithDisplayName("API URL"),
	)
	KubeconfigPathField = field.FileUploadField(
		"kubeconfig",
		[]string{""},
		field.WithDescription("Kubeconfig file."),
		field.WithRequired(false),
		field.WithIsSecret(true),
		field.WithDisplayName("Kubeconfig file"),
	)
	InsecureSkipVerifyField = field.BoolField(
		"insecure-skip-verify",
		field.WithDescription("Skip TLS certificate verification (insecure, use only for testing)"),
		field.WithRequired(false),
		field.WithDisplayName("Skip TLS Verification"),
		field.WithExportTarget(field.ExportTargetCLIOnly),
	)
	CACertPathField = field.FileUploadField(
		"ca-cert-path",
		[]string{""},
		field.WithDescription("Path to CA certificate file for TLS verification"),
		field.WithRequired(false),
		field.WithIsSecret(true),
		field.WithDisplayName("CA Certificate"),
	)
	ConfigurationFields = []field.SchemaField{
		UsernameField, PasswordField, ApiUrlField, KubeconfigPathField, InsecureSkipVerifyField, CACertPathField,
	}
	FieldRelationships = []field.SchemaFieldRelationship{
		field.FieldsRequiredTogether(UsernameField, PasswordField),
	}
)
View Source
var Config = field.NewConfiguration(
	ConfigurationFields,
	field.WithConstraints(FieldRelationships...),
	field.WithConnectorDisplayName("Argo CD"),
	field.WithHelpUrl("/docs/baton/argo-cd"),
	field.WithIconUrl("/static/app-icons/argo-cd.svg"),
)

Functions

This section is empty.

Types

type ArgoCd

type ArgoCd struct {
	Username           string `mapstructure:"username"`
	Password           string `mapstructure:"password"`
	ApiUrl             string `mapstructure:"api-url"`
	Kubeconfig         []byte `mapstructure:"kubeconfig"`
	InsecureSkipVerify bool   `mapstructure:"insecure-skip-verify"`
	CaCertPath         []byte `mapstructure:"ca-cert-path"`
}

func (*ArgoCd) GetBool

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

func (*ArgoCd) GetInt

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

func (*ArgoCd) GetString

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

func (*ArgoCd) GetStringMap

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

func (*ArgoCd) GetStringSlice

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