service

package
v0.20.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package service provides the service handlers for the Vela API.

Usage:

import "github.com/go-vela/server/api/service"

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateService

func CreateService(c *gin.Context)

CreateService represents the API handler to create a service for a build in the configured backend.

func DeleteService

func DeleteService(c *gin.Context)

DeleteService represents the API handler to remove a service for a build from the configured backend.

func GetService

func GetService(c *gin.Context)

GetService represents the API handler to capture a service for a build from the configured backend.

func ListServices

func ListServices(c *gin.Context)

ListServices represents the API handler to capture a list of services for a build from the configured backend.

func PlanServices

func PlanServices(database database.Interface, p *pipeline.Build, b *library.Build) ([]*library.Service, error)

PlanServices is a helper function to plan all services in the build for execution. This creates the services for the build in the configured backend.

func UpdateService

func UpdateService(c *gin.Context)

UpdateService represents the API handler to update a service for a build in the configured backend.

Types

This section is empty.

Jump to

Keyboard shortcuts

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