environment

command
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2019 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Environment test image

This directory contains the test image used to retrieve environment information under which the container runs. This is used by conformance tests to verify Knative run-time contract

The image contains a simple Go webserver, environment.go, which by default, listens on port defined in the constant EnvImageServerPort.

Currently the server exposes:

  • /envvars : To provide a JSON payload containing all the environment variables set inside the container
  • /filepath?path=path-to-file: Provides FileInfo for the path-to-file query-param. The JSON payload returned as response is specified in runtime_contract_types

Trying out

To run the image as a Service outisde of the test suite:

ko apply -f service.yaml

Building

For details about building and adding new images, see the section about test images.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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