client

package
v0.0.0-...-edb02cc Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: Apache-2.0 Imports: 13 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 interface {
	// Task CRUD operations
	CreateTask(obj *tektonapiv1.Task) error
	GetTask(namespace string, name string) (*tektonapiv1.Task, error)
	UpdateTask(namespace string, name string, obj *tektonapiv1.Task, data []byte) error
	DeleteTask(namespace string, name string) error

	// TaskRun CRUD operations
	CreateTaskRun(obj *tektonapiv1.TaskRun) error
	GetTaskRun(namespace string, name string) (*tektonapiv1.TaskRun, error)
	UpdateTaskRun(namespace string, name string, obj *tektonapiv1.TaskRun, data []byte) error
	DeleteTaskRun(namespace string, name string) error

	// Pipeline CRUD operations
	CreatePipeline(obj *tektonapiv1.Pipeline) error
	GetPipeline(namespace string, name string) (*tektonapiv1.Pipeline, error)
	UpdatePipeline(namespace string, name string, obj *tektonapiv1.Pipeline, data []byte) error
	DeletePipeline(namespace string, name string) error

	// PipelineRun CRUD operations
	CreatePipelineRun(obj *tektonapiv1.PipelineRun) error
	GetPipelineRun(namespace string, name string) (*tektonapiv1.PipelineRun, error)
	UpdatePipelineRun(namespace string, name string, obj *tektonapiv1.PipelineRun, data []byte) error
	DeletePipelineRun(namespace string, name string) error
}

func NewClient

func NewClient(cfg *restclient.Config) (Client, diag.Diagnostics)

New creates our client wrapper object for the actual kubeVirt and kubernetes clients we use.

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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