queue

package
v0.0.0-...-18bb2fd Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultPluginWorker

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

func (*DefaultPluginWorker) PublishMessage

func (w *DefaultPluginWorker) PublishMessage(cloud string, payload PluginPayload) error

type PluginAction

type PluginAction string
const (
	PluginActionTagUpdate PluginAction = "TAG_UPDATE"
)

type PluginPayload

type PluginPayload struct {
	Cloud      string       `json:"cloud"`
	TenantID   string       `json:"tenant_id"`
	ResourceID string       `json:"resource_id"`
	Action     PluginAction `json:"action"`
	Payload    interface{}  `json:"payload"`
}

type PluginWorker

type PluginWorker interface {
	PublishMessage(cloud string, payload PluginPayload) error
}

func NewPluginWorker

func NewPluginWorker(app *application.App) PluginWorker

Jump to

Keyboard shortcuts

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