Documentation
¶
Overview ¶
Package policy is a generated GoMock package.
Package policy implements the Kubernetes client for the resources in the policy.openservicemesh.io API group
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller interface {
// ListEgressPoliciesForSourceIdentity lists the Egress policies for the given source identity
ListEgressPoliciesForSourceIdentity(identity.K8sServiceAccount) []*policyV1alpha1.Egress
}
Controller is the interface for the functionality provided by the resources part of the policy.openservicemesh.io API group
func NewPolicyController ¶
func NewPolicyController(kubeConfig *rest.Config, kubeController kubernetes.Controller, stop chan struct{}) (Controller, error)
NewPolicyController returns a policy.Controller interface related to functionality provided by the resources in the policy.openservicemesh.io API group
type MockController ¶
type MockController struct {
// contains filtered or unexported fields
}
MockController is a mock of Controller interface
func NewMockController ¶
func NewMockController(ctrl *gomock.Controller) *MockController
NewMockController creates a new mock instance
func (*MockController) EXPECT ¶
func (m *MockController) EXPECT() *MockControllerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockController) ListEgressPoliciesForSourceIdentity ¶
func (m *MockController) ListEgressPoliciesForSourceIdentity(arg0 identity.K8sServiceAccount) []*v1alpha1.Egress
ListEgressPoliciesForSourceIdentity mocks base method
type MockControllerMockRecorder ¶
type MockControllerMockRecorder struct {
// contains filtered or unexported fields
}
MockControllerMockRecorder is the mock recorder for MockController
func (*MockControllerMockRecorder) ListEgressPoliciesForSourceIdentity ¶
func (mr *MockControllerMockRecorder) ListEgressPoliciesForSourceIdentity(arg0 interface{}) *gomock.Call
ListEgressPoliciesForSourceIdentity indicates an expected call of ListEgressPoliciesForSourceIdentity