receptorPackage

package
v0.0.0-...-6e99127 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

This file is subject to the terms and conditions defined in file 'LICENSE.txt', which is part of this source code package.

This file is subject to the terms and conditions defined in file 'LICENSE.txt', which is part of this source code package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiscoverImpl

func DiscoverImpl(token string, groupId string) (svcs []*receptor_v1.ServiceEntity, err error)

In this example, Discover is making a query to GET the group name. The group name is then added to a list of Service Entities that will be returned to the Trustero platform to display in the UI.

func GetKnownServicesImpl

func GetKnownServicesImpl() []string

func GetReceptorTypeImpl

func GetReceptorTypeImpl() string

func ReportImpl

func ReportImpl(token string, groupId string) (evidences []*receptor_sdk.Evidence, err error)

func VerifyImpl

func VerifyImpl(token string, groupId string) (ok bool, err error)

Types

type TrusteroGitLabUser

type TrusteroGitLabUser struct {
	Username         string     `trustero:"id:;display:Username;order:1"`
	Name             string     `trustero:"display:Name;order:2"`
	Group            string     `trustero:"display:Group;order:3"`
	IsAdmin          bool       `trustero:"display:Admin;order:4"`
	CreatedAt        *time.Time `trustero:"display:Created On;order:5"`
	TwoFactorEnabled bool       `trustero:"display:MFA Enabled;order:6"`
	LastActivityOn   *time.Time `trustero:"display:Last Activity On;order:7"`
}

TrusteroGitLabUser represents a type of evidence to emit to Trustero as part of a finding. A list of users returned from the GitLab API will be converted to this type and added to an evidence object. Trustero will use the "display" and "order" tags to generate a table to display all users in the UI. The "display" tag will the column heading, and "order" tag determines the order the columns show up in the table

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL