diff options
Diffstat (limited to 'api/resource.go')
| -rw-r--r-- | api/resource.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/api/resource.go b/api/resource.go new file mode 100644 index 0000000..e254e1b --- /dev/null +++ b/api/resource.go @@ -0,0 +1,17 @@ +package api + +import ( + internal "codeberg.org/snonux/gonf/internal/resource" +) + +// Resource represents a system resource managed by gonfs. +// It is an interface to hide the internal implementation details +// of the resource registry. +type Resource interface { + ID() string + String() string +} + +func Apply() error { + return internal.Apply() +} |
