MCPcopy
hub / github.com/akuity/kargo / client

Struct client

pkg/server/kubernetes/client.go:144–156  ·  view source on GitHub ↗

client implements Client.

Source from the content-addressed store, hash-verified

142
143// client implements Client.
144type client struct {
145 internalClient libClient.WithWatch
146 opts ClientOptions
147
148 getAuthorizedClientFn func(
149 ctx context.Context,
150 internalClient libClient.WithWatch,
151 verb string,
152 gvr schema.GroupVersionResource,
153 subresource string,
154 key libClient.ObjectKey,
155 ) (libClient.WithWatch, error)
156}
157
158// NewClient returns an implementation of the Client interface. The interface
159// and implementation offer two key advantages:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected