environment

command
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

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=: Provides FileInfo for the query-param. The JSON payload returned as response is specified in runtime_contract_types

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