cgi

package
v0.0.0-...-8478a25 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: BSD-2-Clause-Patent Imports: 15 Imported by: 0

Documentation

Overview

Copyright 2024 Harness Inc. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New returns the task execution driver.

Types

type Config

type Config struct {
	ExecutableConfig *task.ExecutableConfig `json:"executable_config"`
	Repository       *task.Repository       `json:"repository"`
	Method           string                 `json:"method"`
	Endpoint         string                 `json:"endpoint"`
	Headers          map[string]string      `json:"headers"`
	Envs             []string               `json:"envs"`
}

Config provides the driver config.

type Execer

type Execer struct {
	Binpath   string  // path to the binary file for execution
	CGIConfig *Config // config for the cgi execution
}

func (*Execer) Exec

func (e *Execer) Exec(ctx context.Context, in []byte) ([]byte, error)

Exec executes the task given the binary filepath and the configuration

Jump to

Keyboard shortcuts

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