- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for itemOrErr (0.1 sec)
-
cmd/iam-object-store.go
ch := make(chan itemOrErr[string]) go func() { defer xioutil.SafeClose(ch) // Allocate new results channel to receive ObjectInfo. objInfoCh := make(chan itemOrErr[ObjectInfo]) if err := objAPI.Walk(ctx, minioMetaBucket, pathPrefix, objInfoCh, WalkOptions{}); err != nil { select { case ch <- itemOrErr[string]{Err: err}: case <-ctx.Done():
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Oct 10 23:40:37 UTC 2024 - 26.6K bytes - Viewed (0) -
cmd/batch-expire.go
} ctx, cancelCause := context.WithCancelCause(ctx) defer cancelCause(nil) results := make(chan itemOrErr[ObjectInfo], workerSize) go func() { prefixes := r.Prefix.F() if len(prefixes) == 0 { prefixes = []string{""} } for _, prefix := range prefixes { prefixResultCh := make(chan itemOrErr[ObjectInfo], workerSize) err := api.Walk(ctx, r.Bucket, prefix, prefixResultCh, WalkOptions{
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Sep 18 17:59:03 UTC 2024 - 21.9K bytes - Viewed (0) -
cmd/batch-rotate.go
return err } wk, err := workers.New(workerSize) if err != nil { // invalid worker size. return err } ctx, cancel := context.WithCancel(ctx) results := make(chan itemOrErr[ObjectInfo], 100) if err := api.Walk(ctx, r.Bucket, r.Prefix, results, WalkOptions{ Marker: lastObject, Filter: selectObj, }); err != nil { cancel()
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Sep 18 17:59:03 UTC 2024 - 14.7K bytes - Viewed (0) -
cmd/object-api-interface.go
// Walk lists all objects including versions, delete markers. Walk(ctx context.Context, bucket, prefix string, results chan<- itemOrErr[ObjectInfo], opts WalkOptions) error // Object operations. // GetObjectNInfo returns a GetObjectReader that satisfies the // ReadCloser interface. The Close method runs any cleanup
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 22 21:57:20 UTC 2024 - 17.3K bytes - Viewed (0) -
cmd/utils.go
select { case <-ctx.Done(): return ctx.Err() case <-time.After(d): } return nil } // helper type to return either item or error. type itemOrErr[V any] struct { Item V Err error } func filterStorageClass(ctx context.Context, s string) string { // Veeam 14.0 and later clients are not compatible with custom storage classes.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Aug 13 22:22:04 UTC 2024 - 31.9K bytes - Viewed (0)