supervisor

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: MIT Imports: 13 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 {
	// contains filtered or unexported fields
}

func NewSupervisor

func NewSupervisor(
	c *conf.Porter,
	auth *libauth.Auth,
	porter *client.Porter,
) (*Supervisor, error)

func (*Supervisor) CallAccountPlatform

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

func (*Supervisor) CallAppInfoSource added in v0.2.3

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

func (*Supervisor) CallFeedSource

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

func (*Supervisor) CallNotifyDestination

func (s *Supervisor) CallNotifyDestination(ctx context.Context, destination string) context.Context

func (*Supervisor) CheckAccountPlatform

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

func (*Supervisor) CheckAppInfoSource added in v0.2.3

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

func (*Supervisor) CheckFeedSource

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

func (*Supervisor) CheckNotifyDestination

func (s *Supervisor) CheckNotifyDestination(destination string) bool

func (*Supervisor) GetFeatureSummary

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

func (*Supervisor) GetInstanceConnectionStatus added in v0.2.3

func (s *Supervisor) GetInstanceConnectionStatus(
	ctx context.Context,
	address string,
) modeltiphereth.PorterConnectionStatus

func (*Supervisor) KnownInstancesOutdated

func (s *Supervisor) KnownInstancesOutdated()

func (*Supervisor) KnownInstancesRequireUpdate

func (s *Supervisor) KnownInstancesRequireUpdate() bool

func (*Supervisor) RefreshAliveInstances

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

func (*Supervisor) UpdateKnownInstances

func (s *Supervisor) UpdateKnownInstances(instances []*modeltiphereth.PorterInstance)

Jump to

Keyboard shortcuts

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