Documentation ¶
Overview ¶
package delivers apicontracts for resources
Index ¶
- type AquaReportScanner
- type AquaReportSummary
- type CriticalityLevel
- type EnvironmentType
- type HashItem
- type HashList
- type ResourceAction
- type ResourceActionType
- type ResourceAppProject
- type ResourceAppProjectSpec
- type ResourceApplication
- type ResourceApplicationSpec
- type ResourceApplicationSpecDestination
- type ResourceApplicationSpecSource
- type ResourceApplicationSpecSyncpolicy
- type ResourceApplicationSpecSyncpolicyAutomated
- type ResourceApplicationSpecSyncpolicyRetry
- type ResourceApplicationSpecSyncpolicyRetryBackoff
- type ResourceApplicationStatus
- type ResourceApplicationStatusHealth
- type ResourceApplicationStatusOperationstate
- type ResourceApplicationStatusSync
- type ResourceApplications
- func (m ResourceApplications) GetByLabels(search map[string]string) []ResourceApplication
- func (m ResourceApplications) GetByName(search string) ResourceApplication
- func (m ResourceApplications) GetByNamespace(search string) ResourceApplication
- func (m ResourceApplications) GetByUid(search string) ResourceApplication
- type ResourceAppprojects
- func (m ResourceAppprojects) GetByLabels(search map[string]string) []ResourceAppProject
- func (m ResourceAppprojects) GetByName(search string) ResourceAppProject
- func (m ResourceAppprojects) GetByNamespace(search string) ResourceAppProject
- func (m ResourceAppprojects) GetByUid(search string) ResourceAppProject
- type ResourceCertificate
- type ResourceCertificateSpec
- type ResourceCertificateSpecIssuerref
- type ResourceCertificateStatus
- type ResourceCertificateStatusCondition
- type ResourceCertificates
- func (m ResourceCertificates) GetByLabels(search map[string]string) []ResourceCertificate
- func (m ResourceCertificates) GetByName(search string) ResourceCertificate
- func (m ResourceCertificates) GetByNamespace(search string) ResourceCertificate
- func (m ResourceCertificates) GetByUid(search string) ResourceCertificate
- type ResourceClusterComplianceReport
- type ResourceClusterComplianceReportStatus
- type ResourceClusterComplianceReportSummary
- type ResourceClusterComplianceReportSummaryReport
- type ResourceClusterOrder
- type ResourceClusterOrderCondition
- type ResourceClusterOrderSpec
- type ResourceClusterOrderSpecNodePool
- type ResourceClusterOrderStatus
- type ResourceClusterOrderStatusPhase
- type ResourceClusterVulnerabilityReport
- type ResourceClusterVulnerabilityReportReport
- type ResourceClusterVulnerabilityReportStatus
- type ResourceClusterVulnerabilityReportSummary
- type ResourceClustercompliancereports
- func (m ResourceClustercompliancereports) GetByLabels(search map[string]string) []ResourceClusterComplianceReport
- func (m ResourceClustercompliancereports) GetByName(search string) ResourceClusterComplianceReport
- func (m ResourceClustercompliancereports) GetByUid(search string) ResourceClusterComplianceReport
- type ResourceClusterorders
- func (m ResourceClusterorders) GetByLabels(search map[string]string) []ResourceClusterOrder
- func (m ResourceClusterorders) GetByName(search string) ResourceClusterOrder
- func (m ResourceClusterorders) GetByNamespace(search string) ResourceClusterOrder
- func (m ResourceClusterorders) GetByUid(search string) ResourceClusterOrder
- type ResourceClustervulnerabilityreports
- func (m ResourceClustervulnerabilityreports) GetByLabels(search map[string]string) []ResourceClusterVulnerabilityReport
- func (m ResourceClustervulnerabilityreports) GetByName(search string) ResourceClusterVulnerabilityReport
- func (m ResourceClustervulnerabilityreports) GetByUid(search string) ResourceClusterVulnerabilityReport
- type ResourceConfigAuditReport
- type ResourceConfigAuditReportReport
- type ResourceConfigauditreports
- func (m ResourceConfigauditreports) GetByLabels(search map[string]string) []ResourceConfigAuditReport
- func (m ResourceConfigauditreports) GetByName(search string) ResourceConfigAuditReport
- func (m ResourceConfigauditreports) GetByNamespace(search string) ResourceConfigAuditReport
- func (m ResourceConfigauditreports) GetByUid(search string) ResourceConfigAuditReport
- type ResourceConfiguration
- type ResourceConfigurationSpec
- type ResourceConfigurations
- func (m ResourceConfigurations) GetByLabels(search map[string]string) []ResourceConfiguration
- func (m ResourceConfigurations) GetByName(search string) ResourceConfiguration
- func (m ResourceConfigurations) GetByNamespace(search string) ResourceConfiguration
- func (m ResourceConfigurations) GetByUid(search string) ResourceConfiguration
- type ResourceDaemonSet
- type ResourceDaemonSetStatus
- type ResourceDaemonsets
- func (m ResourceDaemonsets) GetByLabels(search map[string]string) []ResourceDaemonSet
- func (m ResourceDaemonsets) GetByName(search string) ResourceDaemonSet
- func (m ResourceDaemonsets) GetByNamespace(search string) ResourceDaemonSet
- func (m ResourceDaemonsets) GetByUid(search string) ResourceDaemonSet
- type ResourceDeployment
- type ResourceDeploymentStatus
- type ResourceDeployments
- func (m ResourceDeployments) GetByLabels(search map[string]string) []ResourceDeployment
- func (m ResourceDeployments) GetByName(search string) ResourceDeployment
- func (m ResourceDeployments) GetByNamespace(search string) ResourceDeployment
- func (m ResourceDeployments) GetByUid(search string) ResourceDeployment
- type ResourceExposedSecretReport
- type ResourceExposedSecretReportReport
- type ResourceExposedsecretreports
- func (m ResourceExposedsecretreports) GetByLabels(search map[string]string) []ResourceExposedSecretReport
- func (m ResourceExposedsecretreports) GetByName(search string) ResourceExposedSecretReport
- func (m ResourceExposedsecretreports) GetByNamespace(search string) ResourceExposedSecretReport
- func (m ResourceExposedsecretreports) GetByUid(search string) ResourceExposedSecretReport
- type ResourceIngress
- type ResourceIngressClass
- type ResourceIngressClassSpec
- type ResourceIngressClassSpecParameters
- type ResourceIngressSpec
- type ResourceIngressSpecBackendResource
- type ResourceIngressSpecBackendService
- type ResourceIngressSpecBackendServicePort
- type ResourceIngressSpecRules
- type ResourceIngressSpecRulesHttp
- type ResourceIngressSpecRulesHttpPaths
- type ResourceIngressSpecRulesHttpPathsBackend
- type ResourceIngressSpecTls
- type ResourceIngressStatus
- type ResourceIngressStatusLoadBalancer
- type ResourceIngressStatusLoadBalancerIngress
- type ResourceIngressclasses
- func (m ResourceIngressclasses) GetByLabels(search map[string]string) []ResourceIngressClass
- func (m ResourceIngressclasses) GetByName(search string) ResourceIngressClass
- func (m ResourceIngressclasses) GetByNamespace(search string) ResourceIngressClass
- func (m ResourceIngressclasses) GetByUid(search string) ResourceIngressClass
- type ResourceIngresses
- type ResourceKubernetesCluster
- type ResourceKubernetesClusterSpec
- type ResourceKubernetesClusterSpecEndpoint
- type ResourceKubernetesClusterSpecProviderSpec
- type ResourceKubernetesClusterSpecProviderSpecAzureSpec
- type ResourceKubernetesClusterSpecProviderSpecTanzuSpec
- type ResourceKubernetesClusterSpecToolingConfig
- type ResourceKubernetesClusterSpecTopology
- type ResourceKubernetesClusterSpecTopologyControlPlane
- type ResourceKubernetesClusterSpecTopologyWorkers
- type ResourceKubernetesClusterStatus
- type ResourceKubernetesClusterStatusCondition
- type ResourceKubernetesclusters
- func (m ResourceKubernetesclusters) GetByLabels(search map[string]string) []ResourceKubernetesCluster
- func (m ResourceKubernetesclusters) GetByName(search string) ResourceKubernetesCluster
- func (m ResourceKubernetesclusters) GetByNamespace(search string) ResourceKubernetesCluster
- func (m ResourceKubernetesclusters) GetByUid(search string) ResourceKubernetesCluster
- type ResourceMetadata
- type ResourceMetadataOwnerReference
- type ResourceModel
- type ResourceModels
- type ResourceNamespace
- type ResourceNamespaces
- type ResourceNode
- type ResourceNodeSpec
- type ResourceNodeSpecTaints
- type ResourceNodeStatus
- type ResourceNodeStatusAddresses
- type ResourceNodeStatusCapacity
- type ResourceNodeStatusConditions
- type ResourceNodeStatusNodeinfo
- type ResourceNodes
- type ResourceOwnerReferencedeprecated
- type ResourcePersistentVolumeClaim
- type ResourcePersistentVolumeClaimSpec
- type ResourcePersistentVolumeClaimSpecResources
- type ResourcePersistentVolumeClaimStatus
- type ResourcePersistentvolumeclaims
- type ResourcePod
- type ResourcePodSpec
- type ResourcePodSpecContainers
- type ResourcePodSpecContainersPorts
- type ResourcePodStatus
- type ResourcePods
- type ResourcePolicyReport
- type ResourcePolicyReportResults
- type ResourcePolicyReportResultsResources
- type ResourcePolicyReportSummary
- type ResourcePolicyreports
- func (m ResourcePolicyreports) GetByLabels(search map[string]string) []ResourcePolicyReport
- func (m ResourcePolicyreports) GetByName(search string) ResourcePolicyReport
- func (m ResourcePolicyreports) GetByNamespace(search string) ResourcePolicyReport
- func (m ResourcePolicyreports) GetByUid(search string) ResourcePolicyReport
- type ResourceProject
- type ResourceProjectSpec
- type ResourceProjectSpecRole
- type ResourceProjects
- type ResourceProviderConfigAks
- type ResourceProviderConfigKind
- type ResourceProviderConfigTanzu
- type ResourceQuery
- type ResourceRbacAssessmentReport
- type ResourceRbacAssessmentReportReport
- type ResourceRbacassessmentreports
- func (m ResourceRbacassessmentreports) GetByLabels(search map[string]string) []ResourceRbacAssessmentReport
- func (m ResourceRbacassessmentreports) GetByName(search string) ResourceRbacAssessmentReport
- func (m ResourceRbacassessmentreports) GetByNamespace(search string) ResourceRbacAssessmentReport
- func (m ResourceRbacassessmentreports) GetByUid(search string) ResourceRbacAssessmentReport
- type ResourceReplicaSet
- type ResourceReplicaSetSpec
- type ResourceReplicaSetSpecSelector
- type ResourceReplicaSetSpecSelectorMatchExpressions
- type ResourceReplicaSetStatus
- type ResourceReplicasets
- func (m ResourceReplicasets) GetByLabels(search map[string]string) []ResourceReplicaSet
- func (m ResourceReplicasets) GetByName(search string) ResourceReplicaSet
- func (m ResourceReplicasets) GetByNamespace(search string) ResourceReplicaSet
- func (m ResourceReplicasets) GetByUid(search string) ResourceReplicaSet
- type ResourceRoute
- type ResourceRouteMessageType
- type ResourceRouteReceiver
- type ResourceRouteSlackReceiver
- type ResourceRouteSpec
- type ResourceRoutes
- type ResourceService
- type ResourceServicePorts
- type ResourceServiceSpec
- type ResourceServices
- type ResourceSlackMessage
- type ResourceSlackMessageResult
- type ResourceSlackMessageSpec
- type ResourceSlackMessageStatus
- type ResourceSlackmessages
- type ResourceStatefulSet
- type ResourceStatefulSetStatus
- type ResourceStatefulsets
- func (m ResourceStatefulsets) GetByLabels(search map[string]string) []ResourceStatefulSet
- func (m ResourceStatefulsets) GetByName(search string) ResourceStatefulSet
- func (m ResourceStatefulsets) GetByNamespace(search string) ResourceStatefulSet
- func (m ResourceStatefulsets) GetByUid(search string) ResourceStatefulSet
- type ResourceStorageClass
- type ResourceStorageclasses
- type ResourceTanuzKuberntesClusterSpec
- type ResourceTanuzKuberntesMetadata
- type ResourceTanuzKuberntesMetadataManagedFields
- type ResourceTanuzKuberntesMetadataOwnerReferences
- type ResourceTanzuKubernetesCluster
- type ResourceTanzuKubernetesClusterSpecDistribution
- type ResourceTanzuKubernetesClusterSpecSettings
- type ResourceTanzuKubernetesClusterSpecSettingsNetwork
- type ResourceTanzuKubernetesClusterSpecSettingsNetworkCni
- type ResourceTanzuKubernetesClusterSpecSettingsNetworkPods
- type ResourceTanzuKubernetesClusterSpecSettingsNetworkProxy
- type ResourceTanzuKubernetesClusterSpecSettingsNetworkServices
- type ResourceTanzuKubernetesClusterSpecSettingsNetworkTrust
- type ResourceTanzuKubernetesClusterSpecSettingsNetworkTrustAdditionalTrustedCA
- type ResourceTanzuKubernetesClusterSpecSettingsStorage
- type ResourceTanzuKubernetesClusterSpecTopology
- type ResourceTanzuKubernetesClusterSpecTopologyControlPlane
- type ResourceTanzuKubernetesClusterSpecTopologyControlPlaneTkr
- type ResourceTanzuKubernetesClusterSpecTopologyControlPlaneTkrReference
- type ResourceTanzuKubernetesClusterSpecTopologyNodePools
- type ResourceTanzuKubernetesClusterSpecTopologyNodePoolsTaints
- type ResourceTanzuKubernetesClusterSpecTopologyNodePoolsTkr
- type ResourceTanzuKubernetesClusterSpecTopologyNodePoolsTkrReference
- type ResourceTanzuKubernetesClusterSpecTopologyNodePoolsVolumes
- type ResourceTanzuKubernetesClusterStatus
- type ResourceTanzuKubernetesClusterStatusAPIEndpoints
- type ResourceTanzuKubernetesClusterStatusAddons
- type ResourceTanzuKubernetesClusterStatusAddonsConditions
- type ResourceTanzuKubernetesClusterStatusConditions
- type ResourceTanzuKubernetesRelease
- type ResourceTanzuKubernetesReleaseMetadata
- type ResourceTanzuKubernetesReleaseMetadataManagedField
- type ResourceTanzuKubernetesReleaseMetadataOwnerReference
- type ResourceTanzuKubernetesReleaseSpec
- type ResourceTanzuKubernetesReleaseSpecImage
- type ResourceTanzuKubernetesReleaseSpecNodeImageRef
- type ResourceTanzuKubernetesReleaseStatus
- type ResourceTanzuKubernetesReleaseStatusCondition
- type ResourceTanzukubernetesclusters
- func (m ResourceTanzukubernetesclusters) GetByLabels(search map[string]string) []ResourceTanzuKubernetesCluster
- func (m ResourceTanzukubernetesclusters) GetByName(search string) ResourceTanzuKubernetesCluster
- func (m ResourceTanzukubernetesclusters) GetByNamespace(search string) ResourceTanzuKubernetesCluster
- func (m ResourceTanzukubernetesclusters) GetByUid(search string) ResourceTanzuKubernetesCluster
- type ResourceTanzukubernetesreleases
- func (m ResourceTanzukubernetesreleases) GetByLabels(search map[string]string) []ResourceTanzuKubernetesRelease
- func (m ResourceTanzukubernetesreleases) GetByName(search string) ResourceTanzuKubernetesRelease
- func (m ResourceTanzukubernetesreleases) GetByUid(search string) ResourceTanzuKubernetesRelease
- type ResourceUpdateModel
- type ResourceVersion
- type ResourceVirtualMachineClass
- type ResourceVirtualMachineClassBinding
- type ResourceVirtualMachineClassBindingClassRef
- type ResourceVirtualMachineClassBindingMetadata
- type ResourceVirtualMachineClassBindingMetadataManagedField
- type ResourceVirtualMachineClassBindingMetadataOwnerReference
- type ResourceVirtualMachineClassMetadata
- type ResourceVirtualMachineClassMetadataManagedField
- type ResourceVirtualMachineClassMetadataOwnerReference
- type ResourceVirtualMachineClassSpec
- type ResourceVirtualMachineClassSpecHardware
- type ResourceVirtualMachineClassSpecHardwareInstanceStorage
- type ResourceVirtualmachineclassbindings
- func (m ResourceVirtualmachineclassbindings) GetByLabels(search map[string]string) []ResourceVirtualMachineClassBinding
- func (m ResourceVirtualmachineclassbindings) GetByName(search string) ResourceVirtualMachineClassBinding
- func (m ResourceVirtualmachineclassbindings) GetByNamespace(search string) ResourceVirtualMachineClassBinding
- func (m ResourceVirtualmachineclassbindings) GetByUid(search string) ResourceVirtualMachineClassBinding
- type ResourceVirtualmachineclasses
- type ResourceVulnerabilityEvent
- type ResourceVulnerabilityEventSpec
- type ResourceVulnerabilityReport
- type ResourceVulnerabilityReportReport
- type ResourceVulnerabilityReportReportArtifact
- type ResourceVulnerabilityReportReportVulnerability
- type ResourceVulnerabilityevents
- type ResourceVulnerabilityreports
- func (m ResourceVulnerabilityreports) GetByLabels(search map[string]string) []ResourceVulnerabilityReport
- func (m ResourceVulnerabilityreports) GetByName(search string) ResourceVulnerabilityReport
- func (m ResourceVulnerabilityreports) GetByNamespace(search string) ResourceVulnerabilityReport
- func (m ResourceVulnerabilityreports) GetByUid(search string) ResourceVulnerabilityReport
- type Resourcetypes
- type SensitivityLevel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AquaReportScanner ¶
type AquaReportSummary ¶
type CriticalityLevel ¶
type CriticalityLevel int
const ( CriticalityLevelUnknown CriticalityLevel = iota CriticalityLevelOpen CriticalityLevel = 1 CriticalityLevelIntern CriticalityLevel = 2 CriticalityLevelShielded CriticalityLevel = 3 CriticalityLevelHighlyShielded CriticalityLevel = 4 )
type EnvironmentType ¶
type EnvironmentType int
const ( EnvironmentUnknown EnvironmentType = iota EnvironmentDevelopment EnvironmentType = 1 EnvironmentTesting EnvironmentType = 2 EnvironmentQA EnvironmentType = 3 EnvironmentProduction EnvironmentType = 4 )
type HashList ¶
type HashList struct {
Items []HashItem `json:"items"`
}
Hashlist for use in agent communication NB This struct has a counterpart in the agent.
type ResourceAction ¶
type ResourceAction string
Allowed actions from the kubernetes dynamic client
const ( K8sActionAdd ResourceAction = "Add" K8sActionDelete ResourceAction = "Delete" K8sActionUpdate ResourceAction = "Update" )
type ResourceActionType ¶ added in v0.0.11
type ResourceActionType string
const ( ResourceActionTypeUnknown ResourceActionType = "" ResourceActionTypeCreate ResourceActionType = "Create" ResourceActionTypeUpdate ResourceActionType = "Update" ResourceActionTypeDelete ResourceActionType = "Delete" )
type ResourceAppProject ¶
type ResourceAppProject struct { ApiVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata ResourceMetadata `json:"metadata"` Spec ResourceAppProjectSpec `json:"spec"` }
K8s applicationProject struct used with ArgoCD
type ResourceAppProjectSpec ¶
type ResourceAppProjectSpec struct { Description string `json:"description"` SourceRepos []string `json:"sourceRepos"` Destinations []ResourceApplicationSpecDestination `json:"destinations"` }
type ResourceApplication ¶
type ResourceApplication struct { ApiVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata ResourceMetadata `json:"metadata"` Spec ResourceApplicationSpec `json:"spec"` Status ResourceApplicationStatus `json:"status"` }
K8s application struct used with ArgoCD
type ResourceApplicationSpec ¶
type ResourceApplicationSpec struct { Destination ResourceApplicationSpecDestination `json:"destination"` Project string `json:"project"` Source ResourceApplicationSpecSource `json:"source"` SyncPolicy ResourceApplicationSpecSyncpolicy `json:"syncPolicy"` }
type ResourceApplicationSpecSyncpolicy ¶
type ResourceApplicationSpecSyncpolicy struct { Automated *ResourceApplicationSpecSyncpolicyAutomated `json:"automated"` Retry *ResourceApplicationSpecSyncpolicyRetry `json:"retry"` SyncOptions []string `json:"syncOptions"` }
type ResourceApplicationSpecSyncpolicyRetry ¶
type ResourceApplicationSpecSyncpolicyRetry struct { Backoff *ResourceApplicationSpecSyncpolicyRetryBackoff `json:"backoff"` Limit int `json:"limit"` }
type ResourceApplicationStatus ¶
type ResourceApplicationStatus struct { SourceType string `json:"sourceType"` ReconciledAt string `json:"reconciledAt"` OperationState ResourceApplicationStatusOperationstate `json:"operationState"` Health ResourceApplicationStatusHealth `json:"health"` Sync ResourceApplicationStatusSync `json:"sync"` }
type ResourceApplications ¶
type ResourceApplications struct { Owner ResourceOwnerReference `json:"owner"` Applications []ResourceApplication `json:"applications"` }
type for returning Application resources to internal functions
func (ResourceApplications) GetByLabels ¶
func (m ResourceApplications) GetByLabels(search map[string]string) []ResourceApplication
Function to return Application resource by label.
func (ResourceApplications) GetByName ¶
func (m ResourceApplications) GetByName(search string) ResourceApplication
Function to return Application resource by name.
func (ResourceApplications) GetByNamespace ¶
func (m ResourceApplications) GetByNamespace(search string) ResourceApplication
Function to return Application resource by namespace.
func (ResourceApplications) GetByUid ¶
func (m ResourceApplications) GetByUid(search string) ResourceApplication
Function to return Application resource by uid.
type ResourceAppprojects ¶
type ResourceAppprojects struct { Owner ResourceOwnerReference `json:"owner"` Appprojects []ResourceAppProject `json:"appprojects"` }
type for returning AppProject resources to internal functions
func (ResourceAppprojects) GetByLabels ¶
func (m ResourceAppprojects) GetByLabels(search map[string]string) []ResourceAppProject
Function to return AppProject resource by label.
func (ResourceAppprojects) GetByName ¶
func (m ResourceAppprojects) GetByName(search string) ResourceAppProject
Function to return AppProject resource by name.
func (ResourceAppprojects) GetByNamespace ¶
func (m ResourceAppprojects) GetByNamespace(search string) ResourceAppProject
Function to return AppProject resource by namespace.
func (ResourceAppprojects) GetByUid ¶
func (m ResourceAppprojects) GetByUid(search string) ResourceAppProject
Function to return AppProject resource by uid.
type ResourceCertificate ¶
type ResourceCertificate struct { ApiVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata ResourceMetadata `json:"metadata"` Spec ResourceCertificateSpec `json:"spec"` Status ResourceCertificateStatus `json:"status"` }
K8s certificate struct
type ResourceCertificateSpec ¶
type ResourceCertificateSpec struct { DnsNames []string `json:"dnsNames"` SecretName string `json:"secretName"` IssuerRef ResourceCertificateSpecIssuerref `json:"issuerRef"` Usages []string `json:"usages,omitempty"` }
type ResourceCertificateStatus ¶
type ResourceCertificateStatus struct { NotBefore string `json:"notBefore"` NotAfter string `json:"notAfter"` RenewalTime string `json:"renewalTime"` Conditions []ResourceCertificateStatusCondition `json:"conditions"` }
type ResourceCertificates ¶
type ResourceCertificates struct { Owner ResourceOwnerReference `json:"owner"` Certificates []ResourceCertificate `json:"certificates"` }
type for returning Certificate resources to internal functions
func (ResourceCertificates) GetByLabels ¶
func (m ResourceCertificates) GetByLabels(search map[string]string) []ResourceCertificate
Function to return Certificate resource by label.
func (ResourceCertificates) GetByName ¶
func (m ResourceCertificates) GetByName(search string) ResourceCertificate
Function to return Certificate resource by name.
func (ResourceCertificates) GetByNamespace ¶
func (m ResourceCertificates) GetByNamespace(search string) ResourceCertificate
Function to return Certificate resource by namespace.
func (ResourceCertificates) GetByUid ¶
func (m ResourceCertificates) GetByUid(search string) ResourceCertificate
Function to return Certificate resource by uid.
type ResourceClusterComplianceReport ¶
type ResourceClusterComplianceReport struct { ApiVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata ResourceMetadata `json:"metadata"` Status ResourceClusterComplianceReportStatus `json:"status"` }
K8s namepace struct
type ResourceClusterComplianceReportStatus ¶
type ResourceClusterComplianceReportStatus struct { Summary ResourceClusterComplianceReportSummary `json:"summary"` SummaryReport ResourceClusterComplianceReportSummaryReport `json:"summaryReport"` }
type ResourceClusterOrder ¶
type ResourceClusterOrder struct { ApiVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata ResourceMetadata `json:"metadata"` Spec ResourceClusterOrderSpec `json:"spec"` Status ResourceClusterOrderStatus `json:"status"` }
type ResourceClusterOrderSpec ¶
type ResourceClusterOrderSpec struct { OrderType ResourceActionType `json:"orderType" validate:"required,min=1,ne=' '"` Provider providers.ProviderType `json:"provider,omitempty"` Cluster string `json:"cluster" validate:"required,min=1,ne=' '"` ProjectId string `json:"projectId,omitempty"` OrderBy string `json:"orderBy" validate:"required,min=1,ne=' '"` Environment EnvironmentType `json:"environment,omitempty" validate:"min=1,max=4"` Criticality CriticalityLevel `json:"criticality,omitempty" validate:"min=1,max=4"` Sensitivity SensitivityLevel `json:"sensitivity,omitempty" validate:"min=1,max=4"` HighAvailability bool `json:"highAvailability,omitempty" validate:"boolean"` NodePools []ResourceClusterOrderSpecNodePool `json:"nodePools,omitempty" validate:"min=1,dive,required"` ServiceTags map[string]string `json:"serviceTags,omitempty"` ProviderConfig map[string]interface{} `json:"providerConfig,omitempty"` OwnerGroup string `json:"ownerGroup,omitempty" validate:"min=1,ne=' '"` K8sVersion string `json:"k8sVersion,omitempty"` }
type ResourceClusterOrderStatus ¶
type ResourceClusterOrderStatus struct { Status string `json:"status"` Phase ResourceClusterOrderStatusPhase `json:"phase"` Conditions []ResourceKubernetesClusterStatusCondition `json:"conditions"` CreatedTime string `json:"createdTime"` UpdatedTime string `json:"updatedTime"` LastObservedTime string `json:"lastObservedTime"` }
type ResourceClusterOrderStatusPhase ¶ added in v0.0.11
type ResourceClusterOrderStatusPhase string
const ( ResourceClusterOrderStatusPhasePending ResourceClusterOrderStatusPhase = "Pending" ResourceClusterOrderStatusPhaseCreating ResourceClusterOrderStatusPhase = "Creating" ResourceClusterOrderStatusPhaseUpdating ResourceClusterOrderStatusPhase = "Updating" ResourceClusterOrderStatusPhaseDeleting ResourceClusterOrderStatusPhase = "Deleting" ResourceClusterOrderStatusPhaseCompleted ResourceClusterOrderStatusPhase = "Completed" ResourceClusterOrderStatusPhaseFailed ResourceClusterOrderStatusPhase = "Failed" )
type ResourceClusterVulnerabilityReport ¶ added in v0.2.3
type ResourceClusterVulnerabilityReport struct { ApiVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata ResourceMetadata `json:"metadata"` Report ResourceClusterVulnerabilityReportReport `json:"report"` }
type ResourceClusterVulnerabilityReportReport ¶ added in v0.2.3
type ResourceClusterVulnerabilityReportReport struct { Summary ResourceClusterVulnerabilityReportSummary `json:"summary"` Vulnerabilities map[string]ResourceClusterVulnerabilityReportStatus `json:"vulnerabilities"` }
type ResourceClusterVulnerabilityReportStatus ¶ added in v0.2.3
type ResourceClusterVulnerabilityReportStatus struct { ResourceVulnerabilityReportReportVulnerability `json:",inline" bson:",inline"` LastObserved time.Time `json:"lastObserved"` }
type ResourceClusterVulnerabilityReportSummary ¶ added in v0.2.3
type ResourceClustercompliancereports ¶
type ResourceClustercompliancereports struct { Owner ResourceOwnerReference `json:"owner"` Clustercompliancereports []ResourceClusterComplianceReport `json:"clustercompliancereports"` }
type for returning ClusterComplianceReport resources to internal functions
func (ResourceClustercompliancereports) GetByLabels ¶
func (m ResourceClustercompliancereports) GetByLabels(search map[string]string) []ResourceClusterComplianceReport
Function to return ClusterComplianceReport resource by label.
func (ResourceClustercompliancereports) GetByName ¶
func (m ResourceClustercompliancereports) GetByName(search string) ResourceClusterComplianceReport
Function to return ClusterComplianceReport resource by name.
func (ResourceClustercompliancereports) GetByUid ¶
func (m ResourceClustercompliancereports) GetByUid(search string) ResourceClusterComplianceReport
Function to return ClusterComplianceReport resource by uid.
type ResourceClusterorders ¶
type ResourceClusterorders struct { Owner ResourceOwnerReference `json:"owner"` Clusterorders []ResourceClusterOrder `json:"clusterorders"` }
type for returning ClusterOrder resources to internal functions
func (ResourceClusterorders) GetByLabels ¶
func (m ResourceClusterorders) GetByLabels(search map[string]string) []ResourceClusterOrder
Function to return ClusterOrder resource by label.
func (ResourceClusterorders) GetByName ¶
func (m ResourceClusterorders) GetByName(search string) ResourceClusterOrder
Function to return ClusterOrder resource by name.
func (ResourceClusterorders) GetByNamespace ¶
func (m ResourceClusterorders) GetByNamespace(search string) ResourceClusterOrder
Function to return ClusterOrder resource by namespace.
func (ResourceClusterorders) GetByUid ¶
func (m ResourceClusterorders) GetByUid(search string) ResourceClusterOrder
Function to return ClusterOrder resource by uid.
type ResourceClustervulnerabilityreports ¶ added in v0.2.3
type ResourceClustervulnerabilityreports struct { Owner ResourceOwnerReference `json:"owner"` Clustervulnerabilityreports []ResourceClusterVulnerabilityReport `json:"clustervulnerabilityreports"` }
type for returning ClusterVulnerabilityReport resources to internal functions
func (ResourceClustervulnerabilityreports) GetByLabels ¶ added in v0.2.3
func (m ResourceClustervulnerabilityreports) GetByLabels(search map[string]string) []ResourceClusterVulnerabilityReport
Function to return ClusterVulnerabilityReport resource by label.
func (ResourceClustervulnerabilityreports) GetByName ¶ added in v0.2.3
func (m ResourceClustervulnerabilityreports) GetByName(search string) ResourceClusterVulnerabilityReport
Function to return ClusterVulnerabilityReport resource by name.
func (ResourceClustervulnerabilityreports) GetByUid ¶ added in v0.2.3
func (m ResourceClustervulnerabilityreports) GetByUid(search string) ResourceClusterVulnerabilityReport
Function to return ClusterVulnerabilityReport resource by uid.
type ResourceConfigAuditReport ¶
type ResourceConfigAuditReport struct { ApiVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata ResourceMetadata `json:"metadata"` Report ResourceVulnerabilityReportReport `json:"report"` }
K8s namepace struct
type ResourceConfigAuditReportReport ¶
type ResourceConfigAuditReportReport struct {
Summary AquaReportSummary `json:"summary"`
}
type ResourceConfigauditreports ¶
type ResourceConfigauditreports struct { Owner ResourceOwnerReference `json:"owner"` Configauditreports []ResourceConfigAuditReport `json:"configauditreports"` }
type for returning ConfigAuditReport resources to internal functions
func (ResourceConfigauditreports) GetByLabels ¶
func (m ResourceConfigauditreports) GetByLabels(search map[string]string) []ResourceConfigAuditReport
Function to return ConfigAuditReport resource by label.
func (ResourceConfigauditreports) GetByName ¶
func (m ResourceConfigauditreports) GetByName(search string) ResourceConfigAuditReport
Function to return ConfigAuditReport resource by name.
func (ResourceConfigauditreports) GetByNamespace ¶
func (m ResourceConfigauditreports) GetByNamespace(search string) ResourceConfigAuditReport
Function to return ConfigAuditReport resource by namespace.
func (ResourceConfigauditreports) GetByUid ¶
func (m ResourceConfigauditreports) GetByUid(search string) ResourceConfigAuditReport
Function to return ConfigAuditReport resource by uid.
type ResourceConfiguration ¶
type ResourceConfiguration struct { ApiVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata ResourceMetadata `json:"metadata"` Spec ResourceConfigurationSpec `json:"spec"` }
type ResourceConfigurations ¶
type ResourceConfigurations struct { Owner ResourceOwnerReference `json:"owner"` Configurations []ResourceConfiguration `json:"configurations"` }
type for returning Configuration resources to internal functions
func (ResourceConfigurations) GetByLabels ¶
func (m ResourceConfigurations) GetByLabels(search map[string]string) []ResourceConfiguration
Function to return Configuration resource by label.
func (ResourceConfigurations) GetByName ¶
func (m ResourceConfigurations) GetByName(search string) ResourceConfiguration
Function to return Configuration resource by name.
func (ResourceConfigurations) GetByNamespace ¶
func (m ResourceConfigurations) GetByNamespace(search string) ResourceConfiguration
Function to return Configuration resource by namespace.
func (ResourceConfigurations) GetByUid ¶
func (m ResourceConfigurations) GetByUid(search string) ResourceConfiguration
Function to return Configuration resource by uid.
type ResourceDaemonSet ¶
type ResourceDaemonSet struct { ApiVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata ResourceMetadata `json:"metadata"` Status ResourceDaemonSetStatus `json:"status"` }
K8s deployment struct
type ResourceDaemonSetStatus ¶
type ResourceDaemonSetStatus struct { NumberReady int `json:"numberReady"` NumberMisscheduled int `json:"currentReplicas"` NumberAvailable int `json:"numberAvailable"` UpdatedNumberScheduled int `json:"updatedNumberScheduled"` DesiredNumberScheduled int `json:"desiredNumberScheduled"` CurrentNumberScheduled int `json:"currentNumberScheduled"` }
type ResourceDaemonsets ¶
type ResourceDaemonsets struct { Owner ResourceOwnerReference `json:"owner"` Daemonsets []ResourceDaemonSet `json:"daemonsets"` }
type for returning DaemonSet resources to internal functions
func (ResourceDaemonsets) GetByLabels ¶
func (m ResourceDaemonsets) GetByLabels(search map[string]string) []ResourceDaemonSet
Function to return DaemonSet resource by label.
func (ResourceDaemonsets) GetByName ¶
func (m ResourceDaemonsets) GetByName(search string) ResourceDaemonSet
Function to return DaemonSet resource by name.
func (ResourceDaemonsets) GetByNamespace ¶
func (m ResourceDaemonsets) GetByNamespace(search string) ResourceDaemonSet
Function to return DaemonSet resource by namespace.
func (ResourceDaemonsets) GetByUid ¶
func (m ResourceDaemonsets) GetByUid(search string) ResourceDaemonSet
Function to return DaemonSet resource by uid.
type ResourceDeployment ¶
type ResourceDeployment struct { ApiVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata ResourceMetadata `json:"metadata"` Status ResourceDeploymentStatus `json:"status"` }
K8s deployment struct
type ResourceDeployments ¶
type ResourceDeployments struct { Owner ResourceOwnerReference `json:"owner"` Deployments []ResourceDeployment `json:"deployments"` }
type for returning Deployment resources to internal functions
func (ResourceDeployments) GetByLabels ¶
func (m ResourceDeployments) GetByLabels(search map[string]string) []ResourceDeployment
Function to return Deployment resource by label.
func (ResourceDeployments) GetByName ¶
func (m ResourceDeployments) GetByName(search string) ResourceDeployment
Function to return Deployment resource by name.
func (ResourceDeployments) GetByNamespace ¶
func (m ResourceDeployments) GetByNamespace(search string) ResourceDeployment
Function to return Deployment resource by namespace.
func (ResourceDeployments) GetByUid ¶
func (m ResourceDeployments) GetByUid(search string) ResourceDeployment
Function to return Deployment resource by uid.
type ResourceExposedSecretReport ¶
type ResourceExposedSecretReport struct { ApiVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata ResourceMetadata `json:"metadata"` Report ResourceVulnerabilityReportReport `json:"report"` }
K8s namepace struct
type ResourceExposedSecretReportReport ¶
type ResourceExposedSecretReportReport struct {
Summary AquaReportSummary `json:"summary"`
}
type ResourceExposedsecretreports ¶
type ResourceExposedsecretreports struct { Owner ResourceOwnerReference `json:"owner"` Exposedsecretreports []ResourceExposedSecretReport `json:"exposedsecretreports"` }
type for returning ExposedSecretReport resources to internal functions
func (ResourceExposedsecretreports) GetByLabels ¶
func (m ResourceExposedsecretreports) GetByLabels(search map[string]string) []ResourceExposedSecretReport
Function to return ExposedSecretReport resource by label.
func (ResourceExposedsecretreports) GetByName ¶
func (m ResourceExposedsecretreports) GetByName(search string) ResourceExposedSecretReport
Function to return ExposedSecretReport resource by name.
func (ResourceExposedsecretreports) GetByNamespace ¶
func (m ResourceExposedsecretreports) GetByNamespace(search string) ResourceExposedSecretReport
Function to return ExposedSecretReport resource by namespace.
func (ResourceExposedsecretreports) GetByUid ¶
func (m ResourceExposedsecretreports) GetByUid(search string) ResourceExposedSecretReport
Function to return ExposedSecretReport resource by uid.
type ResourceIngress ¶
type ResourceIngress struct { ApiVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata ResourceMetadata `json:"metadata"` Spec ResourceIngressSpec `json:"spec"` Status ResourceIngressStatus `json:"status"` }
K8s namepace struct
type ResourceIngressClass ¶
type ResourceIngressClass struct { ApiVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata ResourceMetadata `json:"metadata"` Spec ResourceIngressClassSpec `json:"spec"` }
K8s namepace struct
type ResourceIngressClassSpec ¶
type ResourceIngressClassSpec struct { Controller string `json:"controller"` Parameters ResourceIngressClassSpecParameters `json:"parameters"` }
type ResourceIngressSpec ¶
type ResourceIngressSpec struct { DefaultBackend ResourceIngressSpecRulesHttpPathsBackend `json:"defaultBackend,omitempty"` IngressClassName string `json:"ingressClassName"` Rules []ResourceIngressSpecRules `json:"rules"` Tls []ResourceIngressSpecTls `json:"tls"` }
type ResourceIngressSpecBackendService ¶
type ResourceIngressSpecBackendService struct { Name string `json:"name,omitempty"` Port ResourceIngressSpecBackendServicePort `json:"port,omitempty"` }
type ResourceIngressSpecRules ¶
type ResourceIngressSpecRules struct { Host string `json:"apiGroup"` Http ResourceIngressSpecRulesHttp `json:"http"` }
type ResourceIngressSpecRulesHttp ¶
type ResourceIngressSpecRulesHttp struct {
Paths []ResourceIngressSpecRulesHttpPaths `json:"paths"`
}
type ResourceIngressSpecRulesHttpPaths ¶
type ResourceIngressSpecRulesHttpPaths struct { Backend ResourceIngressSpecRulesHttpPathsBackend `json:"backend"` Path string `json:"path"` PathType string `json:"pathType"` }
type ResourceIngressSpecRulesHttpPathsBackend ¶
type ResourceIngressSpecRulesHttpPathsBackend struct { Resource ResourceIngressSpecBackendResource `json:"resource,omitempty"` Service ResourceIngressSpecBackendService `json:"service,omitempty"` }
type ResourceIngressSpecTls ¶
type ResourceIngressStatus ¶
type ResourceIngressStatus struct {
LoadBalancer ResourceIngressStatusLoadBalancer `json:"loadBalancer"`
}
type ResourceIngressStatusLoadBalancer ¶
type ResourceIngressStatusLoadBalancer struct {
Ingress []ResourceIngressStatusLoadBalancerIngress `json:"ingress"`
}
type ResourceIngressclasses ¶
type ResourceIngressclasses struct { Owner ResourceOwnerReference `json:"owner"` Ingressclasses []ResourceIngressClass `json:"ingressclasses"` }
type for returning IngressClass resources to internal functions
func (ResourceIngressclasses) GetByLabels ¶
func (m ResourceIngressclasses) GetByLabels(search map[string]string) []ResourceIngressClass
Function to return IngressClass resource by label.
func (ResourceIngressclasses) GetByName ¶
func (m ResourceIngressclasses) GetByName(search string) ResourceIngressClass
Function to return IngressClass resource by name.
func (ResourceIngressclasses) GetByNamespace ¶ added in v0.1.5
func (m ResourceIngressclasses) GetByNamespace(search string) ResourceIngressClass
Function to return IngressClass resource by namespace.
func (ResourceIngressclasses) GetByUid ¶
func (m ResourceIngressclasses) GetByUid(search string) ResourceIngressClass
Function to return IngressClass resource by uid.
type ResourceIngresses ¶
type ResourceIngresses struct { Owner ResourceOwnerReference `json:"owner"` Ingresses []ResourceIngress `json:"ingresses"` }
type for returning Ingress resources to internal functions
func (ResourceIngresses) GetByLabels ¶
func (m ResourceIngresses) GetByLabels(search map[string]string) []ResourceIngress
Function to return Ingress resource by label.
func (ResourceIngresses) GetByName ¶
func (m ResourceIngresses) GetByName(search string) ResourceIngress
Function to return Ingress resource by name.
func (ResourceIngresses) GetByNamespace ¶
func (m ResourceIngresses) GetByNamespace(search string) ResourceIngress
Function to return Ingress resource by namespace.
func (ResourceIngresses) GetByUid ¶
func (m ResourceIngresses) GetByUid(search string) ResourceIngress
Function to return Ingress resource by uid.
type ResourceKubernetesCluster ¶
type ResourceKubernetesCluster struct { ApiVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata ResourceMetadata `json:"metadata"` Spec ResourceKubernetesClusterSpec `json:"spec"` Status ResourceKubernetesClusterStatus `json:"status"` }
type ResourceKubernetesClusterSpec ¶
type ResourceKubernetesClusterSpec struct { ClusterId string `json:"clusterId"` ClusterName string `json:"clusterName"` Description string `json:"description"` Project string `json:"project"` Provider string `json:"provider"` CreatedBy string `json:"createdBy"` ToolingConfig ResourceKubernetesClusterSpecToolingConfig `json:"toolingConfig"` Environment string `json:"environment"` ProviderSpec ResourceKubernetesClusterSpecProviderSpec `json:"providerSpec"` Topology ResourceKubernetesClusterSpecTopology `json:"topology"` Endpoints []ResourceKubernetesClusterSpecEndpoint `json:"endpoints"` }
type ResourceKubernetesClusterSpecProviderSpec ¶
type ResourceKubernetesClusterSpecProviderSpec struct { TanzuSpec ResourceKubernetesClusterSpecProviderSpecTanzuSpec `json:"tanzuSpec"` AzureSpec ResourceKubernetesClusterSpecProviderSpecAzureSpec `json:"azureSpec"` }
type ResourceKubernetesClusterSpecToolingConfig ¶
type ResourceKubernetesClusterSpecToolingConfig struct {
SplunkIndex string `json:"splunkIndex"`
}
type ResourceKubernetesClusterSpecTopology ¶
type ResourceKubernetesClusterSpecTopology struct { ControlPlane ResourceKubernetesClusterSpecTopologyControlPlane `json:"controlPlane"` Workers []ResourceKubernetesClusterSpecTopologyWorkers `json:"workers"` }
type ResourceKubernetesClusterStatus ¶
type ResourceKubernetesClusterStatus struct { Status string `json:"status"` Phase string `json:"phase"` Conditions []ResourceKubernetesClusterStatusCondition `json:"conditions"` KubernetesVersion string `json:"kubernetesVersion"` ProviderStatus map[string]interface{} `json:"providerStatus"` CreatedTime string `json:"createdTime"` UpdatedTime string `json:"updatedTime"` LastObservedTime string `json:"lastObservedTime"` }
type ResourceKubernetesclusters ¶
type ResourceKubernetesclusters struct { Owner ResourceOwnerReference `json:"owner"` Kubernetesclusters []ResourceKubernetesCluster `json:"kubernetesclusters"` }
type for returning KubernetesCluster resources to internal functions
func (ResourceKubernetesclusters) GetByLabels ¶
func (m ResourceKubernetesclusters) GetByLabels(search map[string]string) []ResourceKubernetesCluster
Function to return KubernetesCluster resource by label.
func (ResourceKubernetesclusters) GetByName ¶
func (m ResourceKubernetesclusters) GetByName(search string) ResourceKubernetesCluster
Function to return KubernetesCluster resource by name.
func (ResourceKubernetesclusters) GetByNamespace ¶
func (m ResourceKubernetesclusters) GetByNamespace(search string) ResourceKubernetesCluster
Function to return KubernetesCluster resource by namespace.
func (ResourceKubernetesclusters) GetByUid ¶
func (m ResourceKubernetesclusters) GetByUid(search string) ResourceKubernetesCluster
Function to return KubernetesCluster resource by uid.
type ResourceMetadata ¶
type ResourceMetadata struct { Name string `json:"name"` ResourceVersion string `json:"resourceVersion"` CreationTimestamp string `json:"creationTimestamp"` Labels map[string]string `json:"labels,omitempty"` Annotations map[string]string `json:"annotations,omitempty"` Uid string `json:"uid"` Namespace string `json:"namespace,omitempty"` Generation int `json:"generation,omitempty"` OwnerReferences []ResourceMetadataOwnerReference `json:"ownerReferences,omitempty"` }
K8s metadata struct
type ResourceMetadataOwnerReference ¶
type ResourceMetadataOwnerReference struct { ApiVersion string `json:"apiVersion"` Kind string `json:"kind"` Name string `json:"name"` Uid string `json:"uid"` }
K8s metadata.OwnerReferences struct
type ResourceModel ¶
type ResourceModel[T Resourcetypes] struct { Owner ResourceOwnerReference `json:"owner"` ApiVersion string `json:"apiVersion"` Kind string `json:"kind"` Uid string `json:"uid"` Hash string `json:"hash"` Internal bool `json:"internal"` Version ResourceVersion `json:"version"` Resource T `json:"resource"` }
Generic resourcemodels for single resource.
type ResourceModels ¶
type ResourceModels[T Resourcetypes] struct { Owner ResourceOwnerReference `json:"owner"` ApiVersion string `json:"apiVersion"` Kind string `json:"kind"` Resources []T `json:"resources"` }
Generic resourcemodels for multiple resources.
type ResourceNamespace ¶
type ResourceNamespace struct { ApiVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata ResourceMetadata `json:"metadata"` }
K8s namepace struct
type ResourceNamespaces ¶
type ResourceNamespaces struct { Owner ResourceOwnerReference `json:"owner"` Namespaces []ResourceNamespace `json:"namespaces"` }
type for returning Namespace resources to internal functions
func (ResourceNamespaces) GetByLabels ¶
func (m ResourceNamespaces) GetByLabels(search map[string]string) []ResourceNamespace
Function to return Namespace resource by label.
func (ResourceNamespaces) GetByName ¶
func (m ResourceNamespaces) GetByName(search string) ResourceNamespace
Function to return Namespace resource by name.
func (ResourceNamespaces) GetByUid ¶
func (m ResourceNamespaces) GetByUid(search string) ResourceNamespace
Function to return Namespace resource by uid.
type ResourceNode ¶
type ResourceNode struct { ApiVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata ResourceMetadata `json:"metadata"` Spec ResourceNodeSpec `json:"spec"` Status ResourceNodeStatus `json:"status"` }
K8s node struct
type ResourceNodeSpec ¶
type ResourceNodeSpec struct { PodCIDR string `json:"podCIDR,omitempty"` PodCIDRs []string `json:"podCIDRs,omitempty"` ProviderID string `json:"providerID,omitempty"` Taints []ResourceNodeSpecTaints `json:"taints,omitempty"` }
type ResourceNodeSpecTaints ¶
type ResourceNodeStatus ¶
type ResourceNodeStatus struct { Addresses []ResourceNodeStatusAddresses `json:"addresses"` Capacity ResourceNodeStatusCapacity `json:"capacity"` Conditions []ResourceNodeStatusConditions `json:"conditions"` NodeInfo ResourceNodeStatusNodeinfo `json:"nodeInfo"` }
type ResourceNodeStatusNodeinfo ¶
type ResourceNodeStatusNodeinfo struct { Architecture string `json:"architecture"` BootID string `json:"bootID"` ContainerRuntimeVersion string `json:"containerRuntimeVersion"` KernelVersion string `json:"kernelVersion"` KubeProxyVersion string `json:"kubeProxyVersion"` KubeletVersion string `json:"kubeletVersion"` MachineID string `json:"machineID"` OperatingSystem string `json:"operatingSystem"` OsImage string `json:"osImage"` SystemUUID string `json:"systemUUID"` }
type ResourceNodes ¶
type ResourceNodes struct { Owner ResourceOwnerReference `json:"owner"` Nodes []ResourceNode `json:"nodes"` }
type for returning Node resources to internal functions
func (ResourceNodes) GetByLabels ¶
func (m ResourceNodes) GetByLabels(search map[string]string) []ResourceNode
Function to return Node resource by label.
func (ResourceNodes) GetByName ¶
func (m ResourceNodes) GetByName(search string) ResourceNode
Function to return Node resource by name.
func (ResourceNodes) GetByUid ¶
func (m ResourceNodes) GetByUid(search string) ResourceNode
Function to return Node resource by uid.
type ResourceOwnerReference
deprecated
type ResourceOwnerReference struct { Scope aclmodels.Acl2Scope `json:"scope"` // cluster, workspace,... Subject string `json:"subject"` // ror id eg clusterId or workspaceName }
Deprecated: Use rortypes.RorResourceOwnerReference instead The ResourceOwnerReference or ownereref references the owner og a resource. Its used to chek acl and select resources for valid Scopes.
func (ResourceOwnerReference) GetQueryParams ¶
func (m ResourceOwnerReference) GetQueryParams() map[string]string
Returns a map to use in the `*Resty.Request.SetQueryParams(<ResourceOwnerReference>.GetQueryParams())“ function
type ResourcePersistentVolumeClaim ¶
type ResourcePersistentVolumeClaim struct { ApiVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata ResourceMetadata `json:"metadata"` Spec ResourcePersistentVolumeClaimSpec `json:"spec"` Status ResourcePersistentVolumeClaimStatus `json:"status"` }
K8s PersistentVolumeClaim struct
type ResourcePersistentVolumeClaimSpec ¶
type ResourcePersistentVolumeClaimSpec struct { AaccessModes []string `json:"accessModes"` Resources ResourcePersistentVolumeClaimSpecResources `json:"resources"` StorageClassName string `json:"storageClassName"` VolumeMode string `json:"volumeMode"` VolumeName string `json:"volumeName"` }
type ResourcePersistentvolumeclaims ¶
type ResourcePersistentvolumeclaims struct { Owner ResourceOwnerReference `json:"owner"` Persistentvolumeclaims []ResourcePersistentVolumeClaim `json:"persistentvolumeclaims"` }
type for returning PersistentVolumeClaim resources to internal functions
func (ResourcePersistentvolumeclaims) GetByLabels ¶
func (m ResourcePersistentvolumeclaims) GetByLabels(search map[string]string) []ResourcePersistentVolumeClaim
Function to return PersistentVolumeClaim resource by label.
func (ResourcePersistentvolumeclaims) GetByName ¶
func (m ResourcePersistentvolumeclaims) GetByName(search string) ResourcePersistentVolumeClaim
Function to return PersistentVolumeClaim resource by name.
func (ResourcePersistentvolumeclaims) GetByUid ¶
func (m ResourcePersistentvolumeclaims) GetByUid(search string) ResourcePersistentVolumeClaim
Function to return PersistentVolumeClaim resource by uid.
type ResourcePod ¶
type ResourcePod struct { ApiVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata ResourceMetadata `json:"metadata"` Spec ResourcePodSpec `json:"spec"` Status ResourcePodStatus `json:"status"` }
ResourcePod K8s namepace struct
type ResourcePodSpec ¶
type ResourcePodSpec struct { Containers []ResourcePodSpecContainers `json:"containers"` ServiceAccountName string `json:"serviceAccountName"` NodeName string `json:"nodeName"` }
type ResourcePodSpecContainers ¶
type ResourcePodSpecContainers struct { Name string `json:"name"` Image string `json:"image"` Ports []ResourcePodSpecContainersPorts `json:"ports"` }
type ResourcePodStatus ¶
type ResourcePods ¶
type ResourcePods struct { Owner ResourceOwnerReference `json:"owner"` Pods []ResourcePod `json:"pods"` }
type for returning Pod resources to internal functions
func (ResourcePods) GetByLabels ¶
func (m ResourcePods) GetByLabels(search map[string]string) []ResourcePod
Function to return Pod resource by label.
func (ResourcePods) GetByName ¶
func (m ResourcePods) GetByName(search string) ResourcePod
Function to return Pod resource by name.
func (ResourcePods) GetByNamespace ¶
func (m ResourcePods) GetByNamespace(search string) ResourcePod
Function to return Pod resource by namespace.
func (ResourcePods) GetByUid ¶
func (m ResourcePods) GetByUid(search string) ResourcePod
Function to return Pod resource by uid.
type ResourcePolicyReport ¶
type ResourcePolicyReport struct { ApiVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata ResourceMetadata `json:"metadata"` Results []ResourcePolicyReportResults `json:"results"` Summary ResourcePolicyReportSummary `json:"summary"` LastReported string `json:"lastReported,omitempty"` }
K8s PolicyReport struct generated by kyverno
type ResourcePolicyReportResults ¶
type ResourcePolicyReportResults struct { Policy string `json:"policy"` Message string `json:"message"` Category string `json:"category"` Properties map[string]string `json:"properties"` Severity string `json:"severity"` Result string `json:"result"` Resources []ResourcePolicyReportResultsResources `json:"resources"` }
type ResourcePolicyreports ¶
type ResourcePolicyreports struct { Owner ResourceOwnerReference `json:"owner"` Policyreports []ResourcePolicyReport `json:"policyreports"` }
type for returning PolicyReport resources to internal functions
func (ResourcePolicyreports) GetByLabels ¶
func (m ResourcePolicyreports) GetByLabels(search map[string]string) []ResourcePolicyReport
Function to return PolicyReport resource by label.
func (ResourcePolicyreports) GetByName ¶
func (m ResourcePolicyreports) GetByName(search string) ResourcePolicyReport
Function to return PolicyReport resource by name.
func (ResourcePolicyreports) GetByNamespace ¶
func (m ResourcePolicyreports) GetByNamespace(search string) ResourcePolicyReport
Function to return PolicyReport resource by namespace.
func (ResourcePolicyreports) GetByUid ¶
func (m ResourcePolicyreports) GetByUid(search string) ResourcePolicyReport
Function to return PolicyReport resource by uid.
type ResourceProject ¶
type ResourceProject struct { ApiVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata ResourceMetadata `json:"metadata"` Spec ResourceProjectSpec `json:"spec"` }
type ResourceProjectSpec ¶
type ResourceProjectSpec struct { ProjectName string `json:"projectName"` Description string `json:"description"` Active bool `json:"active"` CreatedTime string `json:"createdTime"` UpdatedTime string `json:"updatedTime"` Roles []ResourceProjectSpecRole `json:"roles"` Workorder string `json:"workorder"` ServiceTag string `json:"serviceTag"` Tags []string `json:"tags"` }
type ResourceProjectSpecRole ¶
type ResourceProjects ¶
type ResourceProjects struct { Owner ResourceOwnerReference `json:"owner"` Projects []ResourceProject `json:"projects"` }
type for returning Project resources to internal functions
func (ResourceProjects) GetByLabels ¶
func (m ResourceProjects) GetByLabels(search map[string]string) []ResourceProject
Function to return Project resource by label.
func (ResourceProjects) GetByName ¶
func (m ResourceProjects) GetByName(search string) ResourceProject
Function to return Project resource by name.
func (ResourceProjects) GetByNamespace ¶
func (m ResourceProjects) GetByNamespace(search string) ResourceProject
Function to return Project resource by namespace.
func (ResourceProjects) GetByUid ¶
func (m ResourceProjects) GetByUid(search string) ResourceProject
Function to return Project resource by uid.
type ResourceProviderConfigKind ¶ added in v0.0.11
type ResourceProviderConfigKind struct { }
type ResourceQuery ¶
type ResourceQuery struct { Owner ResourceOwnerReference `json:"owner"` ApiVersion string `json:"apiVersion"` Kind string `json:"kind"` Uid string `json:"uid"` Internal bool Global bool }
Resource query used in the web facing resource services/repos
func NewResourceQueryFromClient ¶
func NewResourceQueryFromClient(c *gin.Context) ResourceQuery
type ResourceRbacAssessmentReport ¶
type ResourceRbacAssessmentReport struct { ApiVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata ResourceMetadata `json:"metadata"` Report ResourceVulnerabilityReportReport `json:"report"` }
K8s namepace struct
type ResourceRbacAssessmentReportReport ¶
type ResourceRbacAssessmentReportReport struct { Summary AquaReportSummary `json:"summary"` Scanner AquaReportScanner `json:"scanner"` }
type ResourceRbacassessmentreports ¶
type ResourceRbacassessmentreports struct { Owner ResourceOwnerReference `json:"owner"` Rbacassessmentreports []ResourceRbacAssessmentReport `json:"rbacassessmentreports"` }
type for returning RbacAssessmentReport resources to internal functions
func (ResourceRbacassessmentreports) GetByLabels ¶
func (m ResourceRbacassessmentreports) GetByLabels(search map[string]string) []ResourceRbacAssessmentReport
Function to return RbacAssessmentReport resource by label.
func (ResourceRbacassessmentreports) GetByName ¶
func (m ResourceRbacassessmentreports) GetByName(search string) ResourceRbacAssessmentReport
Function to return RbacAssessmentReport resource by name.
func (ResourceRbacassessmentreports) GetByNamespace ¶
func (m ResourceRbacassessmentreports) GetByNamespace(search string) ResourceRbacAssessmentReport
Function to return RbacAssessmentReport resource by namespace.
func (ResourceRbacassessmentreports) GetByUid ¶
func (m ResourceRbacassessmentreports) GetByUid(search string) ResourceRbacAssessmentReport
Function to return RbacAssessmentReport resource by uid.
type ResourceReplicaSet ¶
type ResourceReplicaSet struct { ApiVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata ResourceMetadata `json:"metadata"` Spec ResourceReplicaSetSpec `json:"spec"` Status ResourceReplicaSetStatus `json:"status"` }
K8s namepace struct
type ResourceReplicaSetSpec ¶
type ResourceReplicaSetSpec struct { Replicas int `json:"replicas"` Selector ResourceReplicaSetSpecSelector `json:"selector"` }
type ResourceReplicaSetSpecSelector ¶
type ResourceReplicaSetSpecSelector struct { MatchExpressions []ResourceReplicaSetSpecSelectorMatchExpressions `json:"matchExpressions"` MatchLabels map[string]string `json:"matchLabels"` }
type ResourceReplicasets ¶
type ResourceReplicasets struct { Owner ResourceOwnerReference `json:"owner"` Replicasets []ResourceReplicaSet `json:"replicasets"` }
type for returning ReplicaSet resources to internal functions
func (ResourceReplicasets) GetByLabels ¶
func (m ResourceReplicasets) GetByLabels(search map[string]string) []ResourceReplicaSet
Function to return ReplicaSet resource by label.
func (ResourceReplicasets) GetByName ¶
func (m ResourceReplicasets) GetByName(search string) ResourceReplicaSet
Function to return ReplicaSet resource by name.
func (ResourceReplicasets) GetByNamespace ¶
func (m ResourceReplicasets) GetByNamespace(search string) ResourceReplicaSet
Function to return ReplicaSet resource by namespace.
func (ResourceReplicasets) GetByUid ¶
func (m ResourceReplicasets) GetByUid(search string) ResourceReplicaSet
Function to return ReplicaSet resource by uid.
type ResourceRoute ¶ added in v0.2.3
type ResourceRoute struct { ApiVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata ResourceMetadata `json:"metadata"` Spec ResourceRouteSpec `json:"spec"` }
Resource used by the switchboard microservice to determine notification routing
type ResourceRouteMessageType ¶ added in v0.2.3
type ResourceRouteReceiver ¶ added in v0.2.3
type ResourceRouteReceiver struct {
Slack []ResourceRouteSlackReceiver `json:"slack"`
}
type ResourceRouteSlackReceiver ¶ added in v0.2.3
type ResourceRouteSlackReceiver struct {
ChannelId string `json:"channelId"`
}
type ResourceRouteSpec ¶ added in v0.2.3
type ResourceRouteSpec struct { MessageType ResourceRouteMessageType `json:"messageType"` Receivers ResourceRouteReceiver `json:"receivers"` }
type ResourceRoutes ¶ added in v0.2.3
type ResourceRoutes struct { Owner ResourceOwnerReference `json:"owner"` Routes []ResourceRoute `json:"routes"` }
type for returning Route resources to internal functions
func (ResourceRoutes) GetByLabels ¶ added in v0.2.3
func (m ResourceRoutes) GetByLabels(search map[string]string) []ResourceRoute
Function to return Route resource by label.
func (ResourceRoutes) GetByName ¶ added in v0.2.3
func (m ResourceRoutes) GetByName(search string) ResourceRoute
Function to return Route resource by name.
func (ResourceRoutes) GetByUid ¶ added in v0.2.3
func (m ResourceRoutes) GetByUid(search string) ResourceRoute
Function to return Route resource by uid.
type ResourceService ¶
type ResourceService struct { ApiVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata ResourceMetadata `json:"metadata"` Spec ResourceServiceSpec `json:"spec"` }
ResourceService K8s PolicyReport struct generated by kyverno
type ResourceServicePorts ¶
type ResourceServiceSpec ¶
type ResourceServiceSpec struct { Type string `json:"type"` Selector map[string]string `json:"selector"` Ports []ResourceServicePorts `json:"ports"` ClusterIP string `json:"clusterIP"` ClusterIPs []string `json:"clusterIPs"` ExternalIPs []string `json:"externalIPs,omitempty"` ExternalName string `json:"externalName,omitempty"` IpFamilies []string `json:"ipFamilies"` IpFamilyPolicy string `json:"ipFamilyPolicy"` InternalTrafficPolicy string `json:"internalTrafficPolicy"` ExternalTrafficPolicy string `json:"externalTrafficPolicy"` }
type ResourceServices ¶
type ResourceServices struct { Owner ResourceOwnerReference `json:"owner"` Services []ResourceService `json:"services"` }
type for returning Service resources to internal functions
func (ResourceServices) GetByLabels ¶
func (m ResourceServices) GetByLabels(search map[string]string) []ResourceService
Function to return Service resource by label.
func (ResourceServices) GetByName ¶
func (m ResourceServices) GetByName(search string) ResourceService
Function to return Service resource by name.
func (ResourceServices) GetByNamespace ¶
func (m ResourceServices) GetByNamespace(search string) ResourceService
Function to return Service resource by namespace.
func (ResourceServices) GetByUid ¶
func (m ResourceServices) GetByUid(search string) ResourceService
Function to return Service resource by uid.
type ResourceSlackMessage ¶ added in v0.2.3
type ResourceSlackMessage struct { ApiVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata ResourceMetadata `json:"metadata"` Spec ResourceSlackMessageSpec `json:"spec"` Status []ResourceSlackMessageStatus `json:"status"` }
type ResourceSlackMessageResult ¶ added in v0.2.3
type ResourceSlackMessageResult int
const ( SLACK_MESSAGE_OK ResourceSlackMessageResult = iota SLACK_MESSAGE_ERROR SLACK_MESSAGE_UNKNOWN )
type ResourceSlackMessageSpec ¶ added in v0.2.3
type ResourceSlackMessageStatus ¶ added in v0.2.3
type ResourceSlackMessageStatus struct { Result ResourceSlackMessageResult `json:"result"` Timestamp time.Time `json:"timestamp"` Error any `json:"error"` }
type ResourceSlackmessages ¶ added in v0.2.3
type ResourceSlackmessages struct { Owner ResourceOwnerReference `json:"owner"` Slackmessages []ResourceSlackMessage `json:"slackmessages"` }
type for returning SlackMessage resources to internal functions
func (ResourceSlackmessages) GetByLabels ¶ added in v0.2.3
func (m ResourceSlackmessages) GetByLabels(search map[string]string) []ResourceSlackMessage
Function to return SlackMessage resource by label.
func (ResourceSlackmessages) GetByName ¶ added in v0.2.3
func (m ResourceSlackmessages) GetByName(search string) ResourceSlackMessage
Function to return SlackMessage resource by name.
func (ResourceSlackmessages) GetByUid ¶ added in v0.2.3
func (m ResourceSlackmessages) GetByUid(search string) ResourceSlackMessage
Function to return SlackMessage resource by uid.
type ResourceStatefulSet ¶
type ResourceStatefulSet struct { ApiVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata ResourceMetadata `json:"metadata"` Status ResourceStatefulSetStatus `json:"status"` }
K8s deployment struct
type ResourceStatefulsets ¶
type ResourceStatefulsets struct { Owner ResourceOwnerReference `json:"owner"` Statefulsets []ResourceStatefulSet `json:"statefulsets"` }
type for returning StatefulSet resources to internal functions
func (ResourceStatefulsets) GetByLabels ¶
func (m ResourceStatefulsets) GetByLabels(search map[string]string) []ResourceStatefulSet
Function to return StatefulSet resource by label.
func (ResourceStatefulsets) GetByName ¶
func (m ResourceStatefulsets) GetByName(search string) ResourceStatefulSet
Function to return StatefulSet resource by name.
func (ResourceStatefulsets) GetByNamespace ¶
func (m ResourceStatefulsets) GetByNamespace(search string) ResourceStatefulSet
Function to return StatefulSet resource by namespace.
func (ResourceStatefulsets) GetByUid ¶
func (m ResourceStatefulsets) GetByUid(search string) ResourceStatefulSet
Function to return StatefulSet resource by uid.
type ResourceStorageClass ¶
type ResourceStorageClass struct { ApiVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata ResourceMetadata `json:"metadata"` AllowVolumeExpansion bool `json:"allowVolumeExpansion"` Provisioner string `json:"provisioner"` ReclaimPolicy string `json:"reclaimPolicy"` VolumeBindingMode string `json:"volumeBindingMode"` }
K8s StorageClass struct
type ResourceStorageclasses ¶
type ResourceStorageclasses struct { Owner ResourceOwnerReference `json:"owner"` Storageclasses []ResourceStorageClass `json:"storageclasses"` }
type for returning StorageClass resources to internal functions
func (ResourceStorageclasses) GetByLabels ¶
func (m ResourceStorageclasses) GetByLabels(search map[string]string) []ResourceStorageClass
Function to return StorageClass resource by label.
func (ResourceStorageclasses) GetByName ¶
func (m ResourceStorageclasses) GetByName(search string) ResourceStorageClass
Function to return StorageClass resource by name.
func (ResourceStorageclasses) GetByUid ¶
func (m ResourceStorageclasses) GetByUid(search string) ResourceStorageClass
Function to return StorageClass resource by uid.
type ResourceTanuzKuberntesClusterSpec ¶
type ResourceTanuzKuberntesClusterSpec struct { Distribution ResourceTanzuKubernetesClusterSpecDistribution `json:"distribution"` Settings ResourceTanzuKubernetesClusterSpecSettings `json:"settings"` Topology ResourceTanzuKubernetesClusterSpecTopology `json:"topology"` }
type ResourceTanuzKuberntesMetadata ¶
type ResourceTanuzKuberntesMetadata struct { Annotations map[string]string `json:"annotations"` ClusterName string `json:"clusterName"` CreationTimestamp string `json:"creationTimestamp"` DeletionGracePeriodSeconds int `json:"deletionGracePeriodSeconds"` DeletionTimestamp string `json:"deletionTimestamp"` Finalizers []string `json:"finalizers"` GenerateName string `json:"generateName"` Generation int `json:"generation"` Labels map[string]string `json:"labels"` ManagedFields []ResourceTanuzKuberntesMetadataManagedFields `json:"managedFields"` Name string `json:"name"` Namespace string `json:"namespace"` OwnerReferences []ResourceTanuzKuberntesMetadataOwnerReferences `json:"ownerReferences"` //ResourceVersion string `json:"resourceVersion"` SelfLink string `json:"selfLink"` Uid string `json:"uid"` }
type ResourceTanzuKubernetesCluster ¶
type ResourceTanzuKubernetesCluster struct { ApiVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata ResourceTanuzKuberntesMetadata `json:"metadata"` Spec ResourceTanuzKuberntesClusterSpec `json:"spec"` Status ResourceTanzuKubernetesClusterStatus `json:"status,omitempty"` }
ResourceTanzuKubernetesCluster K8s node struct
type ResourceTanzuKubernetesClusterSpecSettings ¶
type ResourceTanzuKubernetesClusterSpecSettings struct { Network ResourceTanzuKubernetesClusterSpecSettingsNetwork `json:"network"` Storage ResourceTanzuKubernetesClusterSpecSettingsStorage `json:"storage"` }
type ResourceTanzuKubernetesClusterSpecSettingsNetwork ¶
type ResourceTanzuKubernetesClusterSpecSettingsNetwork struct { Cni ResourceTanzuKubernetesClusterSpecSettingsNetworkCni `json:"cni"` Pods ResourceTanzuKubernetesClusterSpecSettingsNetworkPods `json:"pods"` Proxy ResourceTanzuKubernetesClusterSpecSettingsNetworkProxy `json:"proxy"` ServiceDomain string `json:"serviceDomain"` Services ResourceTanzuKubernetesClusterSpecSettingsNetworkServices `json:"services"` Trust ResourceTanzuKubernetesClusterSpecSettingsNetworkTrust `json:"trust"` }
type ResourceTanzuKubernetesClusterSpecSettingsNetworkCni ¶
type ResourceTanzuKubernetesClusterSpecSettingsNetworkCni struct {
Name string `json:"name"`
}
type ResourceTanzuKubernetesClusterSpecSettingsNetworkPods ¶
type ResourceTanzuKubernetesClusterSpecSettingsNetworkPods struct {
CidrBlocks []string `json:"cidrBlocks"`
}
type ResourceTanzuKubernetesClusterSpecSettingsNetworkServices ¶
type ResourceTanzuKubernetesClusterSpecSettingsNetworkServices struct {
CidrBlocks []string `json:"cidrBlocks"`
}
type ResourceTanzuKubernetesClusterSpecSettingsNetworkTrust ¶
type ResourceTanzuKubernetesClusterSpecSettingsNetworkTrust struct {
AdditionalTrusCAs []ResourceTanzuKubernetesClusterSpecSettingsNetworkTrustAdditionalTrustedCA `json:"additionalTrustedCAs"`
}
type ResourceTanzuKubernetesClusterSpecTopology ¶
type ResourceTanzuKubernetesClusterSpecTopology struct { ControlPlane ResourceTanzuKubernetesClusterSpecTopologyControlPlane `json:"controlPlane"` NodePools []ResourceTanzuKubernetesClusterSpecTopologyNodePools `json:"nodePools"` }
type ResourceTanzuKubernetesClusterSpecTopologyControlPlane ¶
type ResourceTanzuKubernetesClusterSpecTopologyControlPlane struct { NodeDrainTimeout string `json:"nodeDrainTimeout"` Replicas int `json:"replicas"` StorageClass string `json:"storageClass"` Tkr ResourceTanzuKubernetesClusterSpecTopologyControlPlaneTkr `json:"tkr"` VmClass string `json:"vmClass"` }
type ResourceTanzuKubernetesClusterSpecTopologyControlPlaneTkr ¶
type ResourceTanzuKubernetesClusterSpecTopologyControlPlaneTkr struct {
Reference ResourceTanzuKubernetesClusterSpecTopologyControlPlaneTkrReference `json:"reference"`
}
type ResourceTanzuKubernetesClusterSpecTopologyNodePools ¶
type ResourceTanzuKubernetesClusterSpecTopologyNodePools struct { FailureDomain string `json:"failureDomain"` Labels map[string]string `json:"labels"` Name string `json:"name"` NodeDrainTimeout string `json:"nodeDrainTimeout"` Replicas int `json:"replicas"` StorageClass string `json:"storageClass"` Taints []ResourceTanzuKubernetesClusterSpecTopologyNodePoolsTaints `json:"taints"` Tkr ResourceTanzuKubernetesClusterSpecTopologyNodePoolsTkr `json:"tkr"` VmClass string `json:"vmClass"` Volumes []ResourceTanzuKubernetesClusterSpecTopologyNodePoolsVolumes `json:"volumes"` }
type ResourceTanzuKubernetesClusterSpecTopologyNodePoolsTkr ¶
type ResourceTanzuKubernetesClusterSpecTopologyNodePoolsTkr struct {
Reference ResourceTanzuKubernetesClusterSpecTopologyNodePoolsTkrReference `json:"reference"`
}
type ResourceTanzuKubernetesClusterStatus ¶
type ResourceTanzuKubernetesClusterStatus struct { //Addons []ResourceTanzuKubernetesClusterStatusAddons `json:"addons"` APIEndpoints []ResourceTanzuKubernetesClusterStatusAPIEndpoints `json:"apiEndpoints"` Conditions []ResourceTanzuKubernetesClusterStatusConditions `json:"conditions"` Phase string `json:"phase"` TotalWorkerReplicas int `json:"totalWorkerReplicas"` Version string `json:"version"` }
type ResourceTanzuKubernetesClusterStatusAddons ¶
type ResourceTanzuKubernetesClusterStatusAddons struct { Conditions []ResourceTanzuKubernetesClusterStatusAddonsConditions `json:"conditions"` Name string `json:"name"` Type string `json:"type"` Version string `json:"version"` }
type ResourceTanzuKubernetesRelease ¶
type ResourceTanzuKubernetesRelease struct { ApiVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata ResourceTanzuKubernetesReleaseMetadata `json:"metadata"` Spec ResourceTanzuKubernetesReleaseSpec `json:"spec"` Status ResourceTanzuKubernetesReleaseStatus `json:"status"` }
ResourceTanzuKubernetesCluster K8s node struct Tanzu kubernetes release struct
type ResourceTanzuKubernetesReleaseMetadata ¶
type ResourceTanzuKubernetesReleaseMetadata struct { Annotations map[string]string `json:"annotations"` ClusterName string `json:"clusterName"` CreationTimestamp string `json:"creationTimestamp"` DeletionGracePeriodSeconds int `json:"deletionGracePeriodSeconds"` DeletionTimestamp string `json:"deletionTimestamp"` Finalizers []string `json:"finalizers"` GenerateName string `json:"generateName"` Generation int `json:"generation"` Labels map[string]string `json:"labels"` ManagedFields []ResourceTanzuKubernetesReleaseMetadataManagedField `json:"managedFields"` Name string `json:"name"` Namespace string `json:"namespace"` OwnerReferences []ResourceTanzuKubernetesReleaseMetadataOwnerReference `json:"ownerReferences"` //ResourceVersion string `json:"resourceVersion"` SelfLink string `json:"selfLink"` Uid string `json:"uid"` }
type ResourceTanzuKubernetesReleaseMetadataManagedField ¶
type ResourceTanzuKubernetesReleaseMetadataManagedField struct { ApiVersion string `json:"apiVersion"` FieldsType string `json:"fieldsType"` //FieldsV1 map[string]string `json:"fieldsV1"` Manager string `json:"manager"` Operation string `json:"operation"` Subresource string `json:"subresource"` Time string `json:"time"` }
type ResourceTanzuKubernetesReleaseSpec ¶
type ResourceTanzuKubernetesReleaseSpec struct { Images []ResourceTanzuKubernetesReleaseSpecImage `json:"images"` KubernetesVersion string `json:"kubernetesVersion"` NodeImageRef ResourceTanzuKubernetesReleaseSpecNodeImageRef `json:"nodeImageRef"` Repository string `json:"repository"` Version string `json:"version"` }
type ResourceTanzuKubernetesReleaseStatus ¶
type ResourceTanzuKubernetesReleaseStatus struct {
Conditions []ResourceTanzuKubernetesReleaseStatusCondition `json:"conditions"`
}
type ResourceTanzukubernetesclusters ¶
type ResourceTanzukubernetesclusters struct { Owner ResourceOwnerReference `json:"owner"` Tanzukubernetesclusters []ResourceTanzuKubernetesCluster `json:"tanzukubernetesclusters"` }
type for returning TanzuKubernetesCluster resources to internal functions
func (ResourceTanzukubernetesclusters) GetByLabels ¶
func (m ResourceTanzukubernetesclusters) GetByLabels(search map[string]string) []ResourceTanzuKubernetesCluster
Function to return TanzuKubernetesCluster resource by label.
func (ResourceTanzukubernetesclusters) GetByName ¶
func (m ResourceTanzukubernetesclusters) GetByName(search string) ResourceTanzuKubernetesCluster
Function to return TanzuKubernetesCluster resource by name.
func (ResourceTanzukubernetesclusters) GetByNamespace ¶
func (m ResourceTanzukubernetesclusters) GetByNamespace(search string) ResourceTanzuKubernetesCluster
Function to return TanzuKubernetesCluster resource by namespace.
func (ResourceTanzukubernetesclusters) GetByUid ¶
func (m ResourceTanzukubernetesclusters) GetByUid(search string) ResourceTanzuKubernetesCluster
Function to return TanzuKubernetesCluster resource by uid.
type ResourceTanzukubernetesreleases ¶
type ResourceTanzukubernetesreleases struct { Owner ResourceOwnerReference `json:"owner"` Tanzukubernetesreleases []ResourceTanzuKubernetesRelease `json:"tanzukubernetesreleases"` }
type for returning TanzuKubernetesRelease resources to internal functions
func (ResourceTanzukubernetesreleases) GetByLabels ¶
func (m ResourceTanzukubernetesreleases) GetByLabels(search map[string]string) []ResourceTanzuKubernetesRelease
Function to return TanzuKubernetesRelease resource by label.
func (ResourceTanzukubernetesreleases) GetByName ¶
func (m ResourceTanzukubernetesreleases) GetByName(search string) ResourceTanzuKubernetesRelease
Function to return TanzuKubernetesRelease resource by name.
func (ResourceTanzukubernetesreleases) GetByUid ¶
func (m ResourceTanzukubernetesreleases) GetByUid(search string) ResourceTanzuKubernetesRelease
Function to return TanzuKubernetesRelease resource by uid.
type ResourceUpdateModel ¶
type ResourceUpdateModel struct { Owner ResourceOwnerReference `json:"owner"` ApiVersion string `json:"apiVersion"` Kind string `json:"kind"` Uid string `json:"uid"` Action ResourceAction `json:"action,omitempty"` Hash string `json:"hash"` Version ResourceVersion `json:"version"` Resource any `json:"resource"` }
Resource update model to exchange resources. The value MUST be casted to its explicit value before its saved to mongodb.
type ResourceVersion ¶ added in v0.3.10
type ResourceVersion string
const ( ResourceVersionV1 ResourceVersion = "v1" ResourceVersionV2 ResourceVersion = "v2" )
type ResourceVirtualMachineClass ¶
type ResourceVirtualMachineClass struct { ApiVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata ResourceVirtualMachineClassMetadata `json:"metadata"` Spec ResourceVirtualMachineClassSpec `json:"spec"` Status map[string]string `json:"status"` }
ResourceTanzuKubernetesCluster K8s node struct Tanzu kubernetes release struct
type ResourceVirtualMachineClassBinding ¶
type ResourceVirtualMachineClassBinding struct { ApiVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata ResourceVirtualMachineClassBindingMetadata `json:"metadata"` ClassRef ResourceVirtualMachineClassBindingClassRef `json:"classRef"` }
ResourceTanzuKubernetesCluster K8s node struct Tanzu kubernetes release struct
type ResourceVirtualMachineClassBindingMetadata ¶
type ResourceVirtualMachineClassBindingMetadata struct { Annotations map[string]string `json:"annotations"` ClusterName string `json:"clusterName"` CreationTimestamp string `json:"creationTimestamp"` DeletionGracePeriodSeconds int `json:"deletionGracePeriodSeconds"` DeletionTimestamp string `json:"deletionTimestamp"` Finalizers []string `json:"finalizers"` GenerateName string `json:"generateName"` Generation int `json:"generation"` Labels map[string]string `json:"labels"` ManagedFields []ResourceVirtualMachineClassBindingMetadataManagedField `json:"managedFields"` Name string `json:"name"` Namespace string `json:"namespace"` OwnerReferences []ResourceVirtualMachineClassBindingMetadataOwnerReference `json:"ownerReferences"` //ResourceVersion string `json:"resourceVersion"` SelfLink string `json:"selfLink"` Uid string `json:"uid"` }
type ResourceVirtualMachineClassBindingMetadataManagedField ¶
type ResourceVirtualMachineClassBindingMetadataManagedField struct { ApiVersion string `json:"apiVersion"` FieldsType string `json:"fieldsType"` //FieldsV1 map[string]interface{} `json:"fieldsV1"` Manager string `json:"manager"` Operation string `json:"operation"` Subresource string `json:"subresource"` Time string `json:"time"` }
type ResourceVirtualMachineClassMetadata ¶
type ResourceVirtualMachineClassMetadata struct { Annotations map[string]string `json:"annotations"` ClusterName string `json:"clusterName"` //CreationTimestamp string `json:"creationTimestamp"` //DeletionGracePeriodSeconds int `json:"deletionGracePeriodSeconds"` //DeletionTimestamp string `json:"deletionTimestamp"` Finalizers []string `json:"finalizers"` GenerateName string `json:"generateName"` Generation int `json:"generation"` Labels map[string]string `json:"labels"` ManagedFields []ResourceVirtualMachineClassMetadataManagedField `json:"managedFields"` Name string `json:"name"` Namespace string `json:"namespace"` OwnerReferences []ResourceVirtualMachineClassMetadataOwnerReference `json:"ownerReferences"` //ResourceVersion string `json:"resourceVersion"` SelfLink string `json:"selfLink"` Uid string `json:"uid"` }
type ResourceVirtualMachineClassMetadataManagedField ¶
type ResourceVirtualMachineClassMetadataManagedField struct { ApiVersion string `json:"apiVersion"` FieldsType string `json:"fieldsType"` //FieldsV1 map[string]interface{} `json:"fieldsV1"` Manager string `json:"manager"` Operation string `json:"operation"` Subresource string `json:"subresource"` Time string `json:"time"` }
type ResourceVirtualMachineClassSpec ¶
type ResourceVirtualMachineClassSpec struct { Description string `json:"description"` Hardware ResourceVirtualMachineClassSpecHardware `json:"hardware"` }
type ResourceVirtualMachineClassSpecHardware ¶
type ResourceVirtualMachineClassSpecHardware struct { Cpus int `json:"cpus"` //Devices ResourceVirtualMachineClassSpecHardwareDevice `json:"devices"` InstanceStorage ResourceVirtualMachineClassSpecHardwareInstanceStorage `json:"instanceStorage"` }
type ResourceVirtualMachineClassSpecHardwareInstanceStorage ¶
type ResourceVirtualMachineClassSpecHardwareInstanceStorage struct {
StorageClass string `json:"storageClass"`
}
type ResourceVirtualmachineclassbindings ¶
type ResourceVirtualmachineclassbindings struct { Owner ResourceOwnerReference `json:"owner"` Virtualmachineclassbindings []ResourceVirtualMachineClassBinding `json:"virtualmachineclassbindings"` }
type for returning VirtualMachineClassBinding resources to internal functions
func (ResourceVirtualmachineclassbindings) GetByLabels ¶
func (m ResourceVirtualmachineclassbindings) GetByLabels(search map[string]string) []ResourceVirtualMachineClassBinding
Function to return VirtualMachineClassBinding resource by label.
func (ResourceVirtualmachineclassbindings) GetByName ¶
func (m ResourceVirtualmachineclassbindings) GetByName(search string) ResourceVirtualMachineClassBinding
Function to return VirtualMachineClassBinding resource by name.
func (ResourceVirtualmachineclassbindings) GetByNamespace ¶
func (m ResourceVirtualmachineclassbindings) GetByNamespace(search string) ResourceVirtualMachineClassBinding
Function to return VirtualMachineClassBinding resource by namespace.
func (ResourceVirtualmachineclassbindings) GetByUid ¶
func (m ResourceVirtualmachineclassbindings) GetByUid(search string) ResourceVirtualMachineClassBinding
Function to return VirtualMachineClassBinding resource by uid.
type ResourceVirtualmachineclasses ¶
type ResourceVirtualmachineclasses struct { Owner ResourceOwnerReference `json:"owner"` Virtualmachineclasses []ResourceVirtualMachineClass `json:"virtualmachineclasses"` }
type for returning VirtualMachineClass resources to internal functions
func (ResourceVirtualmachineclasses) GetByLabels ¶
func (m ResourceVirtualmachineclasses) GetByLabels(search map[string]string) []ResourceVirtualMachineClass
Function to return VirtualMachineClass resource by label.
func (ResourceVirtualmachineclasses) GetByName ¶
func (m ResourceVirtualmachineclasses) GetByName(search string) ResourceVirtualMachineClass
Function to return VirtualMachineClass resource by name.
func (ResourceVirtualmachineclasses) GetByUid ¶
func (m ResourceVirtualmachineclasses) GetByUid(search string) ResourceVirtualMachineClass
Function to return VirtualMachineClass resource by uid.
type ResourceVulnerabilityEvent ¶ added in v0.3.10
type ResourceVulnerabilityEvent struct { ApiVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata ResourceMetadata `json:"metadata"` Spec ResourceVulnerabilityEventSpec `json:"spec"` }
type ResourceVulnerabilityEventSpec ¶ added in v0.3.10
type ResourceVulnerabilityEventSpec struct { Owner rortypes.RorResourceOwnerReference `json:"owner"` Message string `json:"message"` }
type ResourceVulnerabilityReport ¶
type ResourceVulnerabilityReport struct { ApiVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata ResourceMetadata `json:"metadata"` Report ResourceVulnerabilityReportReport `json:"report"` }
K8s namepace struct
type ResourceVulnerabilityReportReport ¶
type ResourceVulnerabilityReportReport struct { Summary AquaReportSummary `json:"summary"` Scanner AquaReportScanner `json:"scanner"` Artifact ResourceVulnerabilityReportReportArtifact `json:"artifact"` UpdateTimestamp string `json:"updateTimestamp"` Vulnerabilities []ResourceVulnerabilityReportReportVulnerability `json:"vulnerabilities"` }
type ResourceVulnerabilityReportReportVulnerability ¶
type ResourceVulnerabilityReportReportVulnerability struct { VulnerabilityID string `json:"vulnerabilityID"` Severity string `json:"severity"` Score float32 `json:"score"` Title string `json:"title"` Resource string `json:"resource"` Link string `json:"primaryLink"` InstalledVersion string `json:"installedVersion"` FixedVersion string `json:"fixedVersion"` }
type ResourceVulnerabilityevents ¶ added in v0.3.10
type ResourceVulnerabilityevents struct { Owner ResourceOwnerReference `json:"owner"` Vulnerabilityevents []ResourceVulnerabilityEvent `json:"vulnerabilityevents"` }
type for returning VulnerabilityEvent resources to internal functions
func (ResourceVulnerabilityevents) GetByLabels ¶ added in v0.3.10
func (m ResourceVulnerabilityevents) GetByLabels(search map[string]string) []ResourceVulnerabilityEvent
Function to return VulnerabilityEvent resource by label.
func (ResourceVulnerabilityevents) GetByName ¶ added in v0.3.10
func (m ResourceVulnerabilityevents) GetByName(search string) ResourceVulnerabilityEvent
Function to return VulnerabilityEvent resource by name.
func (ResourceVulnerabilityevents) GetByUid ¶ added in v0.3.10
func (m ResourceVulnerabilityevents) GetByUid(search string) ResourceVulnerabilityEvent
Function to return VulnerabilityEvent resource by uid.
type ResourceVulnerabilityreports ¶
type ResourceVulnerabilityreports struct { Owner ResourceOwnerReference `json:"owner"` Vulnerabilityreports []ResourceVulnerabilityReport `json:"vulnerabilityreports"` }
type for returning VulnerabilityReport resources to internal functions
func (ResourceVulnerabilityreports) GetByLabels ¶
func (m ResourceVulnerabilityreports) GetByLabels(search map[string]string) []ResourceVulnerabilityReport
Function to return VulnerabilityReport resource by label.
func (ResourceVulnerabilityreports) GetByName ¶
func (m ResourceVulnerabilityreports) GetByName(search string) ResourceVulnerabilityReport
Function to return VulnerabilityReport resource by name.
func (ResourceVulnerabilityreports) GetByNamespace ¶
func (m ResourceVulnerabilityreports) GetByNamespace(search string) ResourceVulnerabilityReport
Function to return VulnerabilityReport resource by namespace.
func (ResourceVulnerabilityreports) GetByUid ¶
func (m ResourceVulnerabilityreports) GetByUid(search string) ResourceVulnerabilityReport
Function to return VulnerabilityReport resource by uid.
type Resourcetypes ¶
type Resourcetypes interface { ResourceNamespace | ResourceNode | ResourcePersistentVolumeClaim | ResourceDeployment | ResourceStorageClass | ResourcePolicyReport | ResourceApplication | ResourceAppProject | ResourceCertificate | ResourceService | ResourcePod | ResourceReplicaSet | ResourceStatefulSet | ResourceDaemonSet | ResourceIngress | ResourceIngressClass | ResourceVulnerabilityReport | ResourceExposedSecretReport | ResourceConfigAuditReport | ResourceRbacAssessmentReport | ResourceTanzuKubernetesCluster | ResourceTanzuKubernetesRelease | ResourceVirtualMachineClass | ResourceVirtualMachineClassBinding | ResourceKubernetesCluster | ResourceClusterOrder | ResourceProject | ResourceConfiguration | ResourceClusterComplianceReport | ResourceClusterVulnerabilityReport | ResourceRoute | ResourceSlackMessage | ResourceVulnerabilityEvent }
Resourcetypes allowed in the generic resource models.
type SensitivityLevel ¶
type SensitivityLevel int
const ( SensitivityLevelUnknown SensitivityLevel = iota SensitivityLevelNormal SensitivityLevel = 1 SensitivityLevelModerate SensitivityLevel = 2 SensitivityLevelHigh SensitivityLevel = 3 SensitivityLevelCritical SensitivityLevel = 4 )
Source Files ¶
- resource_models.go
- resource_models_generated.go
- resource_models_methods_generated.go
- resourcedef_application.go
- resourcedef_appproject.go
- resourcedef_certificate.go
- resourcedef_clustercompliancereport.go
- resourcedef_clustervulnerabilityreport.go
- resourcedef_configauditreport.go
- resourcedef_daemonset.go
- resourcedef_deployment.go
- resourcedef_exposedsecretreport.go
- resourcedef_ingress.go
- resourcedef_ingressclass.go
- resourcedef_internalclusterorder.go
- resourcedef_internalconfiguration.go
- resourcedef_internalkubernetescluster.go
- resourcedef_internalproject.go
- resourcedef_namespace.go
- resourcedef_node.go
- resourcedef_persistantvolumeclaim.go
- resourcedef_pod.go
- resourcedef_policyreport.go
- resourcedef_rbacassessmentreport.go
- resourcedef_replicaset.go
- resourcedef_route.go
- resourcedef_service.go
- resourcedef_slackmessage.go
- resourcedef_statefulset.go
- resourcedef_storageclass.go
- resourcedef_tanzukubernetescluster.go
- resourcedef_tanzukubernetesreleases.go
- resourcedef_tanzuvirtualmachineclass.go
- resourcedef_tanzuvirtualmachineclassbindings.go
- resourcedef_vulnerabilityevent.go
- resourcedef_vulnerabilityreport.go