Documentation ¶
Index ¶
- Constants
- func CloudID(provider, id string) string
- func KubernetesID(cluster, namespace, name string) string
- func SyncTimeKey(provider string, typ string) string
- func SyncTimeKeyDecode(s string) (provider, type_ string, err error)
- type ACL
- type ACLRule
- type Account
- type Cluster
- type DestinationDetails
- type IGW
- type Instance
- type K8SService
- type K8sNode
- type K8sServiceIngress
- type NATGateway
- type Namespace
- type Pod
- type Ports
- type ProtocolsAndPorts
- type Region
- type Route
- type RouteTable
- type Router
- type SecurityGroup
- type SecurityGroupRule
- type SingleVPCConnectionOutput
- type SingleVPCConnectionParams
- type SingleVPCDisconnectionParams
- type Subnet
- type SyncTime
- type VPC
- type VPCConnectionOutput
- type VPCConnectionParams
- type VPCDisconnectionOutput
- type VPCDisconnectionParams
- type VPCEndpoint
Constants ¶
View Source
const ( ConditionLabel = "condition" OrCondition = "OR" AndCondition = "AND" Separator = ":" )
View Source
const ( AccountType = "Account" RegionType = "Region" VPCType = "VPC" InstanceType = "Instance" SubnetType = "Subnet" ACLType = "ACL" SecurityGroupType = "SecurityGroup" RouteTableType = "RouteTable" NATGatewayType = "NATGateway" RouterType = "Router" IGWType = "IGW" VPCEndpointType = "VPCEndpoint" ClusterType = "Cluster" PodsType = "Pod" K8sServiceType = "K8sService" K8sNodeType = "K8sNode" NamespaceType = "Namespace" )
Variables ¶
This section is empty.
Functions ¶
func KubernetesID ¶
func SyncTimeKey ¶
func SyncTimeKeyDecode ¶
Types ¶
type ACL ¶
type ACL struct { Name string ID string Provider string VpcID string Region string Labels map[string]string AccountID string Rules []ACLRule LastSyncTime string }
func (*ACL) GetProvider ¶
func (*ACL) SetSyncTime ¶
type Cluster ¶
type Cluster struct { Name string FullName string Arn string VpcID string Region string Project string Labels map[string]string Provider string AccountID string Id string LastSyncTime string }
func (*Cluster) GetProvider ¶
func (*Cluster) SetSyncTime ¶
type DestinationDetails ¶
type IGW ¶
type IGW struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Provider string `json:"provider,omitempty"` AccountId string `json:"account_id,omitempty"` AttachedVpcId string `json:"attached_vpc_id,omitempty"` // Region string `json:"region,omitempty"` // VPC Region State string `json:"state,omitempty"` Labels map[string]string `json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` CreatedAt *timestamppb.Timestamp `json:"created_at,omitempty"` UpdatedAt *timestamppb.Timestamp `json:"updated_at,omitempty"` LastSyncTime string `json:"last_sync_time,omitempty"` }
func (*IGW) GetProvider ¶
func (*IGW) SetSyncTime ¶
type Instance ¶
type Instance struct { ID string Name string PublicIP string PrivateIP string SubnetID string VPCID string Labels map[string]string State string Region string Zone string Provider string AccountID string Type string LastSyncTime string }
func (*Instance) GetProvider ¶
func (*Instance) SetSyncTime ¶
type K8SService ¶
type K8SService struct { Cluster string Namespace string Name string Type string ProtocolsAndPorts ProtocolsAndPorts Ingresses []K8sServiceIngress Labels map[string]string LastSyncTime string }
func (*K8SService) DbId ¶
func (v *K8SService) DbId() string
func (*K8SService) GetProvider ¶
func (v *K8SService) GetProvider() string
func (*K8SService) SetSyncTime ¶
func (v *K8SService) SetSyncTime(time string)
type K8sNode ¶
type K8sNode struct { Cluster string Name string Namespace string Addresses []v1.NodeAddress Labels map[string]string LastSyncTime string }
func (*K8sNode) GetProvider ¶
func (*K8sNode) SetSyncTime ¶
type K8sServiceIngress ¶
type NATGateway ¶
type NATGateway struct { ID string Name string `json:"name,omitempty"` Provider string `json:"provider,omitempty"` AccountId string `json:"account_id,omitempty"` VpcId string `json:"vpc_id,omitempty"` Region string `json:"region,omitempty"` State string `json:"state,omitempty"` PublicIp string `json:"public_ip,omitempty"` PrivateIp string `json:"private_ip,omitempty"` SubnetId string `json:"subnet_id,omitempty"` Labels map[string]string `json:"labels,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` LastSyncTime string `json:"last_sync_time,omitempty"` AdditionalProperties map[string]string `json:"additional_properties,omitempty"` }
func (*NATGateway) DbId ¶
func (v *NATGateway) DbId() string
func (*NATGateway) GetProvider ¶
func (v *NATGateway) GetProvider() string
func (*NATGateway) SetSyncTime ¶
func (v *NATGateway) SetSyncTime(time string)
type Pod ¶
type Pod struct { Cluster string Namespace string Name string Ip string Labels map[string]string State string LastSyncTime string }
func (*Pod) GetProvider ¶
func (*Pod) SetSyncTime ¶
type ProtocolsAndPorts ¶
type RouteTable ¶
type RouteTable struct { Name string ID string Provider string VpcID string Region string Labels map[string]string AccountID string Routes []Route LastSyncTime string }
func (*RouteTable) DbId ¶
func (v *RouteTable) DbId() string
func (*RouteTable) GetProvider ¶
func (v *RouteTable) GetProvider() string
func (*RouteTable) SetSyncTime ¶
func (v *RouteTable) SetSyncTime(time string)
type Router ¶
type Router struct { ID string `json:"id"` AccountId string `json:"account_id,omitempty"` Name string `json:"name"` Provider string `json:"provider"` Region string `json:"region"` VPCId string `json:"vpc_id"` State string `json:"state"` AdvertisedRange string `json:"advertised_range"` AdvertisedGroup string `json:"advertised_group"` SubnetId string `json:"subnet_id"` ASN uint32 `json:"asn"` CIDRBlock string `json:"cidr_block"` StaticRoutes []string `json:"static_routes"` // Could be a list of CIDR blocks VPNType string `json:"vpn_type"` SecurityGroupIDs []string `json:"security_group_ids"` // Security groups or ACLs IDs Labels map[string]string `json:"labels"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` AdditionalProperties map[string]string `json:"additional_properties"` LastSyncTime string `json:"last_sync_time"` }
CloudGateway represents a generic cloud gateway with various attributes.
func (*Router) GetProvider ¶
func (*Router) SetSyncTime ¶
type SecurityGroup ¶
type SecurityGroup struct { Name string ID string Provider string VpcID string Region string Labels map[string]string AccountID string Rules []SecurityGroupRule LastSyncTime string }
func (*SecurityGroup) DbId ¶
func (v *SecurityGroup) DbId() string
func (*SecurityGroup) GetProvider ¶
func (v *SecurityGroup) GetProvider() string
func (*SecurityGroup) SetSyncTime ¶
func (v *SecurityGroup) SetSyncTime(time string)
type SecurityGroupRule ¶
type SingleVPCConnectionOutput ¶
type SingleVPCConnectionOutput struct {
Region string
}
type SingleVPCConnectionParams ¶
type SingleVPCConnectionParams struct { ConnID string VpcID string Region string Destination DestinationDetails }
type Subnet ¶
type Subnet struct { Name string SubnetId string CidrBlock string VpcId string Zone string Labels map[string]string Region string Provider string AccountID string LastSyncTime string }
func (*Subnet) GetProvider ¶
func (*Subnet) SetSyncTime ¶
type VPC ¶
type VPC struct { ID string Name string Region string Labels map[string]string IPv4CIDR string IPv6CIDR string Provider string AccountID string LastSyncTime string }
func (*VPC) GetProvider ¶
func (*VPC) SetSyncTime ¶
type VPCConnectionOutput ¶
type VPCConnectionParams ¶
type VPCDisconnectionOutput ¶
type VPCDisconnectionOutput struct { }
type VPCDisconnectionParams ¶
type VPCEndpoint ¶
type VPCEndpoint struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Provider string `json:"provider,omitempty"` AccountId string `json:"account_id,omitempty"` VPCId string `json:"vpc_id,omitempty"` // Region string `json:"region,omitempty"` // VPC Region State string `json:"state,omitempty"` RouteTableIds string `json:"route_table_ids,omitempty"` SubnetIds string `json:"subnet_ids,omitempty"` ServiceName string `json:"service_name,omitempty"` Labels map[string]string `json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` CreatedAt *time.Time `json:"created_at,omitempty"` UpdatedAt *time.Time `json:"updated_at,omitempty"` LastSyncTime string `json:"last_sync_time,omitempty"` }
func (*VPCEndpoint) DbId ¶
func (v *VPCEndpoint) DbId() string
func (*VPCEndpoint) GetProvider ¶
func (v *VPCEndpoint) GetProvider() string
func (*VPCEndpoint) SetSyncTime ¶
func (v *VPCEndpoint) SetSyncTime(time string)
Click to show internal directories.
Click to hide internal directories.