[minor] rename PostInvestigatorAPIKey to PostInvestigatorAPIKeyStatus

This commit is contained in:
Aaron Meihm 2017-04-12 09:26:10 -05:00
Родитель b63dbe2aee
Коммит 0b591df768
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -1134,7 +1134,7 @@ func (cli Client) PostInvestigatorStatus(iid float64, newstatus string) (err err
return
}
// PostInvestigatorAPIKey is used to either enable or disable API key based access
// PostInvestigatorAPIKeyStatus is used to either enable or disable API key based access
// to the MIG API for an investigator. API key based access to the API can be used in
// place of X-PGPAUTHORIZATION API authentication.
//
@ -1142,7 +1142,7 @@ func (cli Client) PostInvestigatorStatus(iid float64, newstatus string) (err err
// assigned key. newstatus should be set to either 'active' or 'disabled'. If a key already
// exists for an investigator, calling this with a status of 'active' will cause the existing
// key to be replaced.
func (cli Client) PostInvestigatorAPIKey(iid float64, newstatus string) (inv mig.Investigator, err error) {
func (cli Client) PostInvestigatorAPIKeyStatus(iid float64, newstatus string) (inv mig.Investigator, err error) {
defer func() {
if e := recover(); e != nil {
err = fmt.Errorf("PostInvestigatorAPIKey() -> %v", e)

Просмотреть файл

@ -84,7 +84,7 @@ func investigatorReader(input string, cli client.Client) (err error) {
break
}
}
retinv, err := cli.PostInvestigatorAPIKey(iid, newstatus)
retinv, err := cli.PostInvestigatorAPIKeyStatus(iid, newstatus)
if err != nil {
panic(err)
}