Documentation ¶
Index ¶
- Constants
- Variables
- func ListenAndServe(addr string, p ProviderConfig) error
- func ListenAndServeAppInstancesProvider(addr string, p AppProvider) error
- func ListenAndServeAppProvider(addr string, p AppProvider) error
- func ListenAndServeAppRoutingProvider(addr string, p AppProvider) error
- func ListenAndServeGroupProvider(addr string, p GroupProvider) error
- func ListenAndServePipelineProvider(addr string, p PipelineProvider) error
- func NewAppInstancesProviderHandler(p InstancesProvider) http.Handler
- func NewAppProviderHandler(p AppProvider) http.Handler
- func NewAppRoutingProviderHandler(p RoutingProvider) http.Handler
- func NewGroupProviderHandler(p GroupProvider) http.Handler
- func NewPipelineProviderHandler(p PipelineProvider) http.Handler
- type App
- type AppInstance
- type AppInstances
- type AppLabels
- type AppPage
- type AppPosition
- type AppProvider
- type AppRoute
- type AppRoutes
- type AppRouting
- type AppSearchResult
- type AppState
- type Group
- type GroupPage
- type GroupProvider
- type InstancesProvider
- type Member
- type Pagination
- type Pipeline
- type PipelineConnection
- type PipelineDefinition
- type PipelinePage
- type PipelineProvider
- type PipelineStatus
- type PipelineStatusList
- type PipelineStep
- type PipelineUpdates
- type PipelineVersion
- type PipelineVersionList
- type ProviderConfig
- type RoutingProvider
- type StepRun
- type StepStatus
Constants ¶
View Source
const ( StatusSuccess = "succeeded" StatusFailure = "failed" StatusRunning = "running" StatusAborted = "aborted" StatusPending = "pending" )
Variables ¶
View Source
var ErrInternal = errors.New("internal error occurred")
View Source
var ErrNotFound = errors.New("not found")
View Source
var ErrPageExceeded = errors.New("specified page exceeds total pages")
View Source
var ErrQueryLimitMalformed = errors.New("query parameter 'limit' is malformed")
View Source
var ErrQueryPageMalformed = errors.New("query parameter 'page' is malformed")
View Source
var ErrQueryPerPageMalformed = errors.New("query parameter 'perPage' is malformed")
View Source
var ErrQuerySinceMalformed = errors.New("query parameter 'since' is malformed")
Functions ¶
func ListenAndServe ¶
func ListenAndServe(addr string, p ProviderConfig) error
func ListenAndServeAppInstancesProvider ¶
func ListenAndServeAppInstancesProvider(addr string, p AppProvider) error
func ListenAndServeAppProvider ¶
func ListenAndServeAppProvider(addr string, p AppProvider) error
func ListenAndServeAppRoutingProvider ¶
func ListenAndServeAppRoutingProvider(addr string, p AppProvider) error
func ListenAndServeGroupProvider ¶
func ListenAndServeGroupProvider(addr string, p GroupProvider) error
func ListenAndServePipelineProvider ¶
func ListenAndServePipelineProvider(addr string, p PipelineProvider) error
func NewAppInstancesProviderHandler ¶
func NewAppInstancesProviderHandler(p InstancesProvider) http.Handler
func NewAppProviderHandler ¶
func NewAppProviderHandler(p AppProvider) http.Handler
func NewAppRoutingProviderHandler ¶
func NewAppRoutingProviderHandler(p RoutingProvider) http.Handler
func NewGroupProviderHandler ¶
func NewGroupProviderHandler(p GroupProvider) http.Handler
func NewPipelineProviderHandler ¶
func NewPipelineProviderHandler(p PipelineProvider) http.Handler
Types ¶
type App ¶
type App struct { Id string `json:"id"` Name string `json:"name"` Labels AppLabels `json:"labels,omitempty"` Position AppPosition `json:"position,omitempty"` }
type AppInstance ¶
type AppInstances ¶
type AppInstances []AppInstance
type AppPage ¶
type AppPage struct { Pagination Apps []App `json:"apps"` }
type AppPosition ¶
type AppPosition []string
type AppProvider ¶
type AppRouting ¶
type AppRouting struct {
Routes AppRoutes `json:"routes"`
}
type AppSearchResult ¶
type GroupPage ¶
type GroupPage struct { Pagination Groups []Group `json:"groups"` }
type GroupProvider ¶
type InstancesProvider ¶
type InstancesProvider interface {
GetAppInstances(id string) (AppInstances, error)
}
type Pagination ¶
type Pipeline ¶
type Pipeline struct { Id string `json:"id" bson:"id"` Name string `json:"name" bson:"name"` Current PipelineVersion `json:"current" bson:"current"` }
type PipelineConnection ¶
type PipelineDefinition ¶
type PipelineDefinition struct { Steps []PipelineStep `json:"steps,omitempty" bson:"steps,omitempty"` Connections []PipelineConnection `json:"connections,omitempty" bson:"connections,omitempty"` }
type PipelinePage ¶
type PipelinePage struct { Pagination Pipelines []Pipeline `json:"pipelines" bson:"pipelines"` }
type PipelineProvider ¶
type PipelineStatus ¶
type PipelineStatus struct { PipelineId string `json:"pipelineId" bson:"pipelineId"` Started time.Time `json:"started" bson:"started"` Steps []StepRun `json:"steps,omitempty" bson:"steps,omitempty"` }
func (PipelineStatus) Fold ¶
func (p PipelineStatus) Fold(other PipelineStatus) PipelineStatus
type PipelineStatusList ¶
type PipelineStatusList []PipelineStatus
func (PipelineStatusList) Fold ¶
func (pl PipelineStatusList) Fold() PipelineStatus
func (PipelineStatusList) Len ¶
func (pl PipelineStatusList) Len() int
func (PipelineStatusList) Less ¶
func (pl PipelineStatusList) Less(i, j int) bool
func (PipelineStatusList) Swap ¶
func (pl PipelineStatusList) Swap(i, j int)
type PipelineStep ¶
type PipelineUpdates ¶
type PipelineUpdates struct { Runs PipelineStatusList `json:"runs,omitempty" bson:"runs,omitempty"` Versions PipelineVersionList `json:"versions,omitempty" bson:"versions,omitempty"` }
type PipelineVersion ¶
type PipelineVersion struct { PipelineId string `json:"pipelineId" bson:"pipelineId"` Created time.Time `json:"created" bson:"created"` Definition PipelineDefinition `json:"definition" bson:"definition"` }
type PipelineVersionList ¶
type PipelineVersionList []PipelineVersion
func (PipelineVersionList) Len ¶
func (pl PipelineVersionList) Len() int
func (PipelineVersionList) Less ¶
func (pl PipelineVersionList) Less(i, j int) bool
func (PipelineVersionList) Swap ¶
func (pl PipelineVersionList) Swap(i, j int)
func (PipelineVersionList) VersionAt ¶
func (pl PipelineVersionList) VersionAt(t time.Time) PipelineVersion
type ProviderConfig ¶
type ProviderConfig struct { Apps AppProvider Pipelines PipelineProvider Groups GroupProvider Routing RoutingProvider Instances InstancesProvider }
type RoutingProvider ¶
type RoutingProvider interface {
GetAppRouting(id string) (AppRouting, error)
}
type StepStatus ¶
type StepStatus string
Click to show internal directories.
Click to hide internal directories.