Skip to content

Commit

Permalink
fix lint issues
Browse files Browse the repository at this point in the history
Signed-off-by: GilTS <[email protected]>
  • Loading branch information
GilTeraSky committed Oct 17, 2023
1 parent 3a9f41c commit 97858c5
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/models/clusterclass/clusterclass.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ package clusterclass

import (
"github.com/go-openapi/swag"

objectmetamodel "github.com/vmware/terraform-provider-tanzu-mission-control/internal/models/objectmeta"
)

Expand Down Expand Up @@ -36,15 +37,19 @@ func (m *VmwareTanzuManageV1alpha1ManagementclusterProvisionerClusterclassCluste
if m == nil {
return nil, nil
}

return swag.WriteJSON(m)
}

// UnmarshalBinary interface implementation.
func (m *VmwareTanzuManageV1alpha1ManagementclusterProvisionerClusterclassClusterClass) UnmarshalBinary(b []byte) error {
var res VmwareTanzuManageV1alpha1ManagementclusterProvisionerClusterclassClusterClass

if err := swag.ReadJSON(b, &res); err != nil {
return err
}

*m = res

return nil
}
4 changes: 4 additions & 0 deletions internal/models/clusterclass/fullname.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,19 @@ func (m *VmwareTanzuManageV1alpha1ManagementclusterProvisionerClusterclassFullNa
if m == nil {
return nil, nil
}

return swag.WriteJSON(m)
}

// UnmarshalBinary interface implementation.
func (m *VmwareTanzuManageV1alpha1ManagementclusterProvisionerClusterclassFullName) UnmarshalBinary(b []byte) error {
var res VmwareTanzuManageV1alpha1ManagementclusterProvisionerClusterclassFullName

if err := swag.ReadJSON(b, &res); err != nil {
return err
}

*m = res

Check failure on line 49 in internal/models/clusterclass/fullname.go

View workflow job for this annotation

GitHub Actions / lint

File is not `gofmt`-ed with `-s` (gofmt)

Check failure on line 49 in internal/models/clusterclass/fullname.go

View workflow job for this annotation

GitHub Actions / lint

File is not `gofmt`-ed with `-s` (gofmt)
return nil
}
4 changes: 4 additions & 0 deletions internal/models/clusterclass/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,19 @@ func (m *VmwareTanzuManageV1alpha1ManagementclusterProvisionerClusterclassListCl
if m == nil {
return nil, nil
}

return swag.WriteJSON(m)
}

// UnmarshalBinary interface implementation.
func (m *VmwareTanzuManageV1alpha1ManagementclusterProvisionerClusterclassListClusterClassesResponse) UnmarshalBinary(b []byte) error {
var res VmwareTanzuManageV1alpha1ManagementclusterProvisionerClusterclassListClusterClassesResponse

if err := swag.ReadJSON(b, &res); err != nil {
return err
}

*m = res

return nil
}
5 changes: 5 additions & 0 deletions internal/models/clusterclass/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,20 @@ func (m *VmwareTanzuManageV1alpha1ManagementclusterProvisionerClusterclassVariab
if m == nil {
return nil, nil
}

return swag.WriteJSON(m)
}

// UnmarshalBinary interface implementation.
func (m *VmwareTanzuManageV1alpha1ManagementclusterProvisionerClusterclassVariableSchema) UnmarshalBinary(b []byte) error {
var res VmwareTanzuManageV1alpha1ManagementclusterProvisionerClusterclassVariableSchema

if err := swag.ReadJSON(b, &res); err != nil {
return err
}

*m = res

return nil
}

Expand All @@ -56,6 +60,7 @@ func (m *K8sIoApimachineryPkgRuntimeRawExtension) MarshalBinary() ([]byte, error
// UnmarshalBinary interface implementation.
func (m *K8sIoApimachineryPkgRuntimeRawExtension) UnmarshalBinary(b []byte) error {
var res K8sIoApimachineryPkgRuntimeRawExtension

if err := swag.ReadJSON(b, &res); err != nil {
return err
}
Expand Down
4 changes: 4 additions & 0 deletions internal/models/clusterclass/spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,19 @@ func (m *VmwareTanzuManageV1alpha1ManagementclusterProvisionerClusterclassSpec)
if m == nil {
return nil, nil
}

return swag.WriteJSON(m)
}

// UnmarshalBinary interface implementation.
func (m *VmwareTanzuManageV1alpha1ManagementclusterProvisionerClusterclassSpec) UnmarshalBinary(b []byte) error {
var res VmwareTanzuManageV1alpha1ManagementclusterProvisionerClusterclassSpec

if err := swag.ReadJSON(b, &res); err != nil {
return err
}

*m = res

return nil
}
4 changes: 4 additions & 0 deletions internal/models/clusterclass/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,19 @@ func (m *VmwareTanzuManageV1alpha1ManagementclusterProvisionerClusterclassStatus
if m == nil {
return nil, nil
}

return swag.WriteJSON(m)
}

// UnmarshalBinary interface implementation.
func (m *VmwareTanzuManageV1alpha1ManagementclusterProvisionerClusterclassStatus) UnmarshalBinary(b []byte) error {
var res VmwareTanzuManageV1alpha1ManagementclusterProvisionerClusterclassStatus

if err := swag.ReadJSON(b, &res); err != nil {
return err
}

*m = res

return nil
}
4 changes: 4 additions & 0 deletions internal/models/clusterclass/variables.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,19 @@ func (m *VmwareTanzuManageV1alpha1ManagementclusterProvisionerClusterclassCluste
if m == nil {
return nil, nil
}

return swag.WriteJSON(m)
}

// UnmarshalBinary interface implementation.
func (m *VmwareTanzuManageV1alpha1ManagementclusterProvisionerClusterclassClusterClassVariable) UnmarshalBinary(b []byte) error {
var res VmwareTanzuManageV1alpha1ManagementclusterProvisionerClusterclassClusterClassVariable

if err := swag.ReadJSON(b, &res); err != nil {
return err
}

*m = res

return nil
}
1 change: 1 addition & 0 deletions internal/resources/tanzukubernetescluster/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ package tanzukubernetescluster

import (
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"

"github.com/vmware/terraform-provider-tanzu-mission-control/internal/resources/common"
)

Expand Down

0 comments on commit 97858c5

Please sign in to comment.