discovery

package
v1.27.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchV1DiscoveryGroups

func FetchV1DiscoveryGroups(ctx context.Context, client testClient) (metav1.APIGroupList, error)

func FetchV1DiscoveryGroupsAtPath

func FetchV1DiscoveryGroupsAtPath(ctx context.Context, client testClient, path string) (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) (apidiscoveryv2beta1.APIGroupDiscoveryList, error)

func FindGroupVersionV1

func FindGroupVersionV1(discovery metav1.APIGroupList, gv metav1.GroupVersion) bool

func NewFakeService

func NewFakeService(name string, client kubernetes.Interface, handler http.Handler) *fakeService

func WaitForGroups

func WaitForGroups(ctx context.Context, client testClient, groups ...apidiscoveryv2beta1.APIGroupDiscovery) error

func WaitForGroupsAbsent

func WaitForGroupsAbsent(ctx context.Context, client testClient, groups ...string) error

func WaitForResultWithCondition

func WaitForResultWithCondition(ctx context.Context, client testClient, condition func(result apidiscoveryv2beta1.APIGroupDiscoveryList) bool) error

func WaitForV1GroupsWithCondition

func WaitForV1GroupsWithCondition(ctx context.Context, client testClient, condition func(result metav1.APIGroupList) bool) error

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

type FakeService

type FakeService interface {
	Run(ctx context.Context) error
	Port() *int32
	Name() string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL