Documentation
¶
Index ¶
- Constants
- func Cooldown(ft *Fixture)
- func GetDeviceType1Name() string
- func GetDeviceType2Name() string
- func GetDeviceType3Name() string
- func PickNodeIndex(nodes []corev1.Node) (int, bool)
- func PopNodeName(nodeNames sets.String) (string, bool)
- func RandomizeName(baseName string) string
- func Skip(ft *Fixture, message string)
- func Skipf(ft *Fixture, format string, args ...interface{})
- func Teardown(ft *Fixture) error
- func WaitForNRTSettle(fxt *Fixture) (*nrtv1alpha2.NodeResourceTopologyList, error)
- func WaitForPaddingPodsRunning(fxt *Fixture, paddingPods []*corev1.Pod) []string
- type Fixture
- type Options
Constants ¶
View Source
const ( OptionNone = 0 OptionRandomizeName = 1 << iota OptionAvoidCooldown = 2 << iota )
Variables ¶
This section is empty.
Functions ¶
func GetDeviceType1Name ¶
func GetDeviceType1Name() string
func GetDeviceType2Name ¶
func GetDeviceType2Name() string
func GetDeviceType3Name ¶
func GetDeviceType3Name() string
func RandomizeName ¶
func WaitForNRTSettle ¶
func WaitForNRTSettle(fxt *Fixture) (*nrtv1alpha2.NodeResourceTopologyList, error)
Types ¶
type Fixture ¶
type Fixture struct {
// Client defines the API client to run CRUD operations, that will be used for testing
Client client.Client
// K8sClient defines k8s client to run subresource operations, for example you should use it to get pod logs
K8sClient *kubernetes.Clientset
Namespace corev1.Namespace
InitialNRTList nrtv1alpha2.NodeResourceTopologyList
Skipped bool
// contains filtered or unexported fields
}
func Setup ¶
func Setup(baseName string, nrtList nrtv1alpha2.NodeResourceTopologyList) (*Fixture, error)
func SetupWithOptions ¶
func SetupWithOptions(name string, nrtList nrtv1alpha2.NodeResourceTopologyList, options Options) (*Fixture, error)
Click to show internal directories.
Click to hide internal directories.