Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ResourceTypeAwsEc2Instance is the resource type for AWS EC2 instances. ResourceTypeAwsEc2Instance = "aws_ec2_instance" // ResourceTypeAwsEcsCluster is the resource type for AWS ECS clusters. ResourceTypeAwsEcsCluster = "aws_ecs_cluster" // ResourceTypeAwsRdsInstnace is the resource type for AWS RDS instances. ResourceTypeAwsRdsInstance = "aws_rds_instance" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AwsBaseDetails ¶
type AwsBaseDetails struct {
AwsAccountId string `json:"aws_account_id"`
AwsRegion string `json:"aws_region"`
AwsArn string `json:"aws_arn"`
}
AwsBaseDetails represents the details of a discovered generic AWS resource.
type AwsEc2InstanceDetails ¶
type AwsEc2InstanceDetails struct {
AwsBaseDetails // extends
InstanceId string `json:"instance_id"`
ImageId string `json:"ami_id"`
VpcId string `json:"vpc_id"`
SubnetId string `json:"subnet_id"`
PrivateDnsName string `json:"private_dns_name"`
PrivateIpAddress string `json:"private_ip_address"`
PublicDnsName string `json:"public_dns_name"`
PublicIpAddress string `json:"public_ip_address"`
InstanceType string `json:"instance_type"`
}
AwsEc2InstanceDetails represents the details of a discovered AWS EC2 instance.
type AwsEcsClusterDetails ¶
type AwsEcsClusterDetails struct {
AwsBaseDetails // extends
ClusterName string `json:"cluster_name"`
Services []string `json:"services"`
Tasks []string `json:"tasks"`
Containers []string `json:"containers"`
}
AwsEcsClusterDetails represents the details of a discovered AWS ECS cluster.
type AwsRdsInstanceDetails ¶
type AwsRdsInstanceDetails struct {
AwsBaseDetails // extends
DBInstanceIdentifier string `json:"db_instance_identifier"`
Engine string `json:"engine"`
EngineVersion string `json:"engine_version"`
VpcId string `json:"vpc_id"`
DBSubnetGroupName string `json:"db_subnet_group_name"`
EndpointAddress string `json:"endpoint_address"`
EndpointPort int32 `json:"endpoint_port"`
}
AwsRdsInstanceDetails represents the details of a discovered AWS RDS instance.
type Discoverer ¶
Discoverer represents an entity capable of discovering resources.
type Resource ¶
type Resource struct {
ResourceType string `json:"resource_type"`
AwsEc2InstanceDetails *AwsEc2InstanceDetails `json:"aws_ec2_instance_details,omitempty"`
AwsEcsClusterDetails *AwsEcsClusterDetails `json:"aws_ecs_cluster_details,omitempty"`
AwsRdsInstanceDetails *AwsRdsInstanceDetails `json:"aws_rds_instance_details,omitempty"`
}
Resource represents a potential Border0 target.
Click to show internal directories.
Click to hide internal directories.