job

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterJob

type ClusterJob struct {
	Job     batchv1.Job `json:"kubeJob"`
	Cluster string      `json:"cluster"`
}

type KubeJobController

type KubeJobController struct {
	base.APIController
}

func (*KubeJobController) DeleteJob

func (c *KubeJobController) DeleteJob()

@Title DeleteJob @Description Delete job by name @Param name query string true "the job name." @Param cluster query string true "the cluster name." @Param namespace path string true "the namespace name." @Success 200 {object} models.Deployment success @router /namespaces/:namespace/clusters/:cluster [delete]

func (*KubeJobController) ListJobByCronJob

func (c *KubeJobController) ListJobByCronJob()

@Title ListJobByCronJob @Description find jobs by cronjob @Param pageNo query int false "the page current no" @Param pageSize query int false "the page size" @Param name query string true "the cronjob name." @Param cluster query string true "the cluster name." @Success 200 {object} models.Deployment success @router /namespaces/:namespace/clusters/:cluster [get]

func (*KubeJobController) Prepare

func (c *KubeJobController) Prepare()

func (*KubeJobController) URLMapping

func (c *KubeJobController) URLMapping()

Jump to

Keyboard shortcuts

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