job

package
v0.0.0-...-d59ed34 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: BSD-2-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MetaLabel

func MetaLabel() map[string]string

func Run

func Run(cli *cobra.Command, labels map[string]string, cmd []string) (*batch.Job, error)

Types

type Job

type Job struct {
	// contains filtered or unexported fields
}

func NewJob

func NewJob(args *JobParams) *Job

func (*Job) MakeSpec

func (jobk *Job) MakeSpec() (*batch.Job, error)

type JobParams

type JobParams struct {
	Cli        *cobra.Command
	Labels     map[string]string
	Command    []string
	NameLength int
	Fragment   string
}

Jump to

Keyboard shortcuts

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