(ctx context.Context, path string, args *GetArgs)
| 38 | } |
| 39 | |
| 40 | func Get(ctx context.Context, path string, args *GetArgs) (model.Obj, error) { |
| 41 | res, err := get(ctx, path) |
| 42 | if err != nil { |
| 43 | if !args.NoLog { |
| 44 | log.Warnf("failed get %s: %s", path, err) |
| 45 | } |
| 46 | return nil, err |
| 47 | } |
| 48 | return res, nil |
| 49 | } |
| 50 | |
| 51 | func Link(ctx context.Context, path string, args model.LinkArgs) (*model.Link, model.Obj, error) { |
| 52 | res, file, err := link(ctx, path, args) |
no test coverage detected