github.com/NVIDIA/aistore@v1.3.23-0.20240517131212-7df6609be51d/xact/xreg/multiobj.go (about) 1 // Package xreg provides registry and (renew, find) functions for AIS eXtended Actions (xactions). 2 /* 3 * Copyright (c) 2018-2024, NVIDIA CORPORATION. All rights reserved. 4 */ 5 package xreg 6 7 import ( 8 "github.com/NVIDIA/aistore/api/apc" 9 "github.com/NVIDIA/aistore/core/meta" 10 ) 11 12 func RenewPutArchive(bckFrom, bckTo *meta.Bck) RenewRes { 13 return RenewBucketXact(apc.ActArchive, bckFrom, Args{Custom: bckTo}, bckFrom, bckTo) 14 } 15 16 func RenewEvictDelete(uuid, kind string, bck *meta.Bck, msg *apc.ListRange) RenewRes { 17 return RenewBucketXact(kind, bck, Args{UUID: uuid, Custom: msg}) 18 } 19 20 func RenewPrefetch(uuid string, bck *meta.Bck, msg *apc.PrefetchMsg) RenewRes { 21 return RenewBucketXact(apc.ActPrefetchObjects, bck, Args{UUID: uuid, Custom: msg}) 22 } 23 24 // kind: (apc.ActCopyObjects | apc.ActETLObjects) 25 func RenewTCObjs(kind string, custom *TCObjsArgs) RenewRes { 26 return RenewBucketXact(kind, custom.BckFrom, Args{Custom: custom}, custom.BckFrom, custom.BckTo) 27 }