testhelpers

package
v1.11.5-rc.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDirEmpty

func IsDirEmpty(name string) (bool, error)

Types

type FakeDiscoveryWithSPR

type FakeDiscoveryWithSPR struct {
	*fakediscovery.FakeDiscovery
}

FakeDiscoveryWithSPR overrides ServerPreferredResources because client-go always returns (nil, nil).

func (*FakeDiscoveryWithSPR) ServerPreferredResources

func (d *FakeDiscoveryWithSPR) ServerPreferredResources() ([]*metav1.APIResourceList, error)

type File

type File struct {
	Name    string
	Content string
}

type GatherDump

type GatherDump struct {
	EmptyDirs []string
	Files     []File
}

func ReadGatherDump

func ReadGatherDump(gatherPath string) (*GatherDump, error)

func (*GatherDump) Sort

func (gd *GatherDump) Sort()

Jump to

Keyboard shortcuts

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