Documentation ¶
Overview ¶
Package step provides the ability for Vela to manipulate and manage a step from a pipeline.
Usage:
import "github.com/go-vela/worker/internal/step"
Index ¶
- func Environment(c *pipeline.Container, b *library.Build, r *library.Repo, s *library.Step, ...) error
- func Load(c *pipeline.Container, m *sync.Map) (*library.Step, error)
- func LoadInit(p *pipeline.Build) (*pipeline.Container, error)
- func LoadLogs(c *pipeline.Container, m *sync.Map) (*library.Log, error)
- func Skip(c *pipeline.Container, b *library.Build, r *library.Repo) bool
- func Snapshot(ctn *pipeline.Container, b *library.Build, c *vela.Client, l *logrus.Entry, ...)
- func SnapshotInit(ctn *pipeline.Container, b *library.Build, c *vela.Client, l *logrus.Entry, ...)
- func Upload(ctn *pipeline.Container, b *library.Build, c *vela.Client, l *logrus.Entry, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Environment ¶
func Environment(c *pipeline.Container, b *library.Build, r *library.Repo, s *library.Step, version string) error
Environment attempts to update the environment variables for the container based off the library resources.
func LoadInit ¶
LoadInit attempts to capture the container representing the init process from the pipeline.
func LoadLogs ¶
LoadLogs attempts to capture the library step logs representing the container from the map.
func Skip ¶
Skip creates the ruledata from the build and repository information and returns true if the data does not match the ruleset for the given container.
func Snapshot ¶
func Snapshot(ctn *pipeline.Container, b *library.Build, c *vela.Client, l *logrus.Entry, r *library.Repo, s *library.Step)
Snapshot creates a moment in time record of the step and attempts to upload it to the server.
Types ¶
This section is empty.