testing

package
Version: v0.0.0-...-ec175e0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ServerPreferredResources

func ServerPreferredResources(fake *ServerResourcesFake) ([]*metav1.APIResourceList, error)

Types

type ServerResourcesFake

type ServerResourcesFake struct {
	Empty           bool
	NoVerbs         bool
	Err             bool
	Namespaced      bool
	APIResourceList []*metav1.APIResourceList

	ServerPreferredResourcesFn func(*ServerResourcesFake) ([]*metav1.APIResourceList, error)
}

func (ServerResourcesFake) ServerGroupsAndResources

func (s ServerResourcesFake) ServerGroupsAndResources() ([]*metav1.APIGroup, []*metav1.APIResourceList, error)

ServerResources returns the supported groups and resources for all groups and versions.

The returned group and resource lists might be non-nil with partial results even in the case of non-nil error.

func (ServerResourcesFake) ServerPreferredNamespacedResources

func (s ServerResourcesFake) ServerPreferredNamespacedResources() ([]*metav1.APIResourceList, error)

ServerPreferredNamespacedResources returns the supported namespaced resources with the version preferred by the server.

The returned resource list might be non-nil with partial results even in the case of non-nil error.

func (ServerResourcesFake) ServerPreferredResources

func (s ServerResourcesFake) ServerPreferredResources() ([]*metav1.APIResourceList, error)

ServerPreferredResources returns the supported resources with the version preferred by the server.

The returned group and resource lists might be non-nil with partial results even in the case of non-nil error.

func (ServerResourcesFake) ServerResources deprecated

This method has been deprecated.
func (s ServerResourcesFake) ServerResources() ([]*metav1.APIResourceList, error)

ServerResources returns the supported resources for all groups and versions.

The returned resource list might be non-nil with partial results even in the case of non-nil error.

Deprecated: use ServerGroupsAndResources instead.

func (ServerResourcesFake) ServerResourcesForGroupVersion

func (s ServerResourcesFake) ServerResourcesForGroupVersion(groupVersion string) (*metav1.APIResourceList, error)

ServerResourcesForGroupVersion returns the supported resources for a group and version.

type SubjectAccessFake

type SubjectAccessFake struct {
	CreateFn func(*SubjectAccessFake) (*v1.SelfSubjectAccessReview, error)
}

func (SubjectAccessFake) Create

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL