jobs

package
v0.0.0-...-a746158 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

jobs implements kube.Coder interface for deployment of jobs

Index

Constants

View Source
const (
	PackageName       = "kube/jobs"
	DefaultConfigDir  = ".config/" + PackageName
	DefaultConfigFile = "config.json"
	Kind              = "Job"
	APIVersion        = "batch/v1"
)

Variables

This section is empty.

Functions

func NewCoder

func NewCoder(ctx context.Context, configReader configio.ConfigReader, key string, clientset *kubernetes.Clientset, namespace string) (kube.Coder, error)

Types

type Config

type Config struct {
	Job *v1.Job
	// contains filtered or unexported fields
}

Config wraps v1.Job so that it can be managed using configio

func (*Config) Init

func (conf *Config) Init(key string) *Config

func (*Config) Key

func (conf *Config) Key() string

func (*Config) Marshal

func (conf *Config) Marshal() ([]byte, error)

func (*Config) Unmarshal

func (conf *Config) Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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