service

package
v0.24.1 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 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.

func DeleteService

func DeleteService(c *gin.Context)

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

func GetService

func GetService(c *gin.Context)

GetService represents the API handler to get a service for a build.

func ListServices

func ListServices(c *gin.Context)

ListServices represents the API handler to get a list of services for a build.

func PlanServices

func PlanServices(ctx context.Context, database database.Interface, p *pipeline.Build, b *types.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.

func UpdateService

func UpdateService(c *gin.Context)

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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