mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 19:23:40 +00:00
Add comments to MockCheckpoint functions and gofmt
This commit is contained in:
parent
0fbd19bc06
commit
cc3fa67bda
@ -25,7 +25,7 @@ import (
|
|||||||
hashutil "k8s.io/kubernetes/pkg/util/hash"
|
hashutil "k8s.io/kubernetes/pkg/util/hash"
|
||||||
)
|
)
|
||||||
|
|
||||||
var _ checkpointmanager.Checkpoint = &cpuManagerCheckpoint {}
|
var _ checkpointmanager.Checkpoint = &cpuManagerCheckpoint{}
|
||||||
|
|
||||||
// cpuManagerCheckpoint struct is used to store cpu/pod assignments in a checkpoint
|
// cpuManagerCheckpoint struct is used to store cpu/pod assignments in a checkpoint
|
||||||
type cpuManagerCheckpoint struct {
|
type cpuManagerCheckpoint struct {
|
||||||
|
@ -30,12 +30,15 @@ func (mc *MockCheckpoint) MarshalCheckpoint() ([]byte, error) {
|
|||||||
return []byte(mc.Content), nil
|
return []byte(mc.Content), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// UnmarshalCheckpoint fakes unmarshaling
|
||||||
func (mc *MockCheckpoint) UnmarshalCheckpoint(blob []byte) error {
|
func (mc *MockCheckpoint) UnmarshalCheckpoint(blob []byte) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetChecksum fakes getting checksum
|
||||||
func (mc *MockCheckpoint) GetChecksum() uint64 {
|
func (mc *MockCheckpoint) GetChecksum() uint64 {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// UpdateChecksum fakes updating cheksum
|
||||||
func (mc *MockCheckpoint) UpdateChecksum() {}
|
func (mc *MockCheckpoint) UpdateChecksum() {}
|
||||||
|
Loading…
Reference in New Issue
Block a user