import "istio.io/istio/galley/pkg/testing/mock"
Copyright Istio Authors
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.
appsv1.go authorizationv1.go configmaps.go corev1.go deployments.go endpoints.go extensionsv1.go ingresses.go kube.go kube_interface.go namespaces.go nodes.go pods.go selfsubjectaccessreviews.go services.go watch.go
Kube is a mock implementation of galley/pkg/common/Kube
NewKube returns a new instance of mock Kube.
APIExtensionsClientset implements client.Interfaces
AddResponse adds a new response to this mock.
DynamicInterface implementation.
func (k *Kube) KubeClient() (kubernetes.Interface, error)
KubeClient implements client.Interfaces
type SelfSubjectAccessReviewImpl struct {
// contains filtered or unexported fields
}
SelfSubjectAccessReviewImpl is a mock implementation of SelfSubjectAccessReviewInterface Exported so that helpers can be used to set expected mock behavior
func (i *SelfSubjectAccessReviewImpl) Create(ctx context.Context, sar *authorizationapi.SelfSubjectAccessReview, opts metav1.CreateOptions) (result *authorizationapi.SelfSubjectAccessReview, err error)
Create implements authorizationv1.SelfSubjectAccessReviewInterface
func (i *SelfSubjectAccessReviewImpl) CreateContext(ctx context.Context, sar *authorizationapi.SelfSubjectAccessReview) (result *authorizationapi.SelfSubjectAccessReview, err error)
CreateContext implements authorizationv1.SelfSubjectAccessReviewInterface
func (i *SelfSubjectAccessReviewImpl) DisallowResourceAttributes(r *authorizationapi.ResourceAttributes)
DisallowResourceAttributes is a helper for testing that marks particular resource attributes as not allowed in the mock.
type Watch struct {
// contains filtered or unexported fields
}
Watch is a mock implementation of watch.Interface.
NewWatch returns a new Watch instance.
ResultChan is an implementation of watch.Interface.ResultChan.
Send a watch event through the result channel.
Stop is an implementation of watch.Interface.Watch.
Package mock imports 64 packages (graph). Updated 2020-12-19. Refresh now. Tools for package owners.