controllers

package
v0.0.0-...-9e4f63c Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeploymentManager

type DeploymentManager struct {
	// Namespace namespace to listen to.
	Namespace string
	// Name name of the deployment to listen to.
	Name string
	// Resync is the number of sec to execute resync
	Resync int
	// CurrentImageSHA256 stores the current SHA-256 of the container Image ID
	CurrentImageSHA256 string
	// CurrentImageName is the name of the current image
	CurrentNamedImage reference.Named

	// WebSocket server
	WSServer *ws.WebSockerServer
	// contains filtered or unexported fields
}

DeploymentManager is a controller for Deployments

func NewSPAManager

func NewSPAManager(namespace string, name string, resync int, websocketPort int) (*DeploymentManager, error)

NewSPAManager creates a new DeploymentController

func (*DeploymentManager) Start

func (r *DeploymentManager) Start(done <-chan struct{}) error

Start starts listesting to changes in the deployments

Jump to

Keyboard shortcuts

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