Documentation ¶
Overview ¶
SPDX-License-Identifier: Apache-2.0
Copyright Contributors to the Submariner project.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
SPDX-License-Identifier: Apache-2.0
Copyright Contributors to the Submariner project.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
SPDX-License-Identifier: Apache-2.0
Copyright Contributors to the Submariner project.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- func AddDeleteCollectionReactor(f *testing.Fake, gvk schema.GroupVersionKind)
- type DeleteCollectionReactor
- type DynamicClient
- type DynamicResourceClient
- func (f *DynamicResourceClient) Create(ctx context.Context, obj *unstructured.Unstructured, options v1.CreateOptions, ...) (*unstructured.Unstructured, error)
- func (f *DynamicResourceClient) Delete(ctx context.Context, name string, options v1.DeleteOptions, ...) error
- func (f *DynamicResourceClient) Get(ctx context.Context, name string, options v1.GetOptions, ...) (*unstructured.Unstructured, error)
- func (f *DynamicResourceClient) Update(ctx context.Context, obj *unstructured.Unstructured, options v1.UpdateOptions, ...) (*unstructured.Unstructured, error)
- func (f *DynamicResourceClient) VerifyNoCreate(name string)
- func (f *DynamicResourceClient) VerifyNoDelete(name string)
- func (f *DynamicResourceClient) VerifyNoUpdate(name string)
- type FailingReactor
- func (f *FailingReactor) SetFailOnCreate(err error)
- func (f *FailingReactor) SetFailOnDelete(err error)
- func (f *FailingReactor) SetFailOnGet(err error)
- func (f *FailingReactor) SetFailOnList(err error)
- func (f *FailingReactor) SetFailOnUpdate(err error)
- func (f *FailingReactor) SetResetOnFailure(v bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddDeleteCollectionReactor ¶ added in v0.6.2
func AddDeleteCollectionReactor(f *testing.Fake, gvk schema.GroupVersionKind)
Types ¶
type DeleteCollectionReactor ¶ added in v0.6.2
type DeleteCollectionReactor struct {
// contains filtered or unexported fields
}
type DynamicClient ¶ added in v0.9.0
type DynamicClient struct { *fake.FakeDynamicClient sync.Mutex // contains filtered or unexported fields }
func NewDynamicClient ¶
func NewDynamicClient(scheme *runtime.Scheme, objects ...runtime.Object) *DynamicClient
func (*DynamicClient) Resource ¶ added in v0.9.0
func (f *DynamicClient) Resource(gvr schema.GroupVersionResource) dynamic.NamespaceableResourceInterface
type DynamicResourceClient ¶
type DynamicResourceClient struct { dynamic.ResourceInterface FailOnCreate error PersistentFailOnCreate atomic.Value FailOnUpdate error PersistentFailOnUpdate atomic.Value CheckResourceVersionOnUpdate bool FailOnDelete error PersistentFailOnDelete atomic.Value FailOnGet error PersistentFailOnGet atomic.Value // contains filtered or unexported fields }
func (*DynamicResourceClient) Create ¶
func (f *DynamicResourceClient) Create(ctx context.Context, obj *unstructured.Unstructured, options v1.CreateOptions, subresources ...string) (*unstructured.Unstructured, error)
func (*DynamicResourceClient) Delete ¶
func (f *DynamicResourceClient) Delete(ctx context.Context, name string, options v1.DeleteOptions, subresources ...string) error
func (*DynamicResourceClient) Get ¶
func (f *DynamicResourceClient) Get(ctx context.Context, name string, options v1.GetOptions, subresources ...string) (*unstructured.Unstructured, error)
func (*DynamicResourceClient) Update ¶
func (f *DynamicResourceClient) Update(ctx context.Context, obj *unstructured.Unstructured, options v1.UpdateOptions, subresources ...string) (*unstructured.Unstructured, error)
func (*DynamicResourceClient) VerifyNoCreate ¶
func (f *DynamicResourceClient) VerifyNoCreate(name string)
func (*DynamicResourceClient) VerifyNoDelete ¶
func (f *DynamicResourceClient) VerifyNoDelete(name string)
func (*DynamicResourceClient) VerifyNoUpdate ¶
func (f *DynamicResourceClient) VerifyNoUpdate(name string)
type FailingReactor ¶ added in v0.6.1
func NewFailingReactor ¶ added in v0.6.1
func NewFailingReactor(f *testing.Fake) *FailingReactor
func NewFailingReactorForResource ¶ added in v0.6.1
func NewFailingReactorForResource(f *testing.Fake, resource string) *FailingReactor
func (*FailingReactor) SetFailOnCreate ¶ added in v0.6.1
func (f *FailingReactor) SetFailOnCreate(err error)
func (*FailingReactor) SetFailOnDelete ¶ added in v0.6.1
func (f *FailingReactor) SetFailOnDelete(err error)
func (*FailingReactor) SetFailOnGet ¶ added in v0.6.1
func (f *FailingReactor) SetFailOnGet(err error)
func (*FailingReactor) SetFailOnList ¶ added in v0.6.1
func (f *FailingReactor) SetFailOnList(err error)
func (*FailingReactor) SetFailOnUpdate ¶ added in v0.6.1
func (f *FailingReactor) SetFailOnUpdate(err error)
func (*FailingReactor) SetResetOnFailure ¶ added in v0.6.1
func (f *FailingReactor) SetResetOnFailure(v bool)