Action category policy, governing the modification of files and directories
(ctx context.Context, upstreams []*upstream.Fs, path string)
| 28 | |
| 29 | // Action category policy, governing the modification of files and directories |
| 30 | func (p *Rand) Action(ctx context.Context, upstreams []*upstream.Fs, path string) ([]*upstream.Fs, error) { |
| 31 | upstreams, err := p.All.Action(ctx, upstreams, path) |
| 32 | if err != nil { |
| 33 | return nil, err |
| 34 | } |
| 35 | return []*upstream.Fs{p.rand(upstreams)}, nil |
| 36 | } |
| 37 | |
| 38 | // ActionEntries is ACTION category policy but receiving a set of candidate entries |
| 39 | func (p *Rand) ActionEntries(entries ...upstream.Entry) ([]upstream.Entry, error) { |