summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-07-06 10:14:39 +0300
committerPaul Buetow <paul@buetow.org>2026-07-06 10:14:39 +0300
commitf7498c9ae626b9ab654fe6eb736e19c62cf5d38d (patch)
tree65e79446bd327633af779b3a1796e0da269a1530 /api/api.go
parent72cf1553e87bef43a4d988896d98034ddfbc018c (diff)
refactor
Diffstat (limited to 'api/api.go')
-rw-r--r--api/api.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/api/api.go b/api/api.go
index d82c2c8..f4ec70e 100644
--- a/api/api.go
+++ b/api/api.go
@@ -10,7 +10,7 @@ import (
// File creates a file resource.
func File(path string, opts ...option.Option) resource.Resource {
- return file.Have(path, opts...)
+ return file.Present(path, opts...)
}
// NoFile creates a file resource that is ensured to be absent.
@@ -20,7 +20,7 @@ func NoFile(path string, opts ...option.Option) resource.Resource {
// Dir creates a directory resource.
func Dir(path string, opts ...option.Option) resource.Resource {
- return dir.Have(path, opts...)
+ return dir.Present(path, opts...)
}
// NoDir creates a directory resource that is ensured to be absent.
@@ -30,7 +30,7 @@ func NoDir(path string, opts ...option.Option) resource.Resource {
// Link creates a link resource (symbolic or hard).
func Link(path string, opts ...option.Option) resource.Resource {
- return link.Have(path, opts...)
+ return link.Present(path, opts...)
}
// NoLink creates a link resource that is ensured to be absent.