github.com/naphatkrit/deis@v1.12.3/client/controller/api/config.go (about)

     1  package api
     2  
     3  // ConfigSet is the definition of POST /v1/apps/<app id>/config/.
     4  type ConfigSet struct {
     5  	Values map[string]string `json:"values"`
     6  }
     7  
     8  // ConfigUnset is the definition of POST /v1/apps/<app id>/config/.
     9  type ConfigUnset struct {
    10  	Values map[string]interface{} `json:"values"`
    11  }
    12  
    13  // Config is the structure of an app's config.
    14  type Config struct {
    15  	Owner   string                 `json:"owner,omitempty"`
    16  	App     string                 `json:"app,omitempty"`
    17  	Values  map[string]interface{} `json:"values,omitempty"`
    18  	Memory  map[string]interface{} `json:"memory,omitempty"`
    19  	CPU     map[string]interface{} `json:"cpu,omitempty"`
    20  	Tags    map[string]interface{} `json:"tags,omitempty"`
    21  	Created string                 `json:"created,omitempty"`
    22  	Updated string                 `json:"updated,omitempty"`
    23  	UUID    string                 `json:"uuid,omitempty"`
    24  }