Documentation ¶
Index ¶
- func AddToFrameworkScheme(addToScheme addToSchemeFunc, obj runtime.Object) error
- func MainEntry(m *testing.M)
- type Framework
- type TestCtx
- func (ctx *TestCtx) AddFinalizerFn(fn finalizerFn)
- func (ctx *TestCtx) Cleanup(t *testing.T)
- func (ctx *TestCtx) CreateFromYAML(yamlFile []byte) error
- func (ctx *TestCtx) GetCRClient(yamlCR []byte) (*rest.RESTClient, error)
- func (ctx *TestCtx) GetID() string
- func (ctx *TestCtx) GetNamespace() (string, error)
- func (ctx *TestCtx) GetObjID() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddToFrameworkScheme ¶
Types ¶
type Framework ¶
type Framework struct { KubeConfig *rest.Config KubeClient kubernetes.Interface Scheme *runtime.Scheme DynamicClient dynclient.Client DynamicDecoder runtime.Decoder ImageName *string }
var ( // Global framework struct Global *Framework )
type TestCtx ¶
type TestCtx struct { ID string CleanUpFns []finalizerFn Namespace string CRClient *rest.RESTClient }
func (*TestCtx) AddFinalizerFn ¶
func (ctx *TestCtx) AddFinalizerFn(fn finalizerFn)
func (*TestCtx) CreateFromYAML ¶
func (*TestCtx) GetCRClient ¶
func (ctx *TestCtx) GetCRClient(yamlCR []byte) (*rest.RESTClient, error)
func (*TestCtx) GetNamespace ¶
Click to show internal directories.
Click to hide internal directories.