"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "vendor/code.gitea.io/sdk/gitea/settings.go" between
gitea-1.13.1.tar.gz and gitea-1.13.2.tar.gz

About: Gitea allows to set up a self-hosted code hosting Git service (a fork of Gogs).

settings.go  (gitea-1.13.1):settings.go  (gitea-1.13.2)
skipping to change at line 36 skipping to change at line 36
// GlobalAttachmentSettings contains global Attachment settings exposed by API // GlobalAttachmentSettings contains global Attachment settings exposed by API
type GlobalAttachmentSettings struct { type GlobalAttachmentSettings struct {
Enabled bool `json:"enabled"` Enabled bool `json:"enabled"`
AllowedTypes string `json:"allowed_types"` AllowedTypes string `json:"allowed_types"`
MaxSize int64 `json:"max_size"` MaxSize int64 `json:"max_size"`
MaxFiles int `json:"max_files"` MaxFiles int `json:"max_files"`
} }
// GetGlobalUISettings get global ui settings witch are exposed by API // GetGlobalUISettings get global ui settings witch are exposed by API
func (c *Client) GetGlobalUISettings() (*GlobalUISettings, *Response, error) { func (c *Client) GetGlobalUISettings() (*GlobalUISettings, *Response, error) {
if err := c.CheckServerVersionConstraint(">=1.13.0"); err != nil { if err := c.checkServerVersionGreaterThanOrEqual(version1_13_0); err != n il {
return nil, nil, err return nil, nil, err
} }
conf := new(GlobalUISettings) conf := new(GlobalUISettings)
resp, err := c.getParsedResponse("GET", "/settings/ui", jsonHeader, nil, &conf) resp, err := c.getParsedResponse("GET", "/settings/ui", jsonHeader, nil, &conf)
return conf, resp, err return conf, resp, err
} }
// GetGlobalRepoSettings get global repository settings witch are exposed by API // GetGlobalRepoSettings get global repository settings witch are exposed by API
func (c *Client) GetGlobalRepoSettings() (*GlobalRepoSettings, *Response, error) { func (c *Client) GetGlobalRepoSettings() (*GlobalRepoSettings, *Response, error) {
if err := c.CheckServerVersionConstraint(">=1.13.0"); err != nil { if err := c.checkServerVersionGreaterThanOrEqual(version1_13_0); err != n il {
return nil, nil, err return nil, nil, err
} }
conf := new(GlobalRepoSettings) conf := new(GlobalRepoSettings)
resp, err := c.getParsedResponse("GET", "/settings/repository", jsonHeade r, nil, &conf) resp, err := c.getParsedResponse("GET", "/settings/repository", jsonHeade r, nil, &conf)
return conf, resp, err return conf, resp, err
} }
// GetGlobalAPISettings get global api settings witch are exposed by it // GetGlobalAPISettings get global api settings witch are exposed by it
func (c *Client) GetGlobalAPISettings() (*GlobalAPISettings, *Response, error) { func (c *Client) GetGlobalAPISettings() (*GlobalAPISettings, *Response, error) {
if err := c.CheckServerVersionConstraint(">=1.13.0"); err != nil { if err := c.checkServerVersionGreaterThanOrEqual(version1_13_0); err != n il {
return nil, nil, err return nil, nil, err
} }
conf := new(GlobalAPISettings) conf := new(GlobalAPISettings)
resp, err := c.getParsedResponse("GET", "/settings/api", jsonHeader, nil, &conf) resp, err := c.getParsedResponse("GET", "/settings/api", jsonHeader, nil, &conf)
return conf, resp, err return conf, resp, err
} }
// GetGlobalAttachmentSettings get global repository settings witch are exposed by API // GetGlobalAttachmentSettings get global repository settings witch are exposed by API
func (c *Client) GetGlobalAttachmentSettings() (*GlobalAttachmentSettings, *Resp onse, error) { func (c *Client) GetGlobalAttachmentSettings() (*GlobalAttachmentSettings, *Resp onse, error) {
if err := c.CheckServerVersionConstraint(">=1.13.0"); err != nil { if err := c.checkServerVersionGreaterThanOrEqual(version1_13_0); err != n il {
return nil, nil, err return nil, nil, err
} }
conf := new(GlobalAttachmentSettings) conf := new(GlobalAttachmentSettings)
resp, err := c.getParsedResponse("GET", "/settings/attachment", jsonHeade r, nil, &conf) resp, err := c.getParsedResponse("GET", "/settings/attachment", jsonHeade r, nil, &conf)
return conf, resp, err return conf, resp, err
} }
 End of changes. 4 change blocks. 
4 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)