builder

package
v0.0.0-...-2119b44 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgBus

func NewMsgBus() *msgbus.MsgClient

Types

type Build

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

func NewBuild

func NewBuild(d *nmr.NMR) *Build

func (*Build) BuildInit

func (b *Build) BuildInit()

Starting build job watcher routine

func (*Build) DeleteJob

func (b *Build) DeleteJob(jobName string) error

Delete job

func (*Build) GetJobStatus

func (b *Build) GetJobStatus(jobName string) int

Get Job status

func (*Build) LaunchAndMonitorBuild

func (b *Build) LaunchAndMonitorBuild(jobName string, node internal.Node) error

Go routine to start build process

func (*Build) LaunchBuildJob

func (b *Build) LaunchBuildJob(jobName *string, image *string, cmd []string, nodetype *string, jNodeMetaData []byte) error

Launch Build Job in K8 cluster

func (*Build) ListBuildJobs

func (b *Build) ListBuildJobs()

Debug List of Jobs

func (*Build) ListPods

func (b *Build) ListPods()

Debug List of pods

func (*Build) PublishEvent

func (b *Build) PublishEvent(uuid string, state string) error

func (*Build) WatcherForBuildJobs

func (b *Build) WatcherForBuildJobs()

Watching for changes in job status

type BuildOps

type BuildOps interface {
	BuildInit()

	GetJobStatus(jobName string) int
	DeleteJob(jobName string) error
	ListBuildJobs()
	ListPods()
	WatcherForBuildJobs() error
	LaunchAndMonitorBuild(jobName string, node internal.Node) error
	LaunchBuildJob(jobName *string, image *string, cmd []string, nodetype *string, jNodeMetaData []byte) error
}

type NodeMetaData

type NodeMetaData struct {
	NodeInfo   internal.Node     `json:"nodeInfo"`
	NodeConfig []internal.Module `json:"nodeConfig"`
}

Jump to

Keyboard shortcuts

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