cronrun

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

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

Go to latest
Published: Oct 8, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

package cronrun defines the cronrunner and its methods

package cronrun defines the cronrunner and its methods

package cronrun defines the cronrunner and its methods

package cronrun defines the cronrunner and its methods

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runner

type Runner struct {
	ActiveStart time.Time
	ActiveEnd   time.Time
	Now         time.Time
	// contains filtered or unexported fields
}

func NewRunner

func NewRunner(kubeconfig, namespace, deploymentName string) (r Runner, err error)

NewRunner returns a new Runner with namespace and config set

func (*Runner) CreateDeployment

func (r *Runner) CreateDeployment(options metav1.CreateOptions) (err error)

CreateDeployment creates deployment in the namespace

func (*Runner) CreateNamespace

func (r *Runner) CreateNamespace(options metav1.CreateOptions) (err error)

CreateNamespace creates a namespace

func (*Runner) CreateService

func (r *Runner) CreateService(options metav1.CreateOptions) (err error)

CreateService creates a service

func (*Runner) GetDeployment

func (r *Runner) GetDeployment(options metav1.GetOptions) (err error)

GetDeployment checks if a deployment exists in the namespace

func (*Runner) GetNamespace

func (r *Runner) GetNamespace(options metav1.GetOptions) (err error)

GetNamespace checks if a service exists in the Namespace

func (*Runner) GetService

func (r *Runner) GetService(options metav1.GetOptions) (err error)

GetService checks if a service exists in the namespace

func (*Runner) Run

func (r *Runner) Run() (err error)

Run executes the main tasks for our program

func (*Runner) UpdateDeployment

func (r *Runner) UpdateDeployment(updateOptions metav1.UpdateOptions) (err error)

updateDeployment updates and existing deployment in the namespace

func (*Runner) UpdateService

func (r *Runner) UpdateService(options metav1.UpdateOptions) (err error)

UpdateService updates a service

Jump to

Keyboard shortcuts

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