Documentation ¶
Index ¶
- type Client
- func (c *Client) GetKvisorAgentImageDetails() (ImageDetails, bool)
- func (c *Client) GetOwnerUID(obj Object) string
- 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
- type EventType
- type ImageDetails
- type KubernetesChangeEventListener
- type Object
- type PodLogProvider
- type Version
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
}
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) 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)
type ImageDetails ¶
type ImageDetails struct { AgentImageName 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 Version ¶
func GetVersion ¶
func GetVersion(clientset kubernetes.Interface) (Version, error)
Click to show internal directories.
Click to hide internal directories.