equals func on exec + draft container subobject
This commit is contained in:
@@ -16,6 +16,12 @@ type Container struct {
|
||||
Env string `json:"env,omitempty" bson:"env,omitempty"` // Env is the container environment variables
|
||||
}
|
||||
|
||||
type Execute struct {
|
||||
Port int `json:"port,omitempty" bson:"port,omitempty"` // Port is the port
|
||||
Reverse string `json:"reverse,omitempty" bson:"reverse,omitempty"` // Reverse is the reverse
|
||||
PAT int `json:"pat,omitempty" bson:"pat,omitempty"` // PAT is the PAT
|
||||
}
|
||||
|
||||
/*
|
||||
* ProcessingResource is a struct that represents a processing resource
|
||||
* it defines the resource processing
|
||||
@@ -30,6 +36,7 @@ type ProcessingResource struct {
|
||||
ScalingModel uint `bson:"scaling_model,omitempty" json:"scaling_model,omitempty"` // ScalingModel is the scaling model
|
||||
DiskIO string `bson:"disk_io,omitempty" json:"disk_io,omitempty"` // DiskIO is the disk IO
|
||||
Container Container `bson:"container,omitempty" json:"container,omitempty"` // Container is the container
|
||||
Execute []Execute `bson:"execute,omitempty" json:"execute,omitempty"` // Execute is the execution
|
||||
}
|
||||
|
||||
func (dma *ProcessingResource) Deserialize(j map[string]interface{}) utils.DBObject {
|
||||
|
Reference in New Issue
Block a user