Skip to content

Commit 1c059f7

Browse files
authored
feat(dagger): sync method (#599)
Signed-off-by: Miguel Martinez Trivino <[email protected]>
1 parent e80f530 commit 1c059f7

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

extras/dagger/main.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,19 @@ func (att *Attestation) Status(ctx context.Context) (string, error) {
111111
Stdout(ctx)
112112
}
113113

114+
// Sync will force the client to send an actual query to the chainloop control plane
115+
// This is specially important to be run right after Init
116+
// for example
117+
//
118+
// att := chainloop.Init(ctx, token, "main")
119+
//
120+
// if err := att.Sync(ctx); err != nil {
121+
// return nil, err
122+
// }
123+
func (att *Attestation) Sync(ctx context.Context) error {
124+
return nil
125+
}
126+
114127
// Attach credentials for a container registry.
115128
// Chainloop will use them to query the registry for container image pieces of evidences
116129
func (att *Attestation) WithRegistryAuth(

0 commit comments

Comments
 (0)