Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountStatusResponse ¶ added in v0.3.0
type AccountStatusResponse struct {
HTTPStatusCode int `json:"http_code,omitempty"` // http response status code
Status models.Status `json:"status,omitempty"`
}
func (*AccountStatusResponse) Render ¶ added in v0.3.0
func (p *AccountStatusResponse) Render(w http.ResponseWriter, r *http.Request) error
type Error ¶
type Error struct {
Err error `json:"-"` // low-level runtime error
HTTPStatusCode int `json:"http_code,omitempty"` // http response status code
Message string `json:"message"` // user-facing
AppCode int64 `json:"code,omitempty"` // application-specific error code
ErrorText string `json:"error,omitempty"` // application-level error message, for debugging
ErrorMultiline []string `json:"error_multiline,omitempty"` // application-level error message, for debugging
}
type HealthCheckResult ¶
type LifecycleRequestResponse ¶ added in v0.3.0
type LifecycleRequestResponse struct {
HTTPStatusCode int `json:"http_code,omitempty"` // http response status code
Message string `json:"message"`
RequestID string `json:"request_id,omitempty"`
Status string `json:"status,omitempty"`
}
func (*LifecycleRequestResponse) Render ¶ added in v0.3.0
func (p *LifecycleRequestResponse) Render(w http.ResponseWriter, r *http.Request) error
type PlacementRequest ¶
type PlacementRequest struct {
ServiceUuid string `json:"service_uuid"`
Reservation string `json:"reservation"`
Resources []ResourceRequest `json:"resources"`
Annotations map[string]string `json:"annotations"`
}
type PlacementResponse ¶
type PlacementResponse struct {
HTTPStatusCode int `json:"http_code,omitempty"` // http response status code
Message string `json:"message"`
Placement models.PlacementWithCreds
}
func (*PlacementResponse) Render ¶
func (p *PlacementResponse) Render(w http.ResponseWriter, r *http.Request) error
type PlacementStatusResponse ¶ added in v0.3.3
type PlacementStatusResponse struct {
HTTPStatusCode int `json:"http_code,omitempty"` // http response status code
Status []models.Status `json:"status,omitempty"`
}
func (*PlacementStatusResponse) Render ¶ added in v0.3.3
func (p *PlacementStatusResponse) Render(w http.ResponseWriter, r *http.Request) error
type ReservationResponse ¶ added in v0.3.5
type ReservationResponse struct {
HTTPStatusCode int `json:"http_code,omitempty"` // http response status code
Message string `json:"message"`
Reservation models.Reservation `json:"reservation"`
}
func (*ReservationResponse) Render ¶ added in v0.3.5
func (p *ReservationResponse) Render(w http.ResponseWriter, r *http.Request) error
type ResourceRequest ¶
type ResourcesResponse ¶ added in v0.3.5
type ResourcesResponse struct {
HTTPStatusCode int `json:"http_code,omitempty"` // http response status code
Message string `json:"message"`
Resources []any `json:"resources,omitempty"`
Count int `json:"count,omitempty"`
}
func (*ResourcesResponse) Render ¶ added in v0.3.5
func (o *ResourcesResponse) Render(w http.ResponseWriter, r *http.Request) error
type SimpleMessage ¶
type SimpleMessage struct {
Message string `json:"message"`
MessageMultiline []string `json:"message_multiline,omitempty"`
}
func (*SimpleMessage) Render ¶
func (p *SimpleMessage) Render(w http.ResponseWriter, r *http.Request) error
type TokenRequest ¶
type TokenResponse ¶
type TokenResponse struct {
Token string `json:"token,omitempty"`
AccessToken string `json:"access_token,omitempty"`
RefreshToken string `json:"refresh_token,omitempty"`
Exp *time.Time `json:"exp,omitempty"`
AccessTokenExp *time.Time `json:"access_token_exp,omitempty"`
RefreshTokenExp *time.Time `json:"refresh_token_exp,omitempty"`
}
func (*TokenResponse) Render ¶
func (t *TokenResponse) Render(w http.ResponseWriter, r *http.Request) error
Click to show internal directories.
Click to hide internal directories.