service

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

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

Go to latest
Published: Nov 20, 2021 License: GPL-3.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CommandUpdateDeployment string = "api-update-deployment"
	CommandCallbackMessage  string = "api-callback-message"
)
View Source
const TimeoutExitCode = 124

Public CONST

Variables

This section is empty.

Functions

This section is empty.

Types

type QueueWorker

type QueueWorker interface {
	Start(queue.Handler)
	Stop()
	DeleteMessage(ctx context.Context, m *queue.M) error
	// Message sends a message to a different queue given a url, not this one
	Message(ctx context.Context, qUrl string, m *queue.M) error
}

type Scheduler

type Scheduler struct {
	// contains filtered or unexported fields
}

func NewScheduler

func NewScheduler(
	worker QueueWorker,
	downloader eve.CloudDownloader,
	uploader eve.CloudUploader,
	apiQUrl string,
	k8sDynamic dynamic.Interface,
	k8sClient *kubernetes.Clientset,
) *Scheduler

func (*Scheduler) Logger

func (s *Scheduler) Logger(ctx context.Context) *zap.Logger

func (*Scheduler) Start

func (s *Scheduler) Start()

func (*Scheduler) Stop

func (s *Scheduler) Stop()

type TemplateJobData

type TemplateJobData struct {
	Plan *eve.NSDeploymentPlan
	Job  *eve.DeployJob
}

type TemplateServiceData

type TemplateServiceData struct {
	Plan    *eve.NSDeploymentPlan
	Service *eve.DeployService
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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