ore

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pkg_ore_action_proto protoreflect.FileDescriptor
View Source
var File_pkg_ore_pure_proto protoreflect.FileDescriptor
View Source
var File_pkg_ore_resource_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Action

type Action struct {
	Id            string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Uses          string                 `protobuf:"bytes,2,opt,name=uses,proto3" json:"uses,omitempty"`
	With          map[string]string      `` /* 149-byte string literal not displayed */
	Env           map[string]string      `` /* 147-byte string literal not displayed */
	GlobalContext *actions.GlobalContext `protobuf:"bytes,5,opt,name=global_context,json=globalContext,proto3" json:"global_context,omitempty"`
	// contains filtered or unexported fields
}

func (*Action) Descriptor deprecated

func (*Action) Descriptor() ([]byte, []int)

Deprecated: Use Action.ProtoReflect.Descriptor instead.

func (*Action) GetEnv

func (x *Action) GetEnv() map[string]string

func (*Action) GetGlobalContext

func (x *Action) GetGlobalContext() *actions.GlobalContext

func (*Action) GetId

func (x *Action) GetId() string

func (*Action) GetUses

func (x *Action) GetUses() string

func (*Action) GetWith

func (x *Action) GetWith() map[string]string

func (*Action) Liquify

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

func (*Action) ProtoMessage

func (*Action) ProtoMessage()

func (*Action) ProtoReflect

func (x *Action) ProtoReflect() protoreflect.Message

func (*Action) Reset

func (x *Action) Reset()

func (*Action) String

func (x *Action) String() string

type Alloy

type Alloy struct {
	Id   string      `json:"id,omitempty"` //nolint:revive // matching protobuf style
	Ores []forge.Ore `json:"ores,omitempty"`
}

func (*Alloy) GetId

func (o *Alloy) GetId() string

func (*Alloy) GetOres

func (o *Alloy) GetOres() []forge.Ore

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"`
}

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   `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"`
	Entrypoint []string `protobuf:"bytes,2,rep,name=entrypoint,proto3" json:"entrypoint,omitempty"`
	Cmd        []string `protobuf:"bytes,3,rep,name=cmd,proto3" json:"cmd,omitempty"`
	Env        []string `protobuf:"bytes,4,rep,name=env,proto3" json:"env,omitempty"`
	Input      []byte   `protobuf:"bytes,5,opt,name=input,proto3" json:"input,omitempty"`
	// contains filtered or unexported fields
}

func (*Pure) Descriptor deprecated

func (*Pure) Descriptor() ([]byte, []int)

Deprecated: Use Pure.ProtoReflect.Descriptor instead.

func (*Pure) GetCmd

func (x *Pure) GetCmd() []string

func (*Pure) GetEntrypoint

func (x *Pure) GetEntrypoint() []string

func (*Pure) GetEnv

func (x *Pure) GetEnv() []string

func (*Pure) GetImage

func (x *Pure) GetImage() string

func (*Pure) GetInput

func (x *Pure) GetInput() []byte

func (*Pure) Liquify

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

func (*Pure) ProtoMessage

func (*Pure) ProtoMessage()

func (*Pure) ProtoReflect

func (x *Pure) ProtoReflect() protoreflect.Message

func (*Pure) Reset

func (x *Pure) Reset()

func (*Pure) String

func (x *Pure) String() string

type Resource

type Resource struct {
	Method       string                  `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`
	Version      map[string]string       `` /* 155-byte string literal not displayed */
	Params       map[string]string       `` /* 153-byte string literal not displayed */
	Resource     *concourse.Resource     `protobuf:"bytes,4,opt,name=resource,proto3" json:"resource,omitempty"`
	ResourceType *concourse.ResourceType `protobuf:"bytes,5,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"`
	// contains filtered or unexported fields
}

func (*Resource) Descriptor deprecated

func (*Resource) Descriptor() ([]byte, []int)

Deprecated: Use Resource.ProtoReflect.Descriptor instead.

func (*Resource) GetMethod

func (x *Resource) GetMethod() string

func (*Resource) GetParams

func (x *Resource) GetParams() map[string]string

func (*Resource) GetResource

func (x *Resource) GetResource() *concourse.Resource

func (*Resource) GetResourceType

func (x *Resource) GetResourceType() *concourse.ResourceType

func (*Resource) GetVersion

func (x *Resource) GetVersion() map[string]string

func (*Resource) Liquify

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

func (*Resource) ProtoMessage

func (*Resource) ProtoMessage()

func (*Resource) ProtoReflect

func (x *Resource) ProtoReflect() protoreflect.Message

func (*Resource) Reset

func (x *Resource) Reset()

func (*Resource) String

func (x *Resource) String() string

Jump to

Keyboard shortcuts

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