Skip to content

Commit

Permalink
Merge pull request #320 from Scalingo/feat/async-containers/start-one…
Browse files Browse the repository at this point in the history
…-off-data

fix(one-off): renamed oneoffdata to startoneoffdata
  • Loading branch information
ipfaze authored Mar 15, 2023
2 parents f7a9c7d + 8581881 commit 9f8a88f
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,20 @@ type OperationResponse struct {
Op Operation `json:"operation"`
}

type OperationRunOneOffData struct {
AttachURL string `json:"attach_url"`
ContainerID map[string]string `json:"container_id"`
type OperationStartOneOffData struct {
AttachURL string `json:"attach_url"`
ContainerID string `json:"container_id"`
}

type Operation struct {
ID string `json:"id"`
AppID string `json:"app_id"`
CreatedAt time.Time `json:"created_at"`
FinishedAt time.Time `json:"finished_at"`
Status OperationStatus `json:"status"`
Type OperationType `json:"type"`
Error string `json:"error"`
OneOffData OperationRunOneOffData `json:"one_off_data"`
ID string `json:"id"`
AppID string `json:"app_id"`
CreatedAt time.Time `json:"created_at"`
FinishedAt time.Time `json:"finished_at"`
Status OperationStatus `json:"status"`
Type OperationType `json:"type"`
Error string `json:"error"`
StartOneOffData OperationStartOneOffData `json:"start_one_off_data"`
}

func (op *Operation) ElapsedDuration() float64 {
Expand Down

0 comments on commit 9f8a88f

Please sign in to comment.