Documentation ¶
Overview ¶
Package ingress is a generated GoMock package.
Package ingress implements functionality to monitor and retrieve Kubernetes Ingress resources.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a struct for all components necessary to connect to and maintain state of a Kubernetes cluster.
func (Client) GetIngressResources ¶
func (c Client) GetIngressResources(meshService service.MeshService) ([]*networkingV1beta1.Ingress, error)
GetIngressResources returns the ingress resources whose backends correspond to the service
type MockMonitor ¶ added in v0.4.0
type MockMonitor struct {
// contains filtered or unexported fields
}
MockMonitor is a mock of Monitor interface
func NewMockMonitor ¶ added in v0.4.0
func NewMockMonitor(ctrl *gomock.Controller) *MockMonitor
NewMockMonitor creates a new mock instance
func (*MockMonitor) EXPECT ¶ added in v0.4.0
func (m *MockMonitor) EXPECT() *MockMonitorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockMonitor) GetIngressResources ¶ added in v0.4.0
func (m *MockMonitor) GetIngressResources(arg0 service.MeshService) ([]*v1beta1.Ingress, error)
GetIngressResources mocks base method
type MockMonitorMockRecorder ¶ added in v0.4.0
type MockMonitorMockRecorder struct {
// contains filtered or unexported fields
}
MockMonitorMockRecorder is the mock recorder for MockMonitor
func (*MockMonitorMockRecorder) GetIngressResources ¶ added in v0.4.0
func (mr *MockMonitorMockRecorder) GetIngressResources(arg0 interface{}) *gomock.Call
GetIngressResources indicates an expected call of GetIngressResources
type Monitor ¶
type Monitor interface { // GetIngressResources returns the ingress resources whose backends correspond to the service GetIngressResources(service.MeshService) ([]*networkingV1beta1.Ingress, error) }
Monitor is the client interface for K8s Ingress resource
func NewIngressClient ¶
func NewIngressClient(kubeClient kubernetes.Interface, kubeController k8s.Controller, stop chan struct{}, cfg configurator.Configurator) (Monitor, error)
NewIngressClient implements ingress.Monitor and creates the Kubernetes client to monitor Ingress resources.