Skip to content

Commit bf37c8a

Browse files
committed
fix golint failures of pkg/kubelet/checkpointmanager/checksum
1 parent 20b76a2 commit bf37c8a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

hack/.golint_failures

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ pkg/kubelet/apis/config/v1beta1
163163
pkg/kubelet/apis/deviceplugin/v1beta1
164164
pkg/kubelet/cadvisor
165165
pkg/kubelet/cadvisor/testing
166-
pkg/kubelet/checkpointmanager/checksum
167166
pkg/kubelet/checkpointmanager/testing/example_checkpoint_formats/v1
168167
pkg/kubelet/client
169168
pkg/kubelet/cm

pkg/kubelet/checkpointmanager/checksum/checksum.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,18 @@ import (
2323
hashutil "k8s.io/kubernetes/pkg/util/hash"
2424
)
2525

26-
// Data to be stored as checkpoint
26+
// Checksum is the data to be stored as checkpoint
2727
type Checksum uint64
2828

29-
// VerifyChecksum verifies that passed checksum is same as calculated checksum
29+
// Verify verifies that passed checksum is same as calculated checksum
3030
func (cs Checksum) Verify(data interface{}) error {
3131
if cs != New(data) {
3232
return errors.ErrCorruptCheckpoint
3333
}
3434
return nil
3535
}
3636

37+
// New returns the Checksum of checkpoint data
3738
func New(data interface{}) Checksum {
3839
return Checksum(getChecksum(data))
3940
}

0 commit comments

Comments
 (0)