api

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppData added in v1.1.0

type AppData struct {
	Data struct {
		TypeName        string       `json:"__typename"`
		ApplicationData []AppDetails `json:"applicationData"`
	} `json:"data"`
}

type AppDetails added in v1.1.0

type AppDetails struct {
	TypeName string `json:"__typename"`
	Name     string `json:"name"`
	Version  string `json:"version"`
}

type Client

type Client struct {
	SessionId *string
	Token     *string
	Graphql   *graphql.Client
}

Vanta API Client

func CreateAppClient

func CreateAppClient(ctx context.Context, config ClientConfig) (*Client, error)

func CreateClient

func CreateClient(ctx context.Context, config ClientConfig) (*Client, error)

type ClientConfig

type ClientConfig struct {
	ApiToken  *string
	SessionId *string
}

ClientConfig provides configuration to Vanta API

type CurrentTestResult

type CurrentTestResult struct {
	FailingResourceEntities FailingResourceEntitiesEdge `json:"failingResourceEntities"`
}

type DomainEndPointQueryOrganization

type DomainEndPointQueryOrganization struct {
	Id    string                    `json:"id"`
	Name  string                    `json:"name"`
	Users []DomainEndPointQueryUser `json:"users"`
}

type DomainEndPointQueryUser

type DomainEndPointQueryUser struct {
	DisplayName  string        `json:"displayName"`
	Id           string        `json:"id"`
	Workstations []Workstation `json:"workstations"`
}

type EmbeddedIdpGroupMap

type EmbeddedIdpGroupMap struct {
	Id        string `json:"id"`
	Service   string `json:"service"`
	UpdatedAt string `json:"updatedAt"`
}

type EndpointApplicationQueryOrganization added in v0.1.0

type EndpointApplicationQueryOrganization struct {
	OsqueryEndpointsByIds []AppData `json:"osqueryEndpointsByIds"`
}

type Evidence

type Evidence struct {
	AppUploadEnabled  bool                    `json:"appUploadEnabled"`
	Category          string                  `json:"category"`
	Description       string                  `json:"description"`
	DismissedStatus   EvidenceDismissedStatus `json:"dismissedStatus"`
	EvidenceRequestId string                  `json:"evidenceRequestId"`
	OrganizationName  string                  `json:"-"`
	RenewalMetadata   EvidenceRenewalMetadata `json:"renewalMetadata"`
	Restricted        bool                    `json:"restricted"`
	Title             string                  `json:"title"`
	Uid               string                  `json:"uid"`
}

Data about an evidence

type EvidenceConnection

type EvidenceConnection struct {
	Edges      []EvidenceEdge `json:"edges"`
	PageInfo   PageInfo       `json:"pageInfo"`
	TotalCount int            `json:"totalCount"`
}

Paginated list of evidences

type EvidenceDismissedStatus

type EvidenceDismissedStatus struct {
	CreatedAt   string `json:"createdAt"`
	IsDismissed bool   `json:"isDismissed"`
	Reason      string `json:"reason"`
}

Information about the dismissed status of the evidence

type EvidenceEdge

type EvidenceEdge struct {
	Evidence Evidence `json:"node"`
}

Relay-style edge for evidence

type EvidenceQueryOrganization

type EvidenceQueryOrganization struct {
	Name      string             `json:"name"`
	Evidences EvidenceConnection `json:"evidenceRequests"`
}

type EvidenceRenewalMetadata

type EvidenceRenewalMetadata struct {
	Cadence              string `json:"cadence"`
	CadenceLastUpdatedAt string `json:"cadenceLastUpdatedAt"`
	NextDate             string `json:"nextDate"`
}

Information on the renewal cadence of the evidence

type FailingResourceEntitiesEdge

type FailingResourceEntitiesEdge struct {
	Edges      []FailingResourceEntityNode `json:"edges"`
	PageInfo   PageInfo                    `json:"pageInfo"`
	TotalCount int                         `json:"totalCount"`
}

Relay-style connection for FailingResourceEntity

type FailingResourceEntityNode

type FailingResourceEntityNode struct {
	Node FailingResourceEntityResource `json:"node"`
}

type FailingResourceEntityQueryOrganization

type FailingResourceEntityQueryOrganization struct {
	Name               string              `json:"name"`
	CurrentTestResults []CurrentTestResult `json:"currentTestResults"`
}

type FailingResourceEntityResource

type FailingResourceEntityResource struct {
	Resource Resource `json:"resource"`
}

Type for an entity that was tested

type Group

type Group struct {
	Checklist        GroupChecklist      `json:"checklist"`
	EmbeddedIdpGroup EmbeddedIdpGroupMap `json:"embeddedIdpGroup"`
	Id               string              `json:"id"`
	Name             string              `json:"name"`
	OrganizationName string              `json:"_"`
}

type GroupChecklist

type GroupChecklist struct {
	Id           string                  `json:"id"`
	Name         string                  `json:"name"`
	Requirements SecurityRequirementsMap `json:"securityRequirements"`
}

Group checklist

type GroupQueryOrganization

type GroupQueryOrganization struct {
	Groups []Group `json:"roles"`
	Name   string  `json:"name"`
}

type HrUserMap

type HrUserMap struct {
	ApolloId  string `json:"apolloId"`
	EndDate   string `json:"endDate"`
	IsActive  bool   `json:"isActive"`
	JobTitle  string `json:"jobTitle"`
	Service   string `json:"service"`
	StartDate string `json:"startDate"`
	UniqueId  string `json:"uniqueId"`
}

type Integration

type Integration struct {
	ApplicationUrl        string                  `json:"applicationUrl"`
	Credentials           []IntegrationCredential `json:"credentials"`
	Description           string                  `json:"description"`
	DisplayName           string                  `json:"displayName"`
	Id                    string                  `json:"id"`
	InstallationUrl       string                  `json:"installationUrl"`
	IntegrationCategories []string                `json:"integrationCategories"`
	LogoSlugId            string                  `json:"logoSlugId"`
	OrganizationName      string                  `json:"-"`
	ScopableResources     []string                `json:"scopableResources"`
	ServiceCategories     []string                `json:"serviceCategories"`
	Tests                 []Test                  `json:"tests"`
}

type IntegrationControl

type IntegrationControl struct {
	ControlId string `json:"controlId"`
}

type IntegrationCredential

type IntegrationCredential struct {
	DisableCause       string      `json:"disableCause"`
	DisabledFetchKinds interface{} `json:"disabledFetchKinds"`
	EnabledProducts    interface{} `json:"enabledProducts"`
	ExternalAccountId  string      `json:"externalAccountId"`
	Id                 string      `json:"id"`
	IsDisabled         bool        `json:"isDisabled"`
	LastUpdated        string      `json:"lastUpdated"`
	Metadata           string      `json:"metadata"`
	Service            string      `json:"service"`
	WillExpire         string      `json:"willExpire"`
}

type IntegrationEdge

type IntegrationEdge struct {
	Integration Integration `json:"node"`
}

Relay-style edge for Vanta integration

type IntegrationQueryOrganization

type IntegrationQueryOrganization struct {
	Name         string       `json:"name"`
	Integrations Integrations `json:"integrations"`
}

type Integrations

type Integrations struct {
	Edges      []IntegrationEdge `json:"edges"`
	PageInfo   PageInfo          `json:"pageInfo"`
	TotalCount int               `json:"totalCount"`
}

Paginated list of Vanta integrations

type ListEndpointApplicationsResponse added in v0.1.0

type ListEndpointApplicationsResponse struct {
	Organization EndpointApplicationQueryOrganization `json:"organization"`
}

ListEndpointApplicationsResponse is returned by ListEndpointApplications on success

func ListEndpointApplications added in v0.1.0

func ListEndpointApplications(
	ctx context.Context,
	client *Client,
	id string,
) (*ListEndpointApplicationsResponse, error)

ListEndpointApplications returns the list of applications installed on a device

@param ctx context for configuration

@param client the API client

@param id the endpoint ID

type ListEvidencesConfiguration

type ListEvidencesConfiguration struct {
	// The maximum number of results to return in a single call. To retrieve the
	// remaining results, make another call with the returned EndCursor value.
	//
	// Maximum limit is 100.
	Limit int

	// When paginating forwards, the cursor to continue.
	EndCursor string
}

type ListEvidencesResponse

type ListEvidencesResponse struct {
	Organization EvidenceQueryOrganization `json:"organization"`
}

ListEvidencesResponse is returned by ListEvidences on success

func GetEvidence

func GetEvidence(
	ctx context.Context,
	client *Client,
	id string,
) (*ListEvidencesResponse, error)

GetEvidence returns a specific evidence

@param ctx context for configuration

@param client the API client

@param id unique identifier of the evidence

func ListEvidences

func ListEvidences(
	ctx context.Context,
	client *Client,
	options *ListEvidencesConfiguration,
) (*ListEvidencesResponse, error)

ListEvidences returns a paginated list of evidences

@param ctx context for configuration

@param client the API client

@param options the API parameters

type ListGroupsResponse

type ListGroupsResponse struct {
	Organization GroupQueryOrganization `json:"organization"`
}

ListGroupsResponse is returned by ListGroups on success

func ListGroups

func ListGroups(
	ctx context.Context,
	client *Client,
) (*ListGroupsResponse, error)

ListGroups returns a list all Vanta groups

@param ctx context for configuration

@param client the API client

type ListIntegrationsRequestConfiguration

type ListIntegrationsRequestConfiguration struct {
	// The maximum number of results to return in a single call. To retrieve the
	// remaining results, make another call with the returned EndCursor value.
	//
	// Maximum limit is 50.
	Limit int

	// When paginating forwards, the cursor to continue.
	EndCursor string

	// If true, only connected integrations will be listed.
	// Set false to list all the available integrations.
	// Default is true.
	OnlyConnected *bool
}

type ListIntegrationsResponse

type ListIntegrationsResponse struct {
	Organization IntegrationQueryOrganization `json:"organization"`
}

ListIntegrationsResponse is returned by ListIntegrations on success

func ListIntegrations

func ListIntegrations(
	ctx context.Context,
	client *Client,
	options *ListIntegrationsRequestConfiguration,
) (*ListIntegrationsResponse, error)

ListIntegrations returns a paginated list of vendors

@param ctx context for configuration

@param client the API client

@param options the API parameters

type ListMonitorsResponse

type ListMonitorsResponse struct {
	Organization MonitorQueryOrganization `json:"organization"`
}

ListMonitorsResponse is returned by ListMonitors on success

func ListMonitors

func ListMonitors(
	ctx context.Context,
	client *Client,
) (*ListMonitorsResponse, error)

ListMonitors returns a list of most recent test runs and metadata about them

@param ctx context for configuration

@param client the API client

type ListPoliciesResponse

type ListPoliciesResponse struct {
	Organization PolicyQueryOrganization `json:"organization"`
}

ListPoliciesResponse is returned by ListPolicies on success

func ListPolicies

func ListPolicies(
	ctx context.Context,
	client *Client,
) (*ListPoliciesResponse, error)

ListPolicies returns a list of the most recent policies of each type

@param ctx context for configuration

@param client the API client

type ListTestFailingResourceEntitiesRequestConfiguration

type ListTestFailingResourceEntitiesRequestConfiguration struct {
	// Required
	//
	// A list of testIds to filter by.
	TestIds []string

	// The maximum number of results to return in a single call. To retrieve the
	// remaining results, make another call with the returned EndCursor value.
	//
	// Maximum limit is 100.
	Limit int

	// When paginating forwards, the cursor to continue.
	EndCursor string
}

type ListTestFailingResourceEntitiesResponse

type ListTestFailingResourceEntitiesResponse struct {
	Organization FailingResourceEntityQueryOrganization `json:"organization"`
}

ListTestFailingResourceEntitiesResponse is returned by ListTestFailingResourceEntities on success

func ListTestFailingResourceEntities

ListTestFailingResourceEntities returns a paginated list of the entities that were in a failing state when the test was run

@param ctx context for configuration

@param client the API client

@param options the API parameters

type ListUsersRequestConfiguration

type ListUsersRequestConfiguration struct {
	// The maximum number of results to return in a single call. To retrieve the
	// remaining results, make another call with the returned EndCursor value.
	//
	// Maximum limit is 100.
	Limit int

	// When paginating forwards, the cursor to continue.
	EndCursor string

	// The filter object used to filter the API response.
	Filters *UserFilters
}

type ListUsersResponse

type ListUsersResponse struct {
	Organization UserQueryOrganization `json:"organization"`
}

ListUsersResponse is returned by ListUsers on success

func ListUsers

func ListUsers(
	ctx context.Context,
	client *Client,
	options *ListUsersRequestConfiguration,
) (*ListUsersResponse, error)

ListUsers returns a paginated list of currently active users

@param ctx context for configuration

@param client the API client

@param options the API parameters

type ListVendorsRequestConfiguration

type ListVendorsRequestConfiguration struct {
	// The maximum number of results to return in a single call. To retrieve the
	// remaining results, make another call with the returned EndCursor value.
	//
	// Maximum limit is 100.
	Limit     int
	EndCursor string
	Filters   *VendorFilters
}

ListVendorsRequestConfiguration defines request parameters for the ListVendors function.

type ListVendorsResponse

type ListVendorsResponse struct {
	Organization VendorQueryOrganization `json:"organization"`
}

ListVendorsResponse represents the full response of the ListVendors query.

func ListVendors

func ListVendors(
	ctx context.Context,
	client *Client,
	options *ListVendorsRequestConfiguration,
) (*ListVendorsResponse, error)

ListVendors returns a paginated list of vendors

@param ctx context for configuration

@param client the API client

@param options the API parameters

type ListWorkstationsResponse

type ListWorkstationsResponse struct {
	Organization DomainEndPointQueryOrganization `json:"organization"`
}

ListWorkstationsResponse is returned by ListWorkstations on success

func ListWorkstations

func ListWorkstations(
	ctx context.Context,
	client *Client,
) (*ListWorkstationsResponse, error)

ListWorkstations returns the list all computers within your organization with their security-relevant settings information

@param ctx context for configuration

@param client the API client

type Monitor

type Monitor struct {
	Assignees               []TestAssignee        `json:"assignees"`
	Category                string                `json:"category"`
	ComplianceStatus        string                `json:"complianceStatus"`
	Controls                []TestControlInfo     `json:"controls"`
	Description             string                `json:"description"`
	DisabledStatus          TestDisabledStatus    `json:"disabledStatus"`
	Id                      string                `json:"id"`
	LatestFlipTime          string                `json:"latestFlipTime"`
	Name                    string                `json:"name"`
	OrganizationName        string                `json:"-"`
	Outcome                 string                `json:"outcome"`
	RemediationStatus       TestRemediationStatus `json:"remediationStatus"`
	Services                []string              `json:"services"`
	TestId                  string                `json:"testId"`
	UseRemediationTimelines bool                  `json:"useRemediationTimelines"`
}

Information about an individual test run

type MonitorQueryOrganization

type MonitorQueryOrganization struct {
	Name    string    `json:"name"`
	Results []Monitor `json:"testResults"`
}

type PageInfo

type PageInfo struct {
	// When paginating forwards, are there more items?
	HasNextPage bool `json:"hasNextPage"`

	// When paginating forwards, the cursor to continue.
	EndCursor string `json:"endCursor"`
}

type Policy

type Policy struct {
	ApprovedAt       string            `json:"approvedAt"`
	Approver         PolicyApprover    `json:"approver"`
	CreatedAt        string            `json:"createdAt"`
	DisplayName      string            `json:"displayName"`
	Id               string            `json:"id"`
	Metadata         PolicyDocStub     `json:"-"`
	NumUsers         int               `json:"numUsers"`
	NumUsersAccepted int               `json:"numUsersAccepted"`
	OrganizationName string            `json:"-"`
	PolicyType       string            `json:"policyType"`
	Source           string            `json:"source"`
	Title            string            `json:"title"`
	UpdatedAt        string            `json:"updatedAt"`
	UploadedDoc      PolicyUploadedDoc `json:"uploadedDoc"`
	Uploader         PolicyUploader    `json:"uploader"`
}

Data about a policy within Vanta

type PolicyAcceptanceControl

type PolicyAcceptanceControl struct {
	Id               string                                   `json:"id"`
	Name             string                                   `json:"name"`
	StandardSections []PolicyAcceptanceControlStandardSection `json:"standardSections"`
	Assignees        []PolicyAcceptanceControlAssignee        `json:"assignees"`
}

type PolicyAcceptanceControlAssignee

type PolicyAcceptanceControlAssignee struct {
	Id          string `json:"id"`
	DisplayName string `json:"displayName"`
}

type PolicyAcceptanceControlStandardSection

type PolicyAcceptanceControlStandardSection struct {
	Standard string   `json:"standard"`
	Sections []string `json:"sections"`
}

type PolicyApprover

type PolicyApprover struct {
	Id          string `json:"id"`
	DisplayName string `json:"displayName"`
}

type PolicyDocStub

type PolicyDocStub struct {
	Description              string                    `json:"description"`
	PolicyType               string                    `json:"policyType"`
	Status                   string                    `json:"status"`
	EmployeeAcceptanceTestId string                    `json:"employeeAcceptanceTestId"`
	AcceptanceControls       []PolicyAcceptanceControl `json:"acceptanceControls"`
}

type PolicyQueryOrganization

type PolicyQueryOrganization struct {
	Name           string          `json:"name"`
	Policies       []Policy        `json:"policies"`
	PolicyDocStubs []PolicyDocStub `json:"policyDocStubs"`
}

type PolicyUploadedDoc

type PolicyUploadedDoc struct {
	Id     string `json:"id"`
	SlugId string `json:"slugId"`
	Url    string `json:"url"`
}

type PolicyUploader

type PolicyUploader struct {
	Id          string `json:"id"`
	DisplayName string `json:"displayName"`
}

type Resource

type Resource struct {
	DisplayName string `json:"displayName"`
	Uid         string `json:"uid"`
	Type        string `json:"__typename"`
}

type SecurityRequirementsMap

type SecurityRequirementsMap struct {
	MustAcceptPolicies                bool `json:"mustAcceptPolicies"`
	MustBeBackgroundChecked           bool `json:"mustBeBackgroundChecked"`
	MustCompleteCcpaSecurityTraining  bool `json:"mustCompleteCcpaSecurityTraining"`
	MustCompleteGdprSecurityTraining  bool `json:"mustCompleteGdprSecurityTraining"`
	MustCompleteHipaaSecurityTraining bool `json:"mustCompleteHipaaSecurityTraining"`
	MustCompletePciSecurityTraining   bool `json:"mustCompletePciSecurityTraining"`
	MustCompleteSecurityTraining      bool `json:"mustCompleteSecurityTraining"`
	MustInstallLaptopMonitoring       bool `json:"mustInstallLaptopMonitoring"`
}

Group security requirements

type Test

type Test struct {
	TestId   string               `json:"testId"`
	Controls []IntegrationControl `json:"controls"`
}

type TestAssignee

type TestAssignee struct {
	Id          string `json:"id"`
	DisplayName string `json:"displayName"`
}

Information about assignee

type TestControlInfo

type TestControlInfo struct {
	Id               string                       `json:"id"`
	Name             string                       `json:"name"`
	StandardSections []TestControlStandardSection `json:"standardSections"`
}

type TestControlStandardInfo

type TestControlStandardInfo struct {
	Standard string `json:"standard"`
}

type TestControlStandardSection

type TestControlStandardSection struct {
	StandardInfo TestControlStandardInfo `json:"standardInfo"`
}

type TestDisabledStatus

type TestDisabledStatus struct {
	CreatedAt  string `json:"createdAt"`
	Disabled   bool   `json:"disabled"`
	Expiration string `json:"expiration"`
}

Metadata about whether this test is disabled and by whom

type TestRemediationStatus

type TestRemediationStatus struct {
	Status                 string `json:"status"`
	SoonestRemediateByDate string `json:"soonestRemediateByDate"`
}

type User

type User struct {
	Id                          string        `json:"id"`
	DisplayName                 string        `json:"displayName"`
	CreatedAt                   string        `json:"createdAt"`
	Email                       string        `json:"email"`
	PermissionLevel             string        `json:"permissionLevel"`
	EmploymentStatus            string        `json:"employmentStatus"`
	TaskStatus                  string        `json:"taskStatus"`
	StartDate                   string        `json:"startDate"`
	EndDate                     string        `json:"endDate"`
	FamilyName                  string        `json:"familyName"`
	GivenName                   string        `json:"givenName"`
	IsActive                    bool          `json:"isActive"`
	IsNotHuman                  bool          `json:"isNotHuman"`
	IsFromScan                  bool          `json:"isFromScan"`
	NeedsEmployeeDigestReminder bool          `json:"needsEmployeeDigestReminder"`
	HrUser                      HrUserMap     `json:"hrUser"`
	Role                        UserRoleMap   `json:"role"`
	TaskStatusInfo              UserStatusMap `json:"taskStatusInfo"`
	OrganizationName            string        `json:"-"`
}

Data about a user within Vanta

type UserEdge

type UserEdge struct {
	User User `json:"node"`
}

Relay-style edge for User

type UserFilters

type UserFilters struct {
	// Filter using user employment status.
	// Supported values: CURRENTLY_EMPLOYED, PREVIOUSLY_EMPLOYED, NOT_PEOPLE, INACTIVE_EMPLOYEE, UPCOMING_EMPLOYEE
	EmploymentStatusFilter string

	// Filter using the security task status.
	// Supported values: SECURITY_TASKS_DUE_SOON, SECURITY_TASKS_OVERDUE, SECURITY_TASKS_COMPLETE, OFFBOARDING_DUE_SOON, OFFBOARDING_OVERDUE, OFFBOARDING_COMPLETE
	TaskStatusFilters []string
}

Filter object to filter the API response.

type UserList

type UserList struct {
	Edges      []UserEdge `json:"edges"`
	PageInfo   PageInfo   `json:"pageInfo"`
	TotalCount int        `json:"totalCount"`
}

Paginated list of currently active users

type UserQueryOrganization

type UserQueryOrganization struct {
	Name     string   `json:"name"`
	UserList UserList `json:"people"`
}

type UserRoleMap

type UserRoleMap struct {
	Id   string `json:"id"`
	Name string `json:"name"`
}

type UserStatusMap

type UserStatusMap struct {
	CompletionDate string `json:"completionDate"`
	DueDate        string `json:"dueDate"`
	Status         string `json:"status"`
}

type Vendor

type Vendor struct {
	Id                   string `json:"id"`
	RiskLevel            string `json:"riskLevel"`
	CreatedAt            string `json:"createdAt"`
	LatestSecurityReview struct {
		CompletionDate string `json:"completionDate"`
	} `json:"latestSecurityReview"`
	Name                      string               `json:"name"`
	Url                       string               `json:"url"`
	VendorCategory            string               `json:"vendorCategory"`
	PublicTrustReportURL      string               `json:"publicTrustReportURL"`
	OrganizationName          string               `json:"organizationName"`
	VendorState               string               `json:"vendorState"`
	Owner                     VendorOwner          `json:"owner"`
	VendorRiskLocked          bool                 `json:"vendorRiskLocked"`
	RiskProfile               VendorRiskProfile    `json:"riskProfile"`
	VendorDocumentStatuses    VendorDocumentStatus `json:"vendorDocumentStatuses"`
	SecurityReviewStatus      string               `json:"securityReviewStatus"`
	ContractTerminationDate   string               `json:"contractTerminationDate"`
	LastArchivedByActor       VendorOwner          `json:"lastArchivedByActor"`
	SecurityReviewRenewalInfo struct {
		DueDate              string `json:"dueDate"`
		LatestCompletionDate string `json:"latestCompletionDate"`
	} `json:"securityReviewRenewalInfo"`
}

Vendor represents the vendor entity with associated data.

type VendorDocumentStatus added in v1.1.0

type VendorDocumentStatus struct {
	Baa struct {
		Required bool `json:"required"`
		Uploaded bool `json:"uploaded"`
	} `json:"baa"`
	Dpa struct {
		Required bool `json:"required"`
		Uploaded bool `json:"uploaded"`
	} `json:"dpa"`
}

VendorDocumentStatus represents the status of vendor agreements.

type VendorEdge

type VendorEdge struct {
	Vendor Vendor `json:"node"`
}

VendorEdge represents a single edge in the vendors query result.

type VendorFilters

type VendorFilters struct {
	// Filter using vendor risk level.
	// Supported values: HIGH, MEDIUM, LOW
	SeverityFilter []string `json:"severityFilter"`
}

VendorFilters defines filters for querying vendors.

type VendorOwner

type VendorOwner struct {
	Id          string `json:"id"`
	DisplayName string `json:"displayName"`
}

VendorOwner represents the owner of a vendor.

type VendorQueryOrganization

type VendorQueryOrganization struct {
	Name    string  `json:"name"`
	Vendors Vendors `json:"vendors"`
}

VendorQueryOrganization represents the organization data in the query.

type VendorRiskAttribute added in v1.1.0

type VendorRiskAttribute struct {
	Id             string `json:"id"`
	RiskName       string `json:"riskName"`
	RiskLevel      string `json:"riskLevel"`
	IsActive       bool   `json:"isActive"`
	Description    string `json:"description"`
	RiskCategoryId string `json:"riskCategoryId"`
}

VendorRiskAttribute represents the risk attribute of a vendor.

type VendorRiskCategory added in v1.1.0

type VendorRiskCategory struct {
	RiskCategoryId   string                `json:"riskCategoryId"`
	RiskCategoryName string                `json:"riskCategoryName"`
	Active           bool                  `json:"active"`
	RiskAttributes   []VendorRiskAttribute `json:"riskAttributes"`
}

VendorRiskCategory represents a risk category for a vendor.

type VendorRiskProfile added in v0.0.2

type VendorRiskProfile struct {
	RiskCategories []VendorRiskCategory `json:"riskCategories"`
}

VendorRiskProfile represents the risk profile of a vendor.

type Vendors

type Vendors struct {
	Edges      []VendorEdge `json:"edges"`
	PageInfo   PageInfo     `json:"pageInfo"`
	TotalCount int          `json:"totalCount"`
}

Vendors represents the paginated list of vendors.

type Workstation

type Workstation struct {
	Data               WorkstationData               `json:"data"`
	Id                 string                        `json:"id"`
	OrganizationName   string                        `json:"-"`
	Owner              WorkstationOwner              `json:"-"`
	UnsupportedReasons WorkstationUnsupportedReasons `json:"unsupportedReasons"`
}

type WorkstationData

type WorkstationData struct {
	AgentVersion               string   `json:"agentVersion"`
	HasScreenLock              bool     `json:"hasScreenlock"`
	HostIdentifier             string   `json:"hostIdentifier"`
	Hostname                   string   `json:"hostname"`
	Id                         string   `json:"id"`
	InstalledAvPrograms        []string `json:"installedAvPrograms"`
	InstalledPasswordManagers  []string `json:"installedPasswordManagers"`
	IsEncrypted                bool     `json:"isEncrypted"`
	IsPasswordManagerInstalled bool     `json:"isPasswordManagerInstalled"`
	LastPing                   string   `json:"lastPing"`
	NumBrowserExtensions       int      `json:"numBrowserExtensions"`
	OsVersion                  string   `json:"osVersion"`
	SerialNumber               string   `json:"serialNumber"`
}

type WorkstationOwner

type WorkstationOwner struct {
	DisplayName string
	Id          string
}

type WorkstationUnsupportedReasons

type WorkstationUnsupportedReasons struct {
	UnsupportedOsVersion bool `json:"unsupportedOsVersion"`
	UnsupportedOsType    bool `json:"unsupportedOsType"`
}

Jump to

Keyboard shortcuts

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