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

stackworkflowruns

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

A Stack Workflow Run refers to a single execution instance of a defined Stack Workflow, where the actions specified in the Stack Workflow configuration are carried out.

For more details, please visit our Workflow Runs [Documentation](https://docs.stackguardian.io/docs/deploy/workflows/workflow_components/run/).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(opts ...option.RequestOption) *Client

func (*Client) ApproveStackWorkflowRun

func (c *Client) ApproveStackWorkflowRun(
	ctx context.Context,
	org string,
	stack string,
	wf string,
	wfGrp string,
	wfRun string,
	request *sgsdkgo.WorkflowRunApproval,
	opts ...option.RequestOption,
) error

Provide approval for a Stack Workflow run.

func (*Client) CreateStackWorkflowRun added in v1.1.0

func (c *Client) CreateStackWorkflowRun(
	ctx context.Context,
	org string,
	stack string,
	wf string,
	wfGrp string,
	request *sgsdkgo.WorkflowRun,
	opts ...option.RequestOption,
) (*sgsdkgo.GeneratedWorkflowRunsStackCreateResponse, error)

Initiate a new workflow run for a specific stack.

func (*Client) ReadStackWorkflowRun

func (c *Client) ReadStackWorkflowRun(
	ctx context.Context,
	org string,
	stack string,
	wf string,
	wfGrp string,
	wfRun string,
	opts ...option.RequestOption,
) (*sgsdkgo.GeneratedWorkflowRunStackGet, error)

Retrieve detailed information about a specific stack workflow run.

func (*Client) ReadStackWorkflowRunLogs

func (c *Client) ReadStackWorkflowRunLogs(
	ctx context.Context,
	org string,
	stack string,
	wf string,
	wfGrp string,
	wfRun string,
	opts ...option.RequestOption,
) (*sgsdkgo.GeneratedWorkflowRunLogs, error)

Retrieve execution logs for a stack workflow run.

This endpoint returns a signed URL that can be used to fetch the logs in `text/plain` format. This signed URL is valid for 60 minutes. After expiration, you can request a new signed URL by calling this endpoint again.

Jump to

Keyboard shortcuts

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