MCPcopy
hub / github.com/marmotedu/iam / RESTClientGetter

Interface RESTClientGetter

pkg/cli/genericclioptions/config_flags.go:42–47  ·  view source on GitHub ↗

RESTClientGetter is an interface that the ConfigFlags describe to provide an easier way to mock for commands and eliminate the direct coupling to a struct type. Users may wish to duplicate this type in their own packages as per the golang type overlapping.

Source from the content-addressed store, hash-verified

40// and eliminate the direct coupling to a struct type. Users may wish to duplicate this type in their own packages
41// as per the golang type overlapping.
42type RESTClientGetter interface {
43 // ToRESTConfig returns restconfig
44 ToRESTConfig() (*rest.Config, error)
45 // ToRawIAMConfigLoader return iamconfig loader as-is
46 ToRawIAMConfigLoader() clientcmd.ClientConfig
47}
48
49var _ RESTClientGetter = &ConfigFlags{}
50

Callers 8

CompleteMethod · 0.65
CompleteMethod · 0.65
CompleteMethod · 0.65
ToRESTConfigMethod · 0.65
ToRESTConfigMethod · 0.65
ToRawIAMConfigLoaderMethod · 0.65
ToRawIAMConfigLoaderMethod · 0.65

Implementers 3

ConfigFlagspkg/cli/genericclioptions/config_flags
MatchVersionFlagsinternal/iamctl/cmd/util/iam_match_ver
factoryImplinternal/iamctl/cmd/util/factory_clien

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…