rortypes

package
v0.1.8 Latest Latest
Warning

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

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

Documentation

Overview

package delivers apicontracts for resources

Index

Constants

This section is empty.

Variables

View Source
var (
	// aclmodels.ErrInvalidScope is returned when the scope is invalid
	ErrInvalidScope   = errors.New("invalid scope")
	ErrInvalidSubject = errors.New("invalid subject")
)

Functions

This section is empty.

Types

type AppProjectinterface

type AppProjectinterface interface {
	CommonResourceInterface
	Get() *ResourceAppProject
}

AppProjectinterface represents the interface for resources of the type appproject

type Applicationinterface

type Applicationinterface interface {
	CommonResourceInterface
	Get() *ResourceApplication
}

Applicationinterface represents the interface for resources of the type application

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 Certificateinterface

type Certificateinterface interface {
	CommonResourceInterface
	Get() *ResourceCertificate
}

Certificateinterface represents the interface for resources of the type certificate

type ClusterComplianceReportinterface

type ClusterComplianceReportinterface interface {
	CommonResourceInterface
	Get() *ResourceClusterComplianceReport
}

ClusterComplianceReportinterface represents the interface for resources of the type clustercompliancereport

type ClusterOrderinterface

type ClusterOrderinterface interface {
	CommonResourceInterface
	Get() *ResourceClusterOrder
}

ClusterOrderinterface represents the interface for resources of the type clusterorder

type CommonResource

type CommonResource struct {
	metav1.TypeMeta `json:",inline"`
	Metadata        metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
	RorMeta         ResourceRorMeta   `json:"rormeta"`
}

Commonresource defines the minimum resource definition.

type CommonResourceInterface

type CommonResourceInterface interface {
	GetName() string
	GetUID() string
	GetKind() string
	GetAPIVersion() string
	GetMetadata() metav1.ObjectMeta
	GetRorMeta() ResourceRorMeta
	SetRorMeta(ResourceRorMeta) error
	GetRorHash() string
	ApplyInputFilter() error
}

CommonResourceInterface represents the minimum interface for all resources

type ConfigAuditReportinterface

type ConfigAuditReportinterface interface {
	CommonResourceInterface
	Get() *ResourceConfigAuditReport
}

ConfigAuditReportinterface represents the interface for resources of the type configauditreport

type Configurationinterface

type Configurationinterface interface {
	CommonResourceInterface
	Get() *ResourceConfiguration
}

Configurationinterface represents the interface for resources of the type configuration

type CriticalityLevel

type CriticalityLevel int
const (
	CriticalityLevelUnknown        CriticalityLevel = iota
	CriticalityLevelOpen           CriticalityLevel = 1
	CriticalityLevelIntern         CriticalityLevel = 2
	CriticalityLevelShielded       CriticalityLevel = 3
	CriticalityLevelHighlyShielded CriticalityLevel = 4
)

type DaemonSetinterface

type DaemonSetinterface interface {
	CommonResourceInterface
	Get() *ResourceDaemonSet
}

DaemonSetinterface represents the interface for resources of the type daemonset

type Deploymentinterface

type Deploymentinterface interface {
	CommonResourceInterface
	Get() *ResourceDeployment
}

Deploymentinterface represents the interface for resources of the type deployment

type EnvironmentType

type EnvironmentType int
const (
	EnvironmentUnknown     EnvironmentType = iota
	EnvironmentDevelopment EnvironmentType = 1
	EnvironmentTesting     EnvironmentType = 2
	EnvironmentQA          EnvironmentType = 3
	EnvironmentProduction  EnvironmentType = 4
)

type ExposedSecretReportinterface

type ExposedSecretReportinterface interface {
	CommonResourceInterface
	Get() *ResourceExposedSecretReport
}

ExposedSecretReportinterface represents the interface for resources of the type exposedsecretreport

type IngressClassinterface

type IngressClassinterface interface {
	CommonResourceInterface
	Get() *ResourceIngressClass
}

IngressClassinterface represents the interface for resources of the type ingressclass

type Ingressinterface

type Ingressinterface interface {
	CommonResourceInterface
	Get() *ResourceIngress
}

Ingressinterface represents the interface for resources of the type ingress

type KubernetesClusterinterface

type KubernetesClusterinterface interface {
	CommonResourceInterface
	Get() *ResourceKubernetesCluster
}

KubernetesClusterinterface represents the interface for resources of the type kubernetescluster

type Namespaceinterface

type Namespaceinterface interface {
	CommonResourceInterface
	Get() *ResourceNamespace
}

Namespaceinterface represents the interface for resources of the type namespace

type Nodeinterface

type Nodeinterface interface {
	CommonResourceInterface
	Get() *ResourceNode
}

Nodeinterface represents the interface for resources of the type node

type PersistentVolumeClaiminterface

type PersistentVolumeClaiminterface interface {
	CommonResourceInterface
	Get() *ResourcePersistentVolumeClaim
}

PersistentVolumeClaiminterface represents the interface for resources of the type persistentvolumeclaim

type Podinterface

type Podinterface interface {
	CommonResourceInterface
	Get() *ResourcePod
}

Podinterface represents the interface for resources of the type pod

type PolicyReportinterface

type PolicyReportinterface interface {
	CommonResourceInterface
	Get() *ResourcePolicyReport
}

PolicyReportinterface represents the interface for resources of the type policyreport

type Projectinterface

type Projectinterface interface {
	CommonResourceInterface
	Get() *ResourceProject
}

Projectinterface represents the interface for resources of the type project

type ProviderType

type ProviderType string
const (
	ProviderTypeUnknown ProviderType = ""
	ProviderTypeTanzu   ProviderType = "Tanzu"
	ProviderTypeAzure   ProviderType = "Azure"
	ProviderTypeK3d     ProviderType = "K3D"
)

type RbacAssessmentReportinterface

type RbacAssessmentReportinterface interface {
	CommonResourceInterface
	Get() *ResourceRbacAssessmentReport
}

RbacAssessmentReportinterface represents the interface for resources of the type rbacassessmentreport

type ReplicaSetinterface

type ReplicaSetinterface interface {
	CommonResourceInterface
	Get() *ResourceReplicaSet
}

ReplicaSetinterface represents the interface for resources of the type replicaset

type ResourceAction

type ResourceAction string
const (
	K8sActionAdd    ResourceAction = "Add"
	K8sActionDelete ResourceAction = "Delete"
	K8sActionUpdate ResourceAction = "Update"
)

type ResourceAppProject

type ResourceAppProject struct {
	CommonResource `json:",inline"`
	Spec           ResourceAppProjectSpec `json:"spec"`
}

K8s applicationProject struct used with ArgoCD

func (*ResourceAppProject) ApplyInputFilter

func (r *ResourceAppProject) ApplyInputFilter() error

(r *ResourceAppProject) ApplyInputFilter Applies the input filter to the resource

func (*ResourceAppProject) Get

(r ResourceAppProject) Get returns a pointer to the resource of type ResourceAppProject

func (ResourceAppProject) GetAPIVersion

func (r ResourceAppProject) GetAPIVersion() string

(r ResourceAppProject) GetAPIVersion returns the APIVersion of the resource

func (ResourceAppProject) GetKind

func (r ResourceAppProject) GetKind() string

(r ResourceAppProject) GetKind returns the kind of the resource

func (ResourceAppProject) GetMetadata

func (r ResourceAppProject) GetMetadata() metav1.ObjectMeta

(r ResourceAppProject) GetMetadata returns the metav1.ObjectMeta of the resource

func (ResourceAppProject) GetName

func (r ResourceAppProject) GetName() string

(r ResourceAppProject) GetName returns the name of the resource

func (*ResourceAppProject) GetRorHash

func (r *ResourceAppProject) GetRorHash() string

(r *ResourceAppProject) GetRorHash calculates the hash of the resource

it uses the hashstructure library to calculate the hash of the resource fields can be ignored by adding the tag `hash:"ignore"` to the field

func (ResourceAppProject) GetRorMeta

func (r ResourceAppProject) GetRorMeta() ResourceRorMeta

(r ResourceAppProject) GetRorMeta returns the ResourceRorMeta of the resource

func (ResourceAppProject) GetUID

func (r ResourceAppProject) GetUID() string

(r ResourceAppProject) GetUID returns the UID of the resource

func (*ResourceAppProject) SetRorMeta

func (r *ResourceAppProject) SetRorMeta(rormeta ResourceRorMeta) error

(r *ResourceAppProject) SetRorMeta sets the ResourceRorMeta of the resource

type ResourceAppProjectSpec

type ResourceAppProjectSpec struct {
	Description  string                               `json:"description"`
	SourceRepos  []string                             `json:"sourceRepos"`
	Destinations []ResourceApplicationSpecDestination `json:"destinations"`
}

type ResourceApplication

type ResourceApplication struct {
	CommonResource `json:",inline"`
	Spec           ResourceApplicationSpec   `json:"spec"`
	Status         ResourceApplicationStatus `json:"status"`
}

K8s application struct used with ArgoCD

func (*ResourceApplication) ApplyInputFilter

func (r *ResourceApplication) ApplyInputFilter() error

(r *ResourceApplication) ApplyInputFilter Applies the input filter to the resource

func (*ResourceApplication) Get

(r ResourceApplication) Get returns a pointer to the resource of type ResourceApplication

func (ResourceApplication) GetAPIVersion

func (r ResourceApplication) GetAPIVersion() string

(r ResourceApplication) GetAPIVersion returns the APIVersion of the resource

func (ResourceApplication) GetKind

func (r ResourceApplication) GetKind() string

(r ResourceApplication) GetKind returns the kind of the resource

func (ResourceApplication) GetMetadata

func (r ResourceApplication) GetMetadata() metav1.ObjectMeta

(r ResourceApplication) GetMetadata returns the metav1.ObjectMeta of the resource

func (ResourceApplication) GetName

func (r ResourceApplication) GetName() string

(r ResourceApplication) GetName returns the name of the resource

func (*ResourceApplication) GetRorHash

func (r *ResourceApplication) GetRorHash() string

(r *ResourceApplication) GetRorHash calculates the hash of the resource

it uses the hashstructure library to calculate the hash of the resource fields can be ignored by adding the tag `hash:"ignore"` to the field

func (ResourceApplication) GetRorMeta

func (r ResourceApplication) GetRorMeta() ResourceRorMeta

(r ResourceApplication) GetRorMeta returns the ResourceRorMeta of the resource

func (ResourceApplication) GetUID

func (r ResourceApplication) GetUID() string

(r ResourceApplication) GetUID returns the UID of the resource

func (*ResourceApplication) SetRorMeta

func (r *ResourceApplication) SetRorMeta(rormeta ResourceRorMeta) error

(r *ResourceApplication) SetRorMeta sets the ResourceRorMeta of the resource

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 ResourceCertificate

type ResourceCertificate struct {
	CommonResource `json:",inline"`
	Spec           ResourceCertificateSpec   `json:"spec"`
	Status         ResourceCertificateStatus `json:"status"`
}

K8s certificate struct

func (*ResourceCertificate) ApplyInputFilter

func (r *ResourceCertificate) ApplyInputFilter() error

(r *ResourceCertificate) ApplyInputFilter Applies the input filter to the resource

func (*ResourceCertificate) Get

(r ResourceCertificate) Get returns a pointer to the resource of type ResourceCertificate

func (ResourceCertificate) GetAPIVersion

func (r ResourceCertificate) GetAPIVersion() string

(r ResourceCertificate) GetAPIVersion returns the APIVersion of the resource

func (ResourceCertificate) GetKind

func (r ResourceCertificate) GetKind() string

(r ResourceCertificate) GetKind returns the kind of the resource

func (ResourceCertificate) GetMetadata

func (r ResourceCertificate) GetMetadata() metav1.ObjectMeta

(r ResourceCertificate) GetMetadata returns the metav1.ObjectMeta of the resource

func (ResourceCertificate) GetName

func (r ResourceCertificate) GetName() string

(r ResourceCertificate) GetName returns the name of the resource

func (*ResourceCertificate) GetRorHash

func (r *ResourceCertificate) GetRorHash() string

(r *ResourceCertificate) GetRorHash calculates the hash of the resource

it uses the hashstructure library to calculate the hash of the resource fields can be ignored by adding the tag `hash:"ignore"` to the field

func (ResourceCertificate) GetRorMeta

func (r ResourceCertificate) GetRorMeta() ResourceRorMeta

(r ResourceCertificate) GetRorMeta returns the ResourceRorMeta of the resource

func (ResourceCertificate) GetUID

func (r ResourceCertificate) GetUID() string

(r ResourceCertificate) GetUID returns the UID of the resource

func (*ResourceCertificate) SetRorMeta

func (r *ResourceCertificate) SetRorMeta(rormeta ResourceRorMeta) error

(r *ResourceCertificate) SetRorMeta sets the ResourceRorMeta of the resource

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 ResourceClusterComplianceReport

type ResourceClusterComplianceReport struct {
	CommonResource `json:",inline"`
}

K8s namepace struct

func (*ResourceClusterComplianceReport) ApplyInputFilter

func (r *ResourceClusterComplianceReport) ApplyInputFilter() error

(r *ResourceClusterComplianceReport) ApplyInputFilter Applies the input filter to the resource

func (*ResourceClusterComplianceReport) Get

(r ResourceClusterComplianceReport) Get returns a pointer to the resource of type ResourceClusterComplianceReport

func (ResourceClusterComplianceReport) GetAPIVersion

func (r ResourceClusterComplianceReport) GetAPIVersion() string

(r ResourceClusterComplianceReport) GetAPIVersion returns the APIVersion of the resource

func (ResourceClusterComplianceReport) GetKind

(r ResourceClusterComplianceReport) GetKind returns the kind of the resource

func (ResourceClusterComplianceReport) GetMetadata

(r ResourceClusterComplianceReport) GetMetadata returns the metav1.ObjectMeta of the resource

func (ResourceClusterComplianceReport) GetName

(r ResourceClusterComplianceReport) GetName returns the name of the resource

func (*ResourceClusterComplianceReport) GetRorHash

func (r *ResourceClusterComplianceReport) GetRorHash() string

(r *ResourceClusterComplianceReport) GetRorHash calculates the hash of the resource

it uses the hashstructure library to calculate the hash of the resource fields can be ignored by adding the tag `hash:"ignore"` to the field

func (ResourceClusterComplianceReport) GetRorMeta

(r ResourceClusterComplianceReport) GetRorMeta returns the ResourceRorMeta of the resource

func (ResourceClusterComplianceReport) GetUID

(r ResourceClusterComplianceReport) GetUID returns the UID of the resource

func (*ResourceClusterComplianceReport) SetRorMeta

func (r *ResourceClusterComplianceReport) SetRorMeta(rormeta ResourceRorMeta) error

(r *ResourceClusterComplianceReport) SetRorMeta sets the ResourceRorMeta of the resource

type ResourceClusterOrder

type ResourceClusterOrder struct {
	CommonResource `json:",inline"`
	Spec           ResourceClusterOrderSpec   `json:"spec"`
	Status         ResourceClusterOrderStatus `json:"status"`
}

func (*ResourceClusterOrder) ApplyInputFilter

func (r *ResourceClusterOrder) ApplyInputFilter() error

(r *ResourceClusterOrder) ApplyInputFilter Applies the input filter to the resource

func (*ResourceClusterOrder) Get

(r ResourceClusterOrder) Get returns a pointer to the resource of type ResourceClusterOrder

func (ResourceClusterOrder) GetAPIVersion

func (r ResourceClusterOrder) GetAPIVersion() string

(r ResourceClusterOrder) GetAPIVersion returns the APIVersion of the resource

func (ResourceClusterOrder) GetKind

func (r ResourceClusterOrder) GetKind() string

(r ResourceClusterOrder) GetKind returns the kind of the resource

func (ResourceClusterOrder) GetMetadata

func (r ResourceClusterOrder) GetMetadata() metav1.ObjectMeta

(r ResourceClusterOrder) GetMetadata returns the metav1.ObjectMeta of the resource

func (ResourceClusterOrder) GetName

func (r ResourceClusterOrder) GetName() string

(r ResourceClusterOrder) GetName returns the name of the resource

func (*ResourceClusterOrder) GetRorHash

func (r *ResourceClusterOrder) GetRorHash() string

(r *ResourceClusterOrder) GetRorHash calculates the hash of the resource

it uses the hashstructure library to calculate the hash of the resource fields can be ignored by adding the tag `hash:"ignore"` to the field

func (ResourceClusterOrder) GetRorMeta

func (r ResourceClusterOrder) GetRorMeta() ResourceRorMeta

(r ResourceClusterOrder) GetRorMeta returns the ResourceRorMeta of the resource

func (ResourceClusterOrder) GetUID

func (r ResourceClusterOrder) GetUID() string

(r ResourceClusterOrder) GetUID returns the UID of the resource

func (*ResourceClusterOrder) SetRorMeta

func (r *ResourceClusterOrder) SetRorMeta(rormeta ResourceRorMeta) error

(r *ResourceClusterOrder) SetRorMeta sets the ResourceRorMeta of the resource

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 {
	Provider    ProviderType `json:"provider" validate:"required,min=1,ne=' '"`
	ClusterName string       `json:"clusterName" validate:"required,min=1,ne=' '"`
	ProjectId   string       `json:"projectId" validate:"required,min=1,ne=' '"`
	OrderBy     string       `json:"orderBy" validate:"required,min=1,ne=' '"`

	Environment      EnvironmentType                    `json:"environment" validate:"required,min=1,max=4"`
	Criticality      CriticalityLevel                   `json:"criticality" validate:"required,min=1,max=4"`
	Sensitivity      SensitivityLevel                   `json:"sensitivity" validate:"required,min=1,max=4"`
	HighAvailability bool                               `json:"highAvailability" validate:"boolean"`
	NodePools        []ResourceClusterOrderSpecNodePool `json:"nodePools" validate:"required,min=1,dive,required"`
	ServiceTags      map[string]string                  `json:"serviceTags,omitempty"`
	ProviderConfig   map[string]interface{}             `json:"providerConfig,omitempty"`
	OwnerGroup       string                             `json:"ownerGroup" validate:"required,min=1,ne=' '"`
}

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            string                                     `json:"phase"`
	Conditions       []ResourceKubernetesClusterStatusCondition `json:"conditions"`
	CreatedTime      string                                     `json:"createdTime"`
	UpdatedTime      string                                     `json:"updatedTime"`
	LastObservedTime string                                     `json:"lastObservedTime"`
}

type ResourceConfigAuditReport

type ResourceConfigAuditReport struct {
	CommonResource `json:",inline"`
	Report         ResourceVulnerabilityReportReport `json:"report"`
}

K8s namepace struct

func (*ResourceConfigAuditReport) ApplyInputFilter

func (r *ResourceConfigAuditReport) ApplyInputFilter() error

(r *ResourceConfigAuditReport) ApplyInputFilter Applies the input filter to the resource

func (*ResourceConfigAuditReport) Get

(r ResourceConfigAuditReport) Get returns a pointer to the resource of type ResourceConfigAuditReport

func (ResourceConfigAuditReport) GetAPIVersion

func (r ResourceConfigAuditReport) GetAPIVersion() string

(r ResourceConfigAuditReport) GetAPIVersion returns the APIVersion of the resource

func (ResourceConfigAuditReport) GetKind

func (r ResourceConfigAuditReport) GetKind() string

(r ResourceConfigAuditReport) GetKind returns the kind of the resource

func (ResourceConfigAuditReport) GetMetadata

(r ResourceConfigAuditReport) GetMetadata returns the metav1.ObjectMeta of the resource

func (ResourceConfigAuditReport) GetName

func (r ResourceConfigAuditReport) GetName() string

(r ResourceConfigAuditReport) GetName returns the name of the resource

func (*ResourceConfigAuditReport) GetRorHash

func (r *ResourceConfigAuditReport) GetRorHash() string

(r *ResourceConfigAuditReport) GetRorHash calculates the hash of the resource

it uses the hashstructure library to calculate the hash of the resource fields can be ignored by adding the tag `hash:"ignore"` to the field

func (ResourceConfigAuditReport) GetRorMeta

(r ResourceConfigAuditReport) GetRorMeta returns the ResourceRorMeta of the resource

func (ResourceConfigAuditReport) GetUID

func (r ResourceConfigAuditReport) GetUID() string

(r ResourceConfigAuditReport) GetUID returns the UID of the resource

func (*ResourceConfigAuditReport) SetRorMeta

func (r *ResourceConfigAuditReport) SetRorMeta(rormeta ResourceRorMeta) error

(r *ResourceConfigAuditReport) SetRorMeta sets the ResourceRorMeta of the resource

type ResourceConfigAuditReportReport

type ResourceConfigAuditReportReport struct {
	Summary AquaReportSummary `json:"summary"`
}

type ResourceConfiguration

type ResourceConfiguration struct {
	CommonResource `json:",inline"`
	Spec           ResourceConfigurationSpec `json:"spec"`
}

func (*ResourceConfiguration) ApplyInputFilter

func (r *ResourceConfiguration) ApplyInputFilter() error

(r *ResourceConfiguration) ApplyInputFilter Applies the input filter to the resource

func (*ResourceConfiguration) Get

(r ResourceConfiguration) Get returns a pointer to the resource of type ResourceConfiguration

func (ResourceConfiguration) GetAPIVersion

func (r ResourceConfiguration) GetAPIVersion() string

(r ResourceConfiguration) GetAPIVersion returns the APIVersion of the resource

func (ResourceConfiguration) GetKind

func (r ResourceConfiguration) GetKind() string

(r ResourceConfiguration) GetKind returns the kind of the resource

func (ResourceConfiguration) GetMetadata

func (r ResourceConfiguration) GetMetadata() metav1.ObjectMeta

(r ResourceConfiguration) GetMetadata returns the metav1.ObjectMeta of the resource

func (ResourceConfiguration) GetName

func (r ResourceConfiguration) GetName() string

(r ResourceConfiguration) GetName returns the name of the resource

func (*ResourceConfiguration) GetRorHash

func (r *ResourceConfiguration) GetRorHash() string

(r *ResourceConfiguration) GetRorHash calculates the hash of the resource

it uses the hashstructure library to calculate the hash of the resource fields can be ignored by adding the tag `hash:"ignore"` to the field

func (ResourceConfiguration) GetRorMeta

func (r ResourceConfiguration) GetRorMeta() ResourceRorMeta

(r ResourceConfiguration) GetRorMeta returns the ResourceRorMeta of the resource

func (ResourceConfiguration) GetUID

func (r ResourceConfiguration) GetUID() string

(r ResourceConfiguration) GetUID returns the UID of the resource

func (*ResourceConfiguration) SetRorMeta

func (r *ResourceConfiguration) SetRorMeta(rormeta ResourceRorMeta) error

(r *ResourceConfiguration) SetRorMeta sets the ResourceRorMeta of the resource

type ResourceConfigurationSpec

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

type ResourceDaemonSet

type ResourceDaemonSet struct {
	CommonResource `json:",inline"`
	Status         ResourceDaemonSetStatus `json:"status"`
}

K8s deployment struct

func (*ResourceDaemonSet) ApplyInputFilter

func (r *ResourceDaemonSet) ApplyInputFilter() error

(r *ResourceDaemonSet) ApplyInputFilter Applies the input filter to the resource

func (*ResourceDaemonSet) Get

(r ResourceDaemonSet) Get returns a pointer to the resource of type ResourceDaemonSet

func (ResourceDaemonSet) GetAPIVersion

func (r ResourceDaemonSet) GetAPIVersion() string

(r ResourceDaemonSet) GetAPIVersion returns the APIVersion of the resource

func (ResourceDaemonSet) GetKind

func (r ResourceDaemonSet) GetKind() string

(r ResourceDaemonSet) GetKind returns the kind of the resource

func (ResourceDaemonSet) GetMetadata

func (r ResourceDaemonSet) GetMetadata() metav1.ObjectMeta

(r ResourceDaemonSet) GetMetadata returns the metav1.ObjectMeta of the resource

func (ResourceDaemonSet) GetName

func (r ResourceDaemonSet) GetName() string

(r ResourceDaemonSet) GetName returns the name of the resource

func (*ResourceDaemonSet) GetRorHash

func (r *ResourceDaemonSet) GetRorHash() string

(r *ResourceDaemonSet) GetRorHash calculates the hash of the resource

it uses the hashstructure library to calculate the hash of the resource fields can be ignored by adding the tag `hash:"ignore"` to the field

func (ResourceDaemonSet) GetRorMeta

func (r ResourceDaemonSet) GetRorMeta() ResourceRorMeta

(r ResourceDaemonSet) GetRorMeta returns the ResourceRorMeta of the resource

func (ResourceDaemonSet) GetUID

func (r ResourceDaemonSet) GetUID() string

(r ResourceDaemonSet) GetUID returns the UID of the resource

func (*ResourceDaemonSet) SetRorMeta

func (r *ResourceDaemonSet) SetRorMeta(rormeta ResourceRorMeta) error

(r *ResourceDaemonSet) SetRorMeta sets the ResourceRorMeta of the resource

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 ResourceDeployment

type ResourceDeployment struct {
	CommonResource `json:",inline"`
	Status         ResourceDeploymentStatus `json:"status"`
}

K8s deployment struct

func (*ResourceDeployment) ApplyInputFilter

func (r *ResourceDeployment) ApplyInputFilter() error

(r *ResourceDeployment) ApplyInputFilter Applies the input filter to the resource

func (*ResourceDeployment) Get

(r ResourceDeployment) Get returns a pointer to the resource of type ResourceDeployment

func (ResourceDeployment) GetAPIVersion

func (r ResourceDeployment) GetAPIVersion() string

(r ResourceDeployment) GetAPIVersion returns the APIVersion of the resource

func (ResourceDeployment) GetKind

func (r ResourceDeployment) GetKind() string

(r ResourceDeployment) GetKind returns the kind of the resource

func (ResourceDeployment) GetMetadata

func (r ResourceDeployment) GetMetadata() metav1.ObjectMeta

(r ResourceDeployment) GetMetadata returns the metav1.ObjectMeta of the resource

func (ResourceDeployment) GetName

func (r ResourceDeployment) GetName() string

(r ResourceDeployment) GetName returns the name of the resource

func (*ResourceDeployment) GetRorHash

func (r *ResourceDeployment) GetRorHash() string

(r *ResourceDeployment) GetRorHash calculates the hash of the resource

it uses the hashstructure library to calculate the hash of the resource fields can be ignored by adding the tag `hash:"ignore"` to the field

func (ResourceDeployment) GetRorMeta

func (r ResourceDeployment) GetRorMeta() ResourceRorMeta

(r ResourceDeployment) GetRorMeta returns the ResourceRorMeta of the resource

func (ResourceDeployment) GetUID

func (r ResourceDeployment) GetUID() string

(r ResourceDeployment) GetUID returns the UID of the resource

func (*ResourceDeployment) SetRorMeta

func (r *ResourceDeployment) SetRorMeta(rormeta ResourceRorMeta) error

(r *ResourceDeployment) SetRorMeta sets the ResourceRorMeta of the resource

type ResourceDeploymentStatus

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

type ResourceExposedSecretReport

type ResourceExposedSecretReport struct {
	CommonResource `json:",inline"`
	Report         ResourceVulnerabilityReportReport `json:"report"`
}

K8s namepace struct

func (*ResourceExposedSecretReport) ApplyInputFilter

func (r *ResourceExposedSecretReport) ApplyInputFilter() error

(r *ResourceExposedSecretReport) ApplyInputFilter Applies the input filter to the resource

func (*ResourceExposedSecretReport) Get

(r ResourceExposedSecretReport) Get returns a pointer to the resource of type ResourceExposedSecretReport

func (ResourceExposedSecretReport) GetAPIVersion

func (r ResourceExposedSecretReport) GetAPIVersion() string

(r ResourceExposedSecretReport) GetAPIVersion returns the APIVersion of the resource

func (ResourceExposedSecretReport) GetKind

func (r ResourceExposedSecretReport) GetKind() string

(r ResourceExposedSecretReport) GetKind returns the kind of the resource

func (ResourceExposedSecretReport) GetMetadata

(r ResourceExposedSecretReport) GetMetadata returns the metav1.ObjectMeta of the resource

func (ResourceExposedSecretReport) GetName

func (r ResourceExposedSecretReport) GetName() string

(r ResourceExposedSecretReport) GetName returns the name of the resource

func (*ResourceExposedSecretReport) GetRorHash

func (r *ResourceExposedSecretReport) GetRorHash() string

(r *ResourceExposedSecretReport) GetRorHash calculates the hash of the resource

it uses the hashstructure library to calculate the hash of the resource fields can be ignored by adding the tag `hash:"ignore"` to the field

func (ResourceExposedSecretReport) GetRorMeta

(r ResourceExposedSecretReport) GetRorMeta returns the ResourceRorMeta of the resource

func (ResourceExposedSecretReport) GetUID

(r ResourceExposedSecretReport) GetUID returns the UID of the resource

func (*ResourceExposedSecretReport) SetRorMeta

func (r *ResourceExposedSecretReport) SetRorMeta(rormeta ResourceRorMeta) error

(r *ResourceExposedSecretReport) SetRorMeta sets the ResourceRorMeta of the resource

type ResourceExposedSecretReportReport

type ResourceExposedSecretReportReport struct {
	Summary AquaReportSummary `json:"summary"`
}

type ResourceIngress

type ResourceIngress struct {
	CommonResource `json:",inline"`
	Spec           ResourceIngressSpec   `json:"spec"`
	Status         ResourceIngressStatus `json:"status"`
}

K8s namepace struct

func (*ResourceIngress) ApplyInputFilter

func (r *ResourceIngress) ApplyInputFilter() error

(r *ResourceIngress) ApplyInputFilter Applies the input filter to the resource

func (*ResourceIngress) Get

func (r *ResourceIngress) Get() *ResourceIngress

(r ResourceIngress) Get returns a pointer to the resource of type ResourceIngress

func (ResourceIngress) GetAPIVersion

func (r ResourceIngress) GetAPIVersion() string

(r ResourceIngress) GetAPIVersion returns the APIVersion of the resource

func (ResourceIngress) GetKind

func (r ResourceIngress) GetKind() string

(r ResourceIngress) GetKind returns the kind of the resource

func (ResourceIngress) GetMetadata

func (r ResourceIngress) GetMetadata() metav1.ObjectMeta

(r ResourceIngress) GetMetadata returns the metav1.ObjectMeta of the resource

func (ResourceIngress) GetName

func (r ResourceIngress) GetName() string

(r ResourceIngress) GetName returns the name of the resource

func (*ResourceIngress) GetRorHash

func (r *ResourceIngress) GetRorHash() string

(r *ResourceIngress) GetRorHash calculates the hash of the resource

it uses the hashstructure library to calculate the hash of the resource fields can be ignored by adding the tag `hash:"ignore"` to the field

func (ResourceIngress) GetRorMeta

func (r ResourceIngress) GetRorMeta() ResourceRorMeta

(r ResourceIngress) GetRorMeta returns the ResourceRorMeta of the resource

func (ResourceIngress) GetUID

func (r ResourceIngress) GetUID() string

(r ResourceIngress) GetUID returns the UID of the resource

func (*ResourceIngress) SetRorMeta

func (r *ResourceIngress) SetRorMeta(rormeta ResourceRorMeta) error

(r *ResourceIngress) SetRorMeta sets the ResourceRorMeta of the resource

type ResourceIngressClass

type ResourceIngressClass struct {
	CommonResource `json:",inline"`
	Spec           ResourceIngressClassSpec `json:"spec"`
}

K8s namepace struct

func (*ResourceIngressClass) ApplyInputFilter

func (r *ResourceIngressClass) ApplyInputFilter() error

(r *ResourceIngressClass) ApplyInputFilter Applies the input filter to the resource

func (*ResourceIngressClass) Get

(r ResourceIngressClass) Get returns a pointer to the resource of type ResourceIngressClass

func (ResourceIngressClass) GetAPIVersion

func (r ResourceIngressClass) GetAPIVersion() string

(r ResourceIngressClass) GetAPIVersion returns the APIVersion of the resource

func (ResourceIngressClass) GetKind

func (r ResourceIngressClass) GetKind() string

(r ResourceIngressClass) GetKind returns the kind of the resource

func (ResourceIngressClass) GetMetadata

func (r ResourceIngressClass) GetMetadata() metav1.ObjectMeta

(r ResourceIngressClass) GetMetadata returns the metav1.ObjectMeta of the resource

func (ResourceIngressClass) GetName

func (r ResourceIngressClass) GetName() string

(r ResourceIngressClass) GetName returns the name of the resource

func (*ResourceIngressClass) GetRorHash

func (r *ResourceIngressClass) GetRorHash() string

(r *ResourceIngressClass) GetRorHash calculates the hash of the resource

it uses the hashstructure library to calculate the hash of the resource fields can be ignored by adding the tag `hash:"ignore"` to the field

func (ResourceIngressClass) GetRorMeta

func (r ResourceIngressClass) GetRorMeta() ResourceRorMeta

(r ResourceIngressClass) GetRorMeta returns the ResourceRorMeta of the resource

func (ResourceIngressClass) GetUID

func (r ResourceIngressClass) GetUID() string

(r ResourceIngressClass) GetUID returns the UID of the resource

func (*ResourceIngressClass) SetRorMeta

func (r *ResourceIngressClass) SetRorMeta(rormeta ResourceRorMeta) error

(r *ResourceIngressClass) SetRorMeta sets the ResourceRorMeta of the resource

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 ResourceKubernetesCluster

type ResourceKubernetesCluster struct {
	CommonResource `json:",inline"`
	Spec           ResourceKubernetesClusterSpec   `json:"spec"`
	Status         ResourceKubernetesClusterStatus `json:"status"`
}

func (*ResourceKubernetesCluster) ApplyInputFilter

func (r *ResourceKubernetesCluster) ApplyInputFilter() error

(r *ResourceKubernetesCluster) ApplyInputFilter Applies the input filter to the resource

func (*ResourceKubernetesCluster) Get

(r ResourceKubernetesCluster) Get returns a pointer to the resource of type ResourceKubernetesCluster

func (ResourceKubernetesCluster) GetAPIVersion

func (r ResourceKubernetesCluster) GetAPIVersion() string

(r ResourceKubernetesCluster) GetAPIVersion returns the APIVersion of the resource

func (ResourceKubernetesCluster) GetKind

func (r ResourceKubernetesCluster) GetKind() string

(r ResourceKubernetesCluster) GetKind returns the kind of the resource

func (ResourceKubernetesCluster) GetMetadata

(r ResourceKubernetesCluster) GetMetadata returns the metav1.ObjectMeta of the resource

func (ResourceKubernetesCluster) GetName

func (r ResourceKubernetesCluster) GetName() string

(r ResourceKubernetesCluster) GetName returns the name of the resource

func (*ResourceKubernetesCluster) GetRorHash

func (r *ResourceKubernetesCluster) GetRorHash() string

(r *ResourceKubernetesCluster) GetRorHash calculates the hash of the resource

it uses the hashstructure library to calculate the hash of the resource fields can be ignored by adding the tag `hash:"ignore"` to the field

func (ResourceKubernetesCluster) GetRorMeta

(r ResourceKubernetesCluster) GetRorMeta returns the ResourceRorMeta of the resource

func (ResourceKubernetesCluster) GetUID

func (r ResourceKubernetesCluster) GetUID() string

(r ResourceKubernetesCluster) GetUID returns the UID of the resource

func (*ResourceKubernetesCluster) SetRorMeta

func (r *ResourceKubernetesCluster) SetRorMeta(rormeta ResourceRorMeta) error

(r *ResourceKubernetesCluster) SetRorMeta sets the ResourceRorMeta of the resource

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 ResourceNamespace

type ResourceNamespace struct {
	CommonResource `json:",inline"`
}

func (*ResourceNamespace) ApplyInputFilter

func (r *ResourceNamespace) ApplyInputFilter() error

(r *ResourceNamespace) ApplyInputFilter Applies the input filter to the resource

func (*ResourceNamespace) Get

(r ResourceNamespace) Get returns a pointer to the resource of type ResourceNamespace

func (ResourceNamespace) GetAPIVersion

func (r ResourceNamespace) GetAPIVersion() string

(r ResourceNamespace) GetAPIVersion returns the APIVersion of the resource

func (ResourceNamespace) GetKind

func (r ResourceNamespace) GetKind() string

(r ResourceNamespace) GetKind returns the kind of the resource

func (ResourceNamespace) GetMetadata

func (r ResourceNamespace) GetMetadata() metav1.ObjectMeta

(r ResourceNamespace) GetMetadata returns the metav1.ObjectMeta of the resource

func (ResourceNamespace) GetName

func (r ResourceNamespace) GetName() string

(r ResourceNamespace) GetName returns the name of the resource

func (*ResourceNamespace) GetRorHash

func (r *ResourceNamespace) GetRorHash() string

(r *ResourceNamespace) GetRorHash calculates the hash of the resource

it uses the hashstructure library to calculate the hash of the resource fields can be ignored by adding the tag `hash:"ignore"` to the field

func (ResourceNamespace) GetRorMeta

func (r ResourceNamespace) GetRorMeta() ResourceRorMeta

(r ResourceNamespace) GetRorMeta returns the ResourceRorMeta of the resource

func (ResourceNamespace) GetUID

func (r ResourceNamespace) GetUID() string

(r ResourceNamespace) GetUID returns the UID of the resource

func (*ResourceNamespace) SetRorMeta

func (r *ResourceNamespace) SetRorMeta(rormeta ResourceRorMeta) error

(r *ResourceNamespace) SetRorMeta sets the ResourceRorMeta of the resource

type ResourceNode

type ResourceNode struct {
	CommonResource `json:",inline"`
	Spec           ResourceNodeSpec   `json:"spec"`
	Status         ResourceNodeStatus `json:"status"`
}

K8s node struct

func (*ResourceNode) ApplyInputFilter

func (r *ResourceNode) ApplyInputFilter() error

(r *ResourceNode) ApplyInputFilter Applies the input filter to the resource

func (*ResourceNode) Get

func (r *ResourceNode) Get() *ResourceNode

(r ResourceNode) Get returns a pointer to the resource of type ResourceNode

func (ResourceNode) GetAPIVersion

func (r ResourceNode) GetAPIVersion() string

(r ResourceNode) GetAPIVersion returns the APIVersion of the resource

func (ResourceNode) GetKind

func (r ResourceNode) GetKind() string

(r ResourceNode) GetKind returns the kind of the resource

func (ResourceNode) GetMetadata

func (r ResourceNode) GetMetadata() metav1.ObjectMeta

(r ResourceNode) GetMetadata returns the metav1.ObjectMeta of the resource

func (ResourceNode) GetName

func (r ResourceNode) GetName() string

(r ResourceNode) GetName returns the name of the resource

func (*ResourceNode) GetRorHash

func (r *ResourceNode) GetRorHash() string

(r *ResourceNode) GetRorHash calculates the hash of the resource

it uses the hashstructure library to calculate the hash of the resource fields can be ignored by adding the tag `hash:"ignore"` to the field

func (ResourceNode) GetRorMeta

func (r ResourceNode) GetRorMeta() ResourceRorMeta

(r ResourceNode) GetRorMeta returns the ResourceRorMeta of the resource

func (ResourceNode) GetUID

func (r ResourceNode) GetUID() string

(r ResourceNode) GetUID returns the UID of the resource

func (*ResourceNode) SetRorMeta

func (r *ResourceNode) SetRorMeta(rormeta ResourceRorMeta) error

(r *ResourceNode) SetRorMeta sets the ResourceRorMeta of the resource

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 ResourcePersistentVolumeClaim

type ResourcePersistentVolumeClaim struct {
	CommonResource `json:",inline"`
	Spec           ResourcePersistentVolumeClaimSpec   `json:"spec"`
	Status         ResourcePersistentVolumeClaimStatus `json:"status"`
}

K8s PersistentVolumeClaim struct

func (*ResourcePersistentVolumeClaim) ApplyInputFilter

func (r *ResourcePersistentVolumeClaim) ApplyInputFilter() error

(r *ResourcePersistentVolumeClaim) ApplyInputFilter Applies the input filter to the resource

func (*ResourcePersistentVolumeClaim) Get

(r ResourcePersistentVolumeClaim) Get returns a pointer to the resource of type ResourcePersistentVolumeClaim

func (ResourcePersistentVolumeClaim) GetAPIVersion

func (r ResourcePersistentVolumeClaim) GetAPIVersion() string

(r ResourcePersistentVolumeClaim) GetAPIVersion returns the APIVersion of the resource

func (ResourcePersistentVolumeClaim) GetKind

(r ResourcePersistentVolumeClaim) GetKind returns the kind of the resource

func (ResourcePersistentVolumeClaim) GetMetadata

(r ResourcePersistentVolumeClaim) GetMetadata returns the metav1.ObjectMeta of the resource

func (ResourcePersistentVolumeClaim) GetName

(r ResourcePersistentVolumeClaim) GetName returns the name of the resource

func (*ResourcePersistentVolumeClaim) GetRorHash

func (r *ResourcePersistentVolumeClaim) GetRorHash() string

(r *ResourcePersistentVolumeClaim) GetRorHash calculates the hash of the resource

it uses the hashstructure library to calculate the hash of the resource fields can be ignored by adding the tag `hash:"ignore"` to the field

func (ResourcePersistentVolumeClaim) GetRorMeta

(r ResourcePersistentVolumeClaim) GetRorMeta returns the ResourceRorMeta of the resource

func (ResourcePersistentVolumeClaim) GetUID

(r ResourcePersistentVolumeClaim) GetUID returns the UID of the resource

func (*ResourcePersistentVolumeClaim) SetRorMeta

func (r *ResourcePersistentVolumeClaim) SetRorMeta(rormeta ResourceRorMeta) error

(r *ResourcePersistentVolumeClaim) SetRorMeta sets the ResourceRorMeta of the resource

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 ResourcePod

type ResourcePod struct {
	CommonResource `json:",inline"`
	Spec           ResourcePodSpec   `json:"spec"`
	Status         ResourcePodStatus `json:"status"`
}

ResourcePod K8s namepace struct

func (*ResourcePod) ApplyInputFilter

func (r *ResourcePod) ApplyInputFilter() error

(r *ResourcePod) ApplyInputFilter Applies the input filter to the resource

func (*ResourcePod) Get

func (r *ResourcePod) Get() *ResourcePod

(r ResourcePod) Get returns a pointer to the resource of type ResourcePod

func (ResourcePod) GetAPIVersion

func (r ResourcePod) GetAPIVersion() string

(r ResourcePod) GetAPIVersion returns the APIVersion of the resource

func (ResourcePod) GetKind

func (r ResourcePod) GetKind() string

(r ResourcePod) GetKind returns the kind of the resource

func (ResourcePod) GetMetadata

func (r ResourcePod) GetMetadata() metav1.ObjectMeta

(r ResourcePod) GetMetadata returns the metav1.ObjectMeta of the resource

func (ResourcePod) GetName

func (r ResourcePod) GetName() string

(r ResourcePod) GetName returns the name of the resource

func (*ResourcePod) GetRorHash

func (r *ResourcePod) GetRorHash() string

(r *ResourcePod) GetRorHash calculates the hash of the resource

it uses the hashstructure library to calculate the hash of the resource fields can be ignored by adding the tag `hash:"ignore"` to the field

func (ResourcePod) GetRorMeta

func (r ResourcePod) GetRorMeta() ResourceRorMeta

(r ResourcePod) GetRorMeta returns the ResourceRorMeta of the resource

func (ResourcePod) GetUID

func (r ResourcePod) GetUID() string

(r ResourcePod) GetUID returns the UID of the resource

func (*ResourcePod) SetRorMeta

func (r *ResourcePod) SetRorMeta(rormeta ResourceRorMeta) error

(r *ResourcePod) SetRorMeta sets the ResourceRorMeta of the resource

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 ResourcePolicyReport

type ResourcePolicyReport struct {
	CommonResource `json:",inline"`
	Results        []ResourcePolicyReportResults `json:"results"`
	Summary        ResourcePolicyReportSummary   `json:"summary"`
	LastReported   string                        `json:"lastReported,omitempty"`
}

K8s PolicyReport struct generated by kyverno

func (*ResourcePolicyReport) ApplyInputFilter

func (r *ResourcePolicyReport) ApplyInputFilter() error

(r *ResourcePolicyReport) ApplyInputFilter Applies the input filter to the resource

func (*ResourcePolicyReport) Get

(r ResourcePolicyReport) Get returns a pointer to the resource of type ResourcePolicyReport

func (ResourcePolicyReport) GetAPIVersion

func (r ResourcePolicyReport) GetAPIVersion() string

(r ResourcePolicyReport) GetAPIVersion returns the APIVersion of the resource

func (ResourcePolicyReport) GetKind

func (r ResourcePolicyReport) GetKind() string

(r ResourcePolicyReport) GetKind returns the kind of the resource

func (ResourcePolicyReport) GetMetadata

func (r ResourcePolicyReport) GetMetadata() metav1.ObjectMeta

(r ResourcePolicyReport) GetMetadata returns the metav1.ObjectMeta of the resource

func (ResourcePolicyReport) GetName

func (r ResourcePolicyReport) GetName() string

(r ResourcePolicyReport) GetName returns the name of the resource

func (*ResourcePolicyReport) GetRorHash

func (r *ResourcePolicyReport) GetRorHash() string

(r *ResourcePolicyReport) GetRorHash calculates the hash of the resource

it uses the hashstructure library to calculate the hash of the resource fields can be ignored by adding the tag `hash:"ignore"` to the field

func (ResourcePolicyReport) GetRorMeta

func (r ResourcePolicyReport) GetRorMeta() ResourceRorMeta

(r ResourcePolicyReport) GetRorMeta returns the ResourceRorMeta of the resource

func (ResourcePolicyReport) GetUID

func (r ResourcePolicyReport) GetUID() string

(r ResourcePolicyReport) GetUID returns the UID of the resource

func (*ResourcePolicyReport) SetRorMeta

func (r *ResourcePolicyReport) SetRorMeta(rormeta ResourceRorMeta) error

(r *ResourcePolicyReport) SetRorMeta sets the ResourceRorMeta of the resource

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 ResourceProject

type ResourceProject struct {
	CommonResource `json:",inline"`
	Spec           ResourceProjectSpec `json:"spec"`
}

func (*ResourceProject) ApplyInputFilter

func (r *ResourceProject) ApplyInputFilter() error

(r *ResourceProject) ApplyInputFilter Applies the input filter to the resource

func (*ResourceProject) Get

func (r *ResourceProject) Get() *ResourceProject

(r ResourceProject) Get returns a pointer to the resource of type ResourceProject

func (ResourceProject) GetAPIVersion

func (r ResourceProject) GetAPIVersion() string

(r ResourceProject) GetAPIVersion returns the APIVersion of the resource

func (ResourceProject) GetKind

func (r ResourceProject) GetKind() string

(r ResourceProject) GetKind returns the kind of the resource

func (ResourceProject) GetMetadata

func (r ResourceProject) GetMetadata() metav1.ObjectMeta

(r ResourceProject) GetMetadata returns the metav1.ObjectMeta of the resource

func (ResourceProject) GetName

func (r ResourceProject) GetName() string

(r ResourceProject) GetName returns the name of the resource

func (*ResourceProject) GetRorHash

func (r *ResourceProject) GetRorHash() string

(r *ResourceProject) GetRorHash calculates the hash of the resource

it uses the hashstructure library to calculate the hash of the resource fields can be ignored by adding the tag `hash:"ignore"` to the field

func (ResourceProject) GetRorMeta

func (r ResourceProject) GetRorMeta() ResourceRorMeta

(r ResourceProject) GetRorMeta returns the ResourceRorMeta of the resource

func (ResourceProject) GetUID

func (r ResourceProject) GetUID() string

(r ResourceProject) GetUID returns the UID of the resource

func (*ResourceProject) SetRorMeta

func (r *ResourceProject) SetRorMeta(rormeta ResourceRorMeta) error

(r *ResourceProject) SetRorMeta sets the ResourceRorMeta of the resource

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 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 ResourceProviderConfigTanzu

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

type ResourceRbacAssessmentReport

type ResourceRbacAssessmentReport struct {
	CommonResource `json:",inline"`
	Report         ResourceVulnerabilityReportReport `json:"report"`
}

K8s namepace struct

func (*ResourceRbacAssessmentReport) ApplyInputFilter

func (r *ResourceRbacAssessmentReport) ApplyInputFilter() error

(r *ResourceRbacAssessmentReport) ApplyInputFilter Applies the input filter to the resource

func (*ResourceRbacAssessmentReport) Get

(r ResourceRbacAssessmentReport) Get returns a pointer to the resource of type ResourceRbacAssessmentReport

func (ResourceRbacAssessmentReport) GetAPIVersion

func (r ResourceRbacAssessmentReport) GetAPIVersion() string

(r ResourceRbacAssessmentReport) GetAPIVersion returns the APIVersion of the resource

func (ResourceRbacAssessmentReport) GetKind

(r ResourceRbacAssessmentReport) GetKind returns the kind of the resource

func (ResourceRbacAssessmentReport) GetMetadata

(r ResourceRbacAssessmentReport) GetMetadata returns the metav1.ObjectMeta of the resource

func (ResourceRbacAssessmentReport) GetName

(r ResourceRbacAssessmentReport) GetName returns the name of the resource

func (*ResourceRbacAssessmentReport) GetRorHash

func (r *ResourceRbacAssessmentReport) GetRorHash() string

(r *ResourceRbacAssessmentReport) GetRorHash calculates the hash of the resource

it uses the hashstructure library to calculate the hash of the resource fields can be ignored by adding the tag `hash:"ignore"` to the field

func (ResourceRbacAssessmentReport) GetRorMeta

(r ResourceRbacAssessmentReport) GetRorMeta returns the ResourceRorMeta of the resource

func (ResourceRbacAssessmentReport) GetUID

(r ResourceRbacAssessmentReport) GetUID returns the UID of the resource

func (*ResourceRbacAssessmentReport) SetRorMeta

func (r *ResourceRbacAssessmentReport) SetRorMeta(rormeta ResourceRorMeta) error

(r *ResourceRbacAssessmentReport) SetRorMeta sets the ResourceRorMeta of the resource

type ResourceRbacAssessmentReportReport

type ResourceRbacAssessmentReportReport struct {
	Summary AquaReportSummary `json:"summary"`
	Scanner AquaReportScanner `json:"scanner"`
}

type ResourceReplicaSet

type ResourceReplicaSet struct {
	CommonResource `json:",inline"`
	Spec           ResourceReplicaSetSpec   `json:"spec"`
	Status         ResourceReplicaSetStatus `json:"status"`
}

K8s namepace struct

func (*ResourceReplicaSet) ApplyInputFilter

func (r *ResourceReplicaSet) ApplyInputFilter() error

(r *ResourceReplicaSet) ApplyInputFilter Applies the input filter to the resource

func (*ResourceReplicaSet) Get

(r ResourceReplicaSet) Get returns a pointer to the resource of type ResourceReplicaSet

func (ResourceReplicaSet) GetAPIVersion

func (r ResourceReplicaSet) GetAPIVersion() string

(r ResourceReplicaSet) GetAPIVersion returns the APIVersion of the resource

func (ResourceReplicaSet) GetKind

func (r ResourceReplicaSet) GetKind() string

(r ResourceReplicaSet) GetKind returns the kind of the resource

func (ResourceReplicaSet) GetMetadata

func (r ResourceReplicaSet) GetMetadata() metav1.ObjectMeta

(r ResourceReplicaSet) GetMetadata returns the metav1.ObjectMeta of the resource

func (ResourceReplicaSet) GetName

func (r ResourceReplicaSet) GetName() string

(r ResourceReplicaSet) GetName returns the name of the resource

func (*ResourceReplicaSet) GetRorHash

func (r *ResourceReplicaSet) GetRorHash() string

(r *ResourceReplicaSet) GetRorHash calculates the hash of the resource

it uses the hashstructure library to calculate the hash of the resource fields can be ignored by adding the tag `hash:"ignore"` to the field

func (ResourceReplicaSet) GetRorMeta

func (r ResourceReplicaSet) GetRorMeta() ResourceRorMeta

(r ResourceReplicaSet) GetRorMeta returns the ResourceRorMeta of the resource

func (ResourceReplicaSet) GetUID

func (r ResourceReplicaSet) GetUID() string

(r ResourceReplicaSet) GetUID returns the UID of the resource

func (*ResourceReplicaSet) SetRorMeta

func (r *ResourceReplicaSet) SetRorMeta(rormeta ResourceRorMeta) error

(r *ResourceReplicaSet) SetRorMeta sets the ResourceRorMeta of the resource

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 ResourceRorMeta

type ResourceRorMeta struct {
	Version      string                    `json:"version,omitempty"`
	LastReported string                    `json:"lastReported,omitempty"`
	Internal     bool                      `json:"internal,omitempty"`
	Hash         string                    `json:"hash,omitempty"`
	Ownerref     RorResourceOwnerReference `json:"ownerref,omitempty"`
	Action       ResourceAction            `json:"action,omitempty"`
}

ResourceRorMeta represents the metadata stored by ror

type ResourceService

type ResourceService struct {
	CommonResource `json:",inline"`
	Spec           ResourceServiceSpec `json:"spec"`
}

ResourceService K8s PolicyReport struct generated by kyverno

func (*ResourceService) ApplyInputFilter

func (r *ResourceService) ApplyInputFilter() error

(r *ResourceService) ApplyInputFilter Applies the input filter to the resource

func (*ResourceService) Get

func (r *ResourceService) Get() *ResourceService

(r ResourceService) Get returns a pointer to the resource of type ResourceService

func (ResourceService) GetAPIVersion

func (r ResourceService) GetAPIVersion() string

(r ResourceService) GetAPIVersion returns the APIVersion of the resource

func (ResourceService) GetKind

func (r ResourceService) GetKind() string

(r ResourceService) GetKind returns the kind of the resource

func (ResourceService) GetMetadata

func (r ResourceService) GetMetadata() metav1.ObjectMeta

(r ResourceService) GetMetadata returns the metav1.ObjectMeta of the resource

func (ResourceService) GetName

func (r ResourceService) GetName() string

(r ResourceService) GetName returns the name of the resource

func (*ResourceService) GetRorHash

func (r *ResourceService) GetRorHash() string

(r *ResourceService) GetRorHash calculates the hash of the resource

it uses the hashstructure library to calculate the hash of the resource fields can be ignored by adding the tag `hash:"ignore"` to the field

func (ResourceService) GetRorMeta

func (r ResourceService) GetRorMeta() ResourceRorMeta

(r ResourceService) GetRorMeta returns the ResourceRorMeta of the resource

func (ResourceService) GetUID

func (r ResourceService) GetUID() string

(r ResourceService) GetUID returns the UID of the resource

func (*ResourceService) SetRorMeta

func (r *ResourceService) SetRorMeta(rormeta ResourceRorMeta) error

(r *ResourceService) SetRorMeta sets the ResourceRorMeta of the resource

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 ResourceStatefulSet

type ResourceStatefulSet struct {
	CommonResource `json:",inline"`
	Status         ResourceStatefulSetStatus `json:"status"`
}

K8s deployment struct

func (*ResourceStatefulSet) ApplyInputFilter

func (r *ResourceStatefulSet) ApplyInputFilter() error

(r *ResourceStatefulSet) ApplyInputFilter Applies the input filter to the resource

func (*ResourceStatefulSet) Get

(r ResourceStatefulSet) Get returns a pointer to the resource of type ResourceStatefulSet

func (ResourceStatefulSet) GetAPIVersion

func (r ResourceStatefulSet) GetAPIVersion() string

(r ResourceStatefulSet) GetAPIVersion returns the APIVersion of the resource

func (ResourceStatefulSet) GetKind

func (r ResourceStatefulSet) GetKind() string

(r ResourceStatefulSet) GetKind returns the kind of the resource

func (ResourceStatefulSet) GetMetadata

func (r ResourceStatefulSet) GetMetadata() metav1.ObjectMeta

(r ResourceStatefulSet) GetMetadata returns the metav1.ObjectMeta of the resource

func (ResourceStatefulSet) GetName

func (r ResourceStatefulSet) GetName() string

(r ResourceStatefulSet) GetName returns the name of the resource

func (*ResourceStatefulSet) GetRorHash

func (r *ResourceStatefulSet) GetRorHash() string

(r *ResourceStatefulSet) GetRorHash calculates the hash of the resource

it uses the hashstructure library to calculate the hash of the resource fields can be ignored by adding the tag `hash:"ignore"` to the field

func (ResourceStatefulSet) GetRorMeta

func (r ResourceStatefulSet) GetRorMeta() ResourceRorMeta

(r ResourceStatefulSet) GetRorMeta returns the ResourceRorMeta of the resource

func (ResourceStatefulSet) GetUID

func (r ResourceStatefulSet) GetUID() string

(r ResourceStatefulSet) GetUID returns the UID of the resource

func (*ResourceStatefulSet) SetRorMeta

func (r *ResourceStatefulSet) SetRorMeta(rormeta ResourceRorMeta) error

(r *ResourceStatefulSet) SetRorMeta sets the ResourceRorMeta of the resource

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 ResourceStorageClass

type ResourceStorageClass struct {
	CommonResource       `json:",inline"`
	AllowVolumeExpansion bool   `json:"allowVolumeExpansion"`
	Provisioner          string `json:"provisioner"`
	ReclaimPolicy        string `json:"reclaimPolicy"`
	VolumeBindingMode    string `json:"volumeBindingMode"`
}

K8s StorageClass struct

func (*ResourceStorageClass) ApplyInputFilter

func (r *ResourceStorageClass) ApplyInputFilter() error

(r *ResourceStorageClass) ApplyInputFilter Applies the input filter to the resource

func (*ResourceStorageClass) Get

(r ResourceStorageClass) Get returns a pointer to the resource of type ResourceStorageClass

func (ResourceStorageClass) GetAPIVersion

func (r ResourceStorageClass) GetAPIVersion() string

(r ResourceStorageClass) GetAPIVersion returns the APIVersion of the resource

func (ResourceStorageClass) GetKind

func (r ResourceStorageClass) GetKind() string

(r ResourceStorageClass) GetKind returns the kind of the resource

func (ResourceStorageClass) GetMetadata

func (r ResourceStorageClass) GetMetadata() metav1.ObjectMeta

(r ResourceStorageClass) GetMetadata returns the metav1.ObjectMeta of the resource

func (ResourceStorageClass) GetName

func (r ResourceStorageClass) GetName() string

(r ResourceStorageClass) GetName returns the name of the resource

func (*ResourceStorageClass) GetRorHash

func (r *ResourceStorageClass) GetRorHash() string

(r *ResourceStorageClass) GetRorHash calculates the hash of the resource

it uses the hashstructure library to calculate the hash of the resource fields can be ignored by adding the tag `hash:"ignore"` to the field

func (ResourceStorageClass) GetRorMeta

func (r ResourceStorageClass) GetRorMeta() ResourceRorMeta

(r ResourceStorageClass) GetRorMeta returns the ResourceRorMeta of the resource

func (ResourceStorageClass) GetUID

func (r ResourceStorageClass) GetUID() string

(r ResourceStorageClass) GetUID returns the UID of the resource

func (*ResourceStorageClass) SetRorMeta

func (r *ResourceStorageClass) SetRorMeta(rormeta ResourceRorMeta) error

(r *ResourceStorageClass) SetRorMeta sets the ResourceRorMeta of the resource

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 {
	CommonResource `json:",inline"`
	Spec           ResourceTanuzKuberntesClusterSpec    `json:"spec"`
	Status         ResourceTanzuKubernetesClusterStatus `json:"status,omitempty"`
}

ResourceTanzuKubernetesCluster K8s node struct

func (*ResourceTanzuKubernetesCluster) ApplyInputFilter

func (r *ResourceTanzuKubernetesCluster) ApplyInputFilter() error

(r *ResourceTanzuKubernetesCluster) ApplyInputFilter Applies the input filter to the resource

func (*ResourceTanzuKubernetesCluster) Get

(r ResourceTanzuKubernetesCluster) Get returns a pointer to the resource of type ResourceTanzuKubernetesCluster

func (ResourceTanzuKubernetesCluster) GetAPIVersion

func (r ResourceTanzuKubernetesCluster) GetAPIVersion() string

(r ResourceTanzuKubernetesCluster) GetAPIVersion returns the APIVersion of the resource

func (ResourceTanzuKubernetesCluster) GetKind

(r ResourceTanzuKubernetesCluster) GetKind returns the kind of the resource

func (ResourceTanzuKubernetesCluster) GetMetadata

(r ResourceTanzuKubernetesCluster) GetMetadata returns the metav1.ObjectMeta of the resource

func (ResourceTanzuKubernetesCluster) GetName

(r ResourceTanzuKubernetesCluster) GetName returns the name of the resource

func (*ResourceTanzuKubernetesCluster) GetRorHash

func (r *ResourceTanzuKubernetesCluster) GetRorHash() string

(r *ResourceTanzuKubernetesCluster) GetRorHash calculates the hash of the resource

it uses the hashstructure library to calculate the hash of the resource fields can be ignored by adding the tag `hash:"ignore"` to the field

func (ResourceTanzuKubernetesCluster) GetRorMeta

(r ResourceTanzuKubernetesCluster) GetRorMeta returns the ResourceRorMeta of the resource

func (ResourceTanzuKubernetesCluster) GetUID

(r ResourceTanzuKubernetesCluster) GetUID returns the UID of the resource

func (*ResourceTanzuKubernetesCluster) SetRorMeta

func (r *ResourceTanzuKubernetesCluster) SetRorMeta(rormeta ResourceRorMeta) error

(r *ResourceTanzuKubernetesCluster) SetRorMeta sets the ResourceRorMeta of the resource

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 {
	CommonResource `json:",inline"`
	Spec           ResourceTanzuKubernetesReleaseSpec   `json:"spec"`
	Status         ResourceTanzuKubernetesReleaseStatus `json:"status"`
}

ResourceTanzuKubernetesCluster K8s node struct Tanzu kubernetes release struct

func (*ResourceTanzuKubernetesRelease) ApplyInputFilter

func (r *ResourceTanzuKubernetesRelease) ApplyInputFilter() error

(r *ResourceTanzuKubernetesRelease) ApplyInputFilter Applies the input filter to the resource

func (*ResourceTanzuKubernetesRelease) Get

(r ResourceTanzuKubernetesRelease) Get returns a pointer to the resource of type ResourceTanzuKubernetesRelease

func (ResourceTanzuKubernetesRelease) GetAPIVersion

func (r ResourceTanzuKubernetesRelease) GetAPIVersion() string

(r ResourceTanzuKubernetesRelease) GetAPIVersion returns the APIVersion of the resource

func (ResourceTanzuKubernetesRelease) GetKind

(r ResourceTanzuKubernetesRelease) GetKind returns the kind of the resource

func (ResourceTanzuKubernetesRelease) GetMetadata

(r ResourceTanzuKubernetesRelease) GetMetadata returns the metav1.ObjectMeta of the resource

func (ResourceTanzuKubernetesRelease) GetName

(r ResourceTanzuKubernetesRelease) GetName returns the name of the resource

func (*ResourceTanzuKubernetesRelease) GetRorHash

func (r *ResourceTanzuKubernetesRelease) GetRorHash() string

(r *ResourceTanzuKubernetesRelease) GetRorHash calculates the hash of the resource

it uses the hashstructure library to calculate the hash of the resource fields can be ignored by adding the tag `hash:"ignore"` to the field

func (ResourceTanzuKubernetesRelease) GetRorMeta

(r ResourceTanzuKubernetesRelease) GetRorMeta returns the ResourceRorMeta of the resource

func (ResourceTanzuKubernetesRelease) GetUID

(r ResourceTanzuKubernetesRelease) GetUID returns the UID of the resource

func (*ResourceTanzuKubernetesRelease) SetRorMeta

func (r *ResourceTanzuKubernetesRelease) SetRorMeta(rormeta ResourceRorMeta) error

(r *ResourceTanzuKubernetesRelease) SetRorMeta sets the ResourceRorMeta of the resource

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 ResourceVirtualMachineClass

type ResourceVirtualMachineClass struct {
	CommonResource `json:",inline"`
	Spec           ResourceVirtualMachineClassSpec `json:"spec"`
	Status         map[string]string               `json:"status"`
}

ResourceTanzuKubernetesCluster K8s node struct Tanzu kubernetes release struct

func (*ResourceVirtualMachineClass) ApplyInputFilter

func (r *ResourceVirtualMachineClass) ApplyInputFilter() error

(r *ResourceVirtualMachineClass) ApplyInputFilter Applies the input filter to the resource

func (*ResourceVirtualMachineClass) Get

(r ResourceVirtualMachineClass) Get returns a pointer to the resource of type ResourceVirtualMachineClass

func (ResourceVirtualMachineClass) GetAPIVersion

func (r ResourceVirtualMachineClass) GetAPIVersion() string

(r ResourceVirtualMachineClass) GetAPIVersion returns the APIVersion of the resource

func (ResourceVirtualMachineClass) GetKind

func (r ResourceVirtualMachineClass) GetKind() string

(r ResourceVirtualMachineClass) GetKind returns the kind of the resource

func (ResourceVirtualMachineClass) GetMetadata

(r ResourceVirtualMachineClass) GetMetadata returns the metav1.ObjectMeta of the resource

func (ResourceVirtualMachineClass) GetName

func (r ResourceVirtualMachineClass) GetName() string

(r ResourceVirtualMachineClass) GetName returns the name of the resource

func (*ResourceVirtualMachineClass) GetRorHash

func (r *ResourceVirtualMachineClass) GetRorHash() string

(r *ResourceVirtualMachineClass) GetRorHash calculates the hash of the resource

it uses the hashstructure library to calculate the hash of the resource fields can be ignored by adding the tag `hash:"ignore"` to the field

func (ResourceVirtualMachineClass) GetRorMeta

(r ResourceVirtualMachineClass) GetRorMeta returns the ResourceRorMeta of the resource

func (ResourceVirtualMachineClass) GetUID

(r ResourceVirtualMachineClass) GetUID returns the UID of the resource

func (*ResourceVirtualMachineClass) SetRorMeta

func (r *ResourceVirtualMachineClass) SetRorMeta(rormeta ResourceRorMeta) error

(r *ResourceVirtualMachineClass) SetRorMeta sets the ResourceRorMeta of the resource

type ResourceVirtualMachineClassBinding

type ResourceVirtualMachineClassBinding struct {
	CommonResource `json:",inline"`
	ClassRef       ResourceVirtualMachineClassBindingClassRef `json:"classRef"`
}

ResourceTanzuKubernetesCluster K8s node struct Tanzu kubernetes release struct

func (*ResourceVirtualMachineClassBinding) ApplyInputFilter

func (r *ResourceVirtualMachineClassBinding) ApplyInputFilter() error

(r *ResourceVirtualMachineClassBinding) ApplyInputFilter Applies the input filter to the resource

func (*ResourceVirtualMachineClassBinding) Get

(r ResourceVirtualMachineClassBinding) Get returns a pointer to the resource of type ResourceVirtualMachineClassBinding

func (ResourceVirtualMachineClassBinding) GetAPIVersion

func (r ResourceVirtualMachineClassBinding) GetAPIVersion() string

(r ResourceVirtualMachineClassBinding) GetAPIVersion returns the APIVersion of the resource

func (ResourceVirtualMachineClassBinding) GetKind

(r ResourceVirtualMachineClassBinding) GetKind returns the kind of the resource

func (ResourceVirtualMachineClassBinding) GetMetadata

(r ResourceVirtualMachineClassBinding) GetMetadata returns the metav1.ObjectMeta of the resource

func (ResourceVirtualMachineClassBinding) GetName

(r ResourceVirtualMachineClassBinding) GetName returns the name of the resource

func (*ResourceVirtualMachineClassBinding) GetRorHash

(r *ResourceVirtualMachineClassBinding) GetRorHash calculates the hash of the resource

it uses the hashstructure library to calculate the hash of the resource fields can be ignored by adding the tag `hash:"ignore"` to the field

func (ResourceVirtualMachineClassBinding) GetRorMeta

(r ResourceVirtualMachineClassBinding) GetRorMeta returns the ResourceRorMeta of the resource

func (ResourceVirtualMachineClassBinding) GetUID

(r ResourceVirtualMachineClassBinding) GetUID returns the UID of the resource

func (*ResourceVirtualMachineClassBinding) SetRorMeta

(r *ResourceVirtualMachineClassBinding) SetRorMeta sets the ResourceRorMeta of the resource

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 ResourceVulnerabilityReport

type ResourceVulnerabilityReport struct {
	CommonResource `json:",inline"`
	Report         ResourceVulnerabilityReportReport `json:"report"`
}

K8s namepace struct

func (*ResourceVulnerabilityReport) ApplyInputFilter

func (r *ResourceVulnerabilityReport) ApplyInputFilter() error

(r *ResourceVulnerabilityReport) ApplyInputFilter Applies the input filter to the resource

func (*ResourceVulnerabilityReport) Get

(r ResourceVulnerabilityReport) Get returns a pointer to the resource of type ResourceVulnerabilityReport

func (ResourceVulnerabilityReport) GetAPIVersion

func (r ResourceVulnerabilityReport) GetAPIVersion() string

(r ResourceVulnerabilityReport) GetAPIVersion returns the APIVersion of the resource

func (ResourceVulnerabilityReport) GetKind

func (r ResourceVulnerabilityReport) GetKind() string

(r ResourceVulnerabilityReport) GetKind returns the kind of the resource

func (ResourceVulnerabilityReport) GetMetadata

(r ResourceVulnerabilityReport) GetMetadata returns the metav1.ObjectMeta of the resource

func (ResourceVulnerabilityReport) GetName

func (r ResourceVulnerabilityReport) GetName() string

(r ResourceVulnerabilityReport) GetName returns the name of the resource

func (*ResourceVulnerabilityReport) GetRorHash

func (r *ResourceVulnerabilityReport) GetRorHash() string

(r *ResourceVulnerabilityReport) GetRorHash calculates the hash of the resource

it uses the hashstructure library to calculate the hash of the resource fields can be ignored by adding the tag `hash:"ignore"` to the field

func (ResourceVulnerabilityReport) GetRorMeta

(r ResourceVulnerabilityReport) GetRorMeta returns the ResourceRorMeta of the resource

func (ResourceVulnerabilityReport) GetUID

(r ResourceVulnerabilityReport) GetUID returns the UID of the resource

func (*ResourceVulnerabilityReport) SetRorMeta

func (r *ResourceVulnerabilityReport) SetRorMeta(rormeta ResourceRorMeta) error

(r *ResourceVulnerabilityReport) SetRorMeta sets the ResourceRorMeta of the resource

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 RorResourceOwnerReference

type RorResourceOwnerReference struct {
	Scope   aclmodels.Acl2Scope   `json:"scope"`   // cluster, workspace,...
	Subject aclmodels.Acl2Subject `json:"subject"` // ror id eg clusterId or workspaceName
}

The RorResourceOwnerReference or ownereref references the owner og a resource. Its used to chek acl and select resources for valid Scopes.

func (RorResourceOwnerReference) GetQueryParams added in v0.1.6

func (r RorResourceOwnerReference) GetQueryParams() map[string]string

func (*RorResourceOwnerReference) Validate

func (r *RorResourceOwnerReference) Validate() (bool, error)

Validate validates the ResourceOwnerReference

type SensitivityLevel

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

type Serviceinterface

type Serviceinterface interface {
	CommonResourceInterface
	Get() *ResourceService
}

Serviceinterface represents the interface for resources of the type service

type StatefulSetinterface

type StatefulSetinterface interface {
	CommonResourceInterface
	Get() *ResourceStatefulSet
}

StatefulSetinterface represents the interface for resources of the type statefulset

type StorageClassinterface

type StorageClassinterface interface {
	CommonResourceInterface
	Get() *ResourceStorageClass
}

StorageClassinterface represents the interface for resources of the type storageclass

type TanzuKubernetesClusterinterface

type TanzuKubernetesClusterinterface interface {
	CommonResourceInterface
	Get() *ResourceTanzuKubernetesCluster
}

TanzuKubernetesClusterinterface represents the interface for resources of the type tanzukubernetescluster

type TanzuKubernetesReleaseinterface

type TanzuKubernetesReleaseinterface interface {
	CommonResourceInterface
	Get() *ResourceTanzuKubernetesRelease
}

TanzuKubernetesReleaseinterface represents the interface for resources of the type tanzukubernetesrelease

type VirtualMachineClassBindinginterface

type VirtualMachineClassBindinginterface interface {
	CommonResourceInterface
	Get() *ResourceVirtualMachineClassBinding
}

VirtualMachineClassBindinginterface represents the interface for resources of the type virtualmachineclassbinding

type VirtualMachineClassinterface

type VirtualMachineClassinterface interface {
	CommonResourceInterface
	Get() *ResourceVirtualMachineClass
}

VirtualMachineClassinterface represents the interface for resources of the type virtualmachineclass

type VulnerabilityReportinterface

type VulnerabilityReportinterface interface {
	CommonResourceInterface
	Get() *ResourceVulnerabilityReport
}

VulnerabilityReportinterface represents the interface for resources of the type vulnerabilityreport

Source Files

Jump to

Keyboard shortcuts

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