Skip to content

Commit

Permalink
Sets json:"-" on ignored fields
Browse files Browse the repository at this point in the history
  • Loading branch information
tdstein committed Oct 10, 2023
1 parent 1bcd0a0 commit 2c68d8d
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions internal/state/connect.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,24 @@ type ConnectDeployment struct {
type ConnectContent struct {
Name types.ContentName `json:"name"`
Title string `json:"title,omitempty"`
Description string `json:"description"`
AccessType string
ConnectionTimeout types.NullInt32
ReadTimeout types.NullInt32
InitTimeout types.NullInt32
IdleTimeout types.NullInt32
MaxProcesses types.NullInt32
MinProcesses types.NullInt32
MaxConnsPerProcess types.NullInt32
LoadFactor types.NullFloat64
RunAs string
RunAsCurrentUser types.NullBool
MemoryRequest types.NullInt64
MemoryLimit types.NullInt64
CPURequest types.NullFloat64
CPULimit types.NullFloat64
ServiceAccountName string
DefaultImageName string
Description string `json:"description,omitempty"`
AccessType string `json:"-"`
ConnectionTimeout types.NullInt32 `json:"-"`
ReadTimeout types.NullInt32 `json:"-"`
InitTimeout types.NullInt32 `json:"-"`
IdleTimeout types.NullInt32 `json:"-"`
MaxProcesses types.NullInt32 `json:"-"`
MinProcesses types.NullInt32 `json:"-"`
MaxConnsPerProcess types.NullInt32 `json:"-"`
LoadFactor types.NullFloat64 `json:"-"`
RunAs string `json:"-"`
RunAsCurrentUser types.NullBool `json:"-"`
MemoryRequest types.NullInt64 `json:"-"`
MemoryLimit types.NullInt64 `json:"-"`
CPURequest types.NullFloat64 `json:"-"`
CPULimit types.NullFloat64 `json:"-"`
ServiceAccountName string `json:"-"`
DefaultImageName string `json:"-"`
}

func (d *ConnectDeployment) Merge(other *ConnectDeployment) {
Expand Down

0 comments on commit 2c68d8d

Please sign in to comment.