Versions in this module Expand all Collapse all v0 v0.1.0 Mar 15, 2021 Changes in this version + type AgentType string + const AgentTypeEndpointCarbonBlack + const AgentTypeEndpointCarbonBlackPsc + const AgentTypeEndpointCrowdStrike + const AgentTypeEndpointMicrosoftAtp + const AgentTypeEndpointRedcloak + type Asset struct + Architecture *string + BiosSerial *string + CreatedAt time.Time + DeletedAt *time.Time + EndpointPlatform *string + EndpointType *string + EthernetAddresses []EthernetAddress + FirstDiskSerial *string + HostId string + Hostnames []Hostname + ID string + IngestTime time.Time + IpAddresses []IpAddress + KernelRelease *string + KernelVersion *string + OsCodename *string + OsDistributor *string + OsFamily *string + OsRelease *string + OsVersion *string + Rn string + SensorId string + SensorTenant string + SensorVersion *string + SystemType *string + SystemVolumeSerial *string + Tags []Tag + TenantId string + UpdatedAt time.Time + Users []User + type AssetCounts struct + Count int + type AssetCountsByEndpointType struct + Count int + EndpointType string + type AssetHistory struct + Action string + AssetId string + CreatedAt time.Time + HostId string + ID string + Reason string + TenantId string + UpdatedAt time.Time + Who string + type AssetHistoryContact struct + Email *string + Name *string + Sub *string + type AssetHistoryEvent struct + DomainName *string + HostName *string + type AssetHistoryId struct + HostId *string + InstanceId *string + type AssetInput struct + ID string + Tags []string + type AssetRedCloakHistory struct + Action *string + AllowedDomain []string + AssetId *string + Contact *AssetHistoryContact + CreatedAt *string + Event *AssetHistoryEvent + ID *AssetHistoryId + Reason *string + TenantId *string + type AssetStateFilter string + const AssetStateFilterActive + const AssetStateFilterAll + const AssetStateFilterDeleted + const AssetStateFilterUnhealthy + type AssetsExportOutput struct + ColumnDef []string + Rows []string + TotalCount *int + type AssetsOrderByInput string + const AssetsOrderByInputCreatedAt + const AssetsOrderByInputDeletedAt + const AssetsOrderByInputEndpointType + const AssetsOrderByInputHostname + const AssetsOrderByInputIpAddress + const AssetsOrderByInputMacAddress + const AssetsOrderByInputOsDistributor + const AssetsOrderByInputOsFamily + const AssetsOrderByInputOsVersion + const AssetsOrderByInputTag + const AssetsOrderByInputUpdatedAt + const AssetsOrderByInputUsername + type AssetsOrderDirectionInput string + const AssetsOrderDirectionInputAsc + const AssetsOrderDirectionInputDesc + type AssetsResult struct + Assets []Asset + Limit int + Offset int + TotalResults int + type Client struct + func New(url string, opts ...client.Option) *Client + func (c *Client) CreateAssetTag(hostId string, tag string, opts ...graphql.RequestOption) (Tag, error) + func (c *Client) CreateAssetTagCtx(ctx context.Context, hostId string, tag string, opts ...graphql.RequestOption) (Tag, error) + func (c *Client) DeleteAssetTag(id string, opts ...graphql.RequestOption) (*Tag, error) + func (c *Client) DeleteAssetTagCtx(ctx context.Context, id string, opts ...graphql.RequestOption) (*Tag, error) + func (c *Client) DeleteAssets(ids []string, undelete *bool, opts ...graphql.RequestOption) (*bool, error) + func (c *Client) DeleteAssetsCtx(ctx context.Context, ids []string, undelete *bool, ...) (*bool, error) + func (c *Client) GetAllAssetHistories(offset *int, limit *int, opts ...graphql.RequestOption) ([]*AssetHistory, error) + func (c *Client) GetAllAssetHistoriesCtx(ctx context.Context, offset *int, limit *int, opts ...graphql.RequestOption) ([]*AssetHistory, error) + func (c *Client) GetAllAssets(params *GetAllAssetsArguments, opts ...graphql.RequestOption) (*AssetsResult, error) + func (c *Client) GetAllAssetsCount(opts ...graphql.RequestOption) (AssetCounts, error) + func (c *Client) GetAllAssetsCountCtx(ctx context.Context, opts ...graphql.RequestOption) (AssetCounts, error) + func (c *Client) GetAllAssetsCtx(ctx context.Context, params *GetAllAssetsArguments, ...) (*AssetsResult, error) + func (c *Client) GetAllAssetsExport(offset *int, limit *int, opts ...graphql.RequestOption) (*AssetsResult, error) + func (c *Client) GetAllAssetsExportCtx(ctx context.Context, offset *int, limit *int, opts ...graphql.RequestOption) (*AssetsResult, error) + func (c *Client) GetAllUniqueTags(opts ...graphql.RequestOption) ([]string, error) + func (c *Client) GetAllUniqueTagsCtx(ctx context.Context, opts ...graphql.RequestOption) ([]string, error) + func (c *Client) GetAsset(id string, opts ...graphql.RequestOption) (Asset, error) + func (c *Client) GetAssetCount(endpoint_type *AgentType, opts ...graphql.RequestOption) (AssetCounts, error) + func (c *Client) GetAssetCountCtx(ctx context.Context, endpoint_type *AgentType, opts ...graphql.RequestOption) (AssetCounts, error) + func (c *Client) GetAssetCountGroupByEndpointType(opts ...graphql.RequestOption) ([]*AssetCountsByEndpointType, error) + func (c *Client) GetAssetCountGroupByEndpointTypeCtx(ctx context.Context, opts ...graphql.RequestOption) ([]*AssetCountsByEndpointType, error) + func (c *Client) GetAssetCtx(ctx context.Context, id string, opts ...graphql.RequestOption) (Asset, error) + func (c *Client) GetAssetEndpointInfo(id string, opts ...graphql.RequestOption) (EndpointInfo, error) + func (c *Client) GetAssetEndpointInfoCtx(ctx context.Context, id string, opts ...graphql.RequestOption) (EndpointInfo, error) + func (c *Client) GetAssetRedCloakHistories(id string, offset *int, limit *int, opts ...graphql.RequestOption) ([]*AssetRedCloakHistory, error) + func (c *Client) GetAssetRedCloakHistoriesCtx(ctx context.Context, id string, offset *int, limit *int, ...) ([]*AssetRedCloakHistory, error) + func (c *Client) GetAssetsByHostIds(hostIds []string, opts ...graphql.RequestOption) ([]*Asset, error) + func (c *Client) GetAssetsByHostIdsCtx(ctx context.Context, hostIds []string, opts ...graphql.RequestOption) ([]*Asset, error) + func (c *Client) GetAssetsByIds(ids []string, opts ...graphql.RequestOption) ([]*Asset, error) + func (c *Client) GetAssetsByIdsCtx(ctx context.Context, ids []string, opts ...graphql.RequestOption) ([]*Asset, error) + func (c *Client) GetAssetsByIpAddresses(ipAddresses []string, opts ...graphql.RequestOption) ([]*Asset, error) + func (c *Client) GetAssetsByIpAddressesCtx(ctx context.Context, ipAddresses []string, opts ...graphql.RequestOption) ([]*Asset, error) + func (c *Client) GetAssetsByTag(tags []string, opts ...graphql.RequestOption) ([]*Asset, error) + func (c *Client) GetAssetsByTagCtx(ctx context.Context, tags []string, opts ...graphql.RequestOption) ([]*Asset, error) + func (c *Client) GetExportSearchAssets(input SearchAssetsInput, paginationInput *SearchAssetsPaginationInput, ...) (*AssetsExportOutput, error) + func (c *Client) GetExportSearchAssetsCtx(ctx context.Context, input SearchAssetsInput, ...) (*AssetsExportOutput, error) + func (c *Client) GetSearchAssets(params *GetSearchAssetsArguments, opts ...graphql.RequestOption) (*AssetsResult, error) + func (c *Client) GetSearchAssetsCtx(ctx context.Context, params *GetSearchAssetsArguments, ...) (*AssetsResult, error) + func (c *Client) GetSearchAssetsV2(input SearchAssetsInput, paginationInput *SearchAssetsPaginationInput, ...) (*AssetsResult, error) + func (c *Client) GetSearchAssetsV2Ctx(ctx context.Context, input SearchAssetsInput, ...) (*AssetsResult, error) + func (c *Client) GetTag(id string, opts ...graphql.RequestOption) (Tag, error) + func (c *Client) GetTagCtx(ctx context.Context, id string, opts ...graphql.RequestOption) (Tag, error) + func (c *Client) IntegrateAsset(id string, reason string, opts ...graphql.RequestOption) (Asset, error) + func (c *Client) IntegrateAssetCtx(ctx context.Context, id string, reason string, opts ...graphql.RequestOption) (Asset, error) + func (c *Client) IsolateAsset(id string, reason string, opts ...graphql.RequestOption) (Asset, error) + func (c *Client) IsolateAssetCtx(ctx context.Context, id string, reason string, opts ...graphql.RequestOption) (Asset, error) + func (c *Client) UpdateAsset(assetInput *AssetInput, opts ...graphql.RequestOption) (Asset, error) + func (c *Client) UpdateAssetCtx(ctx context.Context, assetInput *AssetInput, opts ...graphql.RequestOption) (Asset, error) + func (c *Client) UpdateAssetTag(id string, tag string, opts ...graphql.RequestOption) (Tag, error) + func (c *Client) UpdateAssetTagCtx(ctx context.Context, id string, tag string, opts ...graphql.RequestOption) (Tag, error) + type EndpointInfo struct + ActualIsolationStatus *bool + AllowedDomain []string + Color *string + DesiredIsolationStatus *bool + FirstConnectTime *string + HostId *string + HostName *string + IgnitionDetails *IgnitionDetails + LastConnectAddress *string + LastConnectServer *string + LastConnectTime *string + LastCrashCheck *string + LastModuleStatusTime *string + LastPredicateAuthtap *string + LastPredicateCyclorama *string + LastPredicateEntwine *string + LastPredicateGroundling *string + LastPredicateHostel *string + LastPredicateLacuna *string + LastPredicateMukluk *string + LastPredicatePeriodicscanControl *string + LastPredicatePeriodicscanResult *string + LastPredicateProcwall *string + LastPredicateSystemInformation *string + ModuleHealth []ModuleHealth + ModuleStatus []ModuleStatus + NotableEventCount *int + SensorVersion *int + SystemInformation *SystemInformation + type EthernetAddress struct + CreatedAt time.Time + HostId string + ID string + Mac string + UpdatedAt time.Time + type GetAllAssetsArguments struct + FilterAssetState *AssetStateFilter + Limit *int + Offset *int + OrderBy *AssetsOrderByInput + OrderDirection *AssetsOrderDirectionInput + type GetSearchAssetsArguments struct + EndpointType *string + FilterAssetState *AssetStateFilter + HostId *string + HostIdPartialMatch *bool + Hostname *string + IpAddress *string + Limit *int + MacAddress *string + Offset *int + OnlyMostRecent *bool + OrSearch *bool + OrderBy *AssetsOrderByInput + OrderDirection *AssetsOrderDirectionInput + OsDistributor *string + OsFamily *string + OsVersion *string + Tag *string + Username *string + type Hostname struct + CreatedAt time.Time + HostId string + Hostname string + ID string + UpdatedAt time.Time + type IClient interface + CreateAssetTag func(hostId string, tag string, opts ...graphql.RequestOption) (Tag, error) + CreateAssetTagCtx func(ctx context.Context, hostId string, tag string, opts ...graphql.RequestOption) (Tag, error) + DeleteAssetTag func(id string, opts ...graphql.RequestOption) (*Tag, error) + DeleteAssetTagCtx func(ctx context.Context, id string, opts ...graphql.RequestOption) (*Tag, error) + DeleteAssets func(ids []string, undelete *bool, opts ...graphql.RequestOption) (*bool, error) + DeleteAssetsCtx func(ctx context.Context, ids []string, undelete *bool, ...) (*bool, error) + GetAllAssetHistories func(offset *int, limit *int, opts ...graphql.RequestOption) ([]*AssetHistory, error) + GetAllAssetHistoriesCtx func(ctx context.Context, offset *int, limit *int, opts ...graphql.RequestOption) ([]*AssetHistory, error) + GetAllAssets func(params *GetAllAssetsArguments, opts ...graphql.RequestOption) (*AssetsResult, error) + GetAllAssetsCount func(opts ...graphql.RequestOption) (AssetCounts, error) + GetAllAssetsCountCtx func(ctx context.Context, opts ...graphql.RequestOption) (AssetCounts, error) + GetAllAssetsCtx func(ctx context.Context, params *GetAllAssetsArguments, ...) (*AssetsResult, error) + GetAllAssetsExport func(offset *int, limit *int, opts ...graphql.RequestOption) (*AssetsResult, error) + GetAllAssetsExportCtx func(ctx context.Context, offset *int, limit *int, opts ...graphql.RequestOption) (*AssetsResult, error) + GetAllUniqueTags func(opts ...graphql.RequestOption) ([]string, error) + GetAllUniqueTagsCtx func(ctx context.Context, opts ...graphql.RequestOption) ([]string, error) + GetAsset func(id string, opts ...graphql.RequestOption) (Asset, error) + GetAssetCount func(endpoint_type *AgentType, opts ...graphql.RequestOption) (AssetCounts, error) + GetAssetCountCtx func(ctx context.Context, endpoint_type *AgentType, opts ...graphql.RequestOption) (AssetCounts, error) + GetAssetCountGroupByEndpointType func(opts ...graphql.RequestOption) ([]*AssetCountsByEndpointType, error) + GetAssetCountGroupByEndpointTypeCtx func(ctx context.Context, opts ...graphql.RequestOption) ([]*AssetCountsByEndpointType, error) + GetAssetCtx func(ctx context.Context, id string, opts ...graphql.RequestOption) (Asset, error) + GetAssetEndpointInfo func(id string, opts ...graphql.RequestOption) (EndpointInfo, error) + GetAssetEndpointInfoCtx func(ctx context.Context, id string, opts ...graphql.RequestOption) (EndpointInfo, error) + GetAssetRedCloakHistories func(id string, offset *int, limit *int, opts ...graphql.RequestOption) ([]*AssetRedCloakHistory, error) + GetAssetRedCloakHistoriesCtx func(ctx context.Context, id string, offset *int, limit *int, ...) ([]*AssetRedCloakHistory, error) + GetAssetsByHostIds func(hostIds []string, opts ...graphql.RequestOption) ([]*Asset, error) + GetAssetsByHostIdsCtx func(ctx context.Context, hostIds []string, opts ...graphql.RequestOption) ([]*Asset, error) + GetAssetsByIds func(ids []string, opts ...graphql.RequestOption) ([]*Asset, error) + GetAssetsByIdsCtx func(ctx context.Context, ids []string, opts ...graphql.RequestOption) ([]*Asset, error) + GetAssetsByIpAddresses func(ipAddresses []string, opts ...graphql.RequestOption) ([]*Asset, error) + GetAssetsByIpAddressesCtx func(ctx context.Context, ipAddresses []string, opts ...graphql.RequestOption) ([]*Asset, error) + GetAssetsByTag func(tags []string, opts ...graphql.RequestOption) ([]*Asset, error) + GetAssetsByTagCtx func(ctx context.Context, tags []string, opts ...graphql.RequestOption) ([]*Asset, error) + GetExportSearchAssets func(input SearchAssetsInput, paginationInput *SearchAssetsPaginationInput, ...) (*AssetsExportOutput, error) + GetExportSearchAssetsCtx func(ctx context.Context, input SearchAssetsInput, ...) (*AssetsExportOutput, error) + GetSearchAssets func(params *GetSearchAssetsArguments, opts ...graphql.RequestOption) (*AssetsResult, error) + GetSearchAssetsCtx func(ctx context.Context, params *GetSearchAssetsArguments, ...) (*AssetsResult, error) + GetSearchAssetsV2 func(input SearchAssetsInput, paginationInput *SearchAssetsPaginationInput, ...) (*AssetsResult, error) + GetSearchAssetsV2Ctx func(ctx context.Context, input SearchAssetsInput, ...) (*AssetsResult, error) + GetTag func(id string, opts ...graphql.RequestOption) (Tag, error) + GetTagCtx func(ctx context.Context, id string, opts ...graphql.RequestOption) (Tag, error) + IntegrateAsset func(id string, reason string, opts ...graphql.RequestOption) (Asset, error) + IntegrateAssetCtx func(ctx context.Context, id string, reason string, opts ...graphql.RequestOption) (Asset, error) + IsolateAsset func(id string, reason string, opts ...graphql.RequestOption) (Asset, error) + IsolateAssetCtx func(ctx context.Context, id string, reason string, opts ...graphql.RequestOption) (Asset, error) + UpdateAsset func(assetInput *AssetInput, opts ...graphql.RequestOption) (Asset, error) + UpdateAssetCtx func(ctx context.Context, assetInput *AssetInput, opts ...graphql.RequestOption) (Asset, error) + UpdateAssetTag func(id string, tag string, opts ...graphql.RequestOption) (Tag, error) + UpdateAssetTagCtx func(ctx context.Context, id string, tag string, opts ...graphql.RequestOption) (Tag, error) + type IgnitionDetails struct + IsEndpointConfigExist *bool + RequestStatus *string + type IpAddress struct + CreatedAt time.Time + HostId string + ID string + Ip string + UpdatedAt time.Time + type ModuleHealth struct + Enabled *string + LastPredicateTime *string + LastRunningTime *string + ModuleColor *string + ModuleDisplayName *string + type ModuleStatus struct + Enabled *bool + ModuleName *string + ModuleState *string + type SearchAssetsInput struct + EndpointType *string + FilterAssetState *AssetStateFilter + HostId *string + HostIdPartialMatch *bool + Hostname *string + IpAddress *string + MacAddress *string + OnlyMostRecent *bool + OrSearch *bool + OsDistributor *string + OsFamily *string + OsVersion *string + Tag *string + Username *string + type SearchAssetsPaginationInput struct + Limit *int + Offset *int + OrderBy *AssetsOrderByInput + OrderDirection *AssetsOrderDirectionInput + type SystemInformation struct + Architecture *string + BiosSerial *string + EthernetAddress []string + FirstDiskSerial *string + HostName *string + IpAddress []string + IsServerR2For2003And2008 *bool + ProductType *string + RedcloakVersion *int + ServicePack *string + SystemVolumeSerial *string + WindowsVersion *string + type Tag struct + CreatedAt time.Time + HostId string + ID string + Tag string + TenantId string + UpdatedAt time.Time + type UpdateTag struct + ID string + Tag string + TenantId string + type User struct + CreatedAt time.Time + HostId string + ID string + UpdatedAt time.Time + Username string