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 ¶
- func DiscoverImpl(token string, groupId string) (svcs []*receptor_v1.ServiceEntity, err error)
- func GetKnownServicesImpl() []string
- func GetReceptorTypeImpl() string
- func ReportImpl(token string, groupId string) (evidences []*receptor_sdk.Evidence, err error)
- func VerifyImpl(token string, groupId string) (ok bool, err error)
- type TrusteroGitLabUser
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)
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