contaminate

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

package contaminate contains ways for forge to internally pass state between ores, such as to make sequential ores share a filesystem.

This may sound like it breaks the fundamental idea of an ore, which is to have an encodable data structure that represents one or many containerized commands in their entirety so that such commands may be cached and retrieved later by their encoding.

However, this package is only used by individual ores internally (which may contain one or many ores), which maintains the ore being hermetic.

It is, of course, an internal package so that users cannot do the same, thus breaking forge's concept of an ore externally.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MountsFrom

func MountsFrom(ctx context.Context) []forge.Mount

func OverrideWithMountsFrom

func OverrideWithMountsFrom(ctx context.Context, mounts ...forge.Mount) []forge.Mount

func StdinFrom added in v0.15.0

func StdinFrom(ctx context.Context) io.Reader

func WithMounts

func WithMounts(ctx context.Context, mounts ...forge.Mount) context.Context

func WithStdin added in v0.15.0

func WithStdin(ctx context.Context, stdin io.Reader) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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