Documentation ¶
Index ¶
- Constants
- func Checks(c *kubernetes.Clientset)
- func CollectGarbage() error
- func DisableExpirationMatchState(ctx context.Context, id MatchId) error
- func ExtendExpirationMatchState(ctx context.Context, id MatchId, duration time.Duration) error
- func GarbageCollector(interval time.Duration, shutdown chan bool)
- func GetMatchBot(ctx context.Context, id MatchId, bot string) (string, error)
- func ManagerGarbageCollectorStart(client *kubernetes.Clientset, shutdown <-chan bool)
- func ManagerStart(client *kubernetes.Clientset)
- func MatchExists(id MatchId) (bool, error)
- func RegisterHandles(r *mux.Router)
- func SetMatchData(ctx context.Context, id MatchId, status, log, replayUrl string) error
- type InputBot
- type Match
- type MatchDoesNotExist
- type MatchId
- type MatchStateFailed
Constants ¶
View Source
const ( JobLabelMatchIdKey = "k8s.planetlia.com/match-id" JobLabelTypeKey = "k8s.planetlia.com/job-type" JobLabelTypeValue = "online-editor-match" JobLabelCpuAllocation = "k8s.planetlia.com/cpu-allocation" )
View Source
const ( MatchStatusQueued = "queued" MatchStatusGenerating = "generating" MatchStatusSuccess = "success" MatchStatusFailure = "failure" )
View Source
const SubmitDefaultTTL = time.Second * 5
Variables ¶
This section is empty.
Functions ¶
func Checks ¶
func Checks(c *kubernetes.Clientset)
func CollectGarbage ¶
func CollectGarbage() error
Checks the queue if there are any keys which have expired. If they have remove them from the queue.
func GarbageCollector ¶
func ManagerGarbageCollectorStart ¶
func ManagerGarbageCollectorStart(client *kubernetes.Clientset, shutdown <-chan bool)
func ManagerStart ¶
func ManagerStart(client *kubernetes.Clientset)
func MatchExists ¶
func RegisterHandles ¶
Types ¶
type Match ¶
type MatchDoesNotExist ¶
type MatchDoesNotExist struct{}
func (MatchDoesNotExist) Error ¶
func (_ MatchDoesNotExist) Error() string
type MatchStateFailed ¶
type MatchStateFailed struct{}
func (MatchStateFailed) Error ¶
func (_ MatchStateFailed) Error() string
Click to show internal directories.
Click to hide internal directories.