apiresourcecontracts

package
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

package delivers apicontracts for resources

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AquaReportScanner

type AquaReportScanner struct {
	Name    string `json:"name"`
	Vendor  string `json:"vendor"`
	Version string `json:"version"`
}

type AquaReportSummary

type AquaReportSummary struct {
	CriticalCount int `json:"criticalCount"`
	HighCount     int `json:"highCount"`
	LowCount      int `json:"lowCount"`
	MediumCount   int `json:"mediumCount"`
	Total         int `json:"total,omitempty"`
}

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 HashItem

type HashItem struct {
	Uid  string `json:"uid"`
	Hash string `json:"hash"`
}

Item for use in the hashlist NB This struct has a counterpart in the agent.

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 ResourceApplicationSpecDestination

type ResourceApplicationSpecDestination struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
	Server    string `json:"server"`
}

type ResourceApplicationSpecSource

type ResourceApplicationSpecSource struct {
	Chart          string `json:"chart,omitempty"`
	Path           string `json:"path,omitempty"`
	RepoURL        string `json:"repoURL"`
	TargetRevision string `json:"targetRevision"`
}

type ResourceApplicationSpecSyncpolicy

type ResourceApplicationSpecSyncpolicy struct {
	Automated   *ResourceApplicationSpecSyncpolicyAutomated `json:"automated"`
	Retry       *ResourceApplicationSpecSyncpolicyRetry     `json:"retry"`
	SyncOptions []string                                    `json:"syncOptions"`
}

type ResourceApplicationSpecSyncpolicyAutomated

type ResourceApplicationSpecSyncpolicyAutomated struct {
	AllowEmpty bool `json:"allowEmpty"`
	Prune      bool `json:"prune"`
	SelfHeal   bool `json:"selfHeal"`
}

type ResourceApplicationSpecSyncpolicyRetry

type ResourceApplicationSpecSyncpolicyRetry struct {
	Backoff *ResourceApplicationSpecSyncpolicyRetryBackoff `json:"backoff"`
	Limit   int                                            `json:"limit"`
}

type ResourceApplicationSpecSyncpolicyRetryBackoff

type ResourceApplicationSpecSyncpolicyRetryBackoff struct {
	Duration    string `json:"duration"`
	Factor      int    `json:"factor"`
	MaxDuration string `json:"maxDuration"`
}

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 ResourceApplicationStatusHealth

type ResourceApplicationStatusHealth struct {
	Message string `json:"message"`
	Status  string `json:"status"`
}

type ResourceApplicationStatusOperationstate

type ResourceApplicationStatusOperationstate struct {
	StartedAt  string `json:"startedAt"`
	FinishedAt string `json:"finishedAt"`
	Phase      string `json:"phase"`
	Status     string `json:"status"`
	Message    string `json:"message"`
}

type ResourceApplicationStatusSync

type ResourceApplicationStatusSync struct {
	Revision string `json:"revision"`
	Status   string `json:"status"`
}

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 ResourceCertificateSpecIssuerref

type ResourceCertificateSpecIssuerref struct {
	Group string `json:"group"`
	Kind  string `json:"kind"`
	Name  string `json:"name"`
}

type ResourceCertificateStatus

type ResourceCertificateStatus struct {
	NotBefore   string                               `json:"notBefore"`
	NotAfter    string                               `json:"notAfter"`
	RenewalTime string                               `json:"renewalTime"`
	Conditions  []ResourceCertificateStatusCondition `json:"conditions"`
}

type ResourceCertificateStatusCondition

type ResourceCertificateStatusCondition struct {
	LastTransitionTime string `json:"lastTransitionTime"`
	ObservedGeneration int    `json:"observedGeneration"`
	Message            string `json:"message"`
	Reason             string `json:"reason"`
	Status             string `json:"status"`
	Type               string `json:"type"`
}

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 ResourceClusterComplianceReportSummary

type ResourceClusterComplianceReportSummary struct {
	FailCount int `json:"failCount"`
	PassCount int `json:"passCount"`
}

type ResourceClusterComplianceReportSummaryReport

type ResourceClusterComplianceReportSummaryReport struct {
	ControlCheck []any  `json:"controlCheck"`
	Id           string `json:"id"`
	Title        string `json:"title"`
}

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 ResourceClusterOrderCondition

type ResourceClusterOrderCondition struct {
	Type               string `json:"type"`
	Status             string `json:"status"`
	LastTransitionTime string `json:"lastTransitionTime"`
	Reason             string `json:"reason"`
	Message            string `json:"message"`
}

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 ResourceClusterOrderSpecNodePool

type ResourceClusterOrderSpecNodePool struct {
	Name         string `json:"name" validate:"required,min=1,ne=' '"`
	MachineClass string `json:"machineClass" validate:"required,min=1,ne=' '"`
	Count        int    `json:"count" validate:"required,min=1"`
}

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 ResourceClustercompliancereports

type ResourceClustercompliancereports struct {
	Owner                    ResourceOwnerReference            `json:"owner"`
	Clustercompliancereports []ResourceClusterComplianceReport `json:"clustercompliancereports"`
}

type for returning ClusterComplianceReport resources to internal functions

func (ResourceClustercompliancereports) GetByLabels

Function to return ClusterComplianceReport resource by label.

func (ResourceClustercompliancereports) GetByName

Function to return ClusterComplianceReport resource by name.

func (ResourceClustercompliancereports) GetByUid

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

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

Function to return ClusterOrder 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

Function to return ConfigAuditReport resource by label.

func (ResourceConfigauditreports) GetByName

Function to return ConfigAuditReport resource by name.

func (ResourceConfigauditreports) GetByNamespace

Function to return ConfigAuditReport resource by namespace.

func (ResourceConfigauditreports) GetByUid

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 ResourceConfigurationSpec

type ResourceConfigurationSpec struct {
	Type   string `json:"type"`
	B64enc bool   `json:"b64enc"`
	Data   string `json:"data"`
}

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

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

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"`
	NumberUnavailable      int `json:"numberUnavailable"`
	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 ResourceDeploymentStatus

type ResourceDeploymentStatus struct {
	Replicas          int `json:"replicas"`
	AvailableReplicas int `json:"availableReplicas"`
	ReadyReplicas     int `json:"readyReplicas"`
	UpdatedReplicas   int `json:"updatedReplicas"`
}

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

Function to return ExposedSecretReport resource by label.

func (ResourceExposedsecretreports) GetByName

Function to return ExposedSecretReport resource by name.

func (ResourceExposedsecretreports) GetByNamespace

Function to return ExposedSecretReport resource by namespace.

func (ResourceExposedsecretreports) GetByUid

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 ResourceIngressClassSpecParameters

type ResourceIngressClassSpecParameters struct {
	ApiGroup  string `json:"apiGroup"`
	Kind      string `json:"kind"`
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
	Scope     string `json:"scope"`
}

type ResourceIngressSpec

type ResourceIngressSpec struct {
	DefaultBackend   ResourceIngressSpecRulesHttpPathsBackend `json:"defaultBackend,omitempty"`
	IngressClassName string                                   `json:"ingressClassName"`
	Rules            []ResourceIngressSpecRules               `json:"rules"`
	Tls              []ResourceIngressSpecTls                 `json:"tls"`
}

type ResourceIngressSpecBackendResource

type ResourceIngressSpecBackendResource struct {
	ApiGroup string `json:"apiGroup,omitempty"`
	Kind     string `json:"kind,omitempty"`
	Name     string `json:"name,omitempty"`
}

type ResourceIngressSpecBackendService

type ResourceIngressSpecBackendService struct {
	Name string                                `json:"name,omitempty"`
	Port ResourceIngressSpecBackendServicePort `json:"port,omitempty"`
}

type ResourceIngressSpecBackendServicePort

type ResourceIngressSpecBackendServicePort struct {
	Name   string `json:"name,omitempty"`
	Number int    `json:"number,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 ResourceIngressSpecTls struct {
	Hosts      []string `json:"hosts"`
	SecretName string   `json:"secretName"`
}

type ResourceIngressStatus

type ResourceIngressStatus struct {
	LoadBalancer ResourceIngressStatusLoadBalancer `json:"loadBalancer"`
}

type ResourceIngressStatusLoadBalancer

type ResourceIngressStatusLoadBalancer struct {
	Ingress []ResourceIngressStatusLoadBalancerIngress `json:"ingress"`
}

type ResourceIngressStatusLoadBalancerIngress

type ResourceIngressStatusLoadBalancerIngress struct {
	Hostname string `json:"hostname"`
	Ip       string `json:"ip"`
}

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

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

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 ResourceKubernetesClusterSpecEndpoint

type ResourceKubernetesClusterSpecEndpoint struct {
	Type    string `json:"type"`
	Address string `json:"address"`
}

type ResourceKubernetesClusterSpecProviderSpec

type ResourceKubernetesClusterSpecProviderSpec struct {
	TanzuSpec ResourceKubernetesClusterSpecProviderSpecTanzuSpec `json:"tanzuSpec"`
	AzureSpec ResourceKubernetesClusterSpecProviderSpecAzureSpec `json:"azureSpec"`
}

type ResourceKubernetesClusterSpecProviderSpecAzureSpec

type ResourceKubernetesClusterSpecProviderSpecAzureSpec struct {
	SubscriptionId string `json:"subscriptionId"`
	ResourceGroup  string `json:"resourceGroup"`
}

type ResourceKubernetesClusterSpecProviderSpecTanzuSpec

type ResourceKubernetesClusterSpecProviderSpecTanzuSpec struct {
	SupervisorClusterName string `json:"supervisorClusterName"`
	Namespace             string `json:"namespace"`
}

type ResourceKubernetesClusterSpecToolingConfig

type ResourceKubernetesClusterSpecToolingConfig struct {
	SplunkIndex string `json:"splunkIndex"`
}

type ResourceKubernetesClusterSpecTopology

type ResourceKubernetesClusterSpecTopology struct {
	ControlPlane ResourceKubernetesClusterSpecTopologyControlPlane `json:"controlPlane"`
	Workers      []ResourceKubernetesClusterSpecTopologyWorkers    `json:"workers"`
}

type ResourceKubernetesClusterSpecTopologyControlPlane

type ResourceKubernetesClusterSpecTopologyControlPlane struct {
	Replicas     int    `json:"replicas"`
	Version      string `json:"version"`
	MachineClass string `json:"machineClass"`
}

type ResourceKubernetesClusterSpecTopologyWorkers

type ResourceKubernetesClusterSpecTopologyWorkers struct {
	Name         string `json:"name"`
	Replicas     int    `json:"replicas"`
	Version      string `json:"version"`
	MachineClass string `json:"machineClass"`
}

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 ResourceKubernetesClusterStatusCondition

type ResourceKubernetesClusterStatusCondition struct {
	Type               string `json:"type"`
	Status             string `json:"status"`
	LastTransitionTime string `json:"lastTransitionTime"`
	Reason             string `json:"reason"`
	Message            string `json:"message"`
}

type ResourceKubernetesclusters

type ResourceKubernetesclusters struct {
	Owner              ResourceOwnerReference      `json:"owner"`
	Kubernetesclusters []ResourceKubernetesCluster `json:"kubernetesclusters"`
}

type for returning KubernetesCluster resources to internal functions

func (ResourceKubernetesclusters) GetByLabels

Function to return KubernetesCluster resource by label.

func (ResourceKubernetesclusters) GetByName

Function to return KubernetesCluster resource by name.

func (ResourceKubernetesclusters) GetByNamespace

Function to return KubernetesCluster resource by namespace.

func (ResourceKubernetesclusters) GetByUid

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"`
	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 ResourceNodeSpecTaints struct {
	Effect string `json:"effect"`
	Key    string `json:"key"`
}

type ResourceNodeStatus

type ResourceNodeStatus struct {
	Addresses  []ResourceNodeStatusAddresses  `json:"addresses"`
	Capacity   ResourceNodeStatusCapacity     `json:"capacity"`
	Conditions []ResourceNodeStatusConditions `json:"conditions"`
	NodeInfo   ResourceNodeStatusNodeinfo     `json:"nodeInfo"`
}

type ResourceNodeStatusAddresses

type ResourceNodeStatusAddresses struct {
	Address string `json:"address"`
	Type    string `json:"type"`
}

type ResourceNodeStatusCapacity

type ResourceNodeStatusCapacity struct {
	Cpu              string `json:"cpu"`
	EphemeralStorage string `json:"ephemeral-storage"`
	Memory           string `json:"memory"`
	Pods             string `json:"pods"`
}

type ResourceNodeStatusConditions

type ResourceNodeStatusConditions struct {
	LastHeartbeatTime  string `json:"lastHeartbeatTime"`
	LastTransitionTime string `json:"lastTransitionTime"`
	Message            string `json:"message"`
	Reason             string `json:"reason"`
	Status             string `json:"status"`
	Type               string `json:"type"`
}

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 ResourcePersistentVolumeClaimSpecResources

type ResourcePersistentVolumeClaimSpecResources struct {
	Limits   map[string]string `json:"limits,omitempty"`
	Requests map[string]string `json:"requests"`
}

type ResourcePersistentVolumeClaimStatus

type ResourcePersistentVolumeClaimStatus struct {
	AaccessModes []string          `json:"accessModes"`
	Capacity     map[string]string `json:"capacity"`
	Phase        string            `json:"phase"`
}

type ResourcePersistentvolumeclaims

type ResourcePersistentvolumeclaims struct {
	Owner                  ResourceOwnerReference          `json:"owner"`
	Persistentvolumeclaims []ResourcePersistentVolumeClaim `json:"persistentvolumeclaims"`
}

type for returning PersistentVolumeClaim resources to internal functions

func (ResourcePersistentvolumeclaims) GetByLabels

Function to return PersistentVolumeClaim resource by label.

func (ResourcePersistentvolumeclaims) GetByName

Function to return PersistentVolumeClaim resource by name.

func (ResourcePersistentvolumeclaims) GetByUid

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 ResourcePodSpecContainersPorts

type ResourcePodSpecContainersPorts struct {
	Name          string `json:"name"`
	ContainerPort int    `json:"containerPort"`
	Protocol      string `json:"protocol"`
}

type ResourcePodStatus

type ResourcePodStatus struct {
	Message   string `json:"message,omitempty"`
	Phase     string `json:"phase"`
	Reason    string `json:"reason,omitempty"`
	StartTime string `json:"startTime"`
}

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 ResourcePolicyReportResultsResources

type ResourcePolicyReportResultsResources struct {
	Uid        string `json:"uid"`
	ApiVersion string `json:"apiVersion"`
	Kind       string `json:"kind"`
	Name       string `json:"name"`
}

type ResourcePolicyReportSummary

type ResourcePolicyReportSummary struct {
	Error int `json:"error"`
	Fail  int `json:"fail"`
	Pass  int `json:"pass"`
	Skip  int `json:"skip"`
	Warn  int `json:"warn"`
}

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

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

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 ResourceProjectSpecRole struct {
	Upn   string `json:"upn"`
	Name  string `json:"name"`
	Role  string `json:"role"`
	Email string `json:"email"`
	Phone string `json:"phone"`
}

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 ResourceProviderConfigAks

type ResourceProviderConfigAks struct {
	Region        string `json:"region" validate:"required,min=1,ne=' '"`
	Subscription  string `json:"subscription" validate:"required,min=1,ne=' '"`
	ResourceGroup string `json:"resourceGroup" validate:"required,min=1,ne=' '"`
}

type ResourceProviderConfigKind added in v0.0.11

type ResourceProviderConfigKind struct {
}

type ResourceProviderConfigTanzu

type ResourceProviderConfigTanzu struct {
	DatacenterId string `json:"datacenterId" validate:"required,min=1,ne=' '"`
	NamespaceId  string `json:"namespaceId" validate:"required,min=1,ne=' '"`
}

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

Function to return RbacAssessmentReport resource by label.

func (ResourceRbacassessmentreports) GetByName

Function to return RbacAssessmentReport resource by name.

func (ResourceRbacassessmentreports) GetByNamespace

Function to return RbacAssessmentReport resource by namespace.

func (ResourceRbacassessmentreports) GetByUid

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 ResourceReplicaSetSpecSelectorMatchExpressions

type ResourceReplicaSetSpecSelectorMatchExpressions struct {
	Key      string   `json:"key"`
	Operator string   `json:"operator"`
	Values   []string `json:"values"`
}

type ResourceReplicaSetStatus

type ResourceReplicaSetStatus struct {
	AvailableReplicas int `json:"availableReplicas"`
	ReadyReplicas     int `json:"readyReplicas"`
	Replicas          int `json:"replicas"`
}

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 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 ResourceServicePorts struct {
	AppProtocol string             `json:"appProtocol"`
	Name        string             `json:"name"`
	Port        int                `json:"port"`
	Protocol    string             `json:"protocol"`
	TargetPort  intstr.IntOrString `json:"targetPort"`
}

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 ResourceStatefulSet

type ResourceStatefulSet struct {
	ApiVersion string                    `json:"apiVersion"`
	Kind       string                    `json:"kind"`
	Metadata   ResourceMetadata          `json:"metadata"`
	Status     ResourceStatefulSetStatus `json:"status"`
}

K8s deployment struct

type ResourceStatefulSetStatus

type ResourceStatefulSetStatus struct {
	Replicas          int `json:"replicas"`
	AvailableReplicas int `json:"availableReplicas"`
	CurrentReplicas   int `json:"currentReplicas"`
	ReadyReplicas     int `json:"readyReplicas"`
	UpdatedReplicas   int `json:"updatedReplicas"`
}

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

Function to return StorageClass resource by name.

func (ResourceStorageclasses) GetByUid

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 ResourceTanuzKuberntesMetadataManagedFields

type ResourceTanuzKuberntesMetadataManagedFields struct {
	ApiVersion string         `json:"apiVersion"`
	FieldsType string         `json:"fieldsType"`
	FieldsV1   map[string]any `json:"fieldsV1"`
	Manager    string         `json:"manager"`
	Operation  string         `json:"operation"`
	Time       string         `json:"time"`
}

type ResourceTanuzKuberntesMetadataOwnerReferences

type ResourceTanuzKuberntesMetadataOwnerReferences struct {
	ApiVersion         string `json:"apiVersion"`
	BlockOwnerDeletion bool   `json:"blockOwnerDeletion"`
	Controller         bool   `json:"controller"`
	Kind               string `json:"kind"`
	Name               string `json:"name"`
	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 ResourceTanzuKubernetesClusterSpecDistribution

type ResourceTanzuKubernetesClusterSpecDistribution struct {
	FullVersion string `json:"fullVersion"`
	Version     string `json:"version"`
}

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 ResourceTanzuKubernetesClusterSpecSettingsNetworkProxy

type ResourceTanzuKubernetesClusterSpecSettingsNetworkProxy struct {
	HTTPProxy  string `json:"httpProxy"`
	HTTPSProxy string `json:"httpsProxy"`
	NoProxy    string `json:"noProxy"`
}

type ResourceTanzuKubernetesClusterSpecSettingsNetworkServices

type ResourceTanzuKubernetesClusterSpecSettingsNetworkServices struct {
	CidrBlocks []string `json:"cidrBlocks"`
}

type ResourceTanzuKubernetesClusterSpecSettingsNetworkTrust

type ResourceTanzuKubernetesClusterSpecSettingsNetworkTrust struct {
	AdditionalTrusCAs []ResourceTanzuKubernetesClusterSpecSettingsNetworkTrustAdditionalTrustedCA `json:"additionalTrustedCAs"`
}

type ResourceTanzuKubernetesClusterSpecSettingsNetworkTrustAdditionalTrustedCA

type ResourceTanzuKubernetesClusterSpecSettingsNetworkTrustAdditionalTrustedCA struct {
	Data string `json:"data"`
	Name string `json:"name"`
}

type ResourceTanzuKubernetesClusterSpecSettingsStorage

type ResourceTanzuKubernetesClusterSpecSettingsStorage struct {
	Classes      []string `json:"classes"`
	DefaultClass string   `json:"defaultClass"`
}

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 ResourceTanzuKubernetesClusterSpecTopologyControlPlaneTkrReference

type ResourceTanzuKubernetesClusterSpecTopologyControlPlaneTkrReference struct {
	Name      string `json:"name"`
	Kind      string `json:"kind"`
	Namespace string `json:"namespace"`
	//ResourceVersion string `json:"resourceVersion"`
	Uid string `json:"uid"`
}

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 ResourceTanzuKubernetesClusterSpecTopologyNodePoolsTaints

type ResourceTanzuKubernetesClusterSpecTopologyNodePoolsTaints struct {
	Effect    string `json:"effect"`
	Key       string `json:"key"`
	TimeAdded string `json:"timeAdded"`
	Value     string `json:"value"`
}

type ResourceTanzuKubernetesClusterSpecTopologyNodePoolsTkr

type ResourceTanzuKubernetesClusterSpecTopologyNodePoolsTkr struct {
	Reference ResourceTanzuKubernetesClusterSpecTopologyNodePoolsTkrReference `json:"reference"`
}

type ResourceTanzuKubernetesClusterSpecTopologyNodePoolsTkrReference

type ResourceTanzuKubernetesClusterSpecTopologyNodePoolsTkrReference struct {
	FieldPath string `json:"fieldPath"`
	Kind      string `json:"kind"`
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
	//ResourceVersion string `json:"resourceVersion"`
	Uid string `json:"uid"`
}

type ResourceTanzuKubernetesClusterSpecTopologyNodePoolsVolumes

type ResourceTanzuKubernetesClusterSpecTopologyNodePoolsVolumes struct {
	Capasity     map[string]string `json:"capasity"`
	MountPath    string            `json:"mountPath"`
	Name         string            `json:"name"`
	StorageClass string            `json:"storageClass"`
}

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 ResourceTanzuKubernetesClusterStatusAPIEndpoints

type ResourceTanzuKubernetesClusterStatusAPIEndpoints struct {
	Host string `json:"host"`
	Port int32  `json:"port"`
}

type ResourceTanzuKubernetesClusterStatusAddons

type ResourceTanzuKubernetesClusterStatusAddons struct {
	Conditions []ResourceTanzuKubernetesClusterStatusAddonsConditions `json:"conditions"`
	Name       string                                                 `json:"name"`
	Type       string                                                 `json:"type"`
	Version    string                                                 `json:"version"`
}

type ResourceTanzuKubernetesClusterStatusAddonsConditions

type ResourceTanzuKubernetesClusterStatusAddonsConditions struct {
	LastTransitionTime string `json:"lastTransitionTime"`
	Message            string `json:"message"`
	Reason             string `json:"reason"`
	Severity           string `json:"severity"`
	Status             string `json:"status"`
	Type               string `json:"type"`
}

type ResourceTanzuKubernetesClusterStatusConditions

type ResourceTanzuKubernetesClusterStatusConditions struct {
	LastTransitionTime string `json:"lastTransitionTime"`
	Message            string `json:"message"`
	Reason             string `json:"reason"`
	Severity           string `json:"severity"`
	Status             string `json:"status"`
	Type               string `json:"type"`
}

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 ResourceTanzuKubernetesReleaseMetadataOwnerReference

type ResourceTanzuKubernetesReleaseMetadataOwnerReference struct {
	ApiVersion         string `json:"apiVersion"`
	BlockOwnerDeletion bool   `json:"blockOwnerDeletion"`
	Controller         bool   `json:"controller"`
	Kind               string `json:"kind"`
	Name               string `json:"name"`
	Uid                string `json:"uid"`
}

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 ResourceTanzuKubernetesReleaseSpecImage

type ResourceTanzuKubernetesReleaseSpecImage struct {
	Name       string `json:"name"`
	Repository string `json:"repository"`
	Tag        string `json:"tag"`
}

type ResourceTanzuKubernetesReleaseSpecNodeImageRef

type ResourceTanzuKubernetesReleaseSpecNodeImageRef struct {
	ApiVersion string `json:"apiVersion"`
	FieldPath  string `json:"fieldPath"`
	Kind       string `json:"kind"`
	Namespace  string `json:"namespace"`
	//ResourceVersion string `json:"resourceVersion"`
	Uid string `json:"uid"`
}

type ResourceTanzuKubernetesReleaseStatus

type ResourceTanzuKubernetesReleaseStatus struct {
	Conditions []ResourceTanzuKubernetesReleaseStatusCondition `json:"conditions"`
}

type ResourceTanzuKubernetesReleaseStatusCondition

type ResourceTanzuKubernetesReleaseStatusCondition struct {
	LastTransitionTime string `json:"lastTransitionTime"`
	Message            string `json:"message"`
	Reason             string `json:"reason"`
	Severity           string `json:"severity"`
	Status             string `json:"status"`
	Type               string `json:"type"`
}

type ResourceTanzukubernetesclusters

type ResourceTanzukubernetesclusters struct {
	Owner                   ResourceOwnerReference           `json:"owner"`
	Tanzukubernetesclusters []ResourceTanzuKubernetesCluster `json:"tanzukubernetesclusters"`
}

type for returning TanzuKubernetesCluster resources to internal functions

func (ResourceTanzukubernetesclusters) GetByLabels

Function to return TanzuKubernetesCluster resource by label.

func (ResourceTanzukubernetesclusters) GetByName

Function to return TanzuKubernetesCluster resource by name.

func (ResourceTanzukubernetesclusters) GetByNamespace

Function to return TanzuKubernetesCluster resource by namespace.

func (ResourceTanzukubernetesclusters) GetByUid

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

Function to return TanzuKubernetesRelease resource by label.

func (ResourceTanzukubernetesreleases) GetByName

Function to return TanzuKubernetesRelease resource by name.

func (ResourceTanzukubernetesreleases) GetByUid

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"`
	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 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 ResourceVirtualMachineClassBindingClassRef

type ResourceVirtualMachineClassBindingClassRef struct {
	ApiVersion string `json:"apiVersion"`
	Kind       string `json:"kind"`
	Name       string `json:"name"`
}

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 ResourceVirtualMachineClassBindingMetadataOwnerReference

type ResourceVirtualMachineClassBindingMetadataOwnerReference struct {
	ApiVersion         string `json:"apiVersion"`
	BlockOwnerDeletion bool   `json:"blockOwnerDeletion"`
	Controller         bool   `json:"controller"`
	Kind               string `json:"kind"`
	Name               string `json:"name"`
	Uid                string `json:"uid"`
}

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 ResourceVirtualMachineClassMetadataOwnerReference

type ResourceVirtualMachineClassMetadataOwnerReference struct {
	ApiVersion         string `json:"apiVersion"`
	BlockOwnerDeletion bool   `json:"blockOwnerDeletion"`
	Controller         bool   `json:"controller"`
	Kind               string `json:"kind"`
	Name               string `json:"name"`
	Uid                string `json:"uid"`
}

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

Function to return VirtualMachineClassBinding resource by label.

func (ResourceVirtualmachineclassbindings) GetByName

Function to return VirtualMachineClassBinding resource by name.

func (ResourceVirtualmachineclassbindings) GetByNamespace

Function to return VirtualMachineClassBinding resource by namespace.

func (ResourceVirtualmachineclassbindings) GetByUid

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

Function to return VirtualMachineClass resource by label.

func (ResourceVirtualmachineclasses) GetByName

Function to return VirtualMachineClass resource by name.

func (ResourceVirtualmachineclasses) GetByUid

Function to return VirtualMachineClass resource by uid.

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 ResourceVulnerabilityReportReportArtifact

type ResourceVulnerabilityReportReportArtifact struct {
	Repository string `json:"repository"`
	Tag        string `json:"tag"`
}

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 ResourceVulnerabilityreports

type ResourceVulnerabilityreports struct {
	Owner                ResourceOwnerReference        `json:"owner"`
	Vulnerabilityreports []ResourceVulnerabilityReport `json:"vulnerabilityreports"`
}

type for returning VulnerabilityReport resources to internal functions

func (ResourceVulnerabilityreports) GetByLabels

Function to return VulnerabilityReport resource by label.

func (ResourceVulnerabilityreports) GetByName

Function to return VulnerabilityReport resource by name.

func (ResourceVulnerabilityreports) GetByNamespace

Function to return VulnerabilityReport resource by namespace.

func (ResourceVulnerabilityreports) GetByUid

Function to return VulnerabilityReport resource by uid.

type SensitivityLevel

type SensitivityLevel int
const (
	SensitivityLevelUnknown  SensitivityLevel = iota
	SensitivityLevelNormal   SensitivityLevel = 1
	SensitivityLevelModerate SensitivityLevel = 2
	SensitivityLevelHigh     SensitivityLevel = 3
	SensitivityLevelCritical SensitivityLevel = 4
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL