Documentation ¶
Overview ¶
Package verifier ensures that only allowed containers (images) are launched
Index ¶
Constants ¶
View Source
const ( ErrorNone = "ERROR_NONE" InvalidParameter = "INVALID_PARAMETER" SecureMgrError = "INTERNAL_SECUREMGR_ERROR" NotAllowedCommand = "NOT_ALLOWED_COMMAND" )
cwl - Container White List
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Conf ¶ added in v1.1.0
type Conf interface {
RequestVerifierConf(containerInfo RequestVerifierConf) ResponseVerifierConf
}
Conf is the interface implemented by external REST API
type RequestDescInfo ¶
type RequestDescInfo struct { //ContainerName string ContainerHash string }
RequestDescInfo describes the requested container
type RequestVerifierConf ¶
type RequestVerifierConf struct { SecureInsName string CmdType string Desc []RequestDescInfo }
RequestVerifierConf describes the request configuration
type ResponseVerifierConf ¶
ResponseVerifierConf describes the verifier configuration response
type VerificationImpl ¶ added in v1.1.0
type VerificationImpl struct{}
VerificationImpl structure
func GetInstance ¶
func GetInstance() *VerificationImpl
GetInstance gives the VerificationImpl singletone instance
func (VerificationImpl) ContainerIsInWhiteList ¶ added in v1.1.0
func (VerificationImpl) ContainerIsInWhiteList(containerName string) error
ContainerIsInWhiteList checks if the containerName is in containerWhiteList
func (*VerificationImpl) RequestVerifierConf ¶ added in v1.1.0
func (verifier *VerificationImpl) RequestVerifierConf(containerInfo RequestVerifierConf) ResponseVerifierConf
RequestVerifierConf is Verifier configuration request handler
Click to show internal directories.
Click to hide internal directories.