Documentation
¶
Index ¶
- Variables
- func ConvertToTekton(mt *v1alpha1.MksTask) *v1beta1.Task
- func Create(cl *tconfig.Client, mt *v1alpha1.MksTask, opt metav1.CreateOptions, ns string) (*v1beta1.Task, error)
- func Delete(tcl *tconfig.Client, mtrname string, opt metav1.DeleteOptions, ns string) error
- func Get(c *tconfig.Client, taskname string, opts metav1.GetOptions, ns string) (*v1beta1.Task, error)
- func List(tcl *tconfig.Client, opt metav1.ListOptions, ns string) ([]*v1beta1.Task, error)
- func NewController(clientset examplecomclientset.Clientset, ...) *controller
- func Update(cl *tconfig.Client, mt *v1alpha1.MksTask, opt metav1.UpdateOptions, ns string) (*v1beta1.Task, error)
Constants ¶
This section is empty.
Variables ¶
var TaskGroupResource = schema.GroupVersionResource{Group: "tekton.dev", Resource: "task"}
Group and Version to uniquely identify the Tekton API.
Functions ¶
func ConvertToTekton ¶
ConvertToTekton converts a mksresource into corresponding Tekton resource definition using field to field copy from mks object to tekton object.
func Create ¶
func Create(cl *tconfig.Client, mt *v1alpha1.MksTask, opt metav1.CreateOptions, ns string) (*v1beta1.Task, error)
Create takes a mksresource object, converts it to tekton resource object using ConvertToTekton function and then calls the Create function defined in the actions package to create resource on Kubernetes/OpenShift cluster using Tekton API.
func Get ¶
func Get(c *tconfig.Client, taskname string, opts metav1.GetOptions, ns string) (*v1beta1.Task, error)
Get returns a Tekton object given the name of the resource.
func NewController ¶
func NewController(clientset examplecomclientset.Clientset, mksTaskInformer appsinformers.MksTaskInformer, redisClient *redis.Client) *controller
func Update ¶
func Update(cl *tconfig.Client, mt *v1alpha1.MksTask, opt metav1.UpdateOptions, ns string) (*v1beta1.Task, error)
Update takes a mksresource object, converts it to tekton resource object using ConvertToTekton function and then calls the Update function defined in the actions package to update resource on Kubernetes/OpenShift cluster using Tekton API.
Types ¶
This section is empty.