resource push
This commit is contained in:
parent
094ae0a7f0
commit
94b45387fb
@ -11,10 +11,19 @@ import (
|
|||||||
// http://www.inanzzz.com/index.php/post/wqbs/a-basic-usage-of-int-and-string-enum-types-in-golang
|
// http://www.inanzzz.com/index.php/post/wqbs/a-basic-usage-of-int-and-string-enum-types-in-golang
|
||||||
type AbstractResource struct {
|
type AbstractResource struct {
|
||||||
utils.AbstractObject
|
utils.AbstractObject
|
||||||
ShortDescription string `json:"short_description,omitempty" bson:"short_description,omitempty" validate:"required"`
|
ShortDescription string `json:"short_description,omitempty" bson:"short_description,omitempty" validate:"required"`
|
||||||
Description string `json:"description,omitempty" bson:"description,omitempty"`
|
Description string `json:"description,omitempty" bson:"description,omitempty"`
|
||||||
Logo string `json:"logo,omitempty" bson:"logo,omitempty" validate:"required"`
|
Logo string `json:"logo,omitempty" bson:"logo,omitempty" validate:"required"`
|
||||||
Owner string `json:"owner,omitempty" bson:"owner,omitempty" validate:"required"`
|
Owner string `json:"owner,omitempty" bson:"owner,omitempty" validate:"required"`
|
||||||
OwnerLogo string `json:"owner_logo,omitempty" bson:"owner_logo,omitempty"`
|
OwnerLogo string `json:"owner_logo,omitempty" bson:"owner_logo,omitempty"`
|
||||||
SourceUrl string `json:"source_url,omitempty" bson:"source_url,omitempty" validate:"required"`
|
SourceUrl string `json:"source_url,omitempty" bson:"source_url,omitempty" validate:"required"`
|
||||||
|
Proxy *ResourceProxy `json:"proxy,omitempty" bson:"proxy,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type ResourceProxy struct {
|
||||||
|
Host string `json:"host,omitempty" bson:"host,omitempty"`
|
||||||
|
Port int `json:"port,omitempty" bson:"port,omitempty"`
|
||||||
|
Command string `json:"command,omitempty" bson:"command,omitempty"`
|
||||||
|
Args []string `json:"args,omitempty" bson:"args,omitempty"`
|
||||||
|
EnvArgs map[string]interface{} `json:"env_args,omitempty" bson:"env_args,omitempty"`
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user