forked from TrueCloudLab/lego
Change name of AgreeToTos to AgreeToTOS.
According to https://github.com/golang/go/wiki/CodeReviewComments#initialisms
This commit is contained in:
parent
899ca37a80
commit
3ddf33c8c3
2 changed files with 6 additions and 6 deletions
|
@ -41,17 +41,17 @@ NAME:
|
||||||
|
|
||||||
USAGE:
|
USAGE:
|
||||||
./lego [global options] command [command options] [arguments...]
|
./lego [global options] command [command options] [arguments...]
|
||||||
|
|
||||||
VERSION:
|
VERSION:
|
||||||
0.0.2
|
0.0.2
|
||||||
|
|
||||||
COMMANDS:
|
COMMANDS:
|
||||||
run Register an account, then create and install a certificate
|
run Register an account, then create and install a certificate
|
||||||
auth Create a certificate - must already have an account
|
auth Create a certificate - must already have an account
|
||||||
revoke Revoke a certificate
|
revoke Revoke a certificate
|
||||||
renew Renew a certificate
|
renew Renew a certificate
|
||||||
help, h Shows a list of commands or help for one command
|
help, h Shows a list of commands or help for one command
|
||||||
|
|
||||||
GLOBAL OPTIONS:
|
GLOBAL OPTIONS:
|
||||||
--domains, -d [--domains option --domains option] Add domains to the process
|
--domains, -d [--domains option --domains option] Add domains to the process
|
||||||
--server, -s "https://acme-staging.api.letsencrypt.org/" CA hostname (and optionally :port). The server certificate must be trusted in order to avoid further modifications to the client.
|
--server, -s "https://acme-staging.api.letsencrypt.org/" CA hostname (and optionally :port). The server certificate must be trusted in order to avoid further modifications to the client.
|
||||||
|
@ -112,7 +112,7 @@ myUser.Registration = reg
|
||||||
|
|
||||||
// The client has a URL to the current Let's Encrypt Subscriber
|
// The client has a URL to the current Let's Encrypt Subscriber
|
||||||
// Agreement. The user will need to agree to it.
|
// Agreement. The user will need to agree to it.
|
||||||
err = client.AgreeToTos()
|
err = client.AgreeToTOS()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
|
@ -131,9 +131,9 @@ func (c *Client) Register() (*RegistrationResource, error) {
|
||||||
return reg, nil
|
return reg, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// AgreeToTos updates the Client registration and sends the agreement to
|
// AgreeToTOS updates the Client registration and sends the agreement to
|
||||||
// the server.
|
// the server.
|
||||||
func (c *Client) AgreeToTos() error {
|
func (c *Client) AgreeToTOS() error {
|
||||||
c.user.GetRegistration().Body.Agreement = c.user.GetRegistration().TosURL
|
c.user.GetRegistration().Body.Agreement = c.user.GetRegistration().TosURL
|
||||||
c.user.GetRegistration().Body.Resource = "reg"
|
c.user.GetRegistration().Body.Resource = "reg"
|
||||||
jsonBytes, err := json.Marshal(&c.user.GetRegistration().Body)
|
jsonBytes, err := json.Marshal(&c.user.GetRegistration().Body)
|
||||||
|
|
Loading…
Reference in a new issue