Documentation ¶
Index ¶
Constants ¶
View Source
const ( AssetTypeIp AssetType = "IP" AssetTypeDomainName = "DomainName" AssetTypeHostname = "Hostname" AssetTypeAwsAccount = "AWSAccount" AssetTypeIpRange = "IPRange" AssetTypeDockerImage = "DockerImage" AssetTypeWebAddress = "WebAddress" AssetTypeGitRepository = "GitRepository" )
View Source
const AssetsEntityName = "assets"
AssetsEntityName defines the key for the assets entity used by an EventStreamClient to determine the topic where the assets are send.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Annotation ¶
Annotation represents a Annotation model.
type AssetPayload ¶
type AssetPayload struct { Id string Team *Team Alias string Rolfp string Scannable bool AssetType *AssetType Identifier string Annotations []*Annotation }
AssetPayload represents a AssetPayload model.
type EventStreamClient ¶
EventStreamClient represent a client of an event stream system, like Kafka or AWS FIFO SQS queues.
type Vulcan ¶
type Vulcan struct {
// contains filtered or unexported fields
}
Vulcan implements the asynchorus API of Vulcan.
func NewVulcan ¶
func NewVulcan(client EventStreamClient, log Logger) Vulcan
NewVulcan returns a Vulcan async server that uses the given EventStreamClient and Logger.
func (*Vulcan) PushAsset ¶
func (v *Vulcan) PushAsset(asset AssetPayload) error
PushAsset publishes the state of an asset in the current point of time to the underlying EventStreamClient.
Click to show internal directories.
Click to hide internal directories.