Documentation ¶
Index ¶
- func NewServer(client *Client) kubepb.KubeAPIServer
- type AddListener
- type Client
- func (c *Client) GetClusterInfo() (*ClusterInfo, bool)
- func (c *Client) GetIPInfo(ip string) (IPInfo, bool)
- func (c *Client) GetKvisorAgentImageDetails() (ImageDetails, bool)
- func (c *Client) GetOwnerUID(obj Object) string
- func (c *Client) GetPod(uid string) (*corev1.Pod, bool)
- func (c *Client) GetPodOwner(podUID string) (metav1.OwnerReference, bool)
- func (c *Client) RegisterHandlers(factory informers.SharedInformerFactory)
- func (c *Client) RegisterKubernetesChangeListener(l KubernetesChangeEventListener)
- func (c *Client) RegisterPodsHandlers(factory informers.SharedInformerFactory)
- func (c *Client) Run(ctx context.Context) error
- func (c *Client) UnregisterKubernetesChangeListener(l KubernetesChangeEventListener)
- type ClusterInfo
- type DeleteListener
- type EventType
- type IPEndpoint
- type IPInfo
- type ImageDetails
- type Index
- type KubernetesChangeEventListener
- type Object
- type PodLogProvider
- type Server
- func (s *Server) GetClusterInfo(ctx context.Context, req *kubepb.GetClusterInfoRequest) (*kubepb.GetClusterInfoResponse, error)
- func (s *Server) GetIPInfo(ctx context.Context, req *kubepb.GetIPInfoRequest) (*kubepb.GetIPInfoResponse, error)
- func (s *Server) GetPod(ctx context.Context, req *kubepb.GetPodRequest) (*kubepb.GetPodResponse, error)
- type UpdateListener
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewServer ¶ added in v1.7.0
func NewServer(client *Client) kubepb.KubeAPIServer
Types ¶
type AddListener ¶ added in v1.7.0
type AddListener interface {
OnAdd(obj Object)
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetClusterInfo ¶ added in v1.7.0
func (c *Client) GetClusterInfo() (*ClusterInfo, bool)
func (*Client) GetKvisorAgentImageDetails ¶
func (c *Client) GetKvisorAgentImageDetails() (ImageDetails, bool)
GetKvisorAgentImageDetails returns kvisor agent image details. This is used for image analyzer and kube-bench dynamic jobs to schedule using the same image.
func (*Client) GetOwnerUID ¶
func (*Client) GetPodOwner ¶ added in v1.7.0
func (c *Client) GetPodOwner(podUID string) (metav1.OwnerReference, bool)
func (*Client) RegisterHandlers ¶
func (c *Client) RegisterHandlers(factory informers.SharedInformerFactory)
func (*Client) RegisterKubernetesChangeListener ¶
func (c *Client) RegisterKubernetesChangeListener(l KubernetesChangeEventListener)
func (*Client) RegisterPodsHandlers ¶
func (c *Client) RegisterPodsHandlers(factory informers.SharedInformerFactory)
func (*Client) UnregisterKubernetesChangeListener ¶ added in v1.7.0
func (c *Client) UnregisterKubernetesChangeListener(l KubernetesChangeEventListener)
type ClusterInfo ¶ added in v1.7.0
type DeleteListener ¶ added in v1.7.0
type DeleteListener interface {
OnDelete(obj Object)
}
type IPEndpoint ¶ added in v1.7.0
type IPInfo ¶ added in v1.7.0
type IPInfo struct { IP string Pod *corev1.Pod Service *corev1.Service Node *corev1.Node Endpoint *IPEndpoint Owner *metav1.OwnerReference }
type ImageDetails ¶
type ImageDetails struct { ScannerImageName string ImagePullSecrets []corev1.LocalObjectReference }
type PodLogProvider ¶
type PodLogProvider interface {
GetLogReader(ctx context.Context, podNs, podName string) (io.ReadCloser, error)
}
func NewPodLogReader ¶
func NewPodLogReader(client kubernetes.Interface) PodLogProvider
type Server ¶ added in v1.7.0
type Server struct {
// contains filtered or unexported fields
}
func (*Server) GetClusterInfo ¶ added in v1.7.0
func (s *Server) GetClusterInfo(ctx context.Context, req *kubepb.GetClusterInfoRequest) (*kubepb.GetClusterInfoResponse, error)
func (*Server) GetIPInfo ¶ added in v1.7.0
func (s *Server) GetIPInfo(ctx context.Context, req *kubepb.GetIPInfoRequest) (*kubepb.GetIPInfoResponse, error)
func (*Server) GetPod ¶ added in v1.7.0
func (s *Server) GetPod(ctx context.Context, req *kubepb.GetPodRequest) (*kubepb.GetPodResponse, error)
type UpdateListener ¶ added in v1.7.0
type UpdateListener interface {
OnUpdate(obj Object)
}
type Version ¶
func GetVersion ¶
func GetVersion(clientset kubernetes.Interface) (Version, error)
Click to show internal directories.
Click to hide internal directories.