Documentation ¶
Index ¶
- func AssertStructFields(t *testing.T, expectations map[string]interface{}, actual interface{}) bool
- func CheckStructFields(expectations map[string]interface{}, actual interface{}) (field.ErrorList, error)
- func ExampleEtcdBackup(namespace string) *etcdv1alpha1.EtcdBackup
- func ExampleEtcdBackupSchedule(namespace string) *etcdv1alpha1.EtcdBackupSchedule
- func ExampleEtcdCluster(namespace string) *etcdv1alpha1.EtcdCluster
- func ExampleEtcdPeer(namespace string) *etcdv1alpha1.EtcdPeer
- type TestLogger
- func (_ TestLogger) Enabled() bool
- func (log TestLogger) Error(err error, msg string, args ...interface{})
- func (log TestLogger) Info(msg string, args ...interface{})
- func (log TestLogger) V(v int) logr.InfoLogger
- func (log TestLogger) WithName(name string) logr.Logger
- func (log TestLogger) WithValues(values ...interface{}) logr.Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertStructFields ¶
func CheckStructFields ¶
func CheckStructFields(expectations map[string]interface{}, actual interface{}) (field.ErrorList, error)
CheckStructFields asserts that the struct fields referenced by the supplied expectation path, have a value equal to the expectation value.
func ExampleEtcdBackup ¶
func ExampleEtcdBackup(namespace string) *etcdv1alpha1.EtcdBackup
func ExampleEtcdBackupSchedule ¶
func ExampleEtcdBackupSchedule(namespace string) *etcdv1alpha1.EtcdBackupSchedule
func ExampleEtcdCluster ¶
func ExampleEtcdCluster(namespace string) *etcdv1alpha1.EtcdCluster
ExampleEtcdCluster returns a valid example for testing purposes.
func ExampleEtcdPeer ¶
func ExampleEtcdPeer(namespace string) *etcdv1alpha1.EtcdPeer
ExampleEtcdPeer returns a valid example for testing purposes.
Types ¶
type TestLogger ¶
TestLogger is a logr.Logger that prints through a testing.T object.
func (TestLogger) Enabled ¶
func (_ TestLogger) Enabled() bool
func (TestLogger) Error ¶
func (log TestLogger) Error(err error, msg string, args ...interface{})
func (TestLogger) Info ¶
func (log TestLogger) Info(msg string, args ...interface{})
func (TestLogger) V ¶
func (log TestLogger) V(v int) logr.InfoLogger
func (TestLogger) WithValues ¶
func (log TestLogger) WithValues(values ...interface{}) logr.Logger
Click to show internal directories.
Click to hide internal directories.