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

Struct authorizingSubResourceClient

pkg/server/kubernetes/client.go:558–571  ·  view source on GitHub ↗

authorizingSubResourceClient implements libClient.SubResourceClient.

Source from the content-addressed store, hash-verified

556
557// authorizingSubResourceClient implements libClient.SubResourceClient.
558type authorizingSubResourceClient struct {
559 subResourceType string
560
561 internalClient libClient.WithWatch
562
563 getAuthorizedClientFn func(
564 ctx context.Context,
565 internalClient libClient.WithWatch,
566 verb string,
567 gvr schema.GroupVersionResource,
568 subresource string,
569 key libClient.ObjectKey,
570 ) (libClient.WithWatch, error)
571}
572
573func (a *authorizingSubResourceClient) Get(
574 ctx context.Context,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected