...

Package podsubmission

import "framework/podsubmission"
Overview
Index

Overview ▾

type PodSubmissionApi

A PodSource that exposes and external API for submitting pods in an orchestrator-independent manner.

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

func NewPodSubmissionApi

func NewPodSubmissionApi(schedConfig *config.SchedulerConfig) *PodSubmissionApi

func (*PodSubmissionApi) IncomingPods

func (ps *PodSubmissionApi) IncomingPods() chan *pipeline.IncomingPod

func (*PodSubmissionApi) RegisterStatusEndpoint

func (ps *PodSubmissionApi) RegisterStatusEndpoint(relativePath string, ginEngine *gin.Engine) error

Registers the status endpoint (relative to the engine's root path).

func (*PodSubmissionApi) RegisterSubmitPodEndpoint

func (ps *PodSubmissionApi) RegisterSubmitPodEndpoint(relativePath string, ginEngine *gin.Engine) error

Registers the submit pod endpoint with the specified gin engine under the specified path (relative to the engine's root path).

type PodSubmissionApiError

DTO for error responses.

type PodSubmissionApiError struct {
    Error *client.PolarisErrorDto `json:"error" yaml:"error"`
}