@@ -10,7 +10,7 @@ import (
1010)
1111
1212// CreateEnvironment creates the environment.
13- func (c * Client ) CreateEnvironment (create * api.EnvironmentCreate ) (* api.Environment , error ) {
13+ func (c * client ) CreateEnvironment (create * api.EnvironmentCreate ) (* api.Environment , error ) {
1414 payload , err := json .Marshal (create )
1515 if err != nil {
1616 return nil , err
@@ -36,7 +36,7 @@ func (c *Client) CreateEnvironment(create *api.EnvironmentCreate) (*api.Environm
3636}
3737
3838// GetEnvironment gets the environment by id.
39- func (c * Client ) GetEnvironment (environmentID int ) (* api.Environment , error ) {
39+ func (c * client ) GetEnvironment (environmentID int ) (* api.Environment , error ) {
4040 req , err := http .NewRequest ("GET" , fmt .Sprintf ("%s/environment/%d" , c .HostURL , environmentID ), nil )
4141 if err != nil {
4242 return nil , err
@@ -57,7 +57,7 @@ func (c *Client) GetEnvironment(environmentID int) (*api.Environment, error) {
5757}
5858
5959// ListEnvironment finds all environments.
60- func (c * Client ) ListEnvironment () ([]* api.Environment , error ) {
60+ func (c * client ) ListEnvironment () ([]* api.Environment , error ) {
6161 req , err := http .NewRequest ("GET" , fmt .Sprintf ("%s/environment" , c .HostURL ), nil )
6262 if err != nil {
6363 return nil , err
@@ -78,7 +78,7 @@ func (c *Client) ListEnvironment() ([]*api.Environment, error) {
7878}
7979
8080// UpdateEnvironment updates the environment.
81- func (c * Client ) UpdateEnvironment (environmentID int , patch * api.EnvironmentPatch ) (* api.Environment , error ) {
81+ func (c * client ) UpdateEnvironment (environmentID int , patch * api.EnvironmentPatch ) (* api.Environment , error ) {
8282 payload , err := json .Marshal (patch )
8383 if err != nil {
8484 return nil , err
@@ -104,7 +104,7 @@ func (c *Client) UpdateEnvironment(environmentID int, patch *api.EnvironmentPatc
104104}
105105
106106// DeleteEnvironment deletes the environment.
107- func (c * Client ) DeleteEnvironment (environmentID int ) error {
107+ func (c * client ) DeleteEnvironment (environmentID int ) error {
108108 req , err := http .NewRequest ("DELETE" , fmt .Sprintf ("%s/environment/%d" , c .HostURL , environmentID ), nil )
109109 if err != nil {
110110 return err
0 commit comments