Documentation ¶
Index ¶
- type Config
- type PifTester
- func (pif *PifTester) APIModel() *api.Model
- func (pif *PifTester) AddImage(image api.Image) error
- func (pif *PifTester) AddPod(pod api.Pod) error
- func (pif *PifTester) DeletePod(qualifiedName string)
- func (pif *PifTester) Error(w http.ResponseWriter, r *http.Request, err error, statusCode int)
- func (pif *PifTester) GetModel() (*api.Model, error)
- func (pif *PifTester) GetNextImage() api.NextImage
- func (pif *PifTester) GetScanResults() api.ScanResults
- func (pif *PifTester) NotFound(w http.ResponseWriter, r *http.Request)
- func (pif *PifTester) PostCommand(commands *api.PostCommand)
- func (pif *PifTester) PostFinishScan(job api.FinishedScanClientJob) error
- func (pif *PifTester) UpdateAllImages(allImages api.AllImages) error
- func (pif *PifTester) UpdateAllPods(allPods api.AllPods) error
- func (pif *PifTester) UpdatePod(pod api.Pod) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PifTester ¶
type PifTester struct { ImageMap map[m.Image]bool ImageErrors map[m.Image][]string ImageQueue []m.Image // contains filtered or unexported fields }
PifTester helps with testing the image facade.
func NewPifTester ¶
NewPifTester ...
func (*PifTester) GetNextImage ¶
GetNextImage ...
func (*PifTester) GetScanResults ¶
func (pif *PifTester) GetScanResults() api.ScanResults
GetScanResults ...
func (*PifTester) NotFound ¶
func (pif *PifTester) NotFound(w http.ResponseWriter, r *http.Request)
NotFound ...
func (*PifTester) PostCommand ¶
func (pif *PifTester) PostCommand(commands *api.PostCommand)
PostCommand ...
func (*PifTester) PostFinishScan ¶
func (pif *PifTester) PostFinishScan(job api.FinishedScanClientJob) error
PostFinishScan ...
func (*PifTester) UpdateAllImages ¶
UpdateAllImages ...
func (*PifTester) UpdateAllPods ¶
UpdateAllPods ...
Click to show internal directories.
Click to hide internal directories.