plugin

package
v0.0.0-...-0336b26 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModeInclude = "include"
	ModeExclude = "exclude"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthEntry

type AuthEntry struct {
	AuthIndex   string
	Provider    string
	Status      string
	Disabled    bool
	Unavailable bool
	RuntimeOnly bool
	Source      string
	Path        string
}

type AuthHost

type AuthHost interface {
	List() ([]AuthEntry, error)
	GetRuntime(authIndex string) (AuthEntry, error)
	Get(authIndex string) (AuthPhysical, error)
}

type AuthPhysical

type AuthPhysical struct {
	AuthIndex string
	Path      string
	JSON      []byte
}

type ChannelConfig

type ChannelConfig struct {
	Enabled  bool            `yaml:"enabled" json:"enabled"`
	Selector ChannelSelector `yaml:"selector" json:"selector"`
	Mode     string          `yaml:"mode" json:"mode"`
	Patterns []string        `yaml:"patterns" json:"patterns"`
}

type ChannelSelector

type ChannelSelector struct {
	Name    string `yaml:"name" json:"name"`
	BaseURL string `yaml:"base_url" json:"base_url"`
}

type PlannerConfig

type PlannerConfig struct {
	Enabled        *bool           `yaml:"enabled,omitempty" json:"enabled,omitempty"`
	Priority       int             `yaml:"priority,omitempty" json:"priority,omitempty"`
	Store          yaml.Node       `yaml:"store,omitempty" json:"-"`
	WorkerTokenEnv string          `yaml:"worker_token_env" json:"worker_token_env"`
	SyncEpoch      string          `yaml:"sync_epoch,omitempty" json:"sync_epoch,omitempty"`
	Channels       []ChannelConfig `yaml:"channels" json:"channels"`
}

type Service

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

func New

func New(host AuthHost) *Service

func (*Service) Configure

func (s *Service) Configure(pluginYAML []byte) error

func (*Service) HandleManagement

func (s *Service) HandleManagement(request pluginapi.ManagementRequest) pluginapi.ManagementResponse

func (*Service) ManagementRoutes

func (s *Service) ManagementRoutes() pluginapi.ManagementRegistrationResponse

func (*Service) Shutdown

func (s *Service) Shutdown()

type WorkerStatus

type WorkerStatus struct {
	InstanceID     string `json:"instance_id"`
	ReconfigureSeq uint64 `json:"reconfigure_seq"`
	ConfigSHA256   string `json:"config_sha256"`
	ActivePlan     bool   `json:"active_plan"`
}

Jump to

Keyboard shortcuts

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