service

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package service provides the ability for Vela to manipulate and manage a service from a pipeline.

Usage:

import "github.com/go-vela/worker/internal/service"

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.Service, 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.Service, error)

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

func LoadLogs

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

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

func Snapshot

func Snapshot(ctn *pipeline.Container, b *library.Build, c *vela.Client, l *logrus.Entry, r *library.Repo, s *library.Service)

Snapshot creates a moment in time record of the service 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.Service)

Upload tracks the final state of the service 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