resource

package
v0.36.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dynamic

type Dynamic struct {
	// contains filtered or unexported fields
}

Dynamic knows how to convert an expression into a step resource

func NewDynamic

func NewDynamic(parser parser, workDir, shortRef string) *Dynamic

func (*Dynamic) Fetch

type File

type File struct {
	// contains filtered or unexported fields
}

File knows how to load a step from the file system using an absolute path

func NewFile

func NewFile(workDir string, stepPath, filename string) *File

func (*File) Describe

func (sr *File) Describe() string

func (*File) Fetch

type Fixed

type Fixed struct {
	// contains filtered or unexported fields
}

Fixed is a StepResource that returns a pre-supplied FunctionDescriptor.

func NewFixed

func NewFixed(funcDesc *runner.FunctionDescriptor) *Fixed

type Function

type Function struct {
	// contains filtered or unexported fields
}

Function knows how to load a step from the known registered step functions

func NewFunction

func NewFunction(functionName string, findStepFunction runner.StepFuncFinder) *Function

type Git

type Git struct {
	// contains filtered or unexported fields
}

Git knows how to load a step from a Git repository

func NewGit

func NewGit(fetcher *git.GitFetcher, url string, version string, stepDir string, filename string) *Git

func (*Git) Fetch

type OCI

type OCI struct {
	// contains filtered or unexported fields
}

OCI knows how to load a step resource from an OCI repository

func NewOCI

func NewOCI(ociClient *oci.Client, registry, repository, tag, stepDir, filename string) *OCI

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

Parser converts a step reference into the StepResource capable of loading it.

func NewParser

func NewParser(gitFetcher *git.GitFetcher, stepFuncFinder runner.StepFuncFinder, ociClient *oci.Client) *Parser

func (*Parser) Parse

func (p *Parser) Parse(workDir string, stepRef *proto.Step_Reference) (runner.StepResource, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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