add volumes to container
This commit is contained in:
parent
be976bd8ed
commit
aaef5334ce
@ -9,11 +9,17 @@ import (
|
|||||||
"cloud.o-forge.io/core/oc-lib/tools"
|
"cloud.o-forge.io/core/oc-lib/tools"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
type Volume struct {
|
||||||
|
Name string `json:"name,omitempty" bson:"name,omitempty"` // Name is the volume name
|
||||||
|
Path string `json:"path,omitempty" bson:"path,omitempty"` // Path is the volume path
|
||||||
|
}
|
||||||
|
|
||||||
type Container struct {
|
type Container struct {
|
||||||
Image string `json:"image,omitempty" bson:"image,omitempty"` // Image is the container image
|
Image string `json:"image,omitempty" bson:"image,omitempty"` // Image is the container image
|
||||||
Command string `json:"command,omitempty" bson:"command,omitempty"` // Command is the container command
|
Command string `json:"command,omitempty" bson:"command,omitempty"` // Command is the container command
|
||||||
Args string `json:"args,omitempty" bson:"args,omitempty"` // Args is the container arguments
|
Args string `json:"args,omitempty" bson:"args,omitempty"` // Args is the container arguments
|
||||||
Env map[string]string `json:"env,omitempty" bson:"env,omitempty"` // Env is the container environment variables
|
Env map[string]string `json:"env,omitempty" bson:"env,omitempty"` // Env is the container environment variables
|
||||||
|
Volumes []Volume
|
||||||
}
|
}
|
||||||
|
|
||||||
type Execute struct {
|
type Execute struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user