modelsupervisor

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeatureFlag

type FeatureFlag struct {
	ID               string            `json:"id"`
	Name             string            `json:"name"`
	Description      string            `json:"description"`
	ConfigJSONSchema string            `json:"config_json_schema"`
	RequireContext   bool              `json:"require_context"`
	Extra            map[string]string `json:"extra"`
}

func (*FeatureFlag) Match

func (f *FeatureFlag) Match(request *FeatureRequest) bool

type FeatureRequest

type FeatureRequest struct {
	ID         string           `json:"id"`
	Region     string           `json:"region"`
	ConfigJSON string           `json:"config_json"`
	ContextID  model.InternalID `json:"context_id"`
}

type PorterBinarySummary

type PorterBinarySummary struct {
	Name              string
	Version           string
	Description       string
	SourceCodeAddress string
	BuildVersion      string
	BuildDate         string
}

type PorterConnectionStatus

type PorterConnectionStatus int
const (
	PorterConnectionStatusUnspecified PorterConnectionStatus = iota
	PorterConnectionStatusConnected
	PorterConnectionStatusDisconnected
	PorterConnectionStatusActive
	PorterConnectionStatusActivationFailed
	PorterConnectionStatusDowngraded
)

type PorterContext

type PorterContext struct {
	ID          model.InternalID
	GlobalName  string
	Region      string
	ContextJSON string
	Name        string
	Description string
	Status      PorterContextStatus
}

type PorterContextController

type PorterContextController struct {
	PorterContext
	HandleStatus        PorterContextHandleStatus
	HandleStatusMessage string
	HandlerAddress      string
}

type PorterContextHandleStatus

type PorterContextHandleStatus int
const (
	PorterContextHandleStatusUnspecified PorterContextHandleStatus = iota
	PorterContextHandleStatusActive
	PorterContextHandleStatusDowngraded
	PorterContextHandleStatusQueueing
	PorterContextHandleStatusBlocked
)

type PorterContextStatus

type PorterContextStatus int
const (
	PorterContextStatusUnspecified PorterContextStatus = iota
	PorterContextStatusActive
	PorterContextStatusDisabled
)

type PorterFeatureSummary

type PorterFeatureSummary struct {
	AccountPlatforms   []*FeatureFlag `json:"account_platforms"`
	AppInfoSources     []*FeatureFlag `json:"app_info_sources"`
	FeedSources        []*FeatureFlag `json:"feed_sources"`
	NotifyDestinations []*FeatureFlag `json:"notify_destinations"`
	FeedItemActions    []*FeatureFlag `json:"feed_item_actions"`
	FeedGetters        []*FeatureFlag `json:"feed_getters"`
	FeedSetters        []*FeatureFlag `json:"feed_setters"`
}

type PorterGroup

type PorterGroup struct {
	BinarySummary     *PorterBinarySummary
	GlobalName        string
	Regions           []string
	ContextJSONSchema string
	FeatureSummary    *PorterFeatureSummary
}

type PorterInstance

type PorterInstance struct {
	ID                model.InternalID
	BinarySummary     *PorterBinarySummary
	GlobalName        string
	Address           string
	Region            string
	FeatureSummary    *PorterFeatureSummary
	Status            modeltiphereth.UserStatus
	ContextJSONSchema string
}

type PorterInstanceController

type PorterInstanceController struct {
	PorterInstance
	ConnectionStatus        PorterConnectionStatus
	ConnectionStatusMessage string
	LastHeartbeat           time.Time
	LastEnabledContext      []model.InternalID
}

type ServerFeatureSummary

type ServerFeatureSummary struct {
	AccountPlatforms   []*FeatureFlag
	AppInfoSources     []*FeatureFlag
	FeedSources        []*FeatureFlag
	NotifyDestinations []*FeatureFlag
	FeedItemActions    []*FeatureFlag
	FeedSetters        []*FeatureFlag
	FeedGetters        []*FeatureFlag
}

type ServerFeatureSummaryMap

type ServerFeatureSummaryMap struct {
	AccountPlatforms   *libtype.SyncMap[string, []string]
	AppInfoSources     *libtype.SyncMap[string, []string]
	FeedSources        *libtype.SyncMap[string, []string]
	NotifyDestinations *libtype.SyncMap[string, []string]
	FeedItemActions    *libtype.SyncMap[string, []string]
}

func NewServerFeatureSummaryMap

func NewServerFeatureSummaryMap() *ServerFeatureSummaryMap

Jump to

Keyboard shortcuts

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