bitbucket.org/Aishee/synsec@v0.0.0-20210414005726-236fc01a153d/pkg/types/profile.go (about)

     1  package types
     2  
     3  import (
     4  	"time"
     5  
     6  	"github.com/antonmedv/expr/vm"
     7  )
     8  
     9  /*Action profiles*/
    10  type RemediationProfile struct {
    11  	Apply        bool
    12  	Ban          bool
    13  	Slow         bool
    14  	Captcha      bool
    15  	Duration     string
    16  	TimeDuration time.Duration
    17  }
    18  type Profile struct {
    19  	Profile       string             `yaml:"profile"`
    20  	Filter        string             `yaml:"filter"`
    21  	Remediation   RemediationProfile `yaml:"remediation"`
    22  	RunTimeFilter *vm.Program
    23  	ApiPush       *bool               `yaml:"api"`
    24  	OutputConfigs []map[string]string `yaml:"outputs,omitempty"`
    25  }