Skip to content

Commit aec79f8

Browse files
committed
Chore: Go fmt SDK
1 parent 27738f4 commit aec79f8

3 files changed

Lines changed: 18 additions & 16 deletions

File tree

sdk/client/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,4 +264,4 @@ func (c *Client) ScheduleWorkload(ctx context.Context, w *types.Workload) (*type
264264
var status types.WorkloadStatus
265265
err := c.Post(ctx, "/workloads/schedule", w, &status)
266266
return &status, err
267-
}
267+
}

sdk/identity/identity.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,15 @@ func parseTTL(s string) time.Duration {
9999

100100
// Insecure + plain providers (unchanged from original)
101101
type insecureProvider struct{}
102+
102103
func NewInsecureProvider() Provider { return &insecureProvider{} }
103104
func (p *insecureProvider) TLSConfig(_ context.Context) (*tls.Config, error) {
104105
return &tls.Config{InsecureSkipVerify: true}, nil
105106
}
106107
func (p *insecureProvider) Close() error { return nil }
107108

108109
type plainTLSProvider struct{}
110+
109111
func (p *plainTLSProvider) TLSConfig(_ context.Context) (*tls.Config, error) {
110112
return &tls.Config{MinVersion: tls.VersionTLS12}, nil
111113
}
@@ -119,4 +121,4 @@ func NewProvider(ctx context.Context, opts *options.Options) (Provider, error) {
119121
return NewVaultProvider(ctx, opts.Identity, opts)
120122
}
121123
return &plainTLSProvider{}, nil
122-
}
124+
}

sdk/options/options.go

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ type Options struct {
3434
Insecure bool
3535

3636
// UseCertManager enables Vault-backed certificate management (default true).
37-
UseCertManager bool
37+
UseCertManager bool
3838
VaultManagerAddr string
3939

4040
// Identity holds service-identity configuration.
@@ -48,23 +48,23 @@ type Options struct {
4848

4949
// IdentityOptions configures service identity.
5050
type IdentityOptions struct {
51-
VaultAddr string
52-
VaultToken string
53-
PKIMount string
54-
PKIRole string
55-
ServiceName string
56-
TTL string
51+
VaultAddr string
52+
VaultToken string
53+
PKIMount string
54+
PKIRole string
55+
ServiceName string
56+
TTL string
5757
}
5858

5959
// DefaultOptions returns SDK configuration suitable for local development.
6060
func DefaultOptions() *Options {
6161
return &Options{
62-
APIEndpoint: "https://localhost:8443",
63-
GRPCEndpoint: "localhost:9090",
64-
Transport: TransportHTTP,
65-
Timeout: 30 * time.Second,
66-
Insecure: false,
67-
UseCertManager: true,
62+
APIEndpoint: "https://localhost:8443",
63+
GRPCEndpoint: "localhost:9090",
64+
Transport: TransportHTTP,
65+
Timeout: 30 * time.Second,
66+
Insecure: false,
67+
UseCertManager: true,
6868
VaultManagerAddr: "localhost:50069", // default
6969
Identity: IdentityOptions{
7070
PKIMount: "pki",
@@ -103,4 +103,4 @@ func WithTransport(opts *Options, transport string) *Options {
103103
cp := *opts
104104
cp.Transport = transport
105105
return &cp
106-
}
106+
}

0 commit comments

Comments
 (0)