inject

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package inject provides utility functions for sidecar injection.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildMultipartRequestBody

func BuildMultipartRequestBody(values map[string][]int, body []byte, filename string) (io.Reader, string, error)

BuildMultipartRequestBody builds a multipart/form-data request to be used in the inject request.

func CreateFileFromSTDIN

func CreateFileFromSTDIN() ([]byte, *os.File, error)

CreateFileFromSTDIN creates a temporary file from the data contained in stdin and returns the data and file pointer.

func ReadFileOrURL

func ReadFileOrURL(filename string) ([]byte, error)

ReadFileOrURL returns the body from a local or remote file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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