ore

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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) (*forge.Metal, 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) (metal *forge.Metal, err 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) GetFrom

func (o *Lava) GetFrom() forge.Ore

func (*Lava) GetTo

func (o *Lava) GetTo() forge.Ore

func (*Lava) Liquify

func (o *Lava) Liquify(ctx context.Context, containerRuntime forge.ContainerRuntime, drains *forge.Drains) (metal *forge.Metal, 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) (*forge.Metal, error)

type Resource

type Resource struct {
	Method       string                  `json:"method,omitempty"`
	Version      map[string]string       `json:"version,omitempty"`
	Params       map[string]string       `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) (*forge.Metal, error)

Jump to

Keyboard shortcuts

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