Skip to content

Commit 52c3984

Browse files
rnarenpujarieastaga
authored andcommitted
Fix lint errors
Signed-off-by: rnarenpujari <rnarenpujari@gmail.com>
1 parent a67a90c commit 52c3984

File tree

11 files changed

+62
-28
lines changed

11 files changed

+62
-28
lines changed

internal/models/clustergroup/dataprotection/data_protection.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,23 @@ type VmwareTanzuManageV1alpha1ClustergroupDataprotectionDataProtection struct {
3838
Type *objectmetamodel.VmwareTanzuCoreV1alpha1ObjectType `json:"type,omitempty"`
3939
}
4040

41-
// MarshalBinary interface implementation
41+
// MarshalBinary interface implementation.
4242
func (m *VmwareTanzuManageV1alpha1ClustergroupDataprotectionDataProtection) MarshalBinary() ([]byte, error) {
4343
if m == nil {
4444
return nil, nil
4545
}
46+
4647
return swag.WriteJSON(m)
4748
}
4849

49-
// UnmarshalBinary interface implementation
50+
// UnmarshalBinary interface implementation.
5051
func (m *VmwareTanzuManageV1alpha1ClustergroupDataprotectionDataProtection) UnmarshalBinary(b []byte) error {
5152
var res VmwareTanzuManageV1alpha1ClustergroupDataprotectionDataProtection
5253
if err := swag.ReadJSON(b, &res); err != nil {
5354
return err
5455
}
56+
5557
*m = res
58+
5659
return nil
5760
}

internal/models/clustergroup/dataprotection/full_name.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,23 @@ type VmwareTanzuManageV1alpha1ClustergroupDataprotectionFullName struct {
2525
OrgID string `json:"orgId,omitempty"`
2626
}
2727

28-
// MarshalBinary interface implementation
28+
// MarshalBinary interface implementation.
2929
func (m *VmwareTanzuManageV1alpha1ClustergroupDataprotectionFullName) MarshalBinary() ([]byte, error) {
3030
if m == nil {
3131
return nil, nil
3232
}
33+
3334
return swag.WriteJSON(m)
3435
}
3536

36-
// UnmarshalBinary interface implementation
37+
// UnmarshalBinary interface implementation.
3738
func (m *VmwareTanzuManageV1alpha1ClustergroupDataprotectionFullName) UnmarshalBinary(b []byte) error {
3839
var res VmwareTanzuManageV1alpha1ClustergroupDataprotectionFullName
3940
if err := swag.ReadJSON(b, &res); err != nil {
4041
return err
4142
}
43+
4244
*m = res
45+
4346
return nil
4447
}

internal/models/clustergroup/dataprotection/method_create.go

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,24 @@ type VmwareTanzuManageV1alpha1ClustergroupDataprotectionCreateDataProtectionRequ
2121
DataProtection *VmwareTanzuManageV1alpha1ClustergroupDataprotectionDataProtection `json:"dataProtection,omitempty"`
2222
}
2323

24-
// MarshalBinary interface implementation
24+
// MarshalBinary interface implementation.
2525
func (m *VmwareTanzuManageV1alpha1ClustergroupDataprotectionCreateDataProtectionRequest) MarshalBinary() ([]byte, error) {
2626
if m == nil {
2727
return nil, nil
2828
}
29+
2930
return swag.WriteJSON(m)
3031
}
3132

32-
// UnmarshalBinary interface implementation
33+
// UnmarshalBinary interface implementation.
3334
func (m *VmwareTanzuManageV1alpha1ClustergroupDataprotectionCreateDataProtectionRequest) UnmarshalBinary(b []byte) error {
3435
var res VmwareTanzuManageV1alpha1ClustergroupDataprotectionCreateDataProtectionRequest
3536
if err := swag.ReadJSON(b, &res); err != nil {
3637
return err
3738
}
39+
3840
*m = res
41+
3942
return nil
4043
}
4144

@@ -48,20 +51,23 @@ type VmwareTanzuManageV1alpha1ClustergroupDataprotectionCreateDataProtectionResp
4851
DataProtection *VmwareTanzuManageV1alpha1ClustergroupDataprotectionDataProtection `json:"dataProtection,omitempty"`
4952
}
5053

51-
// MarshalBinary interface implementation
54+
// MarshalBinary interface implementation.
5255
func (m *VmwareTanzuManageV1alpha1ClustergroupDataprotectionCreateDataProtectionResponse) MarshalBinary() ([]byte, error) {
5356
if m == nil {
5457
return nil, nil
5558
}
59+
5660
return swag.WriteJSON(m)
5761
}
5862

59-
// UnmarshalBinary interface implementation
63+
// UnmarshalBinary interface implementation.
6064
func (m *VmwareTanzuManageV1alpha1ClustergroupDataprotectionCreateDataProtectionResponse) UnmarshalBinary(b []byte) error {
6165
var res VmwareTanzuManageV1alpha1ClustergroupDataprotectionCreateDataProtectionResponse
6266
if err := swag.ReadJSON(b, &res); err != nil {
6367
return err
6468
}
69+
6570
*m = res
71+
6672
return nil
6773
}

internal/models/clustergroup/dataprotection/method_list.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,23 @@ type VmwareTanzuManageV1alpha1ClustergroupDataprotectionListDataProtectionsRespo
2424
TotalCount string `json:"totalCount,omitempty"`
2525
}
2626

27-
// MarshalBinary interface implementation
27+
// MarshalBinary interface implementation.
2828
func (m *VmwareTanzuManageV1alpha1ClustergroupDataprotectionListDataProtectionsResponse) MarshalBinary() ([]byte, error) {
2929
if m == nil {
3030
return nil, nil
3131
}
32+
3233
return swag.WriteJSON(m)
3334
}
3435

35-
// UnmarshalBinary interface implementation
36+
// UnmarshalBinary interface implementation.
3637
func (m *VmwareTanzuManageV1alpha1ClustergroupDataprotectionListDataProtectionsResponse) UnmarshalBinary(b []byte) error {
3738
var res VmwareTanzuManageV1alpha1ClustergroupDataprotectionListDataProtectionsResponse
3839
if err := swag.ReadJSON(b, &res); err != nil {
3940
return err
4041
}
42+
4143
*m = res
44+
4245
return nil
4346
}

internal/models/clustergroup/dataprotection/spec.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,23 @@ type VmwareTanzuManageV1alpha1ClustergroupDataprotectionSpec struct {
2727
Selector *commonmodel.VmwareTanzuManageV1alpha1CommonBatchSelector `json:"selector,omitempty"`
2828
}
2929

30-
// MarshalBinary interface implementation
30+
// MarshalBinary interface implementation.
3131
func (m *VmwareTanzuManageV1alpha1ClustergroupDataprotectionSpec) MarshalBinary() ([]byte, error) {
3232
if m == nil {
3333
return nil, nil
3434
}
35+
3536
return swag.WriteJSON(m)
3637
}
3738

38-
// UnmarshalBinary interface implementation
39+
// UnmarshalBinary interface implementation.
3940
func (m *VmwareTanzuManageV1alpha1ClustergroupDataprotectionSpec) UnmarshalBinary(b []byte) error {
4041
var res VmwareTanzuManageV1alpha1ClustergroupDataprotectionSpec
4142
if err := swag.ReadJSON(b, &res); err != nil {
4243
return err
4344
}
45+
4446
*m = res
47+
4548
return nil
4649
}

internal/models/clustergroup/dataprotection/status.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,23 @@ type VmwareTanzuManageV1alpha1ClustergroupDataprotectionStatus struct {
2929
Phase *commonmodel.VmwareTanzuManageV1alpha1CommonBatchPhase `json:"phase,omitempty"`
3030
}
3131

32-
// MarshalBinary interface implementation
32+
// MarshalBinary interface implementation.
3333
func (m *VmwareTanzuManageV1alpha1ClustergroupDataprotectionStatus) MarshalBinary() ([]byte, error) {
3434
if m == nil {
3535
return nil, nil
3636
}
37+
3738
return swag.WriteJSON(m)
3839
}
3940

40-
// UnmarshalBinary interface implementation
41+
// UnmarshalBinary interface implementation.
4142
func (m *VmwareTanzuManageV1alpha1ClustergroupDataprotectionStatus) UnmarshalBinary(b []byte) error {
4243
var res VmwareTanzuManageV1alpha1ClustergroupDataprotectionStatus
4344
if err := swag.ReadJSON(b, &res); err != nil {
4445
return err
4546
}
47+
4648
*m = res
49+
4750
return nil
4851
}

internal/models/common/batch_details.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,23 @@ type VmwareTanzuManageV1alpha1CommonBatchDetails struct {
3939
Skipped int32 `json:"skipped,omitempty"`
4040
}
4141

42-
// MarshalBinary interface implementation
42+
// MarshalBinary interface implementation.
4343
func (m *VmwareTanzuManageV1alpha1CommonBatchDetails) MarshalBinary() ([]byte, error) {
4444
if m == nil {
4545
return nil, nil
4646
}
47+
4748
return swag.WriteJSON(m)
4849
}
4950

50-
// UnmarshalBinary interface implementation
51+
// UnmarshalBinary interface implementation.
5152
func (m *VmwareTanzuManageV1alpha1CommonBatchDetails) UnmarshalBinary(b []byte) error {
5253
var res VmwareTanzuManageV1alpha1CommonBatchDetails
5354
if err := swag.ReadJSON(b, &res); err != nil {
5455
return err
5556
}
57+
5658
*m = res
59+
5760
return nil
5861
}

internal/models/common/batch_label_selector.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,23 @@ type VmwareTanzuManageV1alpha1CommonBatchLabelSelector struct {
2222
MatchExpressions []*K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement `json:"matchExpressions"`
2323
}
2424

25-
// MarshalBinary interface implementation
25+
// MarshalBinary interface implementation.
2626
func (m *VmwareTanzuManageV1alpha1CommonBatchLabelSelector) MarshalBinary() ([]byte, error) {
2727
if m == nil {
2828
return nil, nil
2929
}
30+
3031
return swag.WriteJSON(m)
3132
}
3233

33-
// UnmarshalBinary interface implementation
34+
// UnmarshalBinary interface implementation.
3435
func (m *VmwareTanzuManageV1alpha1CommonBatchLabelSelector) UnmarshalBinary(b []byte) error {
3536
var res VmwareTanzuManageV1alpha1CommonBatchLabelSelector
3637
if err := swag.ReadJSON(b, &res); err != nil {
3738
return err
3839
}
40+
3941
*m = res
42+
4043
return nil
4144
}

internal/models/common/batch_phase.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,30 +36,31 @@ func (m VmwareTanzuManageV1alpha1CommonBatchPhase) Pointer() *VmwareTanzuManageV
3636

3737
const (
3838

39-
// VmwareTanzuManageV1alpha1CommonBatchPhasePHASEUNSPECIFIED captures enum value "PHASE_UNSPECIFIED"
39+
// VmwareTanzuManageV1alpha1CommonBatchPhasePHASEUNSPECIFIED captures enum value "PHASE_UNSPECIFIED".
4040
VmwareTanzuManageV1alpha1CommonBatchPhasePHASEUNSPECIFIED VmwareTanzuManageV1alpha1CommonBatchPhase = "PHASE_UNSPECIFIED"
4141

42-
// VmwareTanzuManageV1alpha1CommonBatchPhasePENDING captures enum value "PENDING"
42+
// VmwareTanzuManageV1alpha1CommonBatchPhasePENDING captures enum value "PENDING".
4343
VmwareTanzuManageV1alpha1CommonBatchPhasePENDING VmwareTanzuManageV1alpha1CommonBatchPhase = "PENDING"
4444

45-
// VmwareTanzuManageV1alpha1CommonBatchPhaseAPPLIED captures enum value "APPLIED"
45+
// VmwareTanzuManageV1alpha1CommonBatchPhaseAPPLIED captures enum value "APPLIED".
4646
VmwareTanzuManageV1alpha1CommonBatchPhaseAPPLIED VmwareTanzuManageV1alpha1CommonBatchPhase = "APPLIED"
4747

48-
// VmwareTanzuManageV1alpha1CommonBatchPhaseERROR captures enum value "ERROR"
48+
// VmwareTanzuManageV1alpha1CommonBatchPhaseERROR captures enum value "ERROR".
4949
VmwareTanzuManageV1alpha1CommonBatchPhaseERROR VmwareTanzuManageV1alpha1CommonBatchPhase = "ERROR"
5050

51-
// VmwareTanzuManageV1alpha1CommonBatchPhaseDELETING captures enum value "DELETING"
51+
// VmwareTanzuManageV1alpha1CommonBatchPhaseDELETING captures enum value "DELETING".
5252
VmwareTanzuManageV1alpha1CommonBatchPhaseDELETING VmwareTanzuManageV1alpha1CommonBatchPhase = "DELETING"
5353
)
5454

55-
// for schema
55+
// for schema.
5656
var vmwareTanzuManageV1alpha1CommonBatchPhaseEnum []interface{}
5757

5858
func init() {
5959
var res []VmwareTanzuManageV1alpha1CommonBatchPhase
6060
if err := json.Unmarshal([]byte(`["PHASE_UNSPECIFIED","PENDING","APPLIED","ERROR","DELETING"]`), &res); err != nil {
6161
panic(err)
6262
}
63+
6364
for _, v := range res {
6465
vmwareTanzuManageV1alpha1CommonBatchPhaseEnum = append(vmwareTanzuManageV1alpha1CommonBatchPhaseEnum, v)
6566
}

internal/models/common/batch_selector.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,23 @@ type VmwareTanzuManageV1alpha1CommonBatchSelector struct {
2727
Names []string `json:"names"`
2828
}
2929

30-
// MarshalBinary interface implementation
30+
// MarshalBinary interface implementation.
3131
func (m *VmwareTanzuManageV1alpha1CommonBatchSelector) MarshalBinary() ([]byte, error) {
3232
if m == nil {
3333
return nil, nil
3434
}
35+
3536
return swag.WriteJSON(m)
3637
}
3738

38-
// UnmarshalBinary interface implementation
39+
// UnmarshalBinary interface implementation.
3940
func (m *VmwareTanzuManageV1alpha1CommonBatchSelector) UnmarshalBinary(b []byte) error {
4041
var res VmwareTanzuManageV1alpha1CommonBatchSelector
4142
if err := swag.ReadJSON(b, &res); err != nil {
4243
return err
4344
}
45+
4446
*m = res
47+
4548
return nil
4649
}

0 commit comments

Comments
 (0)