Skip to content

Refactor: Gthulhu plugin should follow singleton pattern #3

Description

@ianchen0119

The file https://github.com/Gthulhu/plugin/blob/main/plugin/gthulhu/sched.go
defines a lot of global variables used by GthulhuPlugin, defined in https://github.com/Gthulhu/plugin/blob/main/plugin/gthulhu/gthulhu.go

All of the APIs and global vars here should be embedded in the struct GthulhuPlugin.
Hence, the developer can create a GthulhuPlugin instance and load it to the Gthulhu scheduler.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions