/
githubmirror
/
trivy
Обзор
Документация
Войти
/
githubmirror
/
trivy
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
pkg/iac/providers/openstack/networking.go
27 строк
753 B
simar7
refactor(deps): Merge defsec into trivy (#6109)
16 фев 2024, 11:31
Не верифицирован
16 фев 2024, 11:31
14adbb4
Код
Авторство
О чём код?
package openstack import ( iacTypes "github.com/aquasecurity/trivy/pkg/iac/types" ) type Networking struct { SecurityGroups []SecurityGroup } type SecurityGroup struct { Metadata iacTypes.Metadata Name iacTypes.StringValue Description iacTypes.StringValue Rules []SecurityGroupRule } // SecurityGroupRule describes https://registry.terraform.io/providers/terraform-provider-openstack/openstack/latest/docs/resources/networking_secgroup_rule_v2 type SecurityGroupRule struct { Metadata iacTypes.Metadata IsIngress iacTypes.BoolValue EtherType iacTypes.IntValue // 4 or 6 for ipv4/ipv6 Protocol iacTypes.StringValue // e.g. tcp PortMin iacTypes.IntValue PortMax iacTypes.IntValue CIDR iacTypes.StringValue }