add types.go

pull/227/head
iwilltry42 5 years ago
parent 460ff827f4
commit 9a1421102b
  1. 20
      cli/types.go

@ -0,0 +1,20 @@
package run
// Node describes a k3d node (= docker container)
type Node struct {
Name string
Role string
Image string
Volumes []string
Env []string
Args []string
Ports []string
Restart bool
}
// Cluster describes a k3d cluster (nodes, combined in a network)
type Cluster struct {
Name string
Network string
Nodes []Node
}
Loading…
Cancel
Save