pkg/zones: WIP

Signed-off-by: Alejandro Mery <amery@jpi.io>
This commit is contained in:
2023-08-21 17:51:44 +00:00
parent a3f8e2fee3
commit 68966dd9ad
3 changed files with 31 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
// Package zones abstracts the cluster zones
package zones
import "io"
// WriteEnv generates environment variables for shell scripts
func (*Zones) WriteEnv(io.Writer) error {
return nil
}
+5
View File
@@ -0,0 +1,5 @@
package zones
func (*Zones) Scan() error {
return nil
}
+17
View File
@@ -0,0 +1,17 @@
package zones
type Zones struct {
basedir string
}
func New(dir string) (*Zones, error) {
z := &Zones{
basedir: dir,
}
if err := z.Scan(); err != nil {
return nil, err
}
return z, nil
}