internal/component: Check for provisionable
This commit is contained in:
parent
5053c982aa
commit
2a308ee03c
6 changed files with 24 additions and 20 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue