Fix golint errors in pkg/apis/core (#82919)
* Fix lint errors related to receiver name Ref #68026 * Fix lint errors related to comments Ref #68026 * Fix package name in comments Ref #68026 * Rename Cpu to CPU Ref #68026 * Fix lint errors related to naming convention Ref #68026 * Remove deprecated field DoNotUse_ExternalID has been deprecated and is not in use anymore. It has been removed to fix lint errors related to underscores in field names. Ref #68026, #61966 * Include pkg/apis/core in golint check Ref #68026 * Rename var to fix lint errors Ref #68026 * Revert "Remove deprecated field" This reverts commit 75e9bfc168077fcb9346e334b59d60a2c997735b. Ref #82919 * Remove math from godoc Ref #82919, #68026 * Remove underscore from var name Ref #68026 * Rename var in staging core api type Ref #68026
This commit is contained in:

committed by
Kubernetes Prow Robot

parent
0b4cccc9d1
commit
3698100224
@@ -24,5 +24,8 @@ import "encoding/json"
|
||||
var _ = json.Marshaler(&AvoidPods{})
|
||||
var _ = json.Unmarshaler(&AvoidPods{})
|
||||
|
||||
// MarshalJSON panics to prevent marshalling of internal structs
|
||||
func (AvoidPods) MarshalJSON() ([]byte, error) { panic("do not marshal internal struct") }
|
||||
func (*AvoidPods) UnmarshalJSON([]byte) error { panic("do not unmarshal to internal struct") }
|
||||
|
||||
// UnmarshalJSON panics to prevent unmarshalling of internal structs
|
||||
func (*AvoidPods) UnmarshalJSON([]byte) error { panic("do not unmarshal to internal struct") }
|
||||
|
Reference in New Issue
Block a user