Documentation ¶
Index ¶
- Constants
- func NewInternalError(err error) error
- func NewInvalidInputError(err error) error
- func NewNotAllowedError(err error) error
- func NewNotFoundError(err error) error
- type CoreService
- type Endpoint
- type EndpointAliasReq
- type EndpointBase
- type EndpointFilter
- type EndpointType
- type InternalError
- type InvalidInputError
- type Log
- type NotAllowedError
- type NotFoundError
- type ProxyConfig
- type SrvContainer
- type StringSub
Constants ¶
View Source
const ( HeaderRequestID = "X-Request-ID" HeaderApiVer = "X-Api-Version" HeaderSrvName = "X-Service" )
View Source
const ( CoreServicesPath = "core-services" RestartPath = "restart" RestrictedPath = "restricted" EndpointsPath = "endpoints" EndpointsBatchPath = "endpoints-batch" AliasPath = "alias" CleanupPath = "cleanup" ImagesPath = "images" LogsPath = "logs" JobsPath = "jobs" JobsCancelPath = "cancel" SrvInfoPath = "info" )
Variables ¶
This section is empty.
Functions ¶
func NewInternalError ¶
func NewInvalidInputError ¶
func NewNotAllowedError ¶ added in v0.0.3
func NewNotFoundError ¶
Types ¶
type CoreService ¶ added in v0.0.3
type CoreService struct { Name string `json:"name"` Container SrvContainer `json:"container"` Image string `json:"image"` }
type Endpoint ¶
type Endpoint struct { ID string `json:"id"` ParentID string `json:"parent_id"` Type EndpointType `json:"type"` Location string `json:"location,omitempty"` EndpointBase }
type EndpointAliasReq ¶ added in v0.0.3
type EndpointAliasReq struct {
Path string `json:"path"`
}
type EndpointBase ¶ added in v0.0.3
type EndpointFilter ¶
type EndpointFilter struct { IDs []string Type EndpointType Ref string Labels map[string]string }
type EndpointType ¶
type EndpointType = int
const ( StandardEndpoint EndpointType = iota + 1 AliasEndpoint DefaultGuiEndpoint )
type InternalError ¶
type InternalError struct {
// contains filtered or unexported fields
}
type InvalidInputError ¶
type InvalidInputError struct {
// contains filtered or unexported fields
}
type NotAllowedError ¶ added in v0.0.3
type NotAllowedError struct {
// contains filtered or unexported fields
}
type NotFoundError ¶
type NotFoundError struct {
// contains filtered or unexported fields
}
type ProxyConfig ¶ added in v0.7.0
type SrvContainer ¶ added in v0.0.3
Click to show internal directories.
Click to hide internal directories.