Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteSPD ¶
func DeleteSPD(cpm checkpointmanager.CheckpointManager, spd *v1alpha1.ServiceProfileDescriptor) error
DeleteSPD deletes a checkpoint from disk if present
func LoadSPDs ¶
func LoadSPDs(cpm checkpointmanager.CheckpointManager, skipCorruptionError bool) ([]*v1alpha1.ServiceProfileDescriptor, error)
LoadSPDs Loads All Checkpoints from disk
func WriteSPD ¶
func WriteSPD(cpm checkpointmanager.CheckpointManager, spd *v1alpha1.ServiceProfileDescriptor) error
WriteSPD a checkpoint to a file on disk if annotation is present
Types ¶
type Data ¶
type Data struct { SPD *v1alpha1.ServiceProfileDescriptor Checksum checksum.Checksum }
Data to be stored as checkpoint
func (*Data) GetSPD ¶
func (cp *Data) GetSPD() *v1alpha1.ServiceProfileDescriptor
GetSPD retrieves the spd from the checkpoint
func (*Data) MarshalCheckpoint ¶
MarshalCheckpoint returns marshaled data
func (*Data) UnmarshalCheckpoint ¶
UnmarshalCheckpoint returns unmarshalled data
func (*Data) VerifyChecksum ¶
VerifyChecksum verifies that passed checksum is same as calculated checksum
type ServiceProfileCheckpoint ¶
type ServiceProfileCheckpoint interface { checkpointmanager.Checkpoint GetSPD() *v1alpha1.ServiceProfileDescriptor }
ServiceProfileCheckpoint defines the operations to retrieve spd
func NewServiceProfileCheckpoint ¶
func NewServiceProfileCheckpoint(spd *v1alpha1.ServiceProfileDescriptor) ServiceProfileCheckpoint
NewServiceProfileCheckpoint returns new spd checkpoint
Click to show internal directories.
Click to hide internal directories.