internal/component: Check for provisionable

This commit is contained in:
Tom Wiesing 2022-12-13 10:10:51 +01:00
parent 5053c982aa
commit 2a308ee03c
No known key found for this signature in database
6 changed files with 24 additions and 20 deletions

View file

@ -17,6 +17,10 @@ type Meta struct {
sc map[string]*Storage
}
var (
_ component.Provisionable = (*Meta)(nil)
)
// Storage returns a Storage for the instance with the given slug.
// When slug is nil, returns a global storage.
func (meta *Meta) Storage(slug string) *Storage {