Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildExecCommand ¶
func GetMimeTypeExtension ¶
func GetPassedArgs ¶
func IsAllowedMimeType ¶
Types ¶
type Command ¶
type Command struct { // Command to execute. // // required: true Cmd string `yaml:"cmd"` // Arguments for the command. // // required: false Args []string `yaml:"args"` }
Command describes the command and arguments to execute for a specific MIME type.
swagger:model Command
type ServerConfig ¶
type ServerConfig struct { // Label of the server configuration used for identification. // // required: true Label string `yaml:"label"` // Label of the server configuration used for identification. // // required: false QueueName string `yaml:"queueName"` // HTTP method used for sending data to the destination server. // // required: false DestinationHTTPMethod string `yaml:"destinationHttpMethod"` // Header name for the file resource. // // required: false FileHeader string `yaml:"fileHeader,omitempty"` // Header name for additional arguments passed to the command. // // required: false ArgHeader string `yaml:"argHeader,omitempty"` // Indicates whether the authentication header should be forwarded. // // required: false ForwardAuth bool `yaml:"forwardAuth,omitempty"` // List of MIME types allowed for processing. // // required: false AllowedMimeTypes []string `yaml:"allowedMimeTypes"` // Commands and arguments ran by MIME type. // // required: false CmdByMimeType map[string]Command `yaml:"cmdByMimeType"` // Commands and arguments ran by MIME type based on the destination file format // // required: false MimeTypeFromDestination bool `yaml:"mimeTypeFromDestination,omitempty"` }
ServerConfig defines server-specific configurations.
swagger:model ServerConfig
func ReadConfig ¶
func ReadConfig(yp string) (*ServerConfig, error)
Click to show internal directories.
Click to hide internal directories.