supervisor

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewSupervisor)

Functions

This section is empty.

Types

type Supervisor

type Supervisor struct {
	UUID int64
	// contains filtered or unexported fields
}

func NewSupervisor

func NewSupervisor(
	c *conf.Porter,
	mq *libmq.MQ,
	auth *libauth.Auth,
	porter *client.Porter,
	systemNotify *libmq.Topic[modelnetzach.SystemNotify],
	instanceCache *libcache.Map[string, modelsupervisor.PorterInstance],
	instanceContextCache *libcache.Map[model.InternalID, modelsupervisor.PorterContext],
) (*Supervisor, error)

func (*Supervisor) DisablePorterContext added in v0.2.11

func (s *Supervisor) DisablePorterContext(
	ctx context.Context,
	porterContext *modelsupervisor.PorterContext,
) error

func (*Supervisor) GetContextController added in v0.2.11

func (s *Supervisor) GetContextController(
	ctx context.Context,
	id model.InternalID,
) *modelsupervisor.PorterContextController

func (*Supervisor) GetFeatureSummary

func (s *Supervisor) GetFeatureSummary() *modelsupervisor.ServerFeatureSummary

func (*Supervisor) GetHeartbeatInterval added in v0.2.11

func (s *Supervisor) GetHeartbeatInterval() time.Duration

func (*Supervisor) GetInstanceController added in v0.2.11

func (s *Supervisor) GetInstanceController(
	ctx context.Context,
	address string,
) *modelsupervisor.PorterInstanceController

func (*Supervisor) HasAccountPlatform added in v0.2.11

func (s *Supervisor) HasAccountPlatform(platform string) bool

func (*Supervisor) HasAppInfoSource added in v0.2.11

func (s *Supervisor) HasAppInfoSource(source string) bool

func (*Supervisor) HasFeedItemAction added in v0.2.11

func (s *Supervisor) HasFeedItemAction(request *modelsupervisor.FeatureRequest) bool

func (*Supervisor) HasFeedSource added in v0.2.11

func (s *Supervisor) HasFeedSource(source *modelsupervisor.FeatureRequest) bool

func (*Supervisor) HasNotifyDestination added in v0.2.11

func (s *Supervisor) HasNotifyDestination(destination *modelsupervisor.FeatureRequest) bool

func (*Supervisor) QueuePorterContext added in v0.2.11

func (s *Supervisor) QueuePorterContext(
	ctx context.Context,
	porterContext modelsupervisor.PorterContext,
) error

func (*Supervisor) RefreshAliveInstances

func (s *Supervisor) RefreshAliveInstances(
	ctx context.Context,
) ([]*modelsupervisor.PorterInstance, error)

func (*Supervisor) WithAccountPlatform added in v0.2.11

func (s *Supervisor) WithAccountPlatform(ctx context.Context, platform string) context.Context

func (*Supervisor) WithAppInfoSource added in v0.2.11

func (s *Supervisor) WithAppInfoSource(ctx context.Context, source string) context.Context

func (*Supervisor) WithFeedItemAction added in v0.2.11

func (s *Supervisor) WithFeedItemAction(ctx context.Context, request *modelsupervisor.FeatureRequest) context.Context

func (*Supervisor) WithFeedSource added in v0.2.11

func (s *Supervisor) WithFeedSource(ctx context.Context, source *modelsupervisor.FeatureRequest) context.Context

func (*Supervisor) WithNotifyDestination added in v0.2.11

func (s *Supervisor) WithNotifyDestination(ctx context.Context, destination *modelsupervisor.FeatureRequest) context.Context

Jump to

Keyboard shortcuts

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