@@ -44,7 +44,7 @@ func (c *Checkpointer) GetCheckpoint(ctx context.Context, namespace, objectType
4444 return "" , errors .New ("storage client is nil" )
4545 }
4646
47- checkPointKey := c .CheckpointKey (namespace , objectType )
47+ checkPointKey := c .checkpointKey (namespace , objectType )
4848 c .logger .Debug ("Retrieving checkpoint, key: " + checkPointKey ,
4949 zap .String ("namespace" , namespace ),
5050 zap .String ("objectType" , objectType ))
@@ -76,7 +76,7 @@ func (c *Checkpointer) SetCheckpoint(
7676 _ context.Context ,
7777 namespace , objectType , resourceVersion string ,
7878) error {
79- key := c .CheckpointKey (namespace , objectType )
79+ key := c .checkpointKey (namespace , objectType )
8080 if key == "" {
8181 return fmt .Errorf ("checkpoint key is empty: %s, %s" , namespace , objectType )
8282 }
@@ -182,7 +182,7 @@ func (c *Checkpointer) DeleteCheckpoint(
182182 return errors .New ("storage client is nil" )
183183 }
184184
185- key := c .CheckpointKey (namespace , objectType )
185+ key := c .checkpointKey (namespace , objectType )
186186 if key == "" {
187187 return fmt .Errorf ("checkpoint key is empty: %s, %s" , namespace , objectType )
188188 }
@@ -198,10 +198,10 @@ func (c *Checkpointer) DeleteCheckpoint(
198198 return nil
199199}
200200
201- // CheckpointKey generates a unique storage key
201+ // checkpointKey generates a unique storage key
202202// returns resourceVersion key for global watch stream (without namespace) or
203203// per namespace watch stream.
204- func (* Checkpointer ) CheckpointKey (namespace , objectType string ) string {
204+ func (* Checkpointer ) checkpointKey (namespace , objectType string ) string {
205205 // when watch stream is cluster-wide or cluster-scoped resource (no namespace),
206206 // the resource version is persisted per object type only.
207207 if namespace == "" {
0 commit comments