summaryrefslogtreecommitdiff
path: root/api/resource.go
blob: e254e1b4b6541af857ede34c58f333ccb1dc1545 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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()
}