Versions in this module Expand all Collapse all v0 v0.6.0 Jun 27, 2022 Changes in this version type Client + func (c *Client) ListRiskMitigationDetails(ctx context.Context) ([]*RiskMitigationDetails, error) + func (c *Client) ListRiskMitigationSummaries(ctx context.Context) ([]*RiskMitigationSummary, error) + type RiskMitigationDetails struct + CustomerID string + DeviceId *int + DeviceIp *string + DeviceName *string + ProductFamily *string + ProductId *string + RiskCategory *string + RiskScore *float32 + SwType *string + SwVersion *string + func (r *RiskMitigationDetails) GetDeviceId() int + func (r *RiskMitigationDetails) GetDeviceIp() string + func (r *RiskMitigationDetails) GetDeviceName() string + func (r *RiskMitigationDetails) GetProductFamily() string + func (r *RiskMitigationDetails) GetProductId() string + func (r *RiskMitigationDetails) GetRiskCategory() string + func (r *RiskMitigationDetails) GetRiskScore() float32 + func (r *RiskMitigationDetails) GetSwType() string + func (r *RiskMitigationDetails) GetSwVersion() string + type RiskMitigationSummary struct + CustomerID string + HighRiskDeviceCount *int + LowRiskDeviceCount *int + MediumRiskDeviceCount *int + ProductFamily *string + func (r *RiskMitigationSummary) GetHighRiskDeviceCount() int + func (r *RiskMitigationSummary) GetLowRiskDeviceCount() int + func (r *RiskMitigationSummary) GetMediumRiskDeviceCount() int + func (r *RiskMitigationSummary) GetProductFamily() string type SyslogDaily + func (s *SyslogDaily) GetDate() *Date + func (s *SyslogDaily) GetDescription() string + func (s *SyslogDaily) GetIcseverity() string + func (s *SyslogDaily) GetMsgtype() string + func (s *SyslogDaily) GetRecommendation() string + func (s *SyslogDaily) GetSeverity() int + func (s *SyslogDaily) GetTimestamp() *DateTime + func (s *SyslogDaily) GetTotal() int type SyslogDevice + func (s *SyslogDevice) GetDevice() string + func (s *SyslogDevice) GetDeviceId() int + func (s *SyslogDevice) GetEvents() int v0.5.0 Jun 27, 2022 Changes in this version type Client + func (c *Client) ListAllContractInformationPerSerialNumber(ctx context.Context) ([]*SerialNumberDetails, error) + func (c *Client) ListAllDailySyslog(ctx context.Context) ([]*SyslogDaily, error) + type ContractBasePID struct + BasePid *string + func (c *ContractBasePID) GetBasePid() string type Date + func (d *Date) Value() (driver.Value, error) + type OrderablePid struct + ItemDescription *string + ItemPosition *string + ItemType *string + OrderablePid *string + PillarCode *string + func (o *OrderablePid) GetItemDescription() string + func (o *OrderablePid) GetItemPosition() string + func (o *OrderablePid) GetItemType() string + func (o *OrderablePid) GetOrderablePid() string + func (o *OrderablePid) GetPillarCode() string + type SerialNumberDetails struct + BasePidList *[]ContractBasePID + ContractSiteAddress1 *string + ContractSiteCity *string + ContractSiteCountry *string + ContractSiteCustomerName *string + ContractSiteStateProvince *string + CoveredProductLineEndDate *Date + CustomerID string + FirstBasePid string + FirstOrderablePid string + FirstOrderablePidDescription string + FirstOrderablePidPillarCode string + FirstOrderablePidPosition string + FirstOrderablePidType string + Id *int + IsCovered *string + OrderablePidList *[]OrderablePid + ParentSrNo *string + ServiceContractNumber *string + ServiceLineDescr *string + SrNo *string + WarrantyEndDate *Date + WarrantyType *string + WarrantyTypeDescription *string + func (s *SerialNumberDetails) GetBasePidList() []ContractBasePID + func (s *SerialNumberDetails) GetContractSiteAddress1() string + func (s *SerialNumberDetails) GetContractSiteCity() string + func (s *SerialNumberDetails) GetContractSiteCountry() string + func (s *SerialNumberDetails) GetContractSiteCustomerName() string + func (s *SerialNumberDetails) GetContractSiteStateProvince() string + func (s *SerialNumberDetails) GetCoveredProductLineEndDate() *Date + func (s *SerialNumberDetails) GetId() int + func (s *SerialNumberDetails) GetIsCovered() string + func (s *SerialNumberDetails) GetOrderablePidList() []OrderablePid + func (s *SerialNumberDetails) GetParentSrNo() string + func (s *SerialNumberDetails) GetServiceContractNumber() string + func (s *SerialNumberDetails) GetServiceLineDescr() string + func (s *SerialNumberDetails) GetSrNo() string + func (s *SerialNumberDetails) GetWarrantyEndDate() *Date + func (s *SerialNumberDetails) GetWarrantyType() string + func (s *SerialNumberDetails) GetWarrantyTypeDescription() string + type SyslogDaily struct + CustomerID string + Date *Date + Description *string + Devices *map[string]interface{} + Icseverity *string + Msgtype *string + Recommendation *string + Severity *int + Timestamp *DateTime + Total *int + type SyslogDevice struct + Device *string + DeviceId *int + Events *int v0.4.0 Apr 14, 2022 Changes in this version + const DateFormat + const DateTimeMinusTimezoneFormat + const ErrBadRequest + const ErrForbidden + const ErrInternalError + const ErrMissingAPIKey + const ErrMissingCustomerID + const ErrUnauthorized + const ErrUnknown + func Bool(v bool) *bool + func Float64(v float64) *float64 + func Int(v int) *int + func Int64(v int64) *int64 + func ListAllBCSObjects(ctx context.Context, c *Client, customerID string, urlStr string) ([]*T, error) + func String(v string) *string + type Asset struct + ChassisName *string + CustomerID string + DeviceId *int + DeviceName *string + HwRev *string + InstalledFlash *int + InstalledMemory *int + Pcb *string + PcbRev *string + PhysicalElementId *int + PhysicalSubtype *string + PhysicalType *string + ProductFamily *string + ProductId *string + ProductType *string + SerialNumber *string + SerialNumberStatus *string + Slot *string + SwVersion *string + Tan *string + TanRev *string + func (a *Asset) GetChassisName() string + func (a *Asset) GetDeviceId() int + func (a *Asset) GetDeviceName() string + func (a *Asset) GetHwRev() string + func (a *Asset) GetInstalledFlash() int + func (a *Asset) GetInstalledMemory() int + func (a *Asset) GetPcb() string + func (a *Asset) GetPcbRev() string + func (a *Asset) GetPhysicalElementId() int + func (a *Asset) GetPhysicalSubtype() string + func (a *Asset) GetPhysicalType() string + func (a *Asset) GetProductFamily() string + func (a *Asset) GetProductId() string + func (a *Asset) GetProductType() string + func (a *Asset) GetSerialNumber() string + func (a *Asset) GetSerialNumberStatus() string + func (a *Asset) GetSlot() string + func (a *Asset) GetSwVersion() string + func (a *Asset) GetTan() string + func (a *Asset) GetTanRev() string + type BCSListResponse struct + Items []*T + Page int + Pages int + PerPage int + Total int + func ListBCSObject(ctx context.Context, c *Client, customerID string, urlStr string, ...) (*BCSListResponse[T], error) + type CBPDetail struct + BpNuggetId *int + BpRuleId *int + ConfigSource *string + CustomerID string + DeviceId *int + func (c *CBPDetail) GetBpNuggetId() int + func (c *CBPDetail) GetBpRuleId() int + func (c *CBPDetail) GetConfigSource() string + func (c *CBPDetail) GetDeviceId() int + type CBPRule struct + BpCaveat *string + BpCorrectiveAction *string + BpDescription *string + BpNuggetId *int + BpPrimaryTechnology *string + BpRecommendation *string + BpRisk *string + BpRuleId *int + BpSecondaryTechnology *string + BpTitle *string + CreateDate *DateTime + SwType *string + UpdateDate *DateTime + func (c *CBPRule) GetBpCaveat() string + func (c *CBPRule) GetBpCorrectiveAction() string + func (c *CBPRule) GetBpDescription() string + func (c *CBPRule) GetBpNuggetId() int + func (c *CBPRule) GetBpPrimaryTechnology() string + func (c *CBPRule) GetBpRecommendation() string + func (c *CBPRule) GetBpRisk() string + func (c *CBPRule) GetBpRuleId() int + func (c *CBPRule) GetBpSecondaryTechnology() string + func (c *CBPRule) GetBpTitle() string + func (c *CBPRule) GetCreateDate() *DateTime + func (c *CBPRule) GetSwType() string + func (c *CBPRule) GetUpdateDate() *DateTime + type CBPRulesReference struct + BpRuleId *int + BpUrl *string + BpUrlTitle *string + func (c *CBPRulesReference) GetBpRuleId() int + func (c *CBPRulesReference) GetBpUrl() string + func (c *CBPRulesReference) GetBpUrlTitle() string + type CBPSummary struct + BpNuggetId *int + BpPrimaryTechnology *string + BpRisk *string + BpRuleId *int + BpSecondaryTechnology *string + BpTitle *string + SwType *string + TotalDevices *int + func (c *CBPSummary) GetBpNuggetId() int + func (c *CBPSummary) GetBpPrimaryTechnology() string + func (c *CBPSummary) GetBpRisk() string + func (c *CBPSummary) GetBpRuleId() int + func (c *CBPSummary) GetBpSecondaryTechnology() string + func (c *CBPSummary) GetBpTitle() string + func (c *CBPSummary) GetSwType() string + func (c *CBPSummary) GetTotalDevices() int + type Client struct + APIKey string + BaseURL string + CustomerID string + HTTPClient *http.Client + func NewClient(customerID, apikey string, client *http.Client) (*Client, error) + func (c *Client) ListAllAssets(ctx context.Context) ([]*Asset, error) + func (c *Client) ListAllCBPDetailsPerDeviceID(ctx context.Context) ([]*CBPDetail, error) + func (c *Client) ListAllCBPRules(ctx context.Context) ([]*CBPRule, error) + func (c *Client) ListAllDevices(ctx context.Context) ([]*Device, error) + func (c *Client) ListAllFieldNoticeNBulletins(ctx context.Context) ([]*FieldNoticeNBulletin, error) + func (c *Client) ListAllFieldNotices(ctx context.Context) ([]*FieldNotice, error) + func (c *Client) ListAllHardwareEOX(ctx context.Context) ([]*HardwareEOX, error) + func (c *Client) ListAllHardwareEOXBulletins(ctx context.Context) ([]*HardwareEOXBulletin, error) + func (c *Client) ListAllSecurityAdvisories(ctx context.Context) ([]*SecurityAdvisory, error) + func (c *Client) ListAllSecurityAdvisoryBulletins(ctx context.Context) ([]*SecurityAdvisoryBulletin, error) + func (c *Client) ListAllSoftwareAlerts(ctx context.Context) ([]*SoftwareAlert, error) + func (c *Client) ListAllSoftwareEOX(ctx context.Context) ([]*SoftwareEOX, error) + func (c *Client) ListAllSoftwareEOXBulletins(ctx context.Context) ([]*SoftwareEOXBulletin, error) + func (c *Client) ListAssets(ctx context.Context, options ...*ListOptions) (*BCSListResponse[Asset], error) + func (c *Client) ListCBPDetailsPerDeviceID(ctx context.Context, options ...*ListOptions) (*BCSListResponse[CBPDetail], error) + func (c *Client) ListCBPRules(ctx context.Context, options ...*ListOptions) (*BCSListResponse[CBPRule], error) + func (c *Client) ListDevices(ctx context.Context, options ...*ListOptions) (*BCSListResponse[Device], error) + func (c *Client) ListFieldNoticeNBulletins(ctx context.Context, options ...*ListOptions) (*BCSListResponse[FieldNoticeNBulletin], error) + func (c *Client) ListFieldNotices(ctx context.Context, options ...*ListOptions) (*BCSListResponse[FieldNotice], error) + func (c *Client) ListHardwareEOX(ctx context.Context, options ...*ListOptions) (*BCSListResponse[HardwareEOX], error) + func (c *Client) ListHardwareEOXBulletins(ctx context.Context, options ...*ListOptions) (*BCSListResponse[HardwareEOXBulletin], error) + func (c *Client) ListSecurityAdvisories(ctx context.Context, options ...*ListOptions) (*BCSListResponse[SecurityAdvisory], error) + func (c *Client) ListSecurityAdvisoryBulletins(ctx context.Context, options ...*ListOptions) (*BCSListResponse[SecurityAdvisoryBulletin], error) + func (c *Client) ListSoftwareAlerts(ctx context.Context, options ...*ListOptions) (*BCSListResponse[SoftwareAlert], error) + func (c *Client) ListSoftwareEOX(ctx context.Context, options ...*ListOptions) (*BCSListResponse[SoftwareEOX], error) + func (c *Client) ListSoftwareEOXBulletins(ctx context.Context, options ...*ListOptions) (*BCSListResponse[SoftwareEOXBulletin], error) + type Date struct + func (d *Date) UnmarshalJSON(data []byte) error + func (d Date) MarshalJSON() ([]byte, error) + func (d Date) String() string + type DateTime struct + func (d *DateTime) UnmarshalJSON(data []byte) error + func (d *DateTime) Value() (driver.Value, error) + func (d DateTime) MarshalJSON() ([]byte, error) + func (d DateTime) String() string + type Device struct + Collector *string + ConfigRegister *string + ConfigStatus *string + ConfigTime *DateTime + CreateDate *DateTime + CustomerID string + DeviceId *int + DeviceIp *string + DeviceName *string + DeviceStatus *string + DeviceSysName *string + DeviceType *string + FeatureSetdesc *string + ImageName *string + InSeedFile *bool + InventoryStatus *string + InventoryTime *DateTime + IpAddress *string + LastReset *DateTime + ProductFamily *string + ProductId *string + ProductType *string + ResetReason *string + SwType *string + SwVersion *string + SysContact *string + SysDescription *string + SysLocation *string + SysObjectId *string + UserField1 *string + UserField2 *string + UserField3 *string + UserField4 *string + func (d *Device) GetCollector() string + func (d *Device) GetConfigRegister() string + func (d *Device) GetConfigStatus() string + func (d *Device) GetConfigTime() *DateTime + func (d *Device) GetCreateDate() *DateTime + func (d *Device) GetDeviceId() int + func (d *Device) GetDeviceIp() string + func (d *Device) GetDeviceName() string + func (d *Device) GetDeviceStatus() string + func (d *Device) GetDeviceSysName() string + func (d *Device) GetDeviceType() string + func (d *Device) GetFeatureSetdesc() string + func (d *Device) GetImageName() string + func (d *Device) GetInSeedFile() bool + func (d *Device) GetInventoryStatus() string + func (d *Device) GetInventoryTime() *DateTime + func (d *Device) GetIpAddress() string + func (d *Device) GetLastReset() *DateTime + func (d *Device) GetProductFamily() string + func (d *Device) GetProductId() string + func (d *Device) GetProductType() string + func (d *Device) GetResetReason() string + func (d *Device) GetSwType() string + func (d *Device) GetSwVersion() string + func (d *Device) GetSysContact() string + func (d *Device) GetSysDescription() string + func (d *Device) GetSysLocation() string + func (d *Device) GetSysObjectId() string + func (d *Device) GetUserField1() string + func (d *Device) GetUserField2() string + func (d *Device) GetUserField3() string + func (d *Device) GetUserField4() string + type Err string + func (e Err) Error() string + type FieldNotice struct + DeviceId *int + FieldNoticeId *string + MatchConfidence *string + MatchConfidenceReason *string + PhysicalElementId *int + func (f *FieldNotice) GetDeviceId() int + func (f *FieldNotice) GetFieldNoticeId() string + func (f *FieldNotice) GetMatchConfidence() string + func (f *FieldNotice) GetMatchConfidenceReason() string + func (f *FieldNotice) GetPhysicalElementId() int + type FieldNoticeNBulletin struct + BulletinFirstPublished *string + BulletinLastUpdated *DateTime + BulletinMappingCaveat *string + BulletinTitle *string + BulletinUrl *string + FieldNoticeId *string + FnType *string + ProblemDescription *string + func (f *FieldNoticeNBulletin) GetBulletinFirstPublished() string + func (f *FieldNoticeNBulletin) GetBulletinLastUpdated() *DateTime + func (f *FieldNoticeNBulletin) GetBulletinMappingCaveat() string + func (f *FieldNoticeNBulletin) GetBulletinTitle() string + func (f *FieldNoticeNBulletin) GetBulletinUrl() string + func (f *FieldNoticeNBulletin) GetFieldNoticeId() string + func (f *FieldNoticeNBulletin) GetFnType() string + func (f *FieldNoticeNBulletin) GetProblemDescription() string + type HardwareEOX struct + CurrentEoxMilestone *string + CurrentEoxMilestoneDate *DateTime + DeviceId *int + DeviceName *string + HwEoxId *int + NextEoxMilestone *string + NextEoxMilestoneDate *DateTime + PhysicalElementId *int + PhysicalType *string + ProductId *string + func (h *HardwareEOX) GetCurrentEoxMilestone() string + func (h *HardwareEOX) GetCurrentEoxMilestoneDate() *DateTime + func (h *HardwareEOX) GetDeviceId() int + func (h *HardwareEOX) GetDeviceName() string + func (h *HardwareEOX) GetHwEoxId() int + func (h *HardwareEOX) GetNextEoxMilestone() string + func (h *HardwareEOX) GetNextEoxMilestoneDate() *DateTime + func (h *HardwareEOX) GetPhysicalElementId() int + func (h *HardwareEOX) GetPhysicalType() string + func (h *HardwareEOX) GetProductId() string + type HardwareEOXBulletin struct + BulletinNumber *string + BulletinTitle *string + BulletinUrl *string + EoLifeAnnouncementDate *DateTime + EoNewServiceAttachDate *DateTime + EoRoutineFailureAnalysisDate *DateTime + EoSaleDate *DateTime + EoSecurityVulSupportDate *DateTime + EoSoftwareContractRenewalDate *DateTime + EoSwMaintenanceReleasesDate *DateTime + HwEoxId *int + LastDateOfSupport *DateTime + LastShipDate *DateTime + ProductId *string + func (h *HardwareEOXBulletin) GetBulletinNumber() string + func (h *HardwareEOXBulletin) GetBulletinTitle() string + func (h *HardwareEOXBulletin) GetBulletinUrl() string + func (h *HardwareEOXBulletin) GetEoLifeAnnouncementDate() *DateTime + func (h *HardwareEOXBulletin) GetEoNewServiceAttachDate() *DateTime + func (h *HardwareEOXBulletin) GetEoRoutineFailureAnalysisDate() *DateTime + func (h *HardwareEOXBulletin) GetEoSaleDate() *DateTime + func (h *HardwareEOXBulletin) GetEoSecurityVulSupportDate() *DateTime + func (h *HardwareEOXBulletin) GetEoSoftwareContractRenewalDate() *DateTime + func (h *HardwareEOXBulletin) GetEoSwMaintenanceReleasesDate() *DateTime + func (h *HardwareEOXBulletin) GetHwEoxId() int + func (h *HardwareEOXBulletin) GetLastDateOfSupport() *DateTime + func (h *HardwareEOXBulletin) GetLastShipDate() *DateTime + func (h *HardwareEOXBulletin) GetProductId() string + type ListOptions struct + Filter *string + Mask *string + Page *int + PerPage *int + func (l *ListOptions) GetFilter() string + func (l *ListOptions) GetMask() string + func (l *ListOptions) GetPage() int + func (l *ListOptions) GetPerPage() int + type SecurityAdvisory struct + DeviceId *int + MatchConfidence *string + MatchConfidenceReason *string + PsirtColdId *int + func (s *SecurityAdvisory) GetDeviceId() int + func (s *SecurityAdvisory) GetMatchConfidence() string + func (s *SecurityAdvisory) GetMatchConfidenceReason() string + func (s *SecurityAdvisory) GetPsirtColdId() int + type SecurityAdvisoryBulletin struct + BulletinFirstPublished *string + BulletinLastUpdated *DateTime + BulletinMappingCaveat *string + BulletinSummary *string + BulletinTitle *string + BulletinUrl *string + BulletinVersion *string + CiscoBugIds *string + CveId *string + CvssBase *string + CvssTemporal *string + PsirtAdvisoryId *string + PsirtColdId *int + Sir *string + func (s *SecurityAdvisoryBulletin) GetBulletinFirstPublished() string + func (s *SecurityAdvisoryBulletin) GetBulletinLastUpdated() *DateTime + func (s *SecurityAdvisoryBulletin) GetBulletinMappingCaveat() string + func (s *SecurityAdvisoryBulletin) GetBulletinSummary() string + func (s *SecurityAdvisoryBulletin) GetBulletinTitle() string + func (s *SecurityAdvisoryBulletin) GetBulletinUrl() string + func (s *SecurityAdvisoryBulletin) GetBulletinVersion() string + func (s *SecurityAdvisoryBulletin) GetCiscoBugIds() string + func (s *SecurityAdvisoryBulletin) GetCveId() string + func (s *SecurityAdvisoryBulletin) GetCvssBase() string + func (s *SecurityAdvisoryBulletin) GetCvssTemporal() string + func (s *SecurityAdvisoryBulletin) GetPsirtAdvisoryId() string + func (s *SecurityAdvisoryBulletin) GetPsirtColdId() int + func (s *SecurityAdvisoryBulletin) GetSir() string + type SoftwareAlert struct + DeviceId *int + DeviceName *string + ImageName *string + SwAlertType *string + SwAlertUrl *string + SwType *string + SwVersion *string + func (s *SoftwareAlert) GetDeviceId() int + func (s *SoftwareAlert) GetDeviceName() string + func (s *SoftwareAlert) GetImageName() string + func (s *SoftwareAlert) GetSwAlertType() string + func (s *SoftwareAlert) GetSwAlertUrl() string + func (s *SoftwareAlert) GetSwType() string + func (s *SoftwareAlert) GetSwVersion() string + type SoftwareEOX struct + CurrentEoxMilestone *string + CurrentEoxMilestoneDate *DateTime + DeviceId *int + DeviceName *string + NextEoxMilestone *string + NextEoxMilestoneDate *DateTime + SwEoxId *int + SwType *string + SwVersion *string + func (s *SoftwareEOX) GetCurrentEoxMilestone() string + func (s *SoftwareEOX) GetCurrentEoxMilestoneDate() *DateTime + func (s *SoftwareEOX) GetDeviceId() int + func (s *SoftwareEOX) GetDeviceName() string + func (s *SoftwareEOX) GetNextEoxMilestone() string + func (s *SoftwareEOX) GetNextEoxMilestoneDate() *DateTime + func (s *SoftwareEOX) GetSwEoxId() int + func (s *SoftwareEOX) GetSwType() string + func (s *SoftwareEOX) GetSwVersion() string + type SoftwareEOXBulletin struct + BulletinNumber *string + BulletinTitle *string + BulletinUrl *string + EoLifeAnnouncementDate *DateTime + EoSaleDate *DateTime + EoSecurityVulSupportDate *DateTime + EoSwMaintenanceReleasesDate *DateTime + LastDateOfSupport *DateTime + SwEoxId *int + SwMaintenanceVersion *string + SwMajorVersion *string + SwTrain *string + SwType *string + func (s *SoftwareEOXBulletin) GetBulletinNumber() string + func (s *SoftwareEOXBulletin) GetBulletinTitle() string + func (s *SoftwareEOXBulletin) GetBulletinUrl() string + func (s *SoftwareEOXBulletin) GetEoLifeAnnouncementDate() *DateTime + func (s *SoftwareEOXBulletin) GetEoSaleDate() *DateTime + func (s *SoftwareEOXBulletin) GetEoSecurityVulSupportDate() *DateTime + func (s *SoftwareEOXBulletin) GetEoSwMaintenanceReleasesDate() *DateTime + func (s *SoftwareEOXBulletin) GetLastDateOfSupport() *DateTime + func (s *SoftwareEOXBulletin) GetSwEoxId() int + func (s *SoftwareEOXBulletin) GetSwMaintenanceVersion() string + func (s *SoftwareEOXBulletin) GetSwMajorVersion() string + func (s *SoftwareEOXBulletin) GetSwTrain() string + func (s *SoftwareEOXBulletin) GetSwType() string