Documentation
¶
Index ¶
- func FetchNoPeerDiscovery(ctx context.Context, client testClient) (apidiscoveryv2.APIGroupDiscoveryList, error)
- func FetchPeerAggregatedDiscovery(ctx context.Context, client testClient) (apidiscoveryv2.APIGroupDiscoveryList, error)
- func FetchV1DiscoveryGroups(ctx context.Context, client testClient) (metav1.APIGroupList, error)
- func FetchV1DiscoveryGroupsAtPath(ctx context.Context, client testClient, path string) (metav1.APIGroupList, error)
- func FetchV1DiscoveryLegacyGroups(ctx context.Context, client testClient) (metav1.APIGroupList, error)
- func FetchV1DiscoveryResource(ctx context.Context, client testClient, gv metav1.GroupVersion) (metav1.APIResourceList, error)
- func FetchV2Discovery(ctx context.Context, client testClient) (apidiscoveryv2.APIGroupDiscoveryList, error)
- func FindGroupVersionV1(discovery metav1.APIGroupList, gv metav1.GroupVersion) bool
- func FindGroupVersionV2(discovery apidiscoveryv2.APIGroupDiscoveryList, gv metav1.GroupVersion) *apidiscoveryv2.APIVersionDiscovery
- func NewFakeService(name string, client kubernetes.Interface, handler http.Handler) *fakeService
- func WaitForGroups(ctx context.Context, client testClient, ...) error
- func WaitForGroupsAbsent(ctx context.Context, client testClient, groups ...string) error
- func WaitForPeerAggregatedDiscoveryWithCondition(ctx context.Context, client testClient, ...) error
- func WaitForResultWithCondition(ctx context.Context, client testClient, ...) error
- func WaitForRootPaths(t *testing.T, ctx context.Context, client testClient, ...) error
- func WaitForV1GroupsWithCondition(ctx context.Context, client testClient, ...) error
- func WaitForV1ResourcesWithCondition(ctx context.Context, client testClient, gv metav1.GroupVersion, ...) error
- type FakeService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchNoPeerDiscovery ¶
func FetchNoPeerDiscovery(ctx context.Context, client testClient) (apidiscoveryv2.APIGroupDiscoveryList, error)
FetchNoPeerDiscovery explicitly requests no-peer discovery
func FetchPeerAggregatedDiscovery ¶
func FetchPeerAggregatedDiscovery(ctx context.Context, client testClient) (apidiscoveryv2.APIGroupDiscoveryList, error)
FetchPeerAggregatedDiscovery explicitly requests peer-aggregated discovery
func FetchV1DiscoveryGroups ¶
func FetchV1DiscoveryGroups(ctx context.Context, client testClient) (metav1.APIGroupList, error)
func FetchV1DiscoveryLegacyGroups ¶
func FetchV1DiscoveryLegacyGroups(ctx context.Context, client testClient) (metav1.APIGroupList, error)
func FetchV1DiscoveryResource ¶
func FetchV1DiscoveryResource(ctx context.Context, client testClient, gv metav1.GroupVersion) (metav1.APIResourceList, error)
func FetchV2Discovery ¶
func FetchV2Discovery(ctx context.Context, client testClient) (apidiscoveryv2.APIGroupDiscoveryList, error)
func FindGroupVersionV1 ¶
func FindGroupVersionV1(discovery metav1.APIGroupList, gv metav1.GroupVersion) bool
func FindGroupVersionV2 ¶
func FindGroupVersionV2(discovery apidiscoveryv2.APIGroupDiscoveryList, gv metav1.GroupVersion) *apidiscoveryv2.APIVersionDiscovery
func NewFakeService ¶
func NewFakeService(name string, client kubernetes.Interface, handler http.Handler) *fakeService
func WaitForGroups ¶
func WaitForGroups(ctx context.Context, client testClient, groups ...apidiscoveryv2.APIGroupDiscovery) error
func WaitForGroupsAbsent ¶
func WaitForPeerAggregatedDiscoveryWithCondition ¶
func WaitForPeerAggregatedDiscoveryWithCondition(ctx context.Context, client testClient, condition func(result apidiscoveryv2.APIGroupDiscoveryList) bool) error
WaitForPeerAggregatedDiscoveryWithCondition waits for peer-aggregated discovery to satisfy a condition.
func WaitForResultWithCondition ¶
func WaitForResultWithCondition(ctx context.Context, client testClient, condition func(result apidiscoveryv2.APIGroupDiscoveryList) bool) error
func WaitForRootPaths ¶ added in v1.29.0
func WaitForV1ResourcesWithCondition ¶ added in v1.27.0
func WaitForV1ResourcesWithCondition(ctx context.Context, client testClient, gv metav1.GroupVersion, condition func(result metav1.APIResourceList) bool) error
Types ¶
Click to show internal directories.
Click to hide internal directories.