validation

package
v3.15.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommandsNotRequiringToken = []string{
	"pipeline validate",
	"pipeline migrate",
}

CommandsNotRequiringToken is a list of command paths that don't require an API token

Functions

func CheckValidConfiguration

func CheckValidConfiguration(conf *config.Config) func(cmd *cobra.Command, args []string) error

TODO: This can be deleted once we've moved entirely over to Kong, as we've implemented the same functionality in ValidateConfiguration func CheckValidConfiguration returns a function that checks the viper configuration is valid to execute the command

func ValidateConfiguration added in v3.15.0

func ValidateConfiguration(conf *config.Config, commandPath string) error

CheckValidConfiguration checks that the viper configuration is valid to execute the command (Kong version)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL