Skip to content

Commit

Permalink
refined the doc comment
Browse files Browse the repository at this point in the history
Signed-off-by: Xiaoxuan Wang <wangxiaoxuan119@gmail.com>
  • Loading branch information
wangxiaoxuan273 committed Nov 14, 2023
1 parent 410068d commit dd0b9a8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions content/oci/oci.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,10 @@ import (
type Store struct {
// AutoSaveIndex controls if the OCI store will automatically save the index
// file when needed.
// - If AutoSaveIndex is set to true, the OCI store will automatically save the
// changes to `index.json` on Tag() and Delete() calls, and when pushing a manifest.
// - If AutoSaveIndex is set to true, the OCI store will automatically save
// the changes to `index.json` when
// 1. pushing a manifest
// 2. calling Tag() or Delete()
// - If AutoSaveIndex is set to false, it's the caller's responsibility
// to manually call SaveIndex() when needed.
// - Default value: true.
Expand Down

0 comments on commit dd0b9a8

Please sign in to comment.