// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
package org_tangled
// schema: org.tangled.ci.cancelPipeline
import (
"context"
"github.com/bluesky-social/indigo/lex/util"
)
const (
CiCancelPipelineNSID = "org.tangled.ci.cancelPipeline"
)
// CiCancelPipeline_Input is the input argument to a org.tangled.ci.cancelPipeline call.
type CiCancelPipeline_Input struct {
// pipeline: Spindle-local pipeline id
Pipeline string `json:"pipeline" cborgen:"pipeline"`
// repo: git repository DID
Repo string `json:"repo" cborgen:"repo"`
// workflows: Workflow names to filter. When not provided, entire pipeline will be canceled.
Workflows []string `json:"workflows,omitempty" cborgen:"workflows,omitempty"`
}
// CiCancelPipeline calls the XRPC method "org.tangled.ci.cancelPipeline".
func CiCancelPipeline(ctx context.Context, c util.LexClient, input *CiCancelPipeline_Input) error {
if err := c.LexDo(ctx, util.Procedure, "application/json", "org.tangled.ci.cancelPipeline", nil, input, nil); err != nil {
return err
}
return nil
}