Documentation
¶
Index ¶
- func RegisterHandlers(server *server.Server, grp *huma.Group)
- type GetInstanceHealthInput
- type GetInstanceHealthResponse
- type HandlerGroup
- func (self *HandlerGroup) GetInstanceHealth(ctx context.Context, input *GetInstanceHealthInput) (*GetInstanceHealthResponse, error)
- func (self *HandlerGroup) ListInstances(ctx context.Context, input *ListInstancesInput) (*ListInstancesResponse, error)
- func (self *HandlerGroup) RestartInstances(ctx context.Context, input *RestartInstancesInput) (*RestartServicesResponse, error)
- type ListInstancesInput
- type ListInstancesResponse
- type RestartInstancesInput
- type RestartServicesResponse
- type Restarted
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterHandlers ¶
Types ¶
type GetInstanceHealthInput ¶
type GetInstanceHealthInput struct { server.BaseAuthInput models.InstanceHealthInput }
Get instance health for a service
type GetInstanceHealthResponse ¶
type GetInstanceHealthResponse struct { Body struct { Data *k8s.SimpleHealthStatus `json:"data" nullable:"false"` } }
type HandlerGroup ¶
type HandlerGroup struct {
// contains filtered or unexported fields
}
func (*HandlerGroup) GetInstanceHealth ¶
func (self *HandlerGroup) GetInstanceHealth(ctx context.Context, input *GetInstanceHealthInput) (*GetInstanceHealthResponse, error)
GetInstanceHealth gets pod health for a service
func (*HandlerGroup) ListInstances ¶
func (self *HandlerGroup) ListInstances(ctx context.Context, input *ListInstancesInput) (*ListInstancesResponse, error)
ListInstances gets pods/statuses for a service
func (*HandlerGroup) RestartInstances ¶
func (self *HandlerGroup) RestartInstances(ctx context.Context, input *RestartInstancesInput) (*RestartServicesResponse, error)
RestartInstances handles PUT /instances/restart
type ListInstancesInput ¶
type ListInstancesInput struct { server.BaseAuthInput models.InstanceStatusInput }
List instances (pods) for a service
type ListInstancesResponse ¶
type ListInstancesResponse struct { Body struct { Data []k8s.PodContainerStatus `json:"data" nullable:"false"` } }
type RestartInstancesInput ¶
type RestartInstancesInput struct { server.BaseAuthInput Body struct { ServiceID uuid.UUID `json:"service_id" required:"true"` TeamID uuid.UUID `json:"team_id" required:"true"` ProjectID uuid.UUID `json:"project_id" required:"true"` EnvironmentID uuid.UUID `json:"environment_id" required:"true"` } }
Restart instance
type RestartServicesResponse ¶
type RestartServicesResponse struct { Body struct { Data *Restarted `json:"data"` } }
Click to show internal directories.
Click to hide internal directories.