step

package
v0.17.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 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 *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 Load

func Load(c *pipeline.Container, m *sync.Map) (*library.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) (*library.Log, error)

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

func Skip

func Skip(c *pipeline.Container, b *library.Build, r *library.Repo) bool

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.

func SnapshotInit

func SnapshotInit(ctn *pipeline.Container, b *library.Build, c *vela.Client, l *logrus.Entry, r *library.Repo, s *library.Step, lg *library.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 *library.Build, c *vela.Client, l *logrus.Entry, r *library.Repo, s *library.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