Documentation
¶
Overview ¶
Package deployment lists, finds and summarizes the current project's function and frontend deployments.
Index ¶
- Variables
- func Validate(filter api.DeploymentFilter, requireType bool) error
- type Service
- func (s Service) Find(ctx context.Context, id string) (*apiclient.ProjectDeployment, error)
- func (s Service) List(ctx context.Context, filter api.DeploymentFilter, limit int) ([]apiclient.ProjectDeployment, bool, error)
- func (s Service) Summary(ctx context.Context, filter api.DeploymentFilter) (*apiclient.ProjectDeploymentSummary, error)
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 ¶
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 ¶
func (s Service) List(ctx context.Context, filter api.DeploymentFilter, limit int) ([]apiclient.ProjectDeployment, bool, error)
List returns up to limit deployments matching filter, newest first, and whether more match.
func (Service) Summary ¶
func (s Service) Summary(ctx context.Context, filter api.DeploymentFilter) (*apiclient.ProjectDeploymentSummary, error)
Summary counts the outcomes of deployments matching filter.
Click to show internal directories.
Click to hide internal directories.