piftester

package
v2.2.3+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Port            int
	ImageFacadeHost string
	ImageFacadePort int
	LogLevel        string
}

Config ...

func GetConfig

func GetConfig(configPath string) (*Config, error)

GetConfig ...

func (*Config) GetLogLevel

func (config *Config) GetLogLevel() (log.Level, error)

GetLogLevel ...

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

func NewPifTester(imageFacadeHost string, imageFacadePort int, stop <-chan struct{}) *PifTester

NewPifTester ...

func (*PifTester) APIModel

func (pif *PifTester) APIModel() *api.Model

APIModel ...

func (*PifTester) AddImage

func (pif *PifTester) AddImage(image api.Image) error

AddImage ...

func (*PifTester) AddPod

func (pif *PifTester) AddPod(pod api.Pod) error

AddPod ...

func (*PifTester) DeletePod

func (pif *PifTester) DeletePod(qualifiedName string)

DeletePod ...

func (*PifTester) Error

func (pif *PifTester) Error(w http.ResponseWriter, r *http.Request, err error, statusCode int)

Error ...

func (*PifTester) GetModel

func (pif *PifTester) GetModel() (*api.Model, error)

GetModel ...

func (*PifTester) GetNextImage

func (pif *PifTester) GetNextImage() api.NextImage

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

func (pif *PifTester) UpdateAllImages(allImages api.AllImages) error

UpdateAllImages ...

func (*PifTester) UpdateAllPods

func (pif *PifTester) UpdateAllPods(allPods api.AllPods) error

UpdateAllPods ...

func (*PifTester) UpdatePod

func (pif *PifTester) UpdatePod(pod api.Pod) error

UpdatePod ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL