contaminate

package
v0.15.0-alpha1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: MIT Imports: 3 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 InputFrom

func InputFrom(ctx context.Context) []byte

func MountsFrom

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

func OverrideWithMountsFrom

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

func WithInput

func WithInput(ctx context.Context, input []byte) context.Context

func WithMounts

func WithMounts(ctx context.Context, mounts ...forge.Mount) 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