watcher

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerInfo

type ContainerInfo struct {
	Namespace   string `json:"namespace"`
	Pod         string `json:"pod"`
	Container   string `json:"container"`
	ContainerID string `json:"containerID"`
	Image       string `json:"image"`
	ImageID     string `json:"imageID"`
}

ContainerInfo represents the reference to a running container

type Interface

type Interface interface {
	Run()
	ResultsHandler() http.Handler
}

func New

func New(clientset *kubernetes.Clientset, cfg config.Interface, rec metrics.Recorder, logger *log.Logger) (Interface, error)

type Result

type Result struct {
	Hash         string                      `json:"hash"`
	Containers   []ContainerInfo             `json:"containers"`
	Verification *vcn.BlockchainVerification `json:"verification,omitempty"`
	Errors       []string                    `json:"errors,omitempty"`
}

Result represents a watcher inspection of a container

Jump to

Keyboard shortcuts

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