Skip to content

Commit 8964e00

Browse files
committed
Go syntax formatting for 1.25.0
Fixed the format for 'make format' for a lot of the comments.
1 parent ed6a605 commit 8964e00

36 files changed

+138
-193
lines changed

app/puppet-access/api/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package api
22

33
import "github.com/puppetlabs/pe-sdk-go/app/puppet-access/api/client"
44

5-
//Client is interface to the api client
5+
// Client is interface to the api client
66
type Client interface {
77
GetClient() (*client.PuppetAccess, error)
88
}

app/puppet-access/api/client/operations/login_parameters.go

Lines changed: 4 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/puppet-access/api/client/operations/login_responses.go

Lines changed: 14 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/puppet-access/api/client/operations/operations_client.go

Lines changed: 2 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/puppet-access/api/swaggerclient.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,25 @@ import (
1414
"github.com/puppetlabs/pe-sdk-go/log/loglevel"
1515
)
1616

17-
//SwaggerClientCfg represent a pe-sdk-go swagger client config
17+
// SwaggerClientCfg represent a pe-sdk-go swagger client config
1818
type SwaggerClientCfg struct {
1919
Login, Password, Lifetime, URL, Label, Cacert, Username string
2020
UseCNVerification bool
2121
}
2222

23-
//SwaggerClient represents a pe-sdk-go swagger client
23+
// SwaggerClient represents a pe-sdk-go swagger client
2424
type SwaggerClient struct {
2525
SwaggerClientCfg
2626
}
2727

28-
//NewClient creates a new NewClient
28+
// NewClient creates a new NewClient
2929
func NewClient(cfg SwaggerClientCfg) Client {
3030
return &SwaggerClient{
3131
cfg,
3232
}
3333
}
3434

35-
//GetClient configures and creates a swagger generated client
35+
// GetClient configures and creates a swagger generated client
3636
func (sc *SwaggerClient) GetClient() (*client.PuppetAccess, error) {
3737
if sc.URL == "" {
3838
err := fmt.Errorf("Please provide the service URL. For example, `puppet-access login [username] --service-url https://<HOSTNAME OF PUPPET ENTERPRISE CONSOLE>:4433/rbac-ap`")

app/puppet-access/puppet-access.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"github.com/puppetlabs/pe-sdk-go/app/puppet-access/api"
55
)
66

7-
//PuppetAccessCfg config
7+
// PuppetAccessCfg config
88
type PuppetAccessCfg struct {
99
Username string
1010
Password string

app/puppet-code/api/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package api
22

33
import "github.com/puppetlabs/pe-sdk-go/app/puppet-code/api/client"
44

5-
//Client is interface to the api client
5+
// Client is interface to the api client
66
type Client interface {
77
GetClient() (*client.PuppetCode, error)
88
}

app/puppet-code/api/client/operations/deploy_parameters.go

Lines changed: 4 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/puppet-code/api/client/operations/deploy_responses.go

Lines changed: 10 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/puppet-code/api/client/operations/get_status_parameters.go

Lines changed: 4 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)