app

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RunningState   = "Running"
	SuspendedState = "Suspended"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Annotations

type Annotations struct {
	Prefix         string
	DesiredState   string
	ControllerName string
}

type App

type App struct {
	Logger           zerolog.Logger
	LogLevel         zerolog.Level
	LogLevelStr      string
	Clientset        *kubernetes.Clientset
	ControllerName   string
	AnnotationsNames Annotations
}

func New

func New() (*App, error)

func (App) UpdateNamespace

func (a App) UpdateNamespace(ns, state string) error

UpdateNamespace updates a given namespace ns with a given state. If the state is not recognised or if the operation fails, it returns an error

Jump to

Keyboard shortcuts

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