actions

package
v0.0.0-...-c054a23 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package actions provides functions to create, get, list, delete and update a Tekton resource on Kubernetes/OpenShift clusters.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

Create takes a Tekton resource in unstructured form and creates the Tekton resource on the Kubernetes/Openshift cluster via Tekton API. It returns the created resource on success or an error on failure.

func Delete

func Delete(gr schema.GroupVersionResource, clients *tconfig.Client,
	objname, ns string, opt metav1.DeleteOptions) error

Delete deletes the given Tekton resource on the Kubernetes/Openshift cluster via Tekton API and returns the result as error.

func Get

Get returns the Tekton resource with given name and error if not found.

func GetGroupVersionResource

func GetGroupVersionResource(gr schema.GroupVersionResource,
	discovery discovery.DiscoveryInterface) (*schema.GroupVersionResource, error)

GetGroupVersionResource returns a Group version resource given a schema

func InitializeAPIGroupRes

func InitializeAPIGroupRes(discovery discovery.DiscoveryInterface) error

InitializeAPIGroupRes checks if the provided discovery client is available to provide discovery information.

func List

List returns an array of Tekton resources of a particular resource type in the given namespace.

func Update

Update updates the given Tekton resource with new values.

Types

This section is empty.

Jump to

Keyboard shortcuts

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