project_purge

package
v0.0.0-...-4b711b1 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExponentialNextCheck

func ExponentialNextCheck(numberOfFailures int) time.Time

func RegisterTaskExecutors

func RegisterTaskExecutors(manager *cereal.Manager, domainService string, domainPurgeClient PurgeClient) error

func StartProjectPurgeTaskName

func StartProjectPurgeTaskName(svcName string) string

Types

type DomainProjectPurgeTask

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

func (*DomainProjectPurgeTask) Run

func (m *DomainProjectPurgeTask) Run(
	ctx context.Context, task cereal.Task) (interface{}, error)

type DomainProjectPurgeTaskParams

type DomainProjectPurgeTaskParams struct {
	ProjectID string
}

type DomainProjectPurgeWorkflowExecutor

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

func NewWorkflowExecutorForDomainService

func NewWorkflowExecutorForDomainService(domainService string) *DomainProjectPurgeWorkflowExecutor

func (*DomainProjectPurgeWorkflowExecutor) OnCancel

func (*DomainProjectPurgeWorkflowExecutor) OnStart

func (*DomainProjectPurgeWorkflowExecutor) OnTaskComplete

type DomainProjectPurgeWorkflowParameters

type DomainProjectPurgeWorkflowParameters struct {
	ProjectID string
}

type DomainProjectPurgeWorkflowPayload

type DomainProjectPurgeWorkflowPayload struct {
	ConsecutiveJobCheckFailures int
}

type PurgeClient

type PurgeClient interface {
	PurgeProject(context.Context, string) error
}

Jump to

Keyboard shortcuts

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