MCPcopy Create free account
hub / github.com/cloudnative-pg/cloudnative-pg / List

Function List

tests/utils/objects/objects.go:80–100  ·  view source on GitHub ↗

List retrieves a list of objects

(
	ctx context.Context,
	crudClient client.Client,
	objectList client.ObjectList,
	opts ...client.ListOption,
)

Source from the content-addressed store, hash-verified

78
79// List retrieves a list of objects
80func List(
81 ctx context.Context,
82 crudClient client.Client,
83 objectList client.ObjectList,
84 opts ...client.ListOption,
85) error {
86 err := retry.New(
87 retry.Delay(PollingTime*time.Second),
88 retry.Attempts(RetryAttempts),
89 retry.DelayType(retry.FixedDelay)).
90 Do(
91 func() error {
92 err := crudClient.List(ctx, objectList, opts...)
93 if err != nil {
94 return err
95 }
96 return nil
97 },
98 )
99 return err
100}
101
102// Get retrieves an object for the given object key from the Kubernetes Cluster
103func Get(

Callers 11

EnsureNamespaceFunction · 0.92
DumpNamespaceObjectsFunction · 0.92
GetMutatingWebhookByNameFunction · 0.92
GetDeploymentFunction · 0.92
GetPodFunction · 0.92
DeleteCSVFunction · 0.92
ListFunction · 0.92
ListPodsFunction · 0.92
GetPrimaryFunction · 0.92
GetReplicasFunction · 0.92

Calls 1

ListMethod · 0.45

Tested by

no test coverage detected