Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterValidators ¶
func RegisterValidators(validate *validator.Validate) error
RegisterValidators registers custom container validation handlers with the validator
Types ¶
type Container ¶
type Container struct { ID primitive.ObjectID `json:"id" bson:"_id,omitempty"` Users []primitive.ObjectID `json:"users"` Image string `json:"image" validate:"required"` Ports []string `json:"ports" validate:"required,portmap"` Env map[string]string `json:"env"` }
Container stores a single container
Click to show internal directories.
Click to hide internal directories.