queues

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationFetchInput

type ApplicationFetchInput struct {
	Application  *models.Application
	WatchObjects bool
}

type ApplicationFetchQueue

type ApplicationFetchQueue struct {
	RequestChan  chan ApplicationFetchInput
	ResponseChan chan error
}

func NewApplicationFetch

func NewApplicationFetch() ApplicationFetchQueue

func (*ApplicationFetchQueue) Enqueue

func (q *ApplicationFetchQueue) Enqueue(app *models.Application, watchObjects bool) error

type ApplicationInitQueue

type ApplicationInitQueue struct {
	RequestChan  chan *models.Application
	ResponseChan chan error
}

func NewApplicationInit

func NewApplicationInit() ApplicationInitQueue

func (*ApplicationInitQueue) Enqueue

func (q *ApplicationInitQueue) Enqueue(input *models.Application) error

type SessionBuildInput

type SessionBuildInput struct {
	Checkout             string
	Application          *models.Application
	PreviousSession      *models.Session
	SessionsToBeReplaced []*models.Session
	DetectBranchOrTag    bool
}

type SessionBuildQueue

type SessionBuildQueue struct {
	RequestChan  chan *SessionBuildInput
	ResponseChan chan *SessionBuildResult
}

func NewSessionBuild

func NewSessionBuild() SessionBuildQueue

func (*SessionBuildQueue) Enqueue

func (q *SessionBuildQueue) Enqueue(checkout string, app *models.Application, prevSession *models.Session, sessionsToBeReplaced []*models.Session, detectBranchOrTag bool) *SessionBuildResult

type SessionBuildResult

type SessionBuildResult struct {
	Result        SessionBuildResultType
	Session       *models.Session
	FailingReason string
	EventBus      *models.SessionLifetimeEventBus
}

type SessionBuildResultType

type SessionBuildResultType string
const (
	SessionBuildResultSucceeded    SessionBuildResultType = "succeeded"
	SessionBuildResultAlreadyBuilt SessionBuildResultType = "already_built"
	SessionBuildResultFailed       SessionBuildResultType = "failed"
)

type SessionCleanupInput

type SessionCleanupInput struct {
	Session *models.Session
	Status  models.SessionStatus
}

type SessionCleanupQueue

type SessionCleanupQueue struct {
	Chan chan *SessionCleanupInput
}

func NewSessionCleanup

func NewSessionCleanup() SessionCleanupQueue

func (*SessionCleanupQueue) Enqueue

func (q *SessionCleanupQueue) Enqueue(session *models.Session, status models.SessionStatus)

type SessionDestroyInput

type SessionDestroyInput struct {
	Session  *models.Session
	Callback func(*models.Session)
}

type SessionDestroyQueue

type SessionDestroyQueue struct {
	Chan chan SessionDestroyInput
}

func NewSessionDestroy

func NewSessionDestroy() SessionDestroyQueue

func (*SessionDestroyQueue) Enqueue

func (q *SessionDestroyQueue) Enqueue(session *models.Session, callback func(*models.Session))

type SessionFilesystemQueue

type SessionFilesystemQueue struct {
	RequestChan  chan *models.Session
	ResponseChan chan *SessionFilesystemResult
}

func NewSessionFilesystem

func NewSessionFilesystem() SessionFilesystemQueue

func (*SessionFilesystemQueue) Enqueue

type SessionFilesystemResult

type SessionFilesystemResult struct {
	CommitFolder string
	Err          error
}

type SessionHealthcheckInput

type SessionHealthcheckInput struct {
	Session *models.Session
}

type SessionHealthcheckQueue

type SessionHealthcheckQueue struct {
	RequestChan  chan SessionHealthcheckInput
	ResponseChan chan struct{}
}

func NewSessionHealthCheck

func NewSessionHealthCheck() SessionHealthcheckQueue

func (*SessionHealthcheckQueue) Enqueue

func (q *SessionHealthcheckQueue) Enqueue(input SessionHealthcheckInput) struct{}

type SessionStartInput

type SessionStartInput struct {
	Session *models.Session
}

type SessionStartQueue

type SessionStartQueue struct {
	Chan chan SessionStartInput
}

func NewSessionStart

func NewSessionStart() SessionStartQueue

func (*SessionStartQueue) Enqueue

func (q *SessionStartQueue) Enqueue(input SessionStartInput)

Jump to

Keyboard shortcuts

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