circleci.go
func (c *Client) AddSSHKey(account, repo, hostname, privateKey string) error {
	key := &struct {
		Hostname   string `json:"hostname"`
		PrivateKey string `json:"private_key"`
	}{hostname, privateKey}
	return c.request("POST", fmt.Sprintf("project/%s/%s/ssh-key", account, repo), nil, nil, key)
}
func (c *Client) AddSSHKey(account, repo, hostname, privateKey string) error {
	key := &struct {
		Hostname   string `json:"hostname"`
		PrivateKey string `json:"private_key"`
	}{hostname, privateKey}
	return c.request("POST", fmt.Sprintf("project/%s/%s/ssh-key", account, repo), nil, nil, key)
}
func ( c * Client ) AddSSHKey ( account , repo , hostname , privateKey string ) error { key := & struct { Hostname string `json:"hostname"` PrivateKey string `json:"private_key"` } { hostname , privateKey } return c . request ( " " , fmt . Sprintf ( " " , account , repo ) , nil , nil , key ) }
// AddSSHKey adds a new SSH key to the project
AddSSHKey adds a new SSH key to the project