Versions in this module Expand all Collapse all v0 v0.4.0 Aug 3, 2024 Changes in this version + const ANALYSIS_ERRORS + const CONDITIONAL_PASS + const CREATED + const DELETED + const DETERMINING + const DID_NOT_PASS + const DYNAMIC + const HIGH + const INCOMPLETE + const INTERNAL_REVIEW + const IN_PROGRESS + const IN_QUEUE + const LOW + const MANUAL + const MEDIUM + const MODULE_SELECTION_REQUIRED + const NOT_ASSESSED + const NTO_PENDING_SUBMISSION + const NTO_PRE_SCAN_CANCELED + const PARTIAL_PUBLISH + const PARTIAL_UNPUBLISH + const PASSED + const PAUSED_ID + const PAUSING + const PENDING_ACCOUNT_APPROVAL + const PENDING_LEGAL_AGREEMENT + const PENDING_VENDOR_ACCEPTANCE + const PRE_SCAN_CANCELED + const PRE_SCAN_COMPLETE + const PRE_SCAN_FAILED + const PROMOTE_IN_PROGRESS + const PUBLISHED + const PUBLISHED_TO_ENTERPRISE + const PUBLISHED_TO_ENTERPRISEINT + const PUBLISHED_TO_VENDOR + const READY_TO_SUBMIT + const SCAN_CANCELED + const SCAN_HELD_APPROVAL + const SCAN_HELD_HOLDS_FINISHED + const SCAN_HELD_INSTRUCTIONS + const SCAN_HELD_LOGIN + const SCAN_HELD_LOGIN_INSTRUCTIONS + const SCAN_IN_PROGRESS + const SCAN_IN_PROGRESS_PARTIAL_RESULTS_READY + const SCAN_REQUESTED + const SCAN_SUBMITTED + const SHOW_OSRDB + const STATIC + const STATIC_VALIDATING_UPLOAD + const STOPPING + const SUBMITTED_FOR_DYNAMIC_PRE_SCAN + const SUBMITTED_FOR_NTO_PRE_SCAN + const TIMEFRAMEPENDING_ID + const UNPUBLISHED + const VENDOR_REVIEW + const VERIFYING_RESULTS + const VERY_HIGH + const VERY_LOW + func GetCredentialsFilePath() (string, error) + func GetProfiles(filePath string) (map[string]Profile, error) + func LoadVeracodeCredentials() (string, string, error) + func NewVeracodeError(resp *http.Response) error + func QueryEncode(options any) string + type Application struct + Guid string + Profile ApplicationProfile + func NewApplication(name, policyGuid string, businessCriticality BusinessCriticality) Application + type ApplicationBusinessOwner struct + Email string + Name string + type ApplicationBusinessUnit struct + Guid string + Id int + Name string + type ApplicationCustomField struct + Name string + SortOrder int + type ApplicationPolicy struct + Guid string + IsDefault bool + Name string + type ApplicationProfile struct + ArcherAppName string + BusinessCriticality BusinessCriticality + BusinessOwners []struct{ ... } + BusinessUnit *ApplicationBusinessUnit + CustomFields []CustomField + Description string + Name string + Policies []ApplicationPolicy + Tags string + Teams []ApplicationTeam + type ApplicationService service + func (a *ApplicationService) CreateApplication(ctx context.Context, application Application) (*Application, *Response, error) + func (a *ApplicationService) DeleteApplication(ctx context.Context, appId string) (*Response, error) + func (a *ApplicationService) DeleteCollection(ctx context.Context, collectionGuid string) (*Response, error) + func (a *ApplicationService) GetApplication(ctx context.Context, appId string) (*Application, *Response, error) + func (a *ApplicationService) GetCollection(ctx context.Context, collectionGuid string) (*Collection, *Response, error) + func (a *ApplicationService) ListApplications(ctx context.Context, options ListApplicationOptions) ([]Application, *Response, error) + func (a *ApplicationService) ListCustomFields(ctx context.Context, options ListCustomFieldOptions) ([]ApplicationCustomField, *Response, error) + func (a *ApplicationService) UpdateApplication(ctx context.Context, application Application) (*Application, *Response, error) + func (c *ApplicationService) CreateCollection(ctx context.Context, collection Collection) (*Collection, *Response, error) + func (c *ApplicationService) ListCollections(ctx context.Context, options ListCollectionOptions) ([]Collection, *Response, error) + func (c *ApplicationService) UpdateCollection(ctx context.Context, collection Collection) (*Collection, *Response, error) + type ApplicationTeam struct + Guid string + TeamId int + TeamName string + type BusinessCriticality string + type BusinessUnit struct + BuId string + BuLegacyId int + BuName string + IsDefault *bool + Teams *[]Team + type Client struct + Application *ApplicationService + HttpClient *http.Client + Identity *IdentityService + func NewClient(region Region, httpClient *http.Client, apiKey, apiSecret string) (*Client, error) + func (c *Client) Do(req *http.Request, body any) (*Response, error) + func (c *Client) NewRequest(ctx context.Context, endpoint string, method string, body io.Reader) (*http.Request, error) + func (c *Client) SetBaseURL(region Region) error + type Collection struct + Assets []CollectionAsset + BusinessUnit *ApplicationBusinessUnit + CustomFields []CustomField + Description string + Guid string + Name string + Restricted *bool + type CollectionAsset struct + Guid string + Type string + type CollectionResult interface + GetLinks func() navLinks + GetPageMeta func() pageMeta + type CustomField struct + Name string + Value string + type Error struct + Code int + Endpoint string + Messages []string + func (e *Error) UnmarshalJSON(data []byte) (err error) + func (v Error) Error() string + type IdentityService service + func (i *IdentityService) CreateBusinessUnit(ctx context.Context, bu *BusinessUnit) (*BusinessUnit, *Response, error) + func (i *IdentityService) CreateTeam(ctx context.Context, team *Team) (*Team, *Response, error) + func (i *IdentityService) CreateUser(ctx context.Context, user *User, generateApiCredentials bool) (*User, *Response, error) + func (i *IdentityService) DeleteBusinessUnit(ctx context.Context, buId string) (*Response, error) + func (i *IdentityService) DeleteTeam(ctx context.Context, teamId string) (*Response, error) + func (i *IdentityService) DeleteUser(ctx context.Context, userId string) (*Response, error) + func (i *IdentityService) GetBusinessUnit(ctx context.Context, buId string) (*BusinessUnit, *Response, error) + func (i *IdentityService) GetTeam(ctx context.Context, teamId string) (*Team, *Response, error) + func (i *IdentityService) GetUser(ctx context.Context, userId string, detailed bool) (*User, *Response, error) + func (i *IdentityService) ListBusinessUnits(ctx context.Context, searchTerm string) ([]BusinessUnit, *Response, error) + func (i *IdentityService) ListRoles(ctx context.Context, options PageOptions) ([]Role, *Response, error) + func (i *IdentityService) ListTeams(ctx context.Context, options ListTeamOptions) ([]Team, *Response, error) + func (i *IdentityService) ListUsers(ctx context.Context, options ListUserOptions) ([]User, *Response, error) + func (i *IdentityService) SearchUsers(ctx context.Context, options SearchUserOptions) ([]User, *Response, error) + func (i *IdentityService) Self(ctx context.Context, detailed bool) (*User, *Response, error) + func (i *IdentityService) UpdateBusinessUnit(ctx context.Context, bu *BusinessUnit, options UpdateOptions) (*BusinessUnit, *Response, error) + func (i *IdentityService) UpdateSelf(ctx context.Context, user *User, options UpdateOptions) (*User, *Response, error) + func (i *IdentityService) UpdateTeam(ctx context.Context, team *Team, options UpdateOptions) (*Team, *Response, error) + func (i *IdentityService) UpdateUser(ctx context.Context, user *User, options UpdateOptions) (*User, *Response, error) + type ListApplicationOptions struct + BusinessUnit string + CustomFieldNames []string + CustomFieldValues []string + LegacyId int + ModifiedAfter string + Name string + Page int + PolicyCompliance PolicyCompliance + PolicyComplianceCheckedAfter string + PolicyGuid string + ScanStatus []ScanStatus + ScanType ScanType + Size int + SortByCustomFieldName string + Tag string + Team string + func (l *ListApplicationOptions) AddCustomFieldOption(customFieldName, customFieldValue string) + type ListCollectionOptions struct + BusinessUnit string + CustomFieldNames []string + CustomFieldValues []string + Name string + Page int + Size int + Tag string + func (l *ListCollectionOptions) AddCustomFieldOption(customFieldName, customFieldValue string) + type ListCustomFieldOptions struct + Page int + Size int + type ListTeamOptions struct + AllForOrg *bool + Page int + Size int + type ListUserOptions struct + Detailed string + EmailAddress []string + Page int + Size int + UserName string + type PageOptions struct + Page int + Size int + type Permission struct + Name string + type PolicyCompliance string + type Profile struct + Name string + VeracodeApiKeyId string + VeracodeApiKeySecret string + type Region string + const RegionCommercial + const RegionEurope + const RegionUnitedStates + type Response struct + Links navLinks + Page pageMeta + type Role struct + IsApi bool + IsScanType bool + RoleDescription string + RoleId string + RoleLegacyId int + RoleName string + TeamAdminManageable bool + type RoleUser struct + RoleDescription string + RoleId string + RoleName string + type ScanStatus string + type ScanType string + type SearchUserOptions struct + ApiId string + Detailed string + LoginEnabled string + LoginStatus string + Page int + RoleId string + SamlUser string + SearchTerm string + Size int + TeamId string + UserType string + type Team struct + BusinessUnit *BusinessUnit + Relationship TeamRelationship + TeamId string + TeamLegacyId int + TeamName string + Users *[]User + func (t *Team) MarshalJSON() ([]byte, error) + type TeamRelationship struct + Name string + type UpdateOptions struct + Incremental *bool + Partial *bool + type User struct + AccountType string + Active *bool + EmailAddress string + FirstName string + LastName string + LegacyUserId string + LoginEnabled *bool + Permissions *[]Permission + Relationship TeamRelationship + Roles *[]RoleUser + SamlSubject string + SamlUser *bool + Teams *[]Team + Title string + UserId string + UserName string + UserType string + func NewAPIUser(userName, emailAddress, firstName, lastName string, teams []Team) *User + func NewSAMLUser(emailAddress, firstName, lastName, samlSubject string) *User + func NewUser(emailAddress, firstName, lastName string) *User + func (u *User) MarshalJSON() ([]byte, error) v0.3.0 Jun 12, 2024 v0.2.0 Jun 7, 2024 v0.1.1 Feb 4, 2024 v0.1.0 Feb 3, 2024