Versions in this module Expand all Collapse all v6 v6.4.2 Aug 17, 2020 Changes in this version + const ActionUseImage + func RecordTeamAndPipeline(ctx context.Context, teamName, pipelineName string) context.Context + func RegisterAgent(factory AgentFactory) + func TeamAndPipelineFromContext(ctx context.Context) (string, string) + func WireCheckers(group *flags.Group) + type Agent interface + Check func(PolicyCheckInput) (bool, error) + type AgentFactory interface + Description func() string + IsConfigured func() bool + NewAgent func(lager.Logger) (Agent, error) + type Checker struct + func Initialize(logger lager.Logger, cluster string, version string, filter Filter) (*Checker, error) + func (c *Checker) Check(input PolicyCheckInput) (bool, error) + func (c *Checker) ShouldCheckAction(action string) bool + func (c *Checker) ShouldCheckHttpMethod(method string) bool + func (c *Checker) ShouldSkipAction(action string) bool + type Filter struct + Actions []string + ActionsToSkip []string + HttpMethods []string + type PolicyCheckInput struct + Action string + ClusterName string + ClusterVersion string + Data interface{} + HttpMethod string + Pipeline string + Service string + Team string + User string + type PolicyCheckNotPass struct + func (e PolicyCheckNotPass) Error() string