Versions in this module Expand all Collapse all v0 v0.0.2 Feb 7, 2018 v0.0.1 Feb 7, 2018 Changes in this version + func NewPod(kubePod *v1.Pod) *common.Pod + func ParseImageIDString(imageID string) (string, string, error) + type AddPod struct + New common.Pod + type BlackDuckAnnotations struct + KeyVals map[string]string + OverallStatus string + PolicyViolationCount int + VulnerabilityCount int + func NewBlackDuckAnnotations(policyViolationCount int, vulnerabilityCount int, overallStatus string) *BlackDuckAnnotations + type Client interface + ClearBlackDuckPodAnnotations func(namespace string, name string) error + GetBlackDuckPodAnnotations func(namespace string, name string) (*BlackDuckAnnotations, error) + PodAdd func() <-chan AddPod + PodDelete func() <-chan DeletePod + PodUpdate func() <-chan UpdatePod + SetBlackDuckPodAnnotations func(namespace string, name string, bdAnnotations BlackDuckAnnotations) error + type DeletePod struct + QualifiedName string + type KubeClient struct + func NewKubeClient(masterURL string, kubeconfigPath string) (*KubeClient, error) + func NewKubeClientFromCluster() (*KubeClient, error) + func (client *KubeClient) ClearBlackDuckPodAnnotations(namespace string, name string) error + func (client *KubeClient) GetAllPods() ([]common.Pod, error) + func (client *KubeClient) GetBlackDuckPodAnnotations(namespace string, name string) (*BlackDuckAnnotations, error) + func (client *KubeClient) GetPod(namespace string, name string) (*v1.Pod, error) + func (client *KubeClient) GetPods() ([]v1.Pod, error) + func (client *KubeClient) GetPodsForNamespace(namespace string) ([]v1.Pod, error) + func (client *KubeClient) PodAdd() <-chan AddPod + func (client *KubeClient) PodDelete() <-chan DeletePod + func (client *KubeClient) PodUpdate() <-chan UpdatePod + func (client *KubeClient) SetBlackDuckPodAnnotations(namespace string, name string, bdAnnotations BlackDuckAnnotations) error + func (client *KubeClient) UpdatePod(pod *v1.Pod) error + type KubeController struct + func NewKubeController(queue workqueue.RateLimitingInterface, indexer cache.Indexer, ...) *KubeController + func (c *KubeController) Run(threadiness int, stopCh chan struct{}) + type MockClient struct + func NewMockClient() *MockClient + func (client *MockClient) ClearBlackDuckPodAnnotations(namespace string, name string) error + func (client *MockClient) ClearBlackDuckPodAnnotationsWithPod(pod common.Pod) error + func (client *MockClient) GetBlackDuckPodAnnotations(namespace string, name string) (*BlackDuckAnnotations, error) + func (client *MockClient) GetBlackDuckPodAnnotationsWithPod(pod common.Pod) (*BlackDuckAnnotations, error) + func (client *MockClient) PodAdd() <-chan AddPod + func (client *MockClient) PodDelete() <-chan DeletePod + func (client *MockClient) PodUpdate() <-chan UpdatePod + func (client *MockClient) SetBlackDuckPodAnnotations(namespace string, name string, bdAnnotations BlackDuckAnnotations) error + func (client *MockClient) SetBlackDuckPodAnnotationsWithPod(pod common.Pod, bdAnnotations BlackDuckAnnotations) error + type UpdatePod struct + New common.Pod + Old common.Pod