handler

package
v0.0.0-...-9031c98 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppParameters

type AppParameters struct {
	Application string
	Command     string
	Namespace   string
	KubeConfig  string
	ConfigPath  string
}

AppParameters struct, so we can easily pass it to other handlers

type Handler

type Handler struct {
	Selector     string
	PodScheduled bool
	// contains filtered or unexported fields
}

Handler - this holds the information to help render the template and schedule the pod to the cluster.

func Init

func Init(appParams AppParameters,
	clientset *kubernetes.Clientset) (h *Handler)

Init - Initializes the Handler with necessary information

func (*Handler) Schedule

func (h *Handler) Schedule()

Schedule - Renders the template and Schedule the Pod to the namespace

Jump to

Keyboard shortcuts

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