step

package
v0.27.2 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func Environment

func Environment(c *pipeline.Container, b *api.Build, s *api.Step, version, reqToken string) error

Environment attempts to update the environment variables for the container based off the library resources.

func Load

func Load(c *pipeline.Container, m *sync.Map) (*api.Step, error)

Load attempts to capture the library step representing the container from the map.

func LoadInit

func LoadInit(p *pipeline.Build) (*pipeline.Container, error)

LoadInit attempts to capture the container representing the init process from the pipeline.

func LoadLogs

func LoadLogs(c *pipeline.Container, m *sync.Map) (*api.Log, error)

LoadLogs attempts to capture the library step logs representing the container from the map.

func Skip

func Skip(c *pipeline.Container, b *api.Build, status string) (bool, error)

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 *api.Build, c *vela.Client, l *logrus.Entry, s *api.Step)

Snapshot creates a moment in time record of the step and attempts to upload it to the server.

func SnapshotInit

func SnapshotInit(ctn *pipeline.Container, b *api.Build, c *vela.Client, l *logrus.Entry, s *api.Step, lg *api.Log)

SnapshotInit creates a moment in time record of the init step and attempts to upload it to the server.

func Upload

func Upload(ctn *pipeline.Container, b *api.Build, c *vela.Client, l *logrus.Entry, s *api.Step)

Upload tracks the final state of the step and attempts to upload it to the server.

Types

This section is empty.

Jump to

Keyboard shortcuts

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