Versions in this module Expand all Collapse all v0 v0.0.13 Feb 5, 2023 v0.0.12 Nov 20, 2022 Changes in this version + func ApplySchema(ctx context.Context, dg *dgo.Dgraph) error + func NewDgraphClient(grpcClient *grpc.ClientConn) *dgo.Dgraph + func NewGrpcClient(address string, opts []grpc.DialOption) (*grpc.ClientConn, error) + type Action struct + Action string + DType []string + FalcoAlertPriority int + Name string + Namespace string + OnFalcoAlert bool + OnViolatedFile bool + OnViolatedProcess bool + Selector string + UID string + type Constraint struct + AllowedFiles string + AllowedProcesses string + DType []string + Name string + Namespace string + Selector string + UID string + type DgraphActionStore struct + func NewDgraphActionStore(dgraphClient *dgo.Dgraph) *DgraphActionStore + func (d *DgraphActionStore) Add(action *tarianpb.Action) error + func (d *DgraphActionStore) FindByNamespace(namespace string) ([]*tarianpb.Action, error) + func (d *DgraphActionStore) GetAll() ([]*tarianpb.Action, error) + func (d *DgraphActionStore) NamespaceAndNameExist(namespace, name string) (bool, error) + func (d *DgraphActionStore) RemoveByNamespaceAndName(namespace, name string) error + type DgraphConfig struct + Address string + TLSCAFile string + TLSCertFile string + TLSKeyFile string + type DgraphConstraintStore struct + func NewDgraphConstraintStore(dgraphClient *dgo.Dgraph) *DgraphConstraintStore + func (d *DgraphConstraintStore) Add(constraint *tarianpb.Constraint) error + func (d *DgraphConstraintStore) FindByNamespace(namespace string) ([]*tarianpb.Constraint, error) + func (d *DgraphConstraintStore) GetAll() ([]*tarianpb.Constraint, error) + func (d *DgraphConstraintStore) NamespaceAndNameExist(namespace, name string) (bool, error) + func (d *DgraphConstraintStore) RemoveByNamespaceAndName(namespace, name string) error + type DgraphEventStore struct + func NewDgraphEventStore(dgraphClient *dgo.Dgraph) *DgraphEventStore + func (d *DgraphEventStore) Add(evt *tarianpb.Event) error + func (d *DgraphEventStore) FindByNamespace(namespace string, limit uint) ([]*tarianpb.Event, error) + func (d *DgraphEventStore) FindWhereAlertNotSent() ([]*tarianpb.Event, error) + func (d *DgraphEventStore) GetAll(limit uint) ([]*tarianpb.Event, error) + func (d *DgraphEventStore) UpdateAlertSent(uid string) error + func (d *DgraphEventStore) UpsertPod(dgraphPod Pod) (Pod, error) + type Event struct + AlertSentAt *time.Time + ClientTimestamp *time.Time + DType []string + EventUID string + ServerTimestamp *time.Time + Targets []Target + Type string + UID string + type Pod struct + DType []string + Labels string + Name string + Namespace string + PodUID string + UID string + type Target struct + DType []string + FalcoAlert string + Pod *Pod + UID string + ViolatedFiles string + ViolatedProcesses string