execute

package
v0.0.0-...-493bc98 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(command Command, data string) error

Execute ..

Types

type Command

type Command struct {
	Name           string              `yaml:"name" validate:"required,alphanumunicode"`
	Protocol       string              `yaml:"protocol"`
	Target         string              `yaml:"target" validate:"required"`
	Exec           string              `yaml:"exec" validate:"required"`
	Type           string              `yaml:"type" validate:"required,oneof=http bash exec"`
	Validate       bool                `yaml:"validate"`
	Schema         string              `yaml:"schema"`
	SchemaType     string              `yaml:"schema-type" validate:"oneof=json avro"`
	Authentication bool                `yaml:"authentication"`
	ValidateClaim  map[string][]string `yaml:"validate-claim"`
}

Command ..

Jump to

Keyboard shortcuts

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