Files
trivy/pkg/iac/providers/azure/container/container.go

53 lines
1.2 KiB
Go
Executable File

package container
import (
iacTypes "github.com/aquasecurity/trivy/pkg/iac/types"
)
type Container struct {
KubernetesClusters []KubernetesCluster
}
type KubernetesCluster struct {
Metadata iacTypes.Metadata
NetworkProfile NetworkProfile
EnablePrivateCluster iacTypes.BoolValue
APIServerAuthorizedIPRanges []iacTypes.StringValue
AddonProfile AddonProfile
RoleBasedAccessControl RoleBasedAccessControl
DiskEncryptionSetID iacTypes.StringValue
AgentPools []AgentPool
}
type RoleBasedAccessControl struct {
Metadata iacTypes.Metadata
Enabled iacTypes.BoolValue
}
type AddonProfile struct {
Metadata iacTypes.Metadata
OMSAgent OMSAgent
AzurePolicy AzurePolicy
}
type OMSAgent struct {
Metadata iacTypes.Metadata
Enabled iacTypes.BoolValue
}
type AzurePolicy struct {
Metadata iacTypes.Metadata
Enabled iacTypes.BoolValue
}
type NetworkProfile struct {
Metadata iacTypes.Metadata
NetworkPolicy iacTypes.StringValue // "", "calico", "azure"
}
type AgentPool struct {
Metadata iacTypes.Metadata
DiskEncryptionSetID iacTypes.StringValue
NodeType iacTypes.StringValue // "VirtualMachineScaleSets" or others
}