Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EvaluatorService ¶
type EvaluatorServiceImpl ¶
type EvaluatorServiceImpl struct {
// contains filtered or unexported fields
}
func NewCELServiceImpl ¶
func NewCELServiceImpl(logger *zap.SugaredLogger) *EvaluatorServiceImpl
func (*EvaluatorServiceImpl) EvaluateCELRequest ¶
func (impl *EvaluatorServiceImpl) EvaluateCELRequest(request Request) (bool, error)
type ExpressionMetadata ¶
type ExpressionMetadata struct {
Params []ExpressionParam
}
type ExpressionParam ¶
type ExpressionParam struct { ParamName ParamName `json:"paramName"` Value interface{} `json:"value"` Type ParamValuesType `json:"type"` }
type ParamName ¶
type ParamName string
const AppName ParamName = "appName"
const CdPipelineName ParamName = "cdPipelineName"
const CdPipelineTriggerType ParamName = "cdPipelineTriggerType"
const ChartRefId ParamName = "chartRefId"
const ClusterName ParamName = "clusterName"
const ContainerImage ParamName = "containerImage"
const ContainerImageTag ParamName = "containerImageTag"
const ContainerRepo ParamName = "containerRepository"
const EnvName ParamName = "envName"
const ImageLabels ParamName = "imageLabels"
const IsProdEnv ParamName = "isProdEnv"
const ProjectName ParamName = "projectName"
type ParamValuesType ¶
type ParamValuesType string
const ( ParamTypeString ParamValuesType = "string" ParamTypeObject ParamValuesType = "object" ParamTypeInteger ParamValuesType = "integer" ParamTypeList ParamValuesType = "list" ParamTypeBool ParamValuesType = "bool" ParamTypeMapStringToAny ParamValuesType = "mapStringToAny" )
type Request ¶
type Request struct { Expression string `json:"expression"` ExpressionMetadata ExpressionMetadata `json:"params"` }
Click to show internal directories.
Click to hide internal directories.