ore

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: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrContainerExitedWithNonzeroExitCode = errors.New("container exited with nonzero exit code")

Functions

This section is empty.

Types

type Action

type Action struct {
	ID            string                       `json:"id,omitempty"`
	Uses          string                       `json:"uses,omitempty"`
	With          map[string]string            `json:"with,omitempty"`
	Env           map[string]string            `json:"env,omitempty"`
	GlobalContext *githubactions.GlobalContext `json:"global_context,omitempty"`
}

Action is an Ore representing a GitHub Action. That is--a step in a GitHub Actions workflow that uses the `uses` key.

func (*Action) Liquify

func (o *Action) Liquify(ctx context.Context, containerRuntime forge.ContainerRuntime, drains *forge.Drains) error

type Alloy

type Alloy struct {
	ID   string      `json:"id,omitempty"`
	Ores []forge.Ore `json:"ores,omitempty"`
}

Alloy is an Ore made up of other Ores that share a volume that is mounted to their WorkingDir.

func (*Alloy) Liquify

func (o *Alloy) Liquify(ctx context.Context, containerRuntime forge.ContainerRuntime, drains *forge.Drains) (err error)

type CloudBuild added in v0.15.0

type CloudBuild struct {
	cloudbuild.Step `json:",inline"`
}

func (*CloudBuild) Liquify added in v0.15.0

func (o *CloudBuild) Liquify(ctx context.Context, containerRuntime forge.ContainerRuntime, drains *forge.Drains) error

type Lava

type Lava struct {
	From forge.Ore `json:"from,omitempty"`
	To   *Pure     `json:"to,omitempty"`
}

Lava is an Ore representing two Ores of which the stdout of the first is piped to the stdin of the second.

func (*Lava) Liquify

func (o *Lava) Liquify(ctx context.Context, containerRuntime forge.ContainerRuntime, drains *forge.Drains) (err error)

type Pure

type Pure struct {
	Image      string   `json:"image,omitempty"`
	Entrypoint []string `json:"entrypoint,omitempty"`
	Cmd        []string `json:"cmd,omitempty"`
	Env        []string `json:"env,omitempty"`
	Input      []byte   `json:"input,omitempty"`
}

Pure is an Ore for running a "pure" command inside of a container.

func (*Pure) Liquify

func (o *Pure) Liquify(ctx context.Context, containerRuntime forge.ContainerRuntime, drains *forge.Drains) error

type Resource

type Resource struct {
	Method       string                  `json:"method,omitempty"`
	Version      map[string]any          `json:"version,omitempty"`
	Params       map[string]any          `json:"params,omitempty"`
	Resource     *concourse.Resource     `json:"resource,omitempty"`
	ResourceType *concourse.ResourceType `json:"resource_type,omitempty"`
}

Resource is an Ore representing a Concourse resource-- any of get, put or check.

func (*Resource) Liquify

func (o *Resource) Liquify(ctx context.Context, containerRuntime forge.ContainerRuntime, drains *forge.Drains) error

type Task added in v0.13.0

type Task struct {
	Task      string            `json:"task,omitempty"`
	Inputs    map[string]string `json:"inputs,omitempty"`
	Execution string            `json:"execution,omitempty"`
}

func (*Task) Liquify added in v0.13.0

func (o *Task) Liquify(ctx context.Context, containerRuntime forge.ContainerRuntime, drains *forge.Drains) error

Jump to

Keyboard shortcuts

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