api

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

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
}

Client represents an API client.

func NewClient

func NewClient(endpoint, authToken string) Client

NewClient returns a new API client.

func (*Client) Diff

Diff submits a "diff" for the provided project target.

func (*Client) Exec

Exec submits an "exec" for the provided project target.

func (*Client) ExecuteWorkflow

func (c *Client) ExecuteWorkflow(ctx context.Context, input requests.CreateWorkflow) (responses.ExecuteWorkflow, error)

ExecuteWorkflow submits a workflow execution request.

func (*Client) GetLogs

func (c *Client) GetLogs(ctx context.Context, workflowName string) (responses.GetLogs, error)

GetLogs gets the logs of a workflow.

func (*Client) GetWorkflowStatus

func (c *Client) GetWorkflowStatus(ctx context.Context, workflowName string) (responses.GetWorkflowStatus, error)

GetWorkflowStatus gets the status of a workflow.

func (*Client) GetWorkflows

func (c *Client) GetWorkflows(ctx context.Context, project, target string) (responses.GetWorkflows, error)

GetWorkflows gets the list of workflows for a project and target.

func (*Client) StreamLogs

func (c *Client) StreamLogs(ctx context.Context, w io.Writer, workflowName string) error

StreamLogs streams the logs of a workflow starting after loggedBytes.

func (*Client) Sync

Sync submits a "sync" for the provided project target.

type TargetOperationInput

type TargetOperationInput struct {
	Path        string
	ProjectName string
	SHA         string
	TargetName  string
}

TargetOperationInput represents the input to a targetOperation.

Jump to

Keyboard shortcuts

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