Help us shape the future of Go! Take the 2026 Go Developer Survey

deployment

package
v0.60.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package deployment lists, finds and summarizes the current project's function and frontend deployments.

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("deployment not found")

ErrNotFound reports a deployment ID that is not among the project's deployments the search reached.

Functions

func Validate

func Validate(filter api.DeploymentFilter, requireType bool) error

Validate checks a filter before anything is sent. requireType is set for a summary, which covers one resource type.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service reads the current project's deployments.

func NewService

func NewService(deps cliruntime.Deps) Service

NewService returns a deployment service.

func (Service) Find

Find returns one deployment by ID. The feed has no read by ID, so this pages it, newest first, and gives up after the newest maxFindPages pages.

func (Service) List

List returns up to limit deployments matching filter, newest first, and whether more match.

func (Service) Summary

Summary counts the outcomes of deployments matching filter.

Jump to

Keyboard shortcuts

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