mkstask

package
v0.0.0-...-7a2b462 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Tdel = []*v1alpha1.MksTask{
	{
		ObjectMeta: v1.ObjectMeta{
			Name:      "delmt1",
			Namespace: "default",
		},
		Spec: v1alpha1.MksTaskSpec{
			Name:    "deletedtaskstep",
			Image:   "ubuntu",
			Command: "ls",
			Args:    "-l",
		},
	},
}
View Source
var Tget = []*v1alpha1.MksTask{
	{
		ObjectMeta: v1.ObjectMeta{
			Name:      "getmt1",
			Namespace: "default",
		},
		Spec: v1alpha1.MksTaskSpec{
			Name:    "gettaskstep",
			Image:   "ubuntu",
			Command: "ls",
			Args:    "-l",
		},
	},
}
View Source
var Tlist = []*v1alpha1.MksTask{
	{
		ObjectMeta: v1.ObjectMeta{
			Name:      "testt1",
			Namespace: "default",
		},
		Spec: v1alpha1.MksTaskSpec{
			Name:    "test-mkstask1",
			Image:   "ubuntu",
			Command: "ls",
			Args:    "-l",
		},
	},
	{
		ObjectMeta: v1.ObjectMeta{
			Name:      "testt2",
			Namespace: "default",
		},
		Spec: v1alpha1.MksTaskSpec{
			Name:    "test-mkstask2",
			Image:   "ubuntu",
			Command: "ls",
			Args:    "-l",
		},
	},
	{
		ObjectMeta: v1.ObjectMeta{
			Name:      "testt3",
			Namespace: "default",
		},
		Spec: v1alpha1.MksTaskSpec{
			Name:    "test-mkstask3",
			Image:   "ubuntu",
			Command: "ls",
			Args:    "-l",
		},
	},
	{
		ObjectMeta: v1.ObjectMeta{
			Name:      "testt4",
			Namespace: "default",
		},
		Spec: v1alpha1.MksTaskSpec{
			Name:    "test-mkstask4",
			Image:   "ubuntu",
			Command: "ls",
			Args:    "-l",
		},
	},
}

Functions

func Command

func Command(mksc *mconfig.Client) *cobra.Command

func GetTestData

func GetTestData(tdata ...*v1alpha1.MksTask) []runtime.Object

func MksTaskCreate

func MksTaskCreate(mksc *mconfig.Client) *cobra.Command

func MksTaskDelete

func MksTaskDelete(mksc *mconfig.Client) *cobra.Command

func MksTaskGet

func MksTaskGet(mksc *mconfig.Client) *cobra.Command

func MksTaskList

func MksTaskList(mksc *mconfig.Client) *cobra.Command

func MksTaskUpdate

func MksTaskUpdate(mksc *mconfig.Client) *cobra.Command

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳