Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateCallbackFunc ¶
type DeleteCallbackFunc ¶
type Environment ¶
type Environment interface { RegisterCreateCallback(CreateCallbackFunc) RegisterUpdateCallback(UpdateCallbackFunc) RegisterDeleteCallback(DeleteCallbackFunc) SetBasePath(string) Decoder() runtime.Decoder DynamicClient() *dynamicfake.FakeDynamicClient NewSynchronizer() *Synchronizer LoadObjectFromFile(string) runtime.Object AddObject(runtime.Object) AddObjectFromFile(string) AddObjectsFromFiles(...string) WithObject(runtime.Object) Environment WithObjectFromFile(string) Environment WithObjectsFromFiles(...string) Environment AssertObject(runtime.Object) error AssertObjectFromFile(string) error AssertObjectCount(schema.GroupVersionKind, string, string, int) error GetObject(schema.GroupVersionKind, string, string) (runtime.Object, error) ListObjects(schema.GroupVersionKind, string, string) ([]runtime.Object, error) CreateObject(runtime.Object) (runtime.Object, error) CreateObjectFromFile(string) (runtime.Object, error) UpdateObject(runtime.Object) (runtime.Object, error) UpdateObjectFromFile(string) (runtime.Object, error) PatchObject(schema.GroupVersionKind, string, string, types.PatchType, []byte) (runtime.Object, error) LabelObject(schema.GroupVersionKind, string, string, string, string) (runtime.Object, error) UnlabelObject(schema.GroupVersionKind, string, string, string) (runtime.Object, error) DeleteObject(schema.GroupVersionKind, string, string) error WaitForObject(runtime.Object, ...watchtools.ConditionFunc) (runtime.Object, error) WaitForObjectFromFile(string, ...watchtools.ConditionFunc) (runtime.Object, error) }
func NewEnvironment ¶
func NewEnvironment(groupVersions []*GroupVersion) Environment
type GroupVersion ¶
type GroupVersion struct {
// contains filtered or unexported fields
}
func NewGroupVersion ¶
func NewGroupVersion(addToScheme func(*runtime.Scheme) error, client testing.FakeClient) *GroupVersion
func (*GroupVersion) AddToScheme ¶
func (g *GroupVersion) AddToScheme(scheme *runtime.Scheme) error
func (*GroupVersion) Client ¶
func (g *GroupVersion) Client() testing.FakeClient
type Synchronizer ¶
type Synchronizer struct {
// contains filtered or unexported fields
}
func (*Synchronizer) Init ¶
func (s *Synchronizer) Init(informers map[schema.GroupVersionKind]cache.SharedIndexInformer)
func (*Synchronizer) WaitUntilSynced ¶
func (s *Synchronizer) WaitUntilSynced()
Click to show internal directories.
Click to hide internal directories.