Skip to content

Commit

Permalink
Add missing json tags
Browse files Browse the repository at this point in the history
  • Loading branch information
wpjunior committed Mar 8, 2024
1 parent 8eb2162 commit ff72af5
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions types/job/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@ import (
// this struct carries some tsuru metadata as is the case with the app object
// it also holds a JobSpec value that defines how the Job is supposed to be run
type Job struct {
Name string
Teams []string
TeamOwner string
Owner string
Plan appTypes.Plan
Metadata appTypes.Metadata
Pool string
Description string
Name string `json:"name"`
Teams []string `json:"teams"`
TeamOwner string `json:"teamOwner"`
Owner string `json:"owner"`
Plan appTypes.Plan `json:"plan"`
Metadata appTypes.Metadata `json:"metadata"`
Pool string `json:"pool"`
Description string `json:"description"`

DeployOptions *DeployOptions
DeployOptions *DeployOptions `json:"deployOptions"`

Spec JobSpec
Spec JobSpec `json:"spec"`
}

func (job *Job) GetName() string {
Expand Down Expand Up @@ -80,8 +80,8 @@ type RemoveInstanceArgs struct {
}

type DeployOptions struct {
Kind provisionTypes.DeployKind
Image string
Kind provisionTypes.DeployKind `json:"kind"`
Image string `json:"image"`
}

type JobService interface {
Expand Down

0 comments on commit ff72af5

Please sign in to comment.