Documentation ¶
Overview ¶
Package actions provides functions to create, get, list, delete and update a Tekton resource on Kubernetes/OpenShift clusters.
Index ¶
- func Create(grc schema.GroupVersionResource, clients *tconfig.Client, ...) (*unstructured.Unstructured, error)
- func Delete(gr schema.GroupVersionResource, clients *tconfig.Client, objname, ns string, ...) error
- func Get(gr schema.GroupVersionResource, clients *tconfig.Client, objname, ns string, ...) (*unstructured.Unstructured, error)
- func GetGroupVersionResource(gr schema.GroupVersionResource, discovery discovery.DiscoveryInterface) (*schema.GroupVersionResource, error)
- func InitializeAPIGroupRes(discovery discovery.DiscoveryInterface) error
- func List(gr schema.GroupVersionResource, clients *tconfig.Client, ns string, ...) (*unstructured.UnstructuredList, error)
- func Update(grc schema.GroupVersionResource, clients *tconfig.Client, ...) (*unstructured.Unstructured, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create( grc schema.GroupVersionResource, clients *tconfig.Client, object *unstructured.Unstructured, ns string, opt metav1.CreateOptions) (*unstructured.Unstructured, error)
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 ¶
func Get(gr schema.GroupVersionResource, clients *tconfig.Client, objname, ns string, opt metav1.GetOptions) (*unstructured.Unstructured, error)
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 ¶
func List(gr schema.GroupVersionResource, clients *tconfig.Client, ns string, opt metav1.ListOptions) (*unstructured.UnstructuredList, error)
List returns an array of Tekton resources of a particular resource type in the given namespace.
func Update ¶
func Update( grc schema.GroupVersionResource, clients *tconfig.Client, object *unstructured.Unstructured, ns string, opt metav1.UpdateOptions) (*unstructured.Unstructured, error)
Update updates the given Tekton resource with new values.
Types ¶
This section is empty.