tekton

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: MIT Imports: 16 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 {
	Tekton tektonclientset.Interface
	K8s    kubernetes.Interface
}

func NewClient

func NewClient(kubeconfigPath string) (*Client, error)

func (*Client) CancelPipelineRun

func (c *Client) CancelPipelineRun(ctx context.Context, namespace, name string) error

CancelPipelineRun cancels a running PipelineRun.

func (*Client) CreatePipeline

func (c *Client) CreatePipeline(ctx context.Context, namespace string, p *pipelinev1.Pipeline) (*pipelinev1.Pipeline, error)

CreatePipeline creates a new Pipeline.

func (*Client) CreatePipelineRun

func (c *Client) CreatePipelineRun(ctx context.Context, namespace string, pr *pipelinev1.PipelineRun) (*pipelinev1.PipelineRun, error)

CreatePipelineRun creates a new PipelineRun.

func (*Client) CreateTask

func (c *Client) CreateTask(ctx context.Context, namespace string, t *pipelinev1.Task) (*pipelinev1.Task, error)

CreateTask creates a new Task.

func (*Client) DeletePipeline

func (c *Client) DeletePipeline(ctx context.Context, namespace, name string) error

DeletePipeline deletes a Pipeline.

func (*Client) DeletePipelineRun

func (c *Client) DeletePipelineRun(ctx context.Context, namespace, name string) error

DeletePipelineRun deletes a PipelineRun.

func (*Client) DeleteTask

func (c *Client) DeleteTask(ctx context.Context, namespace, name string) error

DeleteTask deletes a Task.

func (*Client) GetLatestPipelineRun

func (c *Client) GetLatestPipelineRun(ctx context.Context, namespace, pipelineName string) (*pipelinev1.PipelineRun, error)

GetLatestPipelineRun returns the most recently started PipelineRun for a given pipeline name.

func (*Client) GetPipeline

func (c *Client) GetPipeline(ctx context.Context, namespace, name string) (*pipelinev1.Pipeline, error)

GetPipeline returns a specific Pipeline.

func (*Client) GetPipelineRun

func (c *Client) GetPipelineRun(ctx context.Context, namespace, name string) (*pipelinev1.PipelineRun, error)

GetPipelineRun returns a specific PipelineRun.

func (*Client) GetPipelineRunLogs

func (c *Client) GetPipelineRunLogs(ctx context.Context, namespace, name string) ([]*TaskRunLog, error)

GetPipelineRunLogs retrieves logs for all TaskRuns in a PipelineRun.

func (*Client) GetPipelineRunStatus

func (c *Client) GetPipelineRunStatus(pr *pipelinev1.PipelineRun) SimpleStatus

GetPipelineRunStatus returns the simplified status of a PipelineRun.

func (*Client) GetTask

func (c *Client) GetTask(ctx context.Context, namespace, name string) (*pipelinev1.Task, error)

GetTask returns a specific Task.

func (*Client) GetTaskRun

func (c *Client) GetTaskRun(ctx context.Context, namespace, name string) (*pipelinev1.TaskRun, error)

GetTaskRun returns a specific TaskRun.

func (*Client) GetTaskRunLogs

func (c *Client) GetTaskRunLogs(ctx context.Context, namespace, name string) (*TaskRunLog, error)

GetTaskRunLogs retrieves logs for a TaskRun.

func (*Client) ListPipelineRuns

func (c *Client) ListPipelineRuns(ctx context.Context, namespace string, opts metav1.ListOptions) (*pipelinev1.PipelineRunList, error)

ListPipelineRuns returns a list of PipelineRuns in the specified namespace.

func (*Client) ListPipelines

func (c *Client) ListPipelines(ctx context.Context, namespace string, opts metav1.ListOptions) (*pipelinev1.PipelineList, error)

ListPipelines returns a list of Pipelines.

func (*Client) ListTaskRuns

func (c *Client) ListTaskRuns(ctx context.Context, namespace string, opts metav1.ListOptions) (*pipelinev1.TaskRunList, error)

ListTaskRuns returns a list of TaskRuns.

func (*Client) ListTaskRunsForPipelineRun

func (c *Client) ListTaskRunsForPipelineRun(ctx context.Context, namespace, pipelineRunName string) (*pipelinev1.TaskRunList, error)

ListTaskRunsForPipelineRun returns all TaskRuns for a specific PipelineRun.

func (*Client) ListTasks

func (c *Client) ListTasks(ctx context.Context, namespace string, opts metav1.ListOptions) (*pipelinev1.TaskList, error)

ListTasks returns a list of Tasks.

func (*Client) UpdatePipeline

func (c *Client) UpdatePipeline(ctx context.Context, namespace string, p *pipelinev1.Pipeline) (*pipelinev1.Pipeline, error)

UpdatePipeline updates an existing Pipeline.

func (*Client) UpdateTask

func (c *Client) UpdateTask(ctx context.Context, namespace string, t *pipelinev1.Task) (*pipelinev1.Task, error)

UpdateTask updates an existing Task.

type SimpleStatus

type SimpleStatus string

SimpleStatus represents a simplified status of a PipelineRun.

const (
	StatusRunning   SimpleStatus = "Running"
	StatusSucceeded SimpleStatus = "Succeeded"
	StatusFailed    SimpleStatus = "Failed"
	StatusCancelled SimpleStatus = "Cancelled"
	StatusUnknown   SimpleStatus = "Unknown"
)

type StepLog

type StepLog struct {
	StepName  string
	Container string
	Logs      string
}

StepLog represents logs for a single step in a TaskRun.

type TaskRunLog

type TaskRunLog struct {
	TaskRunName string
	Steps       []StepLog
}

TaskRunLog represents logs for a single TaskRun.

Jump to

Keyboard shortcuts

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