Documentation ¶
Index ¶
- func ConvertToTekton(mtr *v1alpha1.MksTaskRun) *v1beta1.TaskRun
- func Create(tcl *tconfig.Client, mtr *v1alpha1.MksTaskRun, opt metav1.CreateOptions, ...) (*v1beta1.TaskRun, error)
- func Delete(tcl *tconfig.Client, mtrname string, opt metav1.DeleteOptions, ns string) error
- func Get(tcl *tconfig.Client, mtrname string, opt metav1.GetOptions, ns string) (*v1beta1.TaskRun, error)
- func List(tcl *tconfig.Client, opt metav1.ListOptions, ns string) ([]*v1beta1.TaskRun, error)
- type Controller
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToTekton ¶
func ConvertToTekton(mtr *v1alpha1.MksTaskRun) *v1beta1.TaskRun
ConvertToTekton converts a mksresource into corresponding Tekton resource definition using field to field copy from mks object to tekton object.
func Create ¶
func Create(tcl *tconfig.Client, mtr *v1alpha1.MksTaskRun, opt metav1.CreateOptions, ns string) (*v1beta1.TaskRun, 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.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(kubeclientset kubernetes.Interface, mksclientset clientset.Interface, mksinformer informer.MksTaskRunInformer, redisClient *redis.Client) *Controller
func (*Controller) Run ¶
func (c *Controller) Run(ch <-chan struct{})
Click to show internal directories.
Click to hide internal directories.