diff --git a/go.mod b/go.mod index e1e6e3fe0..71dd1c3ce 100644 --- a/go.mod +++ b/go.mod @@ -10,7 +10,7 @@ require ( github.com/containers/common v0.59.0 github.com/deckarep/golang-set/v2 v2.6.0 github.com/go-logr/zapr v1.2.4 - github.com/google/gofuzz v1.2.0 + github.com/gogo/protobuf v1.3.2 github.com/goradd/maps v0.1.5 github.com/kubescape/go-logger v0.0.22 github.com/kubescape/k8s-interface v0.0.162 @@ -81,13 +81,13 @@ require ( github.com/go-openapi/jsonpointer v0.21.0 // indirect github.com/go-openapi/jsonreference v0.21.0 // indirect github.com/go-openapi/swag v0.23.0 // indirect - github.com/gogo/protobuf v1.3.2 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/protobuf v1.5.4 // indirect github.com/google/cel-go v0.17.7 // indirect github.com/google/gnostic-models v0.6.8 // indirect github.com/google/go-cmp v0.6.0 // indirect github.com/google/go-containerregistry v0.19.1 // indirect + github.com/google/gofuzz v1.2.0 // indirect github.com/google/uuid v1.6.0 // indirect github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.0 // indirect diff --git a/pkg/apis/softwarecomposition/fuzzer/fuzzer.go b/pkg/apis/softwarecomposition/fuzzer/fuzzer.go deleted file mode 100644 index bf01cfa13..000000000 --- a/pkg/apis/softwarecomposition/fuzzer/fuzzer.go +++ /dev/null @@ -1,99 +0,0 @@ -/* -Copyright 2017 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package fuzzer - -import ( - "encoding/json" - - fuzz "github.com/google/gofuzz" - "github.com/kubescape/storage/pkg/apis/softwarecomposition" - - runtimeserializer "k8s.io/apimachinery/pkg/runtime/serializer" -) - -func fuzzDocElementID(dei *softwarecomposition.DocElementID, c fuzz.Continue) { - c.FuzzNoCustom(dei) - - dei.ElementRefID = softwarecomposition.ElementID("3ec7e593276354ae") -} - -func fuzzSupplier(s *softwarecomposition.Supplier, c fuzz.Continue) { - s.Supplier = "John Doe" - s.SupplierType = "Person" -} - -func fuzzAnnotator(a *softwarecomposition.Annotator, c fuzz.Continue) { - a.Annotator = "Kubescape" - a.AnnotatorType = "Tool" -} - -func fuzzOriginator(o *softwarecomposition.Originator, c fuzz.Continue) { - o.Originator = "John Doe" - o.OriginatorType = "Person" -} - -func fuzzFile(f *softwarecomposition.File, c fuzz.Continue) { - c.FuzzNoCustom(f) - - // Snippets are not exported, not expected to round trip - f.Snippets = nil -} - -func fuzzDocument(d *softwarecomposition.Document, c fuzz.Continue) { - c.FuzzNoCustom(d) - - // Reviews are not exported, not expected to round trip - d.Reviews = nil -} - -func fuzzCreator(cr *softwarecomposition.Creator, c fuzz.Continue) { - c.FuzzNoCustom(cr) - - cr.Creator = "John Doe " -} - -// fuzzJsonRawMessage returns a fuzzed value for the apiextensions JSON format -// -// At the moment this returns a valid JSON-encoded string -func fuzzJsonRawMessage(j *json.RawMessage, c fuzz.Continue) { - encodedString, err := json.Marshal(c.RandString()) - if err != nil { - panic(err) - } - - err = j.UnmarshalJSON(encodedString) - if err != nil { - panic(err) - } -} - -// Funcs returns the fuzzer functions for the apps api group. -var Funcs = func(codecs runtimeserializer.CodecFactory) []interface{} { - return []interface{}{ - func(s *softwarecomposition.SBOMSPDXv2p3Spec, c fuzz.Continue) { - c.FuzzNoCustom(s) // fuzz self without calling this function again - }, - fuzzDocument, - fuzzDocElementID, - fuzzSupplier, - fuzzAnnotator, - fuzzOriginator, - fuzzFile, - fuzzCreator, - fuzzJsonRawMessage, - } -} diff --git a/pkg/apis/softwarecomposition/grype_types.go b/pkg/apis/softwarecomposition/grype_types.go index ea2c084f5..6857fdf54 100644 --- a/pkg/apis/softwarecomposition/grype_types.go +++ b/pkg/apis/softwarecomposition/grype_types.go @@ -129,5 +129,5 @@ type GrypeDocument struct { IgnoredMatches []IgnoredMatch Source *Source Distro Distribution - Descriptor Descriptor + Descriptor_ Descriptor } diff --git a/pkg/apis/softwarecomposition/install/roundtrip_test.go b/pkg/apis/softwarecomposition/install/roundtrip_test.go deleted file mode 100644 index f31975d32..000000000 --- a/pkg/apis/softwarecomposition/install/roundtrip_test.go +++ /dev/null @@ -1,78 +0,0 @@ -/* -Copyright 2017 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package install - -import ( - "math/rand" - "regexp" - "testing" - - "github.com/kubescape/storage/pkg/apis/softwarecomposition" - wardlefuzzer "github.com/kubescape/storage/pkg/apis/softwarecomposition/fuzzer" - - "k8s.io/apimachinery/pkg/api/apitesting/fuzzer" - "k8s.io/apimachinery/pkg/api/apitesting/roundtrip" - metafuzzer "k8s.io/apimachinery/pkg/apis/meta/fuzzer" - "k8s.io/apimachinery/pkg/runtime" - "k8s.io/apimachinery/pkg/runtime/schema" - runtimeserializer "k8s.io/apimachinery/pkg/runtime/serializer" -) - -func TestRoundTripTypes(t *testing.T) { - installFn := Install - fuzzingFuncs := wardlefuzzer.Funcs - - scheme := runtime.NewScheme() - installFn(scheme) - - codecFactory := runtimeserializer.NewCodecFactory(scheme) - f := fuzzer.FuzzerFor( - fuzzer.MergeFuzzerFuncs(metafuzzer.Funcs, fuzzingFuncs), - rand.NewSource(rand.Int63()), - codecFactory, - ) - f.NumElements(1, 2) - f.NilChance(0) - - nonRoundTrippableTypes := map[schema.GroupVersionKind]bool{ - // Syft types use custom JSON unmarshaling, so they are not round-trippable by definition - softwarecomposition.SchemeGroupVersion.WithKind("SBOMSyft"): true, - softwarecomposition.SchemeGroupVersion.WithKind("SBOMSyftList"): true, - softwarecomposition.SchemeGroupVersion.WithKind("SBOMSyftFiltered"): true, - softwarecomposition.SchemeGroupVersion.WithKind("SBOMSyftFilteredList"): true, - } - - skippedFields := []string{ - "SnippetAttributionTexts", - "SpecialID", - "IsUnpackaged", - "IsFilesAnalyzedTagPresent", - "ManagedFields", - "SnippetSPDXIdentifier", - "Snippets", - "DocumentRefID", - "ElementRefID", - // Not exported - "AnnotationSPDXIdentifier", - } - for idx := range skippedFields { - skipPattern := regexp.MustCompile(skippedFields[idx]) - f.SkipFieldsWithPattern(skipPattern) - } - - roundtrip.RoundTripTypesWithoutProtobuf(t, scheme, codecFactory, f, nonRoundTrippableTypes) -} diff --git a/pkg/apis/softwarecomposition/networkpolicy.go b/pkg/apis/softwarecomposition/networkpolicy.go index 6d5699efd..af3681a0f 100644 --- a/pkg/apis/softwarecomposition/networkpolicy.go +++ b/pkg/apis/softwarecomposition/networkpolicy.go @@ -7,14 +7,14 @@ import ( // NetworkPolicy describes what network traffic is allowed for a set of Pods type NetworkPolicy struct { - Kind string `json:"kind,omitempty" protobuf:"bytes,1,opt,name=kind"` - APIVersion string `json:"apiVersion,omitempty" protobuf:"bytes,2,opt,name=apiVersion"` + Kind string + APIVersion string - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + metav1.ObjectMeta // spec represents the specification of the desired behavior for this NetworkPolicy. - Spec NetworkPolicySpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` + Spec NetworkPolicySpec } // PolicyType string describes the NetworkPolicy type @@ -31,38 +31,38 @@ const ( // NetworkPolicySpec provides the specification of a NetworkPolicy type NetworkPolicySpec struct { - PodSelector metav1.LabelSelector `json:"podSelector" protobuf:"bytes,1,opt,name=podSelector"` - Ingress []NetworkPolicyIngressRule `json:"ingress" protobuf:"bytes,2,rep,name=ingress"` + PodSelector metav1.LabelSelector + Ingress []NetworkPolicyIngressRule - Egress []NetworkPolicyEgressRule `json:"egress" protobuf:"bytes,3,rep,name=egress"` + Egress []NetworkPolicyEgressRule - PolicyTypes []PolicyType `json:"policyTypes" protobuf:"bytes,4,rep,name=policyTypes,casttype=PolicyType"` + PolicyTypes []PolicyType } // NetworkPolicyIngressRule describes a particular set of traffic that is allowed to the pods // matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and from. type NetworkPolicyIngressRule struct { - Ports []NetworkPolicyPort `json:"ports,omitempty" protobuf:"bytes,1,rep,name=ports"` + Ports []NetworkPolicyPort - From []NetworkPolicyPeer `json:"from,omitempty" protobuf:"bytes,2,rep,name=from"` + From []NetworkPolicyPeer } // NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods // matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. // This type is beta-level in 1.8 type NetworkPolicyEgressRule struct { - Ports []NetworkPolicyPort `json:"ports,omitempty" protobuf:"bytes,1,rep,name=ports"` + Ports []NetworkPolicyPort - To []NetworkPolicyPeer `json:"to,omitempty" protobuf:"bytes,2,rep,name=to"` + To []NetworkPolicyPeer } // NetworkPolicyPort describes a port to allow traffic on type NetworkPolicyPort struct { - Protocol *v1.Protocol `json:"protocol,omitempty" protobuf:"bytes,1,opt,name=protocol,casttype=k8s.io/api/core/v1.Protocol"` + Protocol *v1.Protocol - Port *int32 `json:"port,omitempty" protobuf:"bytes,2,opt,name=port"` + Port *int32 - EndPort *int32 `json:"endPort,omitempty" protobuf:"bytes,3,opt,name=endPort"` + EndPort *int32 } type Type int64 @@ -73,15 +73,15 @@ type Type int64 type IPBlock struct { // cidr is a string representing the IPBlock // Valid examples are "192.168.1.0/24" or "2001:db8::/64" - CIDR string `json:"cidr" protobuf:"bytes,1,name=cidr"` + CIDR string - Except []string `json:"except,omitempty" protobuf:"bytes,2,rep,name=except"` + Except []string } // NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of // fields are allowed type NetworkPolicyPeer struct { - PodSelector *metav1.LabelSelector `json:"podSelector,omitempty" protobuf:"bytes,1,opt,name=podSelector"` + PodSelector *metav1.LabelSelector // namespaceSelector selects namespaces using cluster-scoped labels. This field follows // standard label selector semantics; if present but empty, it selects all namespaces. @@ -90,12 +90,12 @@ type NetworkPolicyPeer struct { // the pods matching podSelector in the namespaces selected by namespaceSelector. // Otherwise it selects all pods in the namespaces selected by namespaceSelector. - NamespaceSelector *metav1.LabelSelector `json:"namespaceSelector,omitempty" protobuf:"bytes,2,opt,name=namespaceSelector"` + NamespaceSelector *metav1.LabelSelector // ipBlock defines policy on a particular IPBlock. If this field is set then // neither of the other fields can be. - IPBlock *IPBlock `json:"ipBlock,omitempty" protobuf:"bytes,3,rep,name=ipBlock"` + IPBlock *IPBlock } // NetworkPolicyConditionType is the type for status conditions on @@ -137,20 +137,20 @@ type NetworkPolicyStatus struct { // +patchStrategy=merge // +listType=map // +listMapKey=type - Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"` + Conditions []metav1.Condition } // NetworkPolicyList is a list of NetworkPolicy objects. type NetworkPolicyList struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // Standard list metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + metav1.ListMeta // items is a list of schema objects. - Items []NetworkPolicy `json:"items" protobuf:"bytes,2,rep,name=items"` + Items []NetworkPolicy } // Ingress is a collection of rules that allow inbound connections to reach the @@ -158,35 +158,35 @@ type NetworkPolicyList struct { // externally-reachable urls, load balance traffic, terminate SSL, offer name // based virtual hosting etc. type Ingress struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // Standard object's metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + metav1.ObjectMeta // spec is the desired state of the Ingress. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - Spec IngressSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` + Spec IngressSpec // status is the current state of the Ingress. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - Status IngressStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` + Status IngressStatus } // IngressList is a collection of Ingress. type IngressList struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // Standard object's metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + metav1.ListMeta // items is the list of Ingress. - Items []Ingress `json:"items" protobuf:"bytes,2,rep,name=items"` + Items []Ingress } // IngressSpec describes the Ingress the user wishes to exist. @@ -202,14 +202,14 @@ type IngressSpec struct { // though the annotation is officially deprecated, for backwards compatibility // reasons, ingress controllers should still honor that annotation if present. - IngressClassName *string `json:"ingressClassName,omitempty" protobuf:"bytes,4,opt,name=ingressClassName"` + IngressClassName *string // defaultBackend is the backend that should handle requests that don't // match any rule. If Rules are not specified, DefaultBackend must be specified. // If DefaultBackend is not set, the handling of requests that do not match any // of the rules will be up to the Ingress controller. - DefaultBackend *IngressBackend `json:"defaultBackend,omitempty" protobuf:"bytes,1,opt,name=defaultBackend"` + DefaultBackend *IngressBackend // tls represents the TLS configuration. Currently the Ingress only supports a // single TLS port, 443. If multiple members of this list specify different hosts, @@ -218,13 +218,13 @@ type IngressSpec struct { // ingress supports SNI. // +listType=atomic - TLS []IngressTLS `json:"tls,omitempty" protobuf:"bytes,2,rep,name=tls"` + TLS []IngressTLS // rules is a list of host rules used to configure the Ingress. If unspecified, // or no rule matches, all traffic is sent to the default backend. // +listType=atomic - Rules []IngressRule `json:"rules,omitempty" protobuf:"bytes,3,rep,name=rules"` + Rules []IngressRule } // IngressTLS describes the transport layer security associated with an ingress. @@ -235,7 +235,7 @@ type IngressTLS struct { // Ingress, if left unspecified. // +listType=atomic - Hosts []string `json:"hosts,omitempty" protobuf:"bytes,1,rep,name=hosts"` + Hosts []string // secretName is the name of the secret used to terminate TLS traffic on // port 443. Field is left optional to allow TLS routing based on SNI @@ -243,47 +243,47 @@ type IngressTLS struct { // header field used by an IngressRule, the SNI host is used for termination // and value of the "Host" header is used for routing. - SecretName string `json:"secretName,omitempty" protobuf:"bytes,2,opt,name=secretName"` + SecretName string } // IngressStatus describe the current state of the Ingress. type IngressStatus struct { // loadBalancer contains the current status of the load-balancer. - LoadBalancer IngressLoadBalancerStatus `json:"loadBalancer,omitempty" protobuf:"bytes,1,opt,name=loadBalancer"` + LoadBalancer IngressLoadBalancerStatus } // IngressLoadBalancerStatus represents the status of a load-balancer. type IngressLoadBalancerStatus struct { // ingress is a list containing ingress points for the load-balancer. - Ingress []IngressLoadBalancerIngress `json:"ingress,omitempty" protobuf:"bytes,1,rep,name=ingress"` + Ingress []IngressLoadBalancerIngress } // IngressLoadBalancerIngress represents the status of a load-balancer ingress point. type IngressLoadBalancerIngress struct { // ip is set for load-balancer ingress points that are IP based. - IP string `json:"ip,omitempty" protobuf:"bytes,1,opt,name=ip"` + IP string // hostname is set for load-balancer ingress points that are DNS based. - Hostname string `json:"hostname,omitempty" protobuf:"bytes,2,opt,name=hostname"` + Hostname string // ports provides information about the ports exposed by this LoadBalancer. // +listType=atomic - Ports []IngressPortStatus `json:"ports,omitempty" protobuf:"bytes,4,rep,name=ports"` + Ports []IngressPortStatus } // IngressPortStatus represents the error condition of a service port type IngressPortStatus struct { // port is the port number of the ingress port. - Port int32 `json:"port" protobuf:"varint,1,opt,name=port"` + Port int32 // protocol is the protocol of the ingress port. // The supported values are: "TCP", "UDP", "SCTP" - Protocol v1.Protocol `json:"protocol" protobuf:"bytes,2,opt,name=protocol,casttype=Protocol"` + Protocol v1.Protocol // error is to record the problem with the service port // The format of the error shall comply with the following rules: @@ -297,7 +297,7 @@ type IngressPortStatus struct { // +kubebuilder:validation:Required // +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$` // +kubebuilder:validation:MaxLength=316 - Error *string `json:"error,omitempty" protobuf:"bytes,3,opt,name=error"` + Error *string } // IngressRule represents the rules mapping the paths under a specified host to @@ -327,14 +327,14 @@ type IngressRule struct { // 2. If host is a wildcard, then the request matches this rule if the http host header // is to equal to the suffix (removing the first label) of the wildcard rule. - Host string `json:"host,omitempty" protobuf:"bytes,1,opt,name=host"` + Host string // IngressRuleValue represents a rule to route requests for this IngressRule. // If unspecified, the rule defaults to a http catch-all. Whether that sends // just traffic matching the host to the default backend or all traffic to the // default backend, is left to the controller fulfilling the Ingress. Http is // currently the only supported IngressRuleValue. - IngressRuleValue `json:",inline,omitempty" protobuf:"bytes,2,opt,name=ingressRuleValue"` + IngressRuleValue } // IngressRuleValue represents a rule to apply against incoming requests. If the @@ -342,7 +342,7 @@ type IngressRule struct { // mixing different types of rules in a single Ingress is disallowed, so exactly // one of the following must be set. type IngressRuleValue struct { - HTTP *HTTPIngressRuleValue `json:"http,omitempty" protobuf:"bytes,1,opt,name=http"` + HTTP *HTTPIngressRuleValue } // HTTPIngressRuleValue is a list of http selectors pointing to backends. @@ -353,7 +353,7 @@ type IngressRuleValue struct { type HTTPIngressRuleValue struct { // paths is a collection of paths that map requests to backends. // +listType=atomic - Paths []HTTPIngressPath `json:"paths" protobuf:"bytes,1,rep,name=paths"` + Paths []HTTPIngressPath } // PathType represents the type of path referred to by a HTTPIngressPath. @@ -395,7 +395,7 @@ type HTTPIngressPath struct { // as defined by RFC 3986. Paths must begin with a '/' and must be present // when using PathType with value "Exact" or "Prefix". - Path string `json:"path,omitempty" protobuf:"bytes,1,opt,name=path"` + Path string // pathType determines the interpretation of the path matching. PathType can // be one of the following values: @@ -411,11 +411,11 @@ type HTTPIngressPath struct { // the IngressClass. Implementations can treat this as a separate PathType // or treat it identically to Prefix or Exact path types. // Implementations are required to support all path types. - PathType *PathType `json:"pathType" protobuf:"bytes,3,opt,name=pathType"` + PathType *PathType // backend defines the referenced service endpoint to which the traffic // will be forwarded to. - Backend IngressBackend `json:"backend" protobuf:"bytes,2,opt,name=backend"` + Backend IngressBackend } // IngressBackend describes all endpoints for a given service and port. @@ -423,25 +423,25 @@ type IngressBackend struct { // service references a service as a backend. // This is a mutually exclusive setting with "Resource". - Service *IngressServiceBackend `json:"service,omitempty" protobuf:"bytes,4,opt,name=service"` + Service *IngressServiceBackend // resource is an ObjectRef to another Kubernetes resource in the namespace // of the Ingress object. If resource is specified, a service.Name and // service.Port must not be specified. // This is a mutually exclusive setting with "Service". - Resource *v1.TypedLocalObjectReference `json:"resource,omitempty" protobuf:"bytes,3,opt,name=resource"` + Resource *v1.TypedLocalObjectReference } // IngressServiceBackend references a Kubernetes Service as a Backend. type IngressServiceBackend struct { // name is the referenced service. The service must exist in // the same namespace as the Ingress object. - Name string `json:"name" protobuf:"bytes,1,opt,name=name"` + Name string // port of the referenced service. A port name or port number // is required for a IngressServiceBackend. - Port ServiceBackendPort `json:"port,omitempty" protobuf:"bytes,2,opt,name=port"` + Port ServiceBackendPort } // ServiceBackendPort is the service port being referenced. @@ -449,12 +449,12 @@ type ServiceBackendPort struct { // name is the name of the port on the Service. // This is a mutually exclusive setting with "Number". - Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"` + Name string // number is the numerical port number (e.g. 80) on the Service. // This is a mutually exclusive setting with "Name". - Number int32 `json:"number,omitempty" protobuf:"bytes,2,opt,name=number"` + Number int32 } // IngressClass represents the class of the Ingress, referenced by the Ingress @@ -463,17 +463,17 @@ type ServiceBackendPort struct { // single IngressClass resource has this annotation set to true, new Ingress // resources without a class specified will be assigned this default class. type IngressClass struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // Standard object's metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + metav1.ObjectMeta // spec is the desired state of the IngressClass. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - Spec IngressClassSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` + Spec IngressClassSpec } // IngressClassSpec provides information about the class of an Ingress. @@ -484,13 +484,13 @@ type IngressClassSpec struct { // same implementing controller. This should be specified as a // domain-prefixed path no more than 250 characters in length, e.g. // "acme.io/ingress-controller". This field is immutable. - Controller string `json:"controller,omitempty" protobuf:"bytes,1,opt,name=controller"` + Controller string // parameters is a link to a custom resource containing additional // configuration for the controller. This is optional if the controller does // not require extra parameters. - Parameters *IngressClassParametersReference `json:"parameters,omitempty" protobuf:"bytes,2,opt,name=parameters"` + Parameters *IngressClassParametersReference } const ( @@ -509,34 +509,34 @@ type IngressClassParametersReference struct { // not specified, the specified Kind must be in the core API group. For any // other third-party types, APIGroup is required. - APIGroup *string `json:"apiGroup,omitempty" protobuf:"bytes,1,opt,name=aPIGroup"` + APIGroup *string // kind is the type of resource being referenced. - Kind string `json:"kind" protobuf:"bytes,2,opt,name=kind"` + Kind string // name is the name of resource being referenced. - Name string `json:"name" protobuf:"bytes,3,opt,name=name"` + Name string // scope represents if this refers to a cluster or namespace scoped resource. // This may be set to "Cluster" (default) or "Namespace". - Scope *string `json:"scope" protobuf:"bytes,4,opt,name=scope"` + Scope *string // namespace is the namespace of the resource being referenced. This field is // required when scope is set to "Namespace" and must be unset when scope is set to // "Cluster". - Namespace *string `json:"namespace,omitempty" protobuf:"bytes,5,opt,name=namespace"` + Namespace *string } // IngressClassList is a collection of IngressClasses. type IngressClassList struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta // Standard list metadata. - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + metav1.ListMeta // items is the list of IngressClasses. - Items []IngressClass `json:"items" protobuf:"bytes,2,rep,name=items"` + Items []IngressClass } diff --git a/pkg/apis/softwarecomposition/register.go b/pkg/apis/softwarecomposition/register.go index db85618ee..839d8952d 100644 --- a/pkg/apis/softwarecomposition/register.go +++ b/pkg/apis/softwarecomposition/register.go @@ -47,10 +47,6 @@ var ( // Adds the list of known types to the given scheme. func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, - &SBOMSPDXv2p3{}, - &SBOMSPDXv2p3List{}, - &SBOMSPDXv2p3Filtered{}, - &SBOMSPDXv2p3FilteredList{}, &VulnerabilityManifest{}, &VulnerabilityManifestList{}, &VulnerabilityManifestSummary{}, diff --git a/pkg/apis/softwarecomposition/scan_types.go b/pkg/apis/softwarecomposition/scan_types.go index d6927c6b6..e611b3229 100644 --- a/pkg/apis/softwarecomposition/scan_types.go +++ b/pkg/apis/softwarecomposition/scan_types.go @@ -52,10 +52,10 @@ type ScannedControlStatus struct { type ScannedControlRule struct { Name string Status RuleStatus - ControlConfigurations map[string][]string + ControlConfigurations map[string]string Paths []RulePath AppliedIgnoreRules []string - RelatedResourcesIDs []string // ? + RelatedResourcesIDs []string } type RuleStatus struct { @@ -105,11 +105,11 @@ type WorkloadConfigurationScanSummarySpec struct { } type WorkloadConfigurationScanSeveritiesSummary struct { - Critical int - High int - Medium int - Low int - Unknown int + Critical int64 + High int64 + Medium int64 + Low int64 + Unknown int64 } type ScannedControlSummary struct { diff --git a/pkg/apis/softwarecomposition/spdx_types.go b/pkg/apis/softwarecomposition/spdx_types.go deleted file mode 100644 index 81a489078..000000000 --- a/pkg/apis/softwarecomposition/spdx_types.go +++ /dev/null @@ -1,907 +0,0 @@ -package softwarecomposition - -import ( - "encoding/json" - "fmt" - "strings" -) - -type Annotator struct { - Annotator string - // including AnnotatorType: one of "Person", "Organization" or "Tool" - AnnotatorType string -} - -// UnmarshalJSON takes an annotator in the typical one-line format and parses it into an Annotator struct. -// This function is also used when unmarshalling YAML -func (a *Annotator) UnmarshalJSON(data []byte) error { - // annotator will simply be a string - annotatorStr := string(data) - annotatorStr = strings.Trim(annotatorStr, "\"") - - annotatorFields := strings.SplitN(annotatorStr, ": ", 2) - - if len(annotatorFields) != 2 { - return fmt.Errorf("failed to parse Annotator '%s'", annotatorStr) - } - - a.AnnotatorType = annotatorFields[0] - a.Annotator = annotatorFields[1] - - return nil -} - -// MarshalJSON converts the receiver into a slice of bytes representing an Annotator in string form. -// This function is also used when marshalling to YAML -func (a Annotator) MarshalJSON() ([]byte, error) { - if a.Annotator != "" { - return json.Marshal(fmt.Sprintf("%s: %s", a.AnnotatorType, a.Annotator)) - } - - return []byte{}, nil -} - -// ChecksumAlgorithm represents the algorithm used to generate the file checksum in the Checksum struct. -type ChecksumAlgorithm string - -// The checksum algorithms mentioned in the spdxv2.2.0 https://spdx.github.io/spdx-spec/4-file-information/#44-file-checksum -const ( - SHA224 ChecksumAlgorithm = "SHA224" - SHA1 ChecksumAlgorithm = "SHA1" - SHA256 ChecksumAlgorithm = "SHA256" - SHA384 ChecksumAlgorithm = "SHA384" - SHA512 ChecksumAlgorithm = "SHA512" - MD2 ChecksumAlgorithm = "MD2" - MD4 ChecksumAlgorithm = "MD4" - MD5 ChecksumAlgorithm = "MD5" - MD6 ChecksumAlgorithm = "MD6" - SHA3_256 ChecksumAlgorithm = "SHA3-256" - SHA3_384 ChecksumAlgorithm = "SHA3-384" - SHA3_512 ChecksumAlgorithm = "SHA3-512" - BLAKE2b_256 ChecksumAlgorithm = "BLAKE2b-256" - BLAKE2b_384 ChecksumAlgorithm = "BLAKE2b-384" - BLAKE2b_512 ChecksumAlgorithm = "BLAKE2b-512" - BLAKE3 ChecksumAlgorithm = "BLAKE3" - ADLER32 ChecksumAlgorithm = "ADLER32" -) - -// Checksum provides a unique identifier to match analysis information on each specific file in a package. -// The Algorithm field describes the ChecksumAlgorithm used and the Value represents the file checksum -type Checksum struct { - Algorithm ChecksumAlgorithm - Value string -} - -// Creator is a wrapper around the Creator SPDX field. The SPDX field contains two values, which requires special -// handling in order to marshal/unmarshal it to/from Go data types. -type Creator struct { - Creator string - // CreatorType should be one of "Person", "Organization", or "Tool" - CreatorType string -} - -// UnmarshalJSON takes an annotator in the typical one-line format and parses it into a Creator struct. -// This function is also used when unmarshalling YAML -func (c *Creator) UnmarshalJSON(data []byte) error { - str := string(data) - str = strings.Trim(str, "\"") - fields := strings.SplitN(str, ": ", 2) - - if len(fields) != 2 { - return fmt.Errorf("failed to parse Creator '%s'", str) - } - - c.CreatorType = fields[0] - c.Creator = fields[1] - - return nil -} - -// MarshalJSON converts the receiver into a slice of bytes representing a Creator in string form. -// This function is also used with marshalling to YAML -func (c Creator) MarshalJSON() ([]byte, error) { - if c.Creator != "" { - return json.Marshal(fmt.Sprintf("%s: %s", c.CreatorType, c.Creator)) - } - - return []byte{}, nil -} - -// Constants for various string types -const ( - // F.2 Security types - TypeSecurityCPE23Type string = "cpe23Type" - TypeSecurityCPE22Type string = "cpe22Type" - TypeSecurityAdvisory string = "advisory" - TypeSecurityFix string = "fix" - TypeSecurityUrl string = "url" - TypeSecuritySwid string = "swid" - - // F.3 Package-Manager types - TypePackageManagerMavenCentral string = "maven-central" - TypePackageManagerNpm string = "npm" - TypePackageManagerNuGet string = "nuget" - TypePackageManagerBower string = "bower" - TypePackageManagerPURL string = "purl" - - // 11.1 Relationship field types - TypeRelationshipDescribe string = "DESCRIBES" - TypeRelationshipDescribeBy string = "DESCRIBED_BY" - TypeRelationshipContains string = "CONTAINS" - TypeRelationshipContainedBy string = "CONTAINED_BY" - TypeRelationshipDependsOn string = "DEPENDS_ON" - TypeRelationshipDependencyOf string = "DEPENDENCY_OF" - TypeRelationshipBuildDependencyOf string = "BUILD_DEPENDENCY_OF" - TypeRelationshipDevDependencyOf string = "DEV_DEPENDENCY_OF" - TypeRelationshipOptionalDependencyOf string = "OPTIONAL_DEPENDENCY_OF" - TypeRelationshipProvidedDependencyOf string = "PROVIDED_DEPENDENCY_OF" - TypeRelationshipTestDependencyOf string = "TEST_DEPENDENCY_OF" - TypeRelationshipRuntimeDependencyOf string = "RUNTIME_DEPENDENCY_OF" - TypeRelationshipExampleOf string = "EXAMPLE_OF" - TypeRelationshipGenerates string = "GENERATES" - TypeRelationshipGeneratedFrom string = "GENERATED_FROM" - TypeRelationshipAncestorOf string = "ANCESTOR_OF" - TypeRelationshipDescendantOf string = "DESCENDANT_OF" - TypeRelationshipVariantOf string = "VARIANT_OF" - TypeRelationshipDistributionArtifact string = "DISTRIBUTION_ARTIFACT" - TypeRelationshipPatchFor string = "PATCH_FOR" - TypeRelationshipPatchApplied string = "PATCH_APPLIED" - TypeRelationshipCopyOf string = "COPY_OF" - TypeRelationshipFileAdded string = "FILE_ADDED" - TypeRelationshipFileDeleted string = "FILE_DELETED" - TypeRelationshipFileModified string = "FILE_MODIFIED" - TypeRelationshipExpandedFromArchive string = "EXPANDED_FROM_ARCHIVE" - TypeRelationshipDynamicLink string = "DYNAMIC_LINK" - TypeRelationshipStaticLink string = "STATIC_LINK" - TypeRelationshipDataFileOf string = "DATA_FILE_OF" - TypeRelationshipTestCaseOf string = "TEST_CASE_OF" - TypeRelationshipBuildToolOf string = "BUILD_TOOL_OF" - TypeRelationshipDevToolOf string = "DEV_TOOL_OF" - TypeRelationshipTestOf string = "TEST_OF" - TypeRelationshipTestToolOf string = "TEST_TOOL_OF" - TypeRelationshipDocumentationOf string = "DOCUMENTATION_OF" - TypeRelationshipOptionalComponentOf string = "OPTIONAL_COMPONENT_OF" - TypeRelationshipMetafileOf string = "METAFILE_OF" - TypeRelationshipPackageOf string = "PACKAGE_OF" - TypeRelationshipAmends string = "AMENDS" - TypeRelationshipPrerequisiteFor string = "PREREQUISITE_FOR" - TypeRelationshipHasPrerequisite string = "HAS_PREREQUISITE" - TypeRelationshipRequirementDescriptionFor string = "REQUIREMENT_DESCRIPTION_FOR" - TypeRelationshipSpecificationFor string = "SPECIFICATION_FOR" - TypeRelationshipOther string = "OTHER" -) - -const ( - spdxRefPrefix = "SPDXRef-" - documentRefPrefix = "DocumentRef-" -) - -// ElementID represents the identifier string portion of an SPDX element -// identifier. DocElementID should be used for any attributes which can -// contain identifiers defined in a different SPDX document. -// ElementIDs should NOT contain the mandatory 'SPDXRef-' portion. -type ElementID string - -// MarshalJSON returns an SPDXRef- prefixed JSON string -func (d ElementID) MarshalJSON() ([]byte, error) { - return json.Marshal(prefixElementId(d)) -} - -// UnmarshalJSON validates SPDXRef- prefixes and removes them when processing ElementIDs -func (d *ElementID) UnmarshalJSON(data []byte) error { - // SPDX identifier will simply be a string - idStr := string(data) - idStr = strings.Trim(idStr, "\"") - - e, err := trimElementIdPrefix(idStr) - if err != nil { - return err - } - *d = e - return nil -} - -// prefixElementId adds the SPDXRef- prefix to an element ID if it does not have one -func prefixElementId(id ElementID) string { - val := string(id) - if !strings.HasPrefix(val, spdxRefPrefix) { - return spdxRefPrefix + val - } - return val -} - -// trimElementIdPrefix removes the SPDXRef- prefix from an element ID string or returns an error if it -// does not start with SPDXRef- -func trimElementIdPrefix(id string) (ElementID, error) { - // handle SPDXRef- - idFields := strings.SplitN(id, spdxRefPrefix, 2) - if len(idFields) != 2 { - return "", fmt.Errorf("failed to parse SPDX identifier '%s'", id) - } - - e := ElementID(idFields[1]) - return e, nil -} - -// DocElementID represents an SPDX element identifier that could be defined -// in a different SPDX document, and therefore could have a "DocumentRef-" -// portion, such as Relationships and Annotations. -// ElementID is used for attributes in which a "DocumentRef-" portion cannot -// appear, such as a Package or File definition (since it is necessarily -// being defined in the present document). -// DocumentRefID will be the empty string for elements defined in the -// present document. -// DocElementIDs should NOT contain the mandatory 'DocumentRef-' or -// 'SPDXRef-' portions. -// SpecialID is used ONLY if the DocElementID matches a defined set of -// permitted special values for a particular field, e.g. "NONE" or -// "NOASSERTION" for the right-hand side of Relationships. If SpecialID -// is set, DocumentRefID and ElementRefID should be empty (and vice versa). -type DocElementID struct { - DocumentRefID string - ElementRefID ElementID - SpecialID string -} - -// MarshalJSON converts the receiver into a slice of bytes representing a DocElementID in string form. -// This function is also used when marshalling to YAML -func (d DocElementID) MarshalJSON() ([]byte, error) { - if d.DocumentRefID != "" && d.ElementRefID != "" { - idStr := prefixElementId(d.ElementRefID) - return json.Marshal(fmt.Sprintf("%s%s:%s", documentRefPrefix, d.DocumentRefID, idStr)) - } else if d.ElementRefID != "" { - return json.Marshal(prefixElementId(d.ElementRefID)) - } else if d.SpecialID != "" { - return json.Marshal(d.SpecialID) - } - - return []byte{}, fmt.Errorf("failed to marshal empty DocElementID") -} - -// UnmarshalJSON takes a SPDX Identifier string parses it into a DocElementID struct. -// This function is also used when unmarshalling YAML -func (d *DocElementID) UnmarshalJSON(data []byte) (err error) { - // SPDX identifier will simply be a string - idStr := string(data) - idStr = strings.Trim(idStr, "\"") - - // handle special cases - if idStr == "NONE" || idStr == "NOASSERTION" { - d.SpecialID = idStr - return nil - } - - var idFields []string - // handle DocumentRef- if present - if strings.HasPrefix(idStr, documentRefPrefix) { - // strip out the "DocumentRef-" so we can get the value - idFields = strings.SplitN(idStr, documentRefPrefix, 2) - idStr = idFields[1] - - // an SPDXRef can appear after a DocumentRef, separated by a colon - idFields = strings.SplitN(idStr, ":", 2) - d.DocumentRefID = idFields[0] - - if len(idFields) == 2 { - idStr = idFields[1] - } else { - return nil - } - } - - d.ElementRefID, err = trimElementIdPrefix(idStr) - return err -} - -// TODO: add equivalents for LicenseRef- identifiers - -// MakeDocElementID takes strings (without prefixes) for the DocumentRef- -// and SPDXRef- identifiers, and returns a DocElementID. An empty string -// should be used for the DocumentRef- portion if it is referring to the -// present document. -func MakeDocElementID(docRef string, eltRef string) DocElementID { - return DocElementID{ - DocumentRefID: docRef, - ElementRefID: ElementID(eltRef), - } -} - -// MakeDocElementSpecial takes a "special" string (e.g. "NONE" or -// "NOASSERTION" for the right side of a Relationship), nd returns -// a DocElementID with it in the SpecialID field. Other fields will -// be empty. -func MakeDocElementSpecial(specialID string) DocElementID { - return DocElementID{SpecialID: specialID} -} - -// RenderElementID takes an ElementID and returns the string equivalent, -// with the SPDXRef- prefix reinserted. -func RenderElementID(eID ElementID) string { - return spdxRefPrefix + string(eID) -} - -// RenderDocElementID takes a DocElementID and returns the string equivalent, -// with the SPDXRef- prefix (and, if applicable, the DocumentRef- prefix) -// reinserted. If a SpecialID is present, it will be rendered verbatim and -// DocumentRefID and ElementRefID will be ignored. -func RenderDocElementID(deID DocElementID) string { - if deID.SpecialID != "" { - return deID.SpecialID - } - prefix := "" - if deID.DocumentRefID != "" { - prefix = documentRefPrefix + deID.DocumentRefID + ":" - } - return prefix + spdxRefPrefix + string(deID.ElementRefID) -} - -type Supplier struct { - // can be "NOASSERTION" - Supplier string - // SupplierType can be one of "Person", "Organization", or empty if Supplier is "NOASSERTION" - SupplierType string -} - -// UnmarshalJSON takes a supplier in the typical one-line format and parses it into a Supplier struct. -// This function is also used when unmarshalling YAML -func (s *Supplier) UnmarshalJSON(data []byte) error { - // the value is just a string presented as a slice of bytes - supplierStr := string(data) - supplierStr = strings.Trim(supplierStr, "\"") - - if supplierStr == "NOASSERTION" { - s.Supplier = supplierStr - return nil - } - - supplierFields := strings.SplitN(supplierStr, ": ", 2) - - if len(supplierFields) != 2 { - return fmt.Errorf("failed to parse Supplier '%s'", supplierStr) - } - - s.SupplierType = supplierFields[0] - s.Supplier = supplierFields[1] - - return nil -} - -// MarshalJSON converts the receiver into a slice of bytes representing a Supplier in string form. -// This function is also used when marshalling to YAML -func (s Supplier) MarshalJSON() ([]byte, error) { - if s.Supplier == "NOASSERTION" { - return json.Marshal(s.Supplier) - } else if s.SupplierType != "" && s.Supplier != "" { - return json.Marshal(fmt.Sprintf("%s: %s", s.SupplierType, s.Supplier)) - } - - return []byte{}, fmt.Errorf("failed to marshal invalid Supplier: %+v", s) -} - -type Originator struct { - // can be "NOASSERTION" - Originator string - // OriginatorType can be one of "Person", "Organization", or empty if Originator is "NOASSERTION" - OriginatorType string -} - -// UnmarshalJSON takes an originator in the typical one-line format and parses it into an Originator struct. -// This function is also used when unmarshalling YAML -func (o *Originator) UnmarshalJSON(data []byte) error { - // the value is just a string presented as a slice of bytes - originatorStr := string(data) - originatorStr = strings.Trim(originatorStr, "\"") - - if originatorStr == "NOASSERTION" { - o.Originator = originatorStr - return nil - } - - originatorFields := strings.SplitN(originatorStr, ": ", 2) - - if len(originatorFields) != 2 { - return fmt.Errorf("failed to parse Originator '%s'", originatorStr) - } - - o.OriginatorType = originatorFields[0] - o.Originator = originatorFields[1] - - return nil -} - -// MarshalJSON converts the receiver into a slice of bytes representing an Originator in string form. -// This function is also used when marshalling to YAML -func (o Originator) MarshalJSON() ([]byte, error) { - if o.Originator == "NOASSERTION" { - return json.Marshal(o.Originator) - } else if o.Originator != "" { - return json.Marshal(fmt.Sprintf("%s: %s", o.OriginatorType, o.Originator)) - } - - return []byte{}, nil -} - -type PackageVerificationCode struct { - // Cardinality: mandatory, one if filesAnalyzed is true / omitted; - // zero (must be omitted) if filesAnalyzed is false - Value string - // Spec also allows specifying files to exclude from the - // verification code algorithm; intended to enable exclusion of - // the SPDX document file itself. - ExcludedFiles []string -} - -type SnippetRangePointer struct { - // 5.3: Snippet Byte Range: [start byte]:[end byte] - // Cardinality: mandatory, one - Offset int - - // 5.4: Snippet Line Range: [start line]:[end line] - // Cardinality: optional, one - LineNumber int - - FileSPDXIdentifier ElementID -} - -type SnippetRange struct { - StartPointer SnippetRangePointer - EndPointer SnippetRangePointer -} - -// Annotation is an Annotation section of an SPDX Document for version 2.3 of the spec. -type Annotation struct { - // 12.1: Annotator - // Cardinality: conditional (mandatory, one) if there is an Annotation - Annotator Annotator - - // 12.2: Annotation Date: YYYY-MM-DDThh:mm:ssZ - // Cardinality: conditional (mandatory, one) if there is an Annotation - AnnotationDate string - - // 12.3: Annotation Type: "REVIEW" or "OTHER" - // Cardinality: conditional (mandatory, one) if there is an Annotation - AnnotationType string - - // 12.4: SPDX Identifier Reference - // Cardinality: conditional (mandatory, one) if there is an Annotation - // This field is not used in hierarchical data formats where the referenced element is clear, such as JSON or YAML. - AnnotationSPDXIdentifier DocElementID - - // 12.5: Annotation Comment - // Cardinality: conditional (mandatory, one) if there is an Annotation - AnnotationComment string -} - -// CreationInfo is a Document Creation Information section of an -// SPDX Document for version 2.3 of the spec. -type CreationInfo struct { - // 6.7: License List Version - // Cardinality: optional, one - LicenseListVersion string - - // 6.8: Creators: may have multiple keys for Person, Organization - // and/or Tool - // Cardinality: mandatory, one or many - Creators []Creator - - // 6.9: Created: data format YYYY-MM-DDThh:mm:ssZ - // Cardinality: mandatory, one - Created string - - // 6.10: Creator Comment - // Cardinality: optional, one - CreatorComment string -} - -// ExternalDocumentRef is a reference to an external SPDX document -// as defined in section 6.6 for version 2.3 of the spec. -type ExternalDocumentRef struct { - // DocumentRefID is the ID string defined in the start of the - // reference. It should _not_ contain the "DocumentRef-" part - // of the mandatory ID string. - DocumentRefID string - - // URI is the URI defined for the external document - URI string - - // Checksum is the actual hash data - Checksum Checksum -} - -// Document is an SPDX Document for version 2.3 of the spec. -// See https://spdx.github.io/spdx-spec/v2.3/document-creation-information -type Document struct { - // Added - DocumentDescribes []string - - // 6.1: SPDX Version; should be in the format "SPDX-2.3" - // Cardinality: mandatory, one - SPDXVersion string - - // 6.2: Data License; should be "CC0-1.0" - // Cardinality: mandatory, one - DataLicense string - - // 6.3: SPDX Identifier; should be "DOCUMENT" to represent - // mandatory identifier of SPDXRef-DOCUMENT - // Cardinality: mandatory, one - SPDXIdentifier ElementID - - // 6.4: Document Name - // Cardinality: mandatory, one - DocumentName string - - // 6.5: Document Namespace - // Cardinality: mandatory, one - DocumentNamespace string - - // 6.6: External Document References - // Cardinality: optional, one or many - ExternalDocumentReferences []ExternalDocumentRef - - // 6.11: Document Comment - // Cardinality: optional, one - DocumentComment string - - CreationInfo *CreationInfo - Packages []*Package - Files []*File - OtherLicenses []*OtherLicense - Relationships []*Relationship - Annotations []Annotation - Snippets []Snippet - - // DEPRECATED in version 2.0 of spec - Reviews []*Review -} - -// File is a File section of an SPDX Document for version 2.3 of the spec. -type File struct { - // 8.1: File Name - // Cardinality: mandatory, one - FileName string - - // 8.2: File SPDX Identifier: "SPDXRef-[idstring]" - // Cardinality: mandatory, one - FileSPDXIdentifier ElementID - - // 8.3: File Types - // Cardinality: optional, multiple - FileTypes []string - - // 8.4: File Checksum: may have keys for SHA1, SHA256, MD5, SHA3-256, SHA3-384, SHA3-512, BLAKE2b-256, BLAKE2b-384, BLAKE2b-512, BLAKE3, ADLER32 - // Cardinality: mandatory, one SHA1, others may be optionally provided - Checksums []Checksum - - // 8.5: Concluded License: SPDX License Expression, "NONE" or "NOASSERTION" - // Cardinality: optional, one - LicenseConcluded string - - // 8.6: License Information in File: SPDX License Expression, "NONE" or "NOASSERTION" - // Cardinality: optional, one or many - LicenseInfoInFiles []string - - // 8.7: Comments on License - // Cardinality: optional, one - LicenseComments string - - // 8.8: Copyright Text: copyright notice(s) text, "NONE" or "NOASSERTION" - // Cardinality: mandatory, one - FileCopyrightText string - - // DEPRECATED in version 2.1 of spec - // 8.9-8.11: Artifact of Project variables (defined below) - // Cardinality: optional, one or many - ArtifactOfProjects []*ArtifactOfProject - - // 8.12: File Comment - // Cardinality: optional, one - FileComment string - - // 8.13: File Notice - // Cardinality: optional, one - FileNotice string - - // 8.14: File Contributor - // Cardinality: optional, one or many - FileContributors []string - - // 8.15: File Attribution Text - // Cardinality: optional, one or many - FileAttributionTexts []string - - // DEPRECATED in version 2.0 of spec - // 8.16: File Dependencies - // Cardinality: optional, one or many - FileDependencies []string - - // Snippets contained in this File - // Note that Snippets could be defined in a different Document! However, - // the only ones that _THIS_ document can contain are this ones that are - // defined here -- so this should just be an ElementID. - Snippets map[ElementID]*Snippet - - Annotations []Annotation -} - -// ArtifactOfProject is a DEPRECATED collection of data regarding -// a Package, as defined in sections 8.9-8.11 in version 2.3 of the spec. -// NOTE: the JSON schema does not define the structure of this object: -// https://github.com/spdx/spdx-spec/blob/development/v2.3.1/schemas/spdx-schema.json#L480 -type ArtifactOfProject struct { - - // DEPRECATED in version 2.1 of spec - // 8.9: Artifact of Project Name - // Cardinality: conditional, required if present, one per AOP - Name string - - // DEPRECATED in version 2.1 of spec - // 8.10: Artifact of Project Homepage: URL or "UNKNOWN" - // Cardinality: optional, one per AOP - HomePage string - - // DEPRECATED in version 2.1 of spec - // 8.11: Artifact of Project Uniform Resource Identifier - // Cardinality: optional, one per AOP - URI string -} - -// OtherLicense is an Other License Information section of an -// SPDX Document for version 2.3 of the spec. -type OtherLicense struct { - // 10.1: License Identifier: "LicenseRef-[idstring]" - // Cardinality: conditional (mandatory, one) if license is not - // on SPDX License List - LicenseIdentifier string - - // 10.2: Extracted Text - // Cardinality: conditional (mandatory, one) if there is a - // License Identifier assigned - ExtractedText string - - // 10.3: License Name: single line of text or "NOASSERTION" - // Cardinality: conditional (mandatory, one) if license is not - // on SPDX License List - LicenseName string - - // 10.4: License Cross Reference - // Cardinality: conditional (optional, one or many) if license - // is not on SPDX License List - LicenseCrossReferences []string - - // 10.5: License Comment - // Cardinality: optional, one - LicenseComment string -} - -// Package is a Package section of an SPDX Document for version 2.3 of the spec. -type Package struct { - // Added - HasFiles []string - - // NOT PART OF SPEC - // flag: does this "package" contain files that were in fact "unpackaged", - // e.g. included directly in the Document without being in a Package? - IsUnpackaged bool - - // 7.1: Package Name - // Cardinality: mandatory, one - PackageName string - - // 7.2: Package SPDX Identifier: "SPDXRef-[idstring]" - // Cardinality: mandatory, one - PackageSPDXIdentifier ElementID - - // 7.3: Package Version - // Cardinality: optional, one - PackageVersion string - - // 7.4: Package File Name - // Cardinality: optional, one - PackageFileName string - - // 7.5: Package Supplier: may have single result for either Person or Organization, - // or NOASSERTION - // Cardinality: optional, one - PackageSupplier *Supplier - - // 7.6: Package Originator: may have single result for either Person or Organization, - // or NOASSERTION - // Cardinality: optional, one - PackageOriginator *Originator - - // 7.7: Package Download Location - // Cardinality: mandatory, one - PackageDownloadLocation string - - // 7.8: FilesAnalyzed - // Cardinality: optional, one; default value is "true" if omitted - FilesAnalyzed bool - // NOT PART OF SPEC: did FilesAnalyzed tag appear? - IsFilesAnalyzedTagPresent bool - - // 7.9: Package Verification Code - // Cardinality: if FilesAnalyzed == true must be present, if FilesAnalyzed == false must be omitted - PackageVerificationCode *PackageVerificationCode - - // 7.10: Package Checksum: may have keys for SHA1, SHA256, SHA512, MD5, SHA3-256, SHA3-384, SHA3-512, BLAKE2b-256, BLAKE2b-384, BLAKE2b-512, BLAKE3, ADLER32 - // Cardinality: optional, one or many - PackageChecksums []Checksum - - // 7.11: Package Home Page - // Cardinality: optional, one - PackageHomePage string - - // 7.12: Source Information - // Cardinality: optional, one - PackageSourceInfo string - - // 7.13: Concluded License: SPDX License Expression, "NONE" or "NOASSERTION" - // Cardinality: optional, one - PackageLicenseConcluded string - - // 7.14: All Licenses Info from Files: SPDX License Expression, "NONE" or "NOASSERTION" - // Cardinality: optional, one or many if filesAnalyzed is true / omitted; - // zero (must be omitted) if filesAnalyzed is false - PackageLicenseInfoFromFiles []string - - // 7.15: Declared License: SPDX License Expression, "NONE" or "NOASSERTION" - // Cardinality: optional, one - PackageLicenseDeclared string - - // 7.16: Comments on License - // Cardinality: optional, one - PackageLicenseComments string - - // 7.17: Copyright Text: copyright notice(s) text, "NONE" or "NOASSERTION" - // Cardinality: mandatory, one - PackageCopyrightText string - - // 7.18: Package Summary Description - // Cardinality: optional, one - PackageSummary string - - // 7.19: Package Detailed Description - // Cardinality: optional, one - PackageDescription string - - // 7.20: Package Comment - // Cardinality: optional, one - PackageComment string - - // 7.21: Package External Reference - // Cardinality: optional, one or many - PackageExternalReferences []*PackageExternalReference - - // 7.22: Package External Reference Comment - // Cardinality: conditional (optional, one) for each External Reference - // contained within PackageExternalReference2_1 struct, if present - - // 7.23: Package Attribution Text - // Cardinality: optional, one or many - PackageAttributionTexts []string - - // 7.24: Primary Package Purpose - // Cardinality: optional, one or many - // Allowed values: APPLICATION, FRAMEWORK, LIBRARY, CONTAINER, OPERATING-SYSTEM, DEVICE, FIRMWARE, SOURCE, ARCHIVE, FILE, INSTALL, OTHER - PrimaryPackagePurpose string - - // 7.25: Release Date: YYYY-MM-DDThh:mm:ssZ - // Cardinality: optional, one - ReleaseDate string - - // 7.26: Build Date: YYYY-MM-DDThh:mm:ssZ - // Cardinality: optional, one - BuiltDate string - - // 7.27: Valid Until Date: YYYY-MM-DDThh:mm:ssZ - // Cardinality: optional, one - ValidUntilDate string - - // Files contained in this Package - Files []*File - - Annotations []Annotation -} - -// PackageExternalReference is an External Reference to additional info -// about a Package, as defined in section 7.21 in version 2.3 of the spec. -type PackageExternalReference struct { - // category is "SECURITY", "PACKAGE-MANAGER" or "OTHER" - Category string - - // type is an [idstring] as defined in Appendix VI; - // called RefType here due to "type" being a Golang keyword - RefType string - - // locator is a unique string to access the package-specific - // info, metadata or content within the target location - Locator string - - // 7.22: Package External Reference Comment - // Cardinality: conditional (optional, one) for each External Reference - ExternalRefComment string -} - -// Relationship is a Relationship section of an SPDX Document for -// version 2.3 of the spec. -type Relationship struct { - - // 11.1: Relationship - // Cardinality: optional, one or more; one per Relationship - // one mandatory for SPDX Document with multiple packages - // RefA and RefB are first and second item - // Relationship is type from 11.1.1 - RefA DocElementID - RefB DocElementID - Relationship string - - // 11.2: Relationship Comment - // Cardinality: optional, one - RelationshipComment string -} - -// Review is a Review section of an SPDX Document for version 2.3 of the spec. -// DEPRECATED in version 2.0 of spec; retained here for compatibility. -type Review struct { - - // DEPRECATED in version 2.0 of spec - // 13.1: Reviewer - // Cardinality: optional, one - Reviewer string - // including AnnotatorType: one of "Person", "Organization" or "Tool" - ReviewerType string - - // DEPRECATED in version 2.0 of spec - // 13.2: Review Date: YYYY-MM-DDThh:mm:ssZ - // Cardinality: conditional (mandatory, one) if there is a Reviewer - ReviewDate string - - // DEPRECATED in version 2.0 of spec - // 13.3: Review Comment - // Cardinality: optional, one - ReviewComment string -} - -// Snippet is a Snippet section of an SPDX Document for version 2.3 of the spec. -type Snippet struct { - - // 9.1: Snippet SPDX Identifier: "SPDXRef-[idstring]" - // Cardinality: mandatory, one - SnippetSPDXIdentifier ElementID - - // 9.2: Snippet from File SPDX Identifier - // Cardinality: mandatory, one - SnippetFromFileSPDXIdentifier ElementID - - // Ranges denotes the start/end byte offsets or line numbers that the snippet is relevant to - Ranges []SnippetRange - - // 9.5: Snippet Concluded License: SPDX License Expression, "NONE" or "NOASSERTION" - // Cardinality: optional, one - SnippetLicenseConcluded string - - // 9.6: License Information in Snippet: SPDX License Expression, "NONE" or "NOASSERTION" - // Cardinality: optional, one or many - LicenseInfoInSnippet []string - - // 9.7: Snippet Comments on License - // Cardinality: optional, one - SnippetLicenseComments string - - // 9.8: Snippet Copyright Text: copyright notice(s) text, "NONE" or "NOASSERTION" - // Cardinality: mandatory, one - SnippetCopyrightText string - - // 9.9: Snippet Comment - // Cardinality: optional, one - SnippetComment string - - // 9.10: Snippet Name - // Cardinality: optional, one - SnippetName string - - // 9.11: Snippet Attribution Text - // Cardinality: optional, one or many - SnippetAttributionTexts []string -} diff --git a/pkg/apis/softwarecomposition/syfttypes.go b/pkg/apis/softwarecomposition/syfttypes.go index 60787390f..59efdfad3 100644 --- a/pkg/apis/softwarecomposition/syfttypes.go +++ b/pkg/apis/softwarecomposition/syfttypes.go @@ -18,18 +18,18 @@ import ( ) type Digest struct { - Algorithm string `json:"algorithm"` - Value string `json:"value"` + Algorithm string + Value string } type LocationMetadata struct { - Annotations map[string]string `json:"annotations,omitempty"` // Arbitrary key-value pairs that can be used to annotate a location + Annotations map[string]string // Arbitrary key-value pairs that can be used to annotate a location } // Coordinates contains the minimal information needed to describe how to find a file within any possible source object (e.g. image and directory sources) type Coordinates struct { - RealPath string `json:"path" cyclonedx:"path"` // The path where all path ancestors have no hardlinks / symlinks - FileSystemID string `json:"layerID,omitempty" cyclonedx:"layerID"` // An ID representing the filesystem. For container images, this is a layer digest. For directories or a root filesystem, this is blank. + RealPath string // The path where all path ancestors have no hardlinks / symlinks + FileSystemID string // An ID representing the filesystem. For container images, this is a layer digest. For directories or a root filesystem, this is blank. } // Location represents a path relative to a particular filesystem resolved to a specific file.Reference. This struct is used as a key @@ -48,21 +48,21 @@ type LocationData struct { // SyftSource object represents the thing that was cataloged type SyftSource struct { - ID string `json:"id"` - Name string `json:"name"` - Version string `json:"version"` - Type string `json:"type"` - Metadata json.RawMessage `json:"metadata"` + ID string + Name string + Version string + Type string + Metadata json.RawMessage } // sourceUnpacker is used to unmarshal SyftSource objects type sourceUnpacker struct { - ID string `json:"id,omitempty"` - Name string `json:"name"` - Version string `json:"version"` - Type string `json:"type"` - Metadata json.RawMessage `json:"metadata"` - Target json.RawMessage `json:"target"` // pre-v9 schema support + ID string + Name string + Version string + Type string + Metadata json.RawMessage + Target json.RawMessage // pre-v9 schema support } // UnmarshalJSON populates a source object from JSON bytes. @@ -171,10 +171,10 @@ func extractPreSchemaV9Metadata(t string, target []byte) (interface{}, error) { var errUnknownMetadataType = errors.New("unknown metadata type") type SyftRelationship struct { - Parent string `json:"parent"` - Child string `json:"child"` - Type string `json:"type"` - Metadata json.RawMessage `json:"metadata,omitempty"` + Parent string + Child string + Type string + Metadata json.RawMessage } // SyftPackage represents a pkg.SyftPackage object specialized for JSON marshaling and unmarshalling. @@ -185,30 +185,30 @@ type SyftPackage struct { // PackageBasicData contains non-ambiguous values (type-wise) from pkg.SyftPackage. type PackageBasicData struct { - ID string `json:"id"` - Name string `json:"name"` - Version string `json:"version"` - Type string `json:"type"` - FoundBy string `json:"foundBy"` - Locations []Location `json:"locations"` - Licenses Licenses `json:"licenses"` - Language string `json:"language"` - CPEs CPEs `json:"cpes"` - PURL string `json:"purl"` + ID string + Name string + Version string + Type string + FoundBy string + Locations []Location + Licenses Licenses + Language string + CPEs CPEs + PURL string } // PackageBasicDataV01011 is the previous version of PackageBasicData used in schema v0.101.1. type PackageBasicDataV01011 struct { - ID string `json:"id"` - Name string `json:"name"` - Version string `json:"version"` - Type string `json:"type"` - FoundBy string `json:"foundBy"` - Locations []Location `json:"locations"` - Licenses Licenses `json:"licenses"` - Language string `json:"language"` - CPEs []string `json:"cpes"` - PURL string `json:"purl"` + ID string + Name string + Version string + Type string + FoundBy string + Locations []Location + Licenses Licenses + Language string + CPEs []string + PURL string } func PackageBasicDataFromV01011(in PackageBasicDataV01011) PackageBasicData { @@ -236,8 +236,8 @@ func PackageBasicDataFromV01011(in PackageBasicDataV01011) PackageBasicData { type CPEs []CPE type CPE struct { - Value string `json:"cpe"` - Source string `json:"source,omitempty"` + Value string + Source string } type LicenseType string @@ -245,11 +245,11 @@ type LicenseType string type Licenses []License type License struct { - Value string `json:"value"` - SPDXExpression string `json:"spdxExpression"` - Type LicenseType `json:"type"` - URLs []string `json:"urls"` - Locations []Location `json:"locations"` + Value string + SPDXExpression string + Type LicenseType + URLs []string + Locations []Location } func newModelLicensesFromValues(licenses []string) (ml []License) { @@ -287,14 +287,14 @@ func (f *Licenses) UnmarshalJSON(b []byte) error { // PackageCustomData contains ambiguous values (type-wise) from pkg.SyftPackage. type PackageCustomData struct { - MetadataType string `json:"metadataType,omitempty"` - Metadata json.RawMessage `json:"metadata,omitempty"` + MetadataType string + Metadata json.RawMessage } // packageMetadataUnpacker is all values needed from SyftPackage to disambiguate ambiguous fields during json unmarshaling. type packageMetadataUnpacker struct { - MetadataType string `json:"metadataType"` - Metadata json.RawMessage `json:"metadata"` + MetadataType string + Metadata json.RawMessage } func (p *packageMetadataUnpacker) String() string { @@ -408,24 +408,24 @@ func unpackPkgMetadata(p *SyftPackage, unpacker packageMetadataUnpacker) error { type IDLikes []string type LinuxRelease struct { - PrettyName string `json:"prettyName,omitempty"` - Name string `json:"name,omitempty"` - ID string `json:"id,omitempty"` - IDLike IDLikes `json:"idLike,omitempty"` - Version string `json:"version,omitempty"` - VersionID string `json:"versionID,omitempty"` - VersionCodename string `json:"versionCodename,omitempty"` - BuildID string `json:"buildID,omitempty"` - ImageID string `json:"imageID,omitempty"` - ImageVersion string `json:"imageVersion,omitempty"` - Variant string `json:"variant,omitempty"` - VariantID string `json:"variantID,omitempty"` - HomeURL string `json:"homeURL,omitempty"` - SupportURL string `json:"supportURL,omitempty"` - BugReportURL string `json:"bugReportURL,omitempty"` - PrivacyPolicyURL string `json:"privacyPolicyURL,omitempty"` - CPEName string `json:"cpeName,omitempty"` - SupportEnd string `json:"supportEnd,omitempty"` + PrettyName string + Name string + ID string + IDLike IDLikes + Version string + VersionID string + VersionCodename string + BuildID string + ImageID string + ImageVersion string + Variant string + VariantID string + HomeURL string + SupportURL string + BugReportURL string + PrivacyPolicyURL string + CPEName string + SupportEnd string } func (s *IDLikes) UnmarshalJSON(data []byte) error { @@ -444,68 +444,68 @@ func (s *IDLikes) UnmarshalJSON(data []byte) error { } type SyftFile struct { - ID string `json:"id"` - Location Coordinates `json:"location"` - Metadata *FileMetadataEntry `json:"metadata,omitempty"` - Contents string `json:"contents,omitempty"` - Digests []Digest `json:"digests,omitempty"` - Licenses []FileLicense `json:"licenses,omitempty"` - Executable *Executable `json:"executable,omitempty"` + ID string + Location Coordinates + Metadata *FileMetadataEntry + Contents string + Digests []Digest + Licenses []FileLicense + Executable *Executable } type FileMetadataEntry struct { - Mode int `json:"mode"` - Type string `json:"type"` - LinkDestination string `json:"linkDestination,omitempty"` - UserID int `json:"userID"` - GroupID int `json:"groupID"` - MIMEType string `json:"mimeType"` - Size int64 `json:"size"` + Mode int64 + Type string + LinkDestination string + UserID int64 + GroupID int64 + MIMEType string + Size_ int64 } type FileLicense struct { - Value string `json:"value"` - SPDXExpression string `json:"spdxExpression"` - Type LicenseType `json:"type"` - Evidence *FileLicenseEvidence `json:"evidence,omitempty"` + Value string + SPDXExpression string + Type LicenseType + Evidence *FileLicenseEvidence } type Executable struct { // Format denotes either ELF, Mach-O, or PE - Format ExecutableFormat `json:"format" yaml:"format" mapstructure:"format"` + Format ExecutableFormat - HasExports bool `json:"hasExports" yaml:"hasExports" mapstructure:"hasExports"` - HasEntrypoint bool `json:"hasEntrypoint" yaml:"hasEntrypoint" mapstructure:"hasEntrypoint"` - ImportedLibraries []string `json:"importedLibraries" yaml:"importedLibraries" mapstructure:"importedLibraries"` - ELFSecurityFeatures *ELFSecurityFeatures `json:"elfSecurityFeatures,omitempty" yaml:"elfSecurityFeatures" mapstructure:"elfSecurityFeatures"` + HasExports bool + HasEntrypoint bool + ImportedLibraries []string + ELFSecurityFeatures *ELFSecurityFeatures } type ELFSecurityFeatures struct { - SymbolTableStripped bool `json:"symbolTableStripped" yaml:"symbolTableStripped" mapstructure:"symbolTableStripped"` + SymbolTableStripped bool // classic protections - StackCanary *bool `json:"stackCanary,omitempty" yaml:"stackCanary" mapstructure:"stackCanary"` - NoExecutable bool `json:"nx" yaml:"nx" mapstructure:"nx"` - RelocationReadOnly RelocationReadOnly `json:"relRO" yaml:"relRO" mapstructure:"relRO"` - PositionIndependentExecutable bool `json:"pie" yaml:"pie" mapstructure:"pie"` - DynamicSharedObject bool `json:"dso" yaml:"dso" mapstructure:"dso"` + StackCanary *bool + NoExecutable bool + RelocationReadOnly RelocationReadOnly + PositionIndependentExecutable bool + DynamicSharedObject bool // LlvmSafeStack represents a compiler-based security mechanism that separates the stack into a safe stack for storing return addresses and other critical data, and an unsafe stack for everything else, to mitigate stack-based memory corruption errors // see https://clang.llvm.org/docs/SafeStack.html - LlvmSafeStack *bool `json:"safeStack,omitempty" yaml:"safeStack" mapstructure:"safeStack"` + LlvmSafeStack *bool // ControlFlowIntegrity represents runtime checks to ensure a program's control flow adheres to the legal paths determined at compile time, thus protecting against various types of control-flow hijacking attacks // see https://clang.llvm.org/docs/ControlFlowIntegrity.html - LlvmControlFlowIntegrity *bool `json:"cfi,omitempty" yaml:"cfi" mapstructure:"cfi"` + LlvmControlFlowIntegrity *bool // ClangFortifySource is a broad suite of extensions to libc aimed at catching misuses of common library functions // see https://android.googlesource.com/platform//bionic/+/d192dbecf0b2a371eb127c0871f77a9caf81c4d2/docs/clang_fortify_anatomy.md - ClangFortifySource *bool `json:"fortify,omitempty" yaml:"fortify" mapstructure:"fortify"` + ClangFortifySource *bool //// Selfrando provides function order shuffling to defend against ROP and other types of code reuse //// see https://github.com/runsafesecurity/selfrando - // Selfrando *bool `json:"selfrando,omitempty" yaml:"selfrando" mapstructure:"selfrando"` + // Selfrando *bool } type ( @@ -514,30 +514,30 @@ type ( ) type FileLicenseEvidence struct { - Confidence int `json:"confidence"` - Offset int `json:"offset"` - Extent int `json:"extent"` + Confidence int64 + Offset int64 + Extent int64 } // SyftDescriptor describes what created the document as well as surrounding metadata type SyftDescriptor struct { - Name string `json:"name"` - Version string `json:"version"` - Configuration json.RawMessage `json:"configuration,omitempty"` + Name string + Version string + Configuration json.RawMessage } type Schema struct { - Version string `json:"version"` - URL string `json:"url"` + Version string + URL string } -// Document represents the syft cataloging findings as a JSON document +// SyftDocument represents the syft cataloging findings as a JSON document type SyftDocument struct { - Artifacts []SyftPackage `json:"artifacts"` // Artifacts is the list of packages discovered and placed into the catalog - ArtifactRelationships []SyftRelationship `json:"artifactRelationships"` - Files []SyftFile `json:"files,omitempty"` // note: must have omitempty - SyftSource SyftSource `json:"source"` // SyftSource represents the original object that was cataloged - Distro LinuxRelease `json:"distro"` // Distro represents the Linux distribution that was detected from the source - SyftDescriptor SyftDescriptor `json:"descriptor"` // SyftDescriptor is a block containing self-describing information about syft - Schema Schema `json:"schema"` // Schema is a block reserved for defining the version for the shape of this JSON document and where to find the schema document to validate the shape + Artifacts []SyftPackage // Artifacts is the list of packages discovered and placed into the catalog + ArtifactRelationships []SyftRelationship + Files []SyftFile // note: must have omitempty + SyftSource SyftSource // SyftSource represents the original object that was cataloged + Distro LinuxRelease // Distro represents the Linux distribution that was detected from the source + SyftDescriptor SyftDescriptor // SyftDescriptor is a block containing self-describing information about syft + Schema Schema // Schema is a block reserved for defining the version for the shape of this JSON document and where to find the schema document to validate the shape } diff --git a/pkg/apis/softwarecomposition/types.go b/pkg/apis/softwarecomposition/types.go index 24e3619f3..b6ac7ea19 100644 --- a/pkg/apis/softwarecomposition/types.go +++ b/pkg/apis/softwarecomposition/types.go @@ -24,16 +24,6 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// SBOMSPDXv2p3List is a list of Flunder objects. -type SBOMSPDXv2p3List struct { - metav1.TypeMeta - metav1.ListMeta - - Items []SBOMSPDXv2p3 -} - // ToolMeta describes metadata about a tool that generated an artifact type ToolMeta struct { Name string @@ -51,52 +41,6 @@ type SPDXMeta struct { Report ReportMeta } -// SBOMSPDXv2p3Spec is the specification of an SPDX SBOM. -type SBOMSPDXv2p3Spec struct { - Metadata SPDXMeta - SPDX Document -} - -// SBOMSPDXv2p3Status is the status of an SPDX SBOM. -type SBOMSPDXv2p3Status struct { -} - -// +genclient -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// SBOMSPDXv2p3 is a custom resource that describes an SBOM in the SPDX 2.3 format. -type SBOMSPDXv2p3 struct { - metav1.TypeMeta - metav1.ObjectMeta - - Spec SBOMSPDXv2p3Spec - Status SBOMSPDXv2p3Status -} - -// +genclient -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// SBOMSPDXv2p3Filtered is a custom resource that describes a filtered SBOM in the SPDX 2.3 format. -// -// Being filtered means that the SBOM contains only the relevant vulnerable materials. -type SBOMSPDXv2p3Filtered struct { - metav1.TypeMeta - metav1.ObjectMeta - - Spec SBOMSPDXv2p3Spec - Status SBOMSPDXv2p3Status -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// SBOMSPDXv2p3FilteredList is a list of SBOMSPDXv2p3Filtered objects. -type SBOMSPDXv2p3FilteredList struct { - metav1.TypeMeta - metav1.ListMeta - - Items []SBOMSPDXv2p3Filtered -} - // VulnerabilityManifestReportMeta holds metadata about the specific report // tied to a vulnerability manifest type VulnerabilityManifestReportMeta struct { @@ -152,8 +96,8 @@ type VulnerabilityManifestList struct { // // Intended to store relevant and total vulnerabilities in the future. type VulnerabilityCounters struct { - All int - Relevant int + All int64 + Relevant int64 } // SeveritySummary is a summary of all vulnerabilities included in vulnerability manifest @@ -499,7 +443,7 @@ type Metadata struct { // Version is the document version. It must be incremented when any content // within the VEX document changes, including any VEX statements included within // the VEX document. - Version int + Version int64 // Tooling expresses how the VEX document and contained VEX statements were // generated. It's optional. It may specify tools or automated processes used in @@ -564,7 +508,7 @@ type SBOMSyftList struct { // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// SBOMSyftFiltered is a custom resource that describes a filtered SBOM in the Syft 2.3 format. +// SBOMSyftFiltered is a custom resource that describes a filtered SBOM in the Syft format. // // Being filtered means that the SBOM contains only the relevant vulnerable materials. type SBOMSyftFiltered struct { @@ -640,7 +584,7 @@ type SingleSeccompProfileSpec struct { // Additional properties from OCI runtime spec // list of flags to use with seccomp(2) - Flags []*Flag + Flags []Flag } type Arch string @@ -655,7 +599,7 @@ type Syscall struct { Action seccomp.Action // the errno return code to use. Some actions like SCMP_ACT_ERRNO and // SCMP_ACT_TRACE allow to specify the errno code to return - ErrnoRet uint + ErrnoRet uint64 // the specific syscall in seccomp Args []*Arg } @@ -663,7 +607,7 @@ type Syscall struct { // Arg defines the specific syscall in seccomp. type Arg struct { // the index for syscall arguments in seccomp - Index uint + Index uint64 // the value for syscall arguments in seccomp Value uint64 // the value for syscall arguments in seccomp diff --git a/pkg/apis/softwarecomposition/v1beta1/generated.pb.go b/pkg/apis/softwarecomposition/v1beta1/generated.pb.go new file mode 100644 index 000000000..e79661fcc --- /dev/null +++ b/pkg/apis/softwarecomposition/v1beta1/generated.pb.go @@ -0,0 +1,44068 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1/generated.proto + +package v1beta1 + +import ( + encoding_binary "encoding/binary" + fmt "fmt" + + github_com_containers_common_pkg_seccomp "github.com/containers/common/pkg/seccomp" + + io "io" + + proto "github.com/gogo/protobuf/proto" + github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" + k8s_io_api_core_v1 "k8s.io/api/core/v1" + v11 "k8s.io/api/core/v1" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + + math "math" + math_bits "math/bits" + reflect "reflect" + strings "strings" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +func (m *Advisory) Reset() { *m = Advisory{} } +func (*Advisory) ProtoMessage() {} +func (*Advisory) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{0} +} +func (m *Advisory) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Advisory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *Advisory) XXX_Merge(src proto.Message) { + xxx_messageInfo_Advisory.Merge(m, src) +} +func (m *Advisory) XXX_Size() int { + return m.Size() +} +func (m *Advisory) XXX_DiscardUnknown() { + xxx_messageInfo_Advisory.DiscardUnknown(m) +} + +var xxx_messageInfo_Advisory proto.InternalMessageInfo + +func (m *ApplicationActivity) Reset() { *m = ApplicationActivity{} } +func (*ApplicationActivity) ProtoMessage() {} +func (*ApplicationActivity) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{1} +} +func (m *ApplicationActivity) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ApplicationActivity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ApplicationActivity) XXX_Merge(src proto.Message) { + xxx_messageInfo_ApplicationActivity.Merge(m, src) +} +func (m *ApplicationActivity) XXX_Size() int { + return m.Size() +} +func (m *ApplicationActivity) XXX_DiscardUnknown() { + xxx_messageInfo_ApplicationActivity.DiscardUnknown(m) +} + +var xxx_messageInfo_ApplicationActivity proto.InternalMessageInfo + +func (m *ApplicationActivityList) Reset() { *m = ApplicationActivityList{} } +func (*ApplicationActivityList) ProtoMessage() {} +func (*ApplicationActivityList) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{2} +} +func (m *ApplicationActivityList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ApplicationActivityList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ApplicationActivityList) XXX_Merge(src proto.Message) { + xxx_messageInfo_ApplicationActivityList.Merge(m, src) +} +func (m *ApplicationActivityList) XXX_Size() int { + return m.Size() +} +func (m *ApplicationActivityList) XXX_DiscardUnknown() { + xxx_messageInfo_ApplicationActivityList.DiscardUnknown(m) +} + +var xxx_messageInfo_ApplicationActivityList proto.InternalMessageInfo + +func (m *ApplicationActivitySpec) Reset() { *m = ApplicationActivitySpec{} } +func (*ApplicationActivitySpec) ProtoMessage() {} +func (*ApplicationActivitySpec) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{3} +} +func (m *ApplicationActivitySpec) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ApplicationActivitySpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ApplicationActivitySpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_ApplicationActivitySpec.Merge(m, src) +} +func (m *ApplicationActivitySpec) XXX_Size() int { + return m.Size() +} +func (m *ApplicationActivitySpec) XXX_DiscardUnknown() { + xxx_messageInfo_ApplicationActivitySpec.DiscardUnknown(m) +} + +var xxx_messageInfo_ApplicationActivitySpec proto.InternalMessageInfo + +func (m *ApplicationActivityStatus) Reset() { *m = ApplicationActivityStatus{} } +func (*ApplicationActivityStatus) ProtoMessage() {} +func (*ApplicationActivityStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{4} +} +func (m *ApplicationActivityStatus) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ApplicationActivityStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ApplicationActivityStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_ApplicationActivityStatus.Merge(m, src) +} +func (m *ApplicationActivityStatus) XXX_Size() int { + return m.Size() +} +func (m *ApplicationActivityStatus) XXX_DiscardUnknown() { + xxx_messageInfo_ApplicationActivityStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_ApplicationActivityStatus proto.InternalMessageInfo + +func (m *ApplicationProfile) Reset() { *m = ApplicationProfile{} } +func (*ApplicationProfile) ProtoMessage() {} +func (*ApplicationProfile) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{5} +} +func (m *ApplicationProfile) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ApplicationProfile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ApplicationProfile) XXX_Merge(src proto.Message) { + xxx_messageInfo_ApplicationProfile.Merge(m, src) +} +func (m *ApplicationProfile) XXX_Size() int { + return m.Size() +} +func (m *ApplicationProfile) XXX_DiscardUnknown() { + xxx_messageInfo_ApplicationProfile.DiscardUnknown(m) +} + +var xxx_messageInfo_ApplicationProfile proto.InternalMessageInfo + +func (m *ApplicationProfileContainer) Reset() { *m = ApplicationProfileContainer{} } +func (*ApplicationProfileContainer) ProtoMessage() {} +func (*ApplicationProfileContainer) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{6} +} +func (m *ApplicationProfileContainer) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ApplicationProfileContainer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ApplicationProfileContainer) XXX_Merge(src proto.Message) { + xxx_messageInfo_ApplicationProfileContainer.Merge(m, src) +} +func (m *ApplicationProfileContainer) XXX_Size() int { + return m.Size() +} +func (m *ApplicationProfileContainer) XXX_DiscardUnknown() { + xxx_messageInfo_ApplicationProfileContainer.DiscardUnknown(m) +} + +var xxx_messageInfo_ApplicationProfileContainer proto.InternalMessageInfo + +func (m *ApplicationProfileList) Reset() { *m = ApplicationProfileList{} } +func (*ApplicationProfileList) ProtoMessage() {} +func (*ApplicationProfileList) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{7} +} +func (m *ApplicationProfileList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ApplicationProfileList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ApplicationProfileList) XXX_Merge(src proto.Message) { + xxx_messageInfo_ApplicationProfileList.Merge(m, src) +} +func (m *ApplicationProfileList) XXX_Size() int { + return m.Size() +} +func (m *ApplicationProfileList) XXX_DiscardUnknown() { + xxx_messageInfo_ApplicationProfileList.DiscardUnknown(m) +} + +var xxx_messageInfo_ApplicationProfileList proto.InternalMessageInfo + +func (m *ApplicationProfileSpec) Reset() { *m = ApplicationProfileSpec{} } +func (*ApplicationProfileSpec) ProtoMessage() {} +func (*ApplicationProfileSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{8} +} +func (m *ApplicationProfileSpec) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ApplicationProfileSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ApplicationProfileSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_ApplicationProfileSpec.Merge(m, src) +} +func (m *ApplicationProfileSpec) XXX_Size() int { + return m.Size() +} +func (m *ApplicationProfileSpec) XXX_DiscardUnknown() { + xxx_messageInfo_ApplicationProfileSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_ApplicationProfileSpec proto.InternalMessageInfo + +func (m *ApplicationProfileStatus) Reset() { *m = ApplicationProfileStatus{} } +func (*ApplicationProfileStatus) ProtoMessage() {} +func (*ApplicationProfileStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{9} +} +func (m *ApplicationProfileStatus) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ApplicationProfileStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ApplicationProfileStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_ApplicationProfileStatus.Merge(m, src) +} +func (m *ApplicationProfileStatus) XXX_Size() int { + return m.Size() +} +func (m *ApplicationProfileStatus) XXX_DiscardUnknown() { + xxx_messageInfo_ApplicationProfileStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_ApplicationProfileStatus proto.InternalMessageInfo + +func (m *Arg) Reset() { *m = Arg{} } +func (*Arg) ProtoMessage() {} +func (*Arg) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{10} +} +func (m *Arg) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Arg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *Arg) XXX_Merge(src proto.Message) { + xxx_messageInfo_Arg.Merge(m, src) +} +func (m *Arg) XXX_Size() int { + return m.Size() +} +func (m *Arg) XXX_DiscardUnknown() { + xxx_messageInfo_Arg.DiscardUnknown(m) +} + +var xxx_messageInfo_Arg proto.InternalMessageInfo + +func (m *CPE) Reset() { *m = CPE{} } +func (*CPE) ProtoMessage() {} +func (*CPE) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{11} +} +func (m *CPE) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CPE) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *CPE) XXX_Merge(src proto.Message) { + xxx_messageInfo_CPE.Merge(m, src) +} +func (m *CPE) XXX_Size() int { + return m.Size() +} +func (m *CPE) XXX_DiscardUnknown() { + xxx_messageInfo_CPE.DiscardUnknown(m) +} + +var xxx_messageInfo_CPE proto.InternalMessageInfo + +func (m *Component) Reset() { *m = Component{} } +func (*Component) ProtoMessage() {} +func (*Component) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{12} +} +func (m *Component) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Component) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *Component) XXX_Merge(src proto.Message) { + xxx_messageInfo_Component.Merge(m, src) +} +func (m *Component) XXX_Size() int { + return m.Size() +} +func (m *Component) XXX_DiscardUnknown() { + xxx_messageInfo_Component.DiscardUnknown(m) +} + +var xxx_messageInfo_Component proto.InternalMessageInfo + +func (m *Condition) Reset() { *m = Condition{} } +func (*Condition) ProtoMessage() {} +func (*Condition) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{13} +} +func (m *Condition) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Condition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *Condition) XXX_Merge(src proto.Message) { + xxx_messageInfo_Condition.Merge(m, src) +} +func (m *Condition) XXX_Size() int { + return m.Size() +} +func (m *Condition) XXX_DiscardUnknown() { + xxx_messageInfo_Condition.DiscardUnknown(m) +} + +var xxx_messageInfo_Condition proto.InternalMessageInfo + +func (m *ConditionedStatus) Reset() { *m = ConditionedStatus{} } +func (*ConditionedStatus) ProtoMessage() {} +func (*ConditionedStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{14} +} +func (m *ConditionedStatus) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ConditionedStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ConditionedStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_ConditionedStatus.Merge(m, src) +} +func (m *ConditionedStatus) XXX_Size() int { + return m.Size() +} +func (m *ConditionedStatus) XXX_DiscardUnknown() { + xxx_messageInfo_ConditionedStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_ConditionedStatus proto.InternalMessageInfo + +func (m *ConfigurationScanSummary) Reset() { *m = ConfigurationScanSummary{} } +func (*ConfigurationScanSummary) ProtoMessage() {} +func (*ConfigurationScanSummary) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{15} +} +func (m *ConfigurationScanSummary) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ConfigurationScanSummary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ConfigurationScanSummary) XXX_Merge(src proto.Message) { + xxx_messageInfo_ConfigurationScanSummary.Merge(m, src) +} +func (m *ConfigurationScanSummary) XXX_Size() int { + return m.Size() +} +func (m *ConfigurationScanSummary) XXX_DiscardUnknown() { + xxx_messageInfo_ConfigurationScanSummary.DiscardUnknown(m) +} + +var xxx_messageInfo_ConfigurationScanSummary proto.InternalMessageInfo + +func (m *ConfigurationScanSummaryList) Reset() { *m = ConfigurationScanSummaryList{} } +func (*ConfigurationScanSummaryList) ProtoMessage() {} +func (*ConfigurationScanSummaryList) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{16} +} +func (m *ConfigurationScanSummaryList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ConfigurationScanSummaryList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ConfigurationScanSummaryList) XXX_Merge(src proto.Message) { + xxx_messageInfo_ConfigurationScanSummaryList.Merge(m, src) +} +func (m *ConfigurationScanSummaryList) XXX_Size() int { + return m.Size() +} +func (m *ConfigurationScanSummaryList) XXX_DiscardUnknown() { + xxx_messageInfo_ConfigurationScanSummaryList.DiscardUnknown(m) +} + +var xxx_messageInfo_ConfigurationScanSummaryList proto.InternalMessageInfo + +func (m *ConfigurationScanSummarySpec) Reset() { *m = ConfigurationScanSummarySpec{} } +func (*ConfigurationScanSummarySpec) ProtoMessage() {} +func (*ConfigurationScanSummarySpec) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{17} +} +func (m *ConfigurationScanSummarySpec) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ConfigurationScanSummarySpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ConfigurationScanSummarySpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_ConfigurationScanSummarySpec.Merge(m, src) +} +func (m *ConfigurationScanSummarySpec) XXX_Size() int { + return m.Size() +} +func (m *ConfigurationScanSummarySpec) XXX_DiscardUnknown() { + xxx_messageInfo_ConfigurationScanSummarySpec.DiscardUnknown(m) +} + +var xxx_messageInfo_ConfigurationScanSummarySpec proto.InternalMessageInfo + +func (m *ControlSeverity) Reset() { *m = ControlSeverity{} } +func (*ControlSeverity) ProtoMessage() {} +func (*ControlSeverity) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{18} +} +func (m *ControlSeverity) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ControlSeverity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ControlSeverity) XXX_Merge(src proto.Message) { + xxx_messageInfo_ControlSeverity.Merge(m, src) +} +func (m *ControlSeverity) XXX_Size() int { + return m.Size() +} +func (m *ControlSeverity) XXX_DiscardUnknown() { + xxx_messageInfo_ControlSeverity.DiscardUnknown(m) +} + +var xxx_messageInfo_ControlSeverity proto.InternalMessageInfo + +func (m *Coordinates) Reset() { *m = Coordinates{} } +func (*Coordinates) ProtoMessage() {} +func (*Coordinates) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{19} +} +func (m *Coordinates) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Coordinates) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *Coordinates) XXX_Merge(src proto.Message) { + xxx_messageInfo_Coordinates.Merge(m, src) +} +func (m *Coordinates) XXX_Size() int { + return m.Size() +} +func (m *Coordinates) XXX_DiscardUnknown() { + xxx_messageInfo_Coordinates.DiscardUnknown(m) +} + +var xxx_messageInfo_Coordinates proto.InternalMessageInfo + +func (m *Cvss) Reset() { *m = Cvss{} } +func (*Cvss) ProtoMessage() {} +func (*Cvss) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{20} +} +func (m *Cvss) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Cvss) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *Cvss) XXX_Merge(src proto.Message) { + xxx_messageInfo_Cvss.Merge(m, src) +} +func (m *Cvss) XXX_Size() int { + return m.Size() +} +func (m *Cvss) XXX_DiscardUnknown() { + xxx_messageInfo_Cvss.DiscardUnknown(m) +} + +var xxx_messageInfo_Cvss proto.InternalMessageInfo + +func (m *CvssMetrics) Reset() { *m = CvssMetrics{} } +func (*CvssMetrics) ProtoMessage() {} +func (*CvssMetrics) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{21} +} +func (m *CvssMetrics) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CvssMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *CvssMetrics) XXX_Merge(src proto.Message) { + xxx_messageInfo_CvssMetrics.Merge(m, src) +} +func (m *CvssMetrics) XXX_Size() int { + return m.Size() +} +func (m *CvssMetrics) XXX_DiscardUnknown() { + xxx_messageInfo_CvssMetrics.DiscardUnknown(m) +} + +var xxx_messageInfo_CvssMetrics proto.InternalMessageInfo + +func (m *Descriptor) Reset() { *m = Descriptor{} } +func (*Descriptor) ProtoMessage() {} +func (*Descriptor) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{22} +} +func (m *Descriptor) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Descriptor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *Descriptor) XXX_Merge(src proto.Message) { + xxx_messageInfo_Descriptor.Merge(m, src) +} +func (m *Descriptor) XXX_Size() int { + return m.Size() +} +func (m *Descriptor) XXX_DiscardUnknown() { + xxx_messageInfo_Descriptor.DiscardUnknown(m) +} + +var xxx_messageInfo_Descriptor proto.InternalMessageInfo + +func (m *Digest) Reset() { *m = Digest{} } +func (*Digest) ProtoMessage() {} +func (*Digest) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{23} +} +func (m *Digest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Digest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *Digest) XXX_Merge(src proto.Message) { + xxx_messageInfo_Digest.Merge(m, src) +} +func (m *Digest) XXX_Size() int { + return m.Size() +} +func (m *Digest) XXX_DiscardUnknown() { + xxx_messageInfo_Digest.DiscardUnknown(m) +} + +var xxx_messageInfo_Digest proto.InternalMessageInfo + +func (m *Distribution) Reset() { *m = Distribution{} } +func (*Distribution) ProtoMessage() {} +func (*Distribution) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{24} +} +func (m *Distribution) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Distribution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *Distribution) XXX_Merge(src proto.Message) { + xxx_messageInfo_Distribution.Merge(m, src) +} +func (m *Distribution) XXX_Size() int { + return m.Size() +} +func (m *Distribution) XXX_DiscardUnknown() { + xxx_messageInfo_Distribution.DiscardUnknown(m) +} + +var xxx_messageInfo_Distribution proto.InternalMessageInfo + +func (m *ELFSecurityFeatures) Reset() { *m = ELFSecurityFeatures{} } +func (*ELFSecurityFeatures) ProtoMessage() {} +func (*ELFSecurityFeatures) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{25} +} +func (m *ELFSecurityFeatures) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ELFSecurityFeatures) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ELFSecurityFeatures) XXX_Merge(src proto.Message) { + xxx_messageInfo_ELFSecurityFeatures.Merge(m, src) +} +func (m *ELFSecurityFeatures) XXX_Size() int { + return m.Size() +} +func (m *ELFSecurityFeatures) XXX_DiscardUnknown() { + xxx_messageInfo_ELFSecurityFeatures.DiscardUnknown(m) +} + +var xxx_messageInfo_ELFSecurityFeatures proto.InternalMessageInfo + +func (m *ExecCalls) Reset() { *m = ExecCalls{} } +func (*ExecCalls) ProtoMessage() {} +func (*ExecCalls) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{26} +} +func (m *ExecCalls) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ExecCalls) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ExecCalls) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExecCalls.Merge(m, src) +} +func (m *ExecCalls) XXX_Size() int { + return m.Size() +} +func (m *ExecCalls) XXX_DiscardUnknown() { + xxx_messageInfo_ExecCalls.DiscardUnknown(m) +} + +var xxx_messageInfo_ExecCalls proto.InternalMessageInfo + +func (m *Executable) Reset() { *m = Executable{} } +func (*Executable) ProtoMessage() {} +func (*Executable) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{27} +} +func (m *Executable) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Executable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *Executable) XXX_Merge(src proto.Message) { + xxx_messageInfo_Executable.Merge(m, src) +} +func (m *Executable) XXX_Size() int { + return m.Size() +} +func (m *Executable) XXX_DiscardUnknown() { + xxx_messageInfo_Executable.DiscardUnknown(m) +} + +var xxx_messageInfo_Executable proto.InternalMessageInfo + +func (m *FileLicense) Reset() { *m = FileLicense{} } +func (*FileLicense) ProtoMessage() {} +func (*FileLicense) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{28} +} +func (m *FileLicense) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FileLicense) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *FileLicense) XXX_Merge(src proto.Message) { + xxx_messageInfo_FileLicense.Merge(m, src) +} +func (m *FileLicense) XXX_Size() int { + return m.Size() +} +func (m *FileLicense) XXX_DiscardUnknown() { + xxx_messageInfo_FileLicense.DiscardUnknown(m) +} + +var xxx_messageInfo_FileLicense proto.InternalMessageInfo + +func (m *FileLicenseEvidence) Reset() { *m = FileLicenseEvidence{} } +func (*FileLicenseEvidence) ProtoMessage() {} +func (*FileLicenseEvidence) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{29} +} +func (m *FileLicenseEvidence) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FileLicenseEvidence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *FileLicenseEvidence) XXX_Merge(src proto.Message) { + xxx_messageInfo_FileLicenseEvidence.Merge(m, src) +} +func (m *FileLicenseEvidence) XXX_Size() int { + return m.Size() +} +func (m *FileLicenseEvidence) XXX_DiscardUnknown() { + xxx_messageInfo_FileLicenseEvidence.DiscardUnknown(m) +} + +var xxx_messageInfo_FileLicenseEvidence proto.InternalMessageInfo + +func (m *FileMetadataEntry) Reset() { *m = FileMetadataEntry{} } +func (*FileMetadataEntry) ProtoMessage() {} +func (*FileMetadataEntry) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{30} +} +func (m *FileMetadataEntry) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FileMetadataEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *FileMetadataEntry) XXX_Merge(src proto.Message) { + xxx_messageInfo_FileMetadataEntry.Merge(m, src) +} +func (m *FileMetadataEntry) XXX_Size() int { + return m.Size() +} +func (m *FileMetadataEntry) XXX_DiscardUnknown() { + xxx_messageInfo_FileMetadataEntry.DiscardUnknown(m) +} + +var xxx_messageInfo_FileMetadataEntry proto.InternalMessageInfo + +func (m *Fix) Reset() { *m = Fix{} } +func (*Fix) ProtoMessage() {} +func (*Fix) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{31} +} +func (m *Fix) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Fix) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *Fix) XXX_Merge(src proto.Message) { + xxx_messageInfo_Fix.Merge(m, src) +} +func (m *Fix) XXX_Size() int { + return m.Size() +} +func (m *Fix) XXX_DiscardUnknown() { + xxx_messageInfo_Fix.DiscardUnknown(m) +} + +var xxx_messageInfo_Fix proto.InternalMessageInfo + +func (m *GeneratedNetworkPolicy) Reset() { *m = GeneratedNetworkPolicy{} } +func (*GeneratedNetworkPolicy) ProtoMessage() {} +func (*GeneratedNetworkPolicy) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{32} +} +func (m *GeneratedNetworkPolicy) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GeneratedNetworkPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *GeneratedNetworkPolicy) XXX_Merge(src proto.Message) { + xxx_messageInfo_GeneratedNetworkPolicy.Merge(m, src) +} +func (m *GeneratedNetworkPolicy) XXX_Size() int { + return m.Size() +} +func (m *GeneratedNetworkPolicy) XXX_DiscardUnknown() { + xxx_messageInfo_GeneratedNetworkPolicy.DiscardUnknown(m) +} + +var xxx_messageInfo_GeneratedNetworkPolicy proto.InternalMessageInfo + +func (m *GeneratedNetworkPolicyList) Reset() { *m = GeneratedNetworkPolicyList{} } +func (*GeneratedNetworkPolicyList) ProtoMessage() {} +func (*GeneratedNetworkPolicyList) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{33} +} +func (m *GeneratedNetworkPolicyList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GeneratedNetworkPolicyList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *GeneratedNetworkPolicyList) XXX_Merge(src proto.Message) { + xxx_messageInfo_GeneratedNetworkPolicyList.Merge(m, src) +} +func (m *GeneratedNetworkPolicyList) XXX_Size() int { + return m.Size() +} +func (m *GeneratedNetworkPolicyList) XXX_DiscardUnknown() { + xxx_messageInfo_GeneratedNetworkPolicyList.DiscardUnknown(m) +} + +var xxx_messageInfo_GeneratedNetworkPolicyList proto.InternalMessageInfo + +func (m *GrypeDocument) Reset() { *m = GrypeDocument{} } +func (*GrypeDocument) ProtoMessage() {} +func (*GrypeDocument) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{34} +} +func (m *GrypeDocument) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GrypeDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *GrypeDocument) XXX_Merge(src proto.Message) { + xxx_messageInfo_GrypeDocument.Merge(m, src) +} +func (m *GrypeDocument) XXX_Size() int { + return m.Size() +} +func (m *GrypeDocument) XXX_DiscardUnknown() { + xxx_messageInfo_GrypeDocument.DiscardUnknown(m) +} + +var xxx_messageInfo_GrypeDocument proto.InternalMessageInfo + +func (m *GrypePackage) Reset() { *m = GrypePackage{} } +func (*GrypePackage) ProtoMessage() {} +func (*GrypePackage) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{35} +} +func (m *GrypePackage) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GrypePackage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *GrypePackage) XXX_Merge(src proto.Message) { + xxx_messageInfo_GrypePackage.Merge(m, src) +} +func (m *GrypePackage) XXX_Size() int { + return m.Size() +} +func (m *GrypePackage) XXX_DiscardUnknown() { + xxx_messageInfo_GrypePackage.DiscardUnknown(m) +} + +var xxx_messageInfo_GrypePackage proto.InternalMessageInfo + +func (m *HTTPIngressPath) Reset() { *m = HTTPIngressPath{} } +func (*HTTPIngressPath) ProtoMessage() {} +func (*HTTPIngressPath) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{36} +} +func (m *HTTPIngressPath) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *HTTPIngressPath) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *HTTPIngressPath) XXX_Merge(src proto.Message) { + xxx_messageInfo_HTTPIngressPath.Merge(m, src) +} +func (m *HTTPIngressPath) XXX_Size() int { + return m.Size() +} +func (m *HTTPIngressPath) XXX_DiscardUnknown() { + xxx_messageInfo_HTTPIngressPath.DiscardUnknown(m) +} + +var xxx_messageInfo_HTTPIngressPath proto.InternalMessageInfo + +func (m *HTTPIngressRuleValue) Reset() { *m = HTTPIngressRuleValue{} } +func (*HTTPIngressRuleValue) ProtoMessage() {} +func (*HTTPIngressRuleValue) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{37} +} +func (m *HTTPIngressRuleValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *HTTPIngressRuleValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *HTTPIngressRuleValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_HTTPIngressRuleValue.Merge(m, src) +} +func (m *HTTPIngressRuleValue) XXX_Size() int { + return m.Size() +} +func (m *HTTPIngressRuleValue) XXX_DiscardUnknown() { + xxx_messageInfo_HTTPIngressRuleValue.DiscardUnknown(m) +} + +var xxx_messageInfo_HTTPIngressRuleValue proto.InternalMessageInfo + +func (m *IPBlock) Reset() { *m = IPBlock{} } +func (*IPBlock) ProtoMessage() {} +func (*IPBlock) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{38} +} +func (m *IPBlock) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IPBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *IPBlock) XXX_Merge(src proto.Message) { + xxx_messageInfo_IPBlock.Merge(m, src) +} +func (m *IPBlock) XXX_Size() int { + return m.Size() +} +func (m *IPBlock) XXX_DiscardUnknown() { + xxx_messageInfo_IPBlock.DiscardUnknown(m) +} + +var xxx_messageInfo_IPBlock proto.InternalMessageInfo + +func (m *IgnoreRule) Reset() { *m = IgnoreRule{} } +func (*IgnoreRule) ProtoMessage() {} +func (*IgnoreRule) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{39} +} +func (m *IgnoreRule) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IgnoreRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *IgnoreRule) XXX_Merge(src proto.Message) { + xxx_messageInfo_IgnoreRule.Merge(m, src) +} +func (m *IgnoreRule) XXX_Size() int { + return m.Size() +} +func (m *IgnoreRule) XXX_DiscardUnknown() { + xxx_messageInfo_IgnoreRule.DiscardUnknown(m) +} + +var xxx_messageInfo_IgnoreRule proto.InternalMessageInfo + +func (m *IgnoreRulePackage) Reset() { *m = IgnoreRulePackage{} } +func (*IgnoreRulePackage) ProtoMessage() {} +func (*IgnoreRulePackage) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{40} +} +func (m *IgnoreRulePackage) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IgnoreRulePackage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *IgnoreRulePackage) XXX_Merge(src proto.Message) { + xxx_messageInfo_IgnoreRulePackage.Merge(m, src) +} +func (m *IgnoreRulePackage) XXX_Size() int { + return m.Size() +} +func (m *IgnoreRulePackage) XXX_DiscardUnknown() { + xxx_messageInfo_IgnoreRulePackage.DiscardUnknown(m) +} + +var xxx_messageInfo_IgnoreRulePackage proto.InternalMessageInfo + +func (m *IgnoredMatch) Reset() { *m = IgnoredMatch{} } +func (*IgnoredMatch) ProtoMessage() {} +func (*IgnoredMatch) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{41} +} +func (m *IgnoredMatch) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IgnoredMatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *IgnoredMatch) XXX_Merge(src proto.Message) { + xxx_messageInfo_IgnoredMatch.Merge(m, src) +} +func (m *IgnoredMatch) XXX_Size() int { + return m.Size() +} +func (m *IgnoredMatch) XXX_DiscardUnknown() { + xxx_messageInfo_IgnoredMatch.DiscardUnknown(m) +} + +var xxx_messageInfo_IgnoredMatch proto.InternalMessageInfo + +func (m *Ingress) Reset() { *m = Ingress{} } +func (*Ingress) ProtoMessage() {} +func (*Ingress) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{42} +} +func (m *Ingress) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Ingress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *Ingress) XXX_Merge(src proto.Message) { + xxx_messageInfo_Ingress.Merge(m, src) +} +func (m *Ingress) XXX_Size() int { + return m.Size() +} +func (m *Ingress) XXX_DiscardUnknown() { + xxx_messageInfo_Ingress.DiscardUnknown(m) +} + +var xxx_messageInfo_Ingress proto.InternalMessageInfo + +func (m *IngressBackend) Reset() { *m = IngressBackend{} } +func (*IngressBackend) ProtoMessage() {} +func (*IngressBackend) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{43} +} +func (m *IngressBackend) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IngressBackend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *IngressBackend) XXX_Merge(src proto.Message) { + xxx_messageInfo_IngressBackend.Merge(m, src) +} +func (m *IngressBackend) XXX_Size() int { + return m.Size() +} +func (m *IngressBackend) XXX_DiscardUnknown() { + xxx_messageInfo_IngressBackend.DiscardUnknown(m) +} + +var xxx_messageInfo_IngressBackend proto.InternalMessageInfo + +func (m *IngressClass) Reset() { *m = IngressClass{} } +func (*IngressClass) ProtoMessage() {} +func (*IngressClass) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{44} +} +func (m *IngressClass) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IngressClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *IngressClass) XXX_Merge(src proto.Message) { + xxx_messageInfo_IngressClass.Merge(m, src) +} +func (m *IngressClass) XXX_Size() int { + return m.Size() +} +func (m *IngressClass) XXX_DiscardUnknown() { + xxx_messageInfo_IngressClass.DiscardUnknown(m) +} + +var xxx_messageInfo_IngressClass proto.InternalMessageInfo + +func (m *IngressClassList) Reset() { *m = IngressClassList{} } +func (*IngressClassList) ProtoMessage() {} +func (*IngressClassList) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{45} +} +func (m *IngressClassList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IngressClassList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *IngressClassList) XXX_Merge(src proto.Message) { + xxx_messageInfo_IngressClassList.Merge(m, src) +} +func (m *IngressClassList) XXX_Size() int { + return m.Size() +} +func (m *IngressClassList) XXX_DiscardUnknown() { + xxx_messageInfo_IngressClassList.DiscardUnknown(m) +} + +var xxx_messageInfo_IngressClassList proto.InternalMessageInfo + +func (m *IngressClassParametersReference) Reset() { *m = IngressClassParametersReference{} } +func (*IngressClassParametersReference) ProtoMessage() {} +func (*IngressClassParametersReference) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{46} +} +func (m *IngressClassParametersReference) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IngressClassParametersReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *IngressClassParametersReference) XXX_Merge(src proto.Message) { + xxx_messageInfo_IngressClassParametersReference.Merge(m, src) +} +func (m *IngressClassParametersReference) XXX_Size() int { + return m.Size() +} +func (m *IngressClassParametersReference) XXX_DiscardUnknown() { + xxx_messageInfo_IngressClassParametersReference.DiscardUnknown(m) +} + +var xxx_messageInfo_IngressClassParametersReference proto.InternalMessageInfo + +func (m *IngressClassSpec) Reset() { *m = IngressClassSpec{} } +func (*IngressClassSpec) ProtoMessage() {} +func (*IngressClassSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{47} +} +func (m *IngressClassSpec) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IngressClassSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *IngressClassSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_IngressClassSpec.Merge(m, src) +} +func (m *IngressClassSpec) XXX_Size() int { + return m.Size() +} +func (m *IngressClassSpec) XXX_DiscardUnknown() { + xxx_messageInfo_IngressClassSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_IngressClassSpec proto.InternalMessageInfo + +func (m *IngressList) Reset() { *m = IngressList{} } +func (*IngressList) ProtoMessage() {} +func (*IngressList) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{48} +} +func (m *IngressList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IngressList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *IngressList) XXX_Merge(src proto.Message) { + xxx_messageInfo_IngressList.Merge(m, src) +} +func (m *IngressList) XXX_Size() int { + return m.Size() +} +func (m *IngressList) XXX_DiscardUnknown() { + xxx_messageInfo_IngressList.DiscardUnknown(m) +} + +var xxx_messageInfo_IngressList proto.InternalMessageInfo + +func (m *IngressLoadBalancerIngress) Reset() { *m = IngressLoadBalancerIngress{} } +func (*IngressLoadBalancerIngress) ProtoMessage() {} +func (*IngressLoadBalancerIngress) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{49} +} +func (m *IngressLoadBalancerIngress) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IngressLoadBalancerIngress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *IngressLoadBalancerIngress) XXX_Merge(src proto.Message) { + xxx_messageInfo_IngressLoadBalancerIngress.Merge(m, src) +} +func (m *IngressLoadBalancerIngress) XXX_Size() int { + return m.Size() +} +func (m *IngressLoadBalancerIngress) XXX_DiscardUnknown() { + xxx_messageInfo_IngressLoadBalancerIngress.DiscardUnknown(m) +} + +var xxx_messageInfo_IngressLoadBalancerIngress proto.InternalMessageInfo + +func (m *IngressLoadBalancerStatus) Reset() { *m = IngressLoadBalancerStatus{} } +func (*IngressLoadBalancerStatus) ProtoMessage() {} +func (*IngressLoadBalancerStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{50} +} +func (m *IngressLoadBalancerStatus) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IngressLoadBalancerStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *IngressLoadBalancerStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_IngressLoadBalancerStatus.Merge(m, src) +} +func (m *IngressLoadBalancerStatus) XXX_Size() int { + return m.Size() +} +func (m *IngressLoadBalancerStatus) XXX_DiscardUnknown() { + xxx_messageInfo_IngressLoadBalancerStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_IngressLoadBalancerStatus proto.InternalMessageInfo + +func (m *IngressPortStatus) Reset() { *m = IngressPortStatus{} } +func (*IngressPortStatus) ProtoMessage() {} +func (*IngressPortStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{51} +} +func (m *IngressPortStatus) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IngressPortStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *IngressPortStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_IngressPortStatus.Merge(m, src) +} +func (m *IngressPortStatus) XXX_Size() int { + return m.Size() +} +func (m *IngressPortStatus) XXX_DiscardUnknown() { + xxx_messageInfo_IngressPortStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_IngressPortStatus proto.InternalMessageInfo + +func (m *IngressRule) Reset() { *m = IngressRule{} } +func (*IngressRule) ProtoMessage() {} +func (*IngressRule) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{52} +} +func (m *IngressRule) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IngressRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *IngressRule) XXX_Merge(src proto.Message) { + xxx_messageInfo_IngressRule.Merge(m, src) +} +func (m *IngressRule) XXX_Size() int { + return m.Size() +} +func (m *IngressRule) XXX_DiscardUnknown() { + xxx_messageInfo_IngressRule.DiscardUnknown(m) +} + +var xxx_messageInfo_IngressRule proto.InternalMessageInfo + +func (m *IngressRuleValue) Reset() { *m = IngressRuleValue{} } +func (*IngressRuleValue) ProtoMessage() {} +func (*IngressRuleValue) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{53} +} +func (m *IngressRuleValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IngressRuleValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *IngressRuleValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_IngressRuleValue.Merge(m, src) +} +func (m *IngressRuleValue) XXX_Size() int { + return m.Size() +} +func (m *IngressRuleValue) XXX_DiscardUnknown() { + xxx_messageInfo_IngressRuleValue.DiscardUnknown(m) +} + +var xxx_messageInfo_IngressRuleValue proto.InternalMessageInfo + +func (m *IngressServiceBackend) Reset() { *m = IngressServiceBackend{} } +func (*IngressServiceBackend) ProtoMessage() {} +func (*IngressServiceBackend) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{54} +} +func (m *IngressServiceBackend) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IngressServiceBackend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *IngressServiceBackend) XXX_Merge(src proto.Message) { + xxx_messageInfo_IngressServiceBackend.Merge(m, src) +} +func (m *IngressServiceBackend) XXX_Size() int { + return m.Size() +} +func (m *IngressServiceBackend) XXX_DiscardUnknown() { + xxx_messageInfo_IngressServiceBackend.DiscardUnknown(m) +} + +var xxx_messageInfo_IngressServiceBackend proto.InternalMessageInfo + +func (m *IngressSpec) Reset() { *m = IngressSpec{} } +func (*IngressSpec) ProtoMessage() {} +func (*IngressSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{55} +} +func (m *IngressSpec) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IngressSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *IngressSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_IngressSpec.Merge(m, src) +} +func (m *IngressSpec) XXX_Size() int { + return m.Size() +} +func (m *IngressSpec) XXX_DiscardUnknown() { + xxx_messageInfo_IngressSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_IngressSpec proto.InternalMessageInfo + +func (m *IngressStatus) Reset() { *m = IngressStatus{} } +func (*IngressStatus) ProtoMessage() {} +func (*IngressStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{56} +} +func (m *IngressStatus) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IngressStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *IngressStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_IngressStatus.Merge(m, src) +} +func (m *IngressStatus) XXX_Size() int { + return m.Size() +} +func (m *IngressStatus) XXX_DiscardUnknown() { + xxx_messageInfo_IngressStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_IngressStatus proto.InternalMessageInfo + +func (m *IngressTLS) Reset() { *m = IngressTLS{} } +func (*IngressTLS) ProtoMessage() {} +func (*IngressTLS) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{57} +} +func (m *IngressTLS) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IngressTLS) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *IngressTLS) XXX_Merge(src proto.Message) { + xxx_messageInfo_IngressTLS.Merge(m, src) +} +func (m *IngressTLS) XXX_Size() int { + return m.Size() +} +func (m *IngressTLS) XXX_DiscardUnknown() { + xxx_messageInfo_IngressTLS.DiscardUnknown(m) +} + +var xxx_messageInfo_IngressTLS proto.InternalMessageInfo + +func (m *KnownServer) Reset() { *m = KnownServer{} } +func (*KnownServer) ProtoMessage() {} +func (*KnownServer) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{58} +} +func (m *KnownServer) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *KnownServer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *KnownServer) XXX_Merge(src proto.Message) { + xxx_messageInfo_KnownServer.Merge(m, src) +} +func (m *KnownServer) XXX_Size() int { + return m.Size() +} +func (m *KnownServer) XXX_DiscardUnknown() { + xxx_messageInfo_KnownServer.DiscardUnknown(m) +} + +var xxx_messageInfo_KnownServer proto.InternalMessageInfo + +func (m *KnownServerEntry) Reset() { *m = KnownServerEntry{} } +func (*KnownServerEntry) ProtoMessage() {} +func (*KnownServerEntry) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{59} +} +func (m *KnownServerEntry) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *KnownServerEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *KnownServerEntry) XXX_Merge(src proto.Message) { + xxx_messageInfo_KnownServerEntry.Merge(m, src) +} +func (m *KnownServerEntry) XXX_Size() int { + return m.Size() +} +func (m *KnownServerEntry) XXX_DiscardUnknown() { + xxx_messageInfo_KnownServerEntry.DiscardUnknown(m) +} + +var xxx_messageInfo_KnownServerEntry proto.InternalMessageInfo + +func (m *KnownServerList) Reset() { *m = KnownServerList{} } +func (*KnownServerList) ProtoMessage() {} +func (*KnownServerList) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{60} +} +func (m *KnownServerList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *KnownServerList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *KnownServerList) XXX_Merge(src proto.Message) { + xxx_messageInfo_KnownServerList.Merge(m, src) +} +func (m *KnownServerList) XXX_Size() int { + return m.Size() +} +func (m *KnownServerList) XXX_DiscardUnknown() { + xxx_messageInfo_KnownServerList.DiscardUnknown(m) +} + +var xxx_messageInfo_KnownServerList proto.InternalMessageInfo + +func (m *License) Reset() { *m = License{} } +func (*License) ProtoMessage() {} +func (*License) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{61} +} +func (m *License) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *License) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *License) XXX_Merge(src proto.Message) { + xxx_messageInfo_License.Merge(m, src) +} +func (m *License) XXX_Size() int { + return m.Size() +} +func (m *License) XXX_DiscardUnknown() { + xxx_messageInfo_License.DiscardUnknown(m) +} + +var xxx_messageInfo_License proto.InternalMessageInfo + +func (m *LinuxRelease) Reset() { *m = LinuxRelease{} } +func (*LinuxRelease) ProtoMessage() {} +func (*LinuxRelease) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{62} +} +func (m *LinuxRelease) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LinuxRelease) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *LinuxRelease) XXX_Merge(src proto.Message) { + xxx_messageInfo_LinuxRelease.Merge(m, src) +} +func (m *LinuxRelease) XXX_Size() int { + return m.Size() +} +func (m *LinuxRelease) XXX_DiscardUnknown() { + xxx_messageInfo_LinuxRelease.DiscardUnknown(m) +} + +var xxx_messageInfo_LinuxRelease proto.InternalMessageInfo + +func (m *Location) Reset() { *m = Location{} } +func (*Location) ProtoMessage() {} +func (*Location) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{63} +} +func (m *Location) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Location) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *Location) XXX_Merge(src proto.Message) { + xxx_messageInfo_Location.Merge(m, src) +} +func (m *Location) XXX_Size() int { + return m.Size() +} +func (m *Location) XXX_DiscardUnknown() { + xxx_messageInfo_Location.DiscardUnknown(m) +} + +var xxx_messageInfo_Location proto.InternalMessageInfo + +func (m *LocationData) Reset() { *m = LocationData{} } +func (*LocationData) ProtoMessage() {} +func (*LocationData) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{64} +} +func (m *LocationData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LocationData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *LocationData) XXX_Merge(src proto.Message) { + xxx_messageInfo_LocationData.Merge(m, src) +} +func (m *LocationData) XXX_Size() int { + return m.Size() +} +func (m *LocationData) XXX_DiscardUnknown() { + xxx_messageInfo_LocationData.DiscardUnknown(m) +} + +var xxx_messageInfo_LocationData proto.InternalMessageInfo + +func (m *LocationMetadata) Reset() { *m = LocationMetadata{} } +func (*LocationMetadata) ProtoMessage() {} +func (*LocationMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{65} +} +func (m *LocationMetadata) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LocationMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *LocationMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_LocationMetadata.Merge(m, src) +} +func (m *LocationMetadata) XXX_Size() int { + return m.Size() +} +func (m *LocationMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_LocationMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_LocationMetadata proto.InternalMessageInfo + +func (m *Match) Reset() { *m = Match{} } +func (*Match) ProtoMessage() {} +func (*Match) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{66} +} +func (m *Match) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Match) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *Match) XXX_Merge(src proto.Message) { + xxx_messageInfo_Match.Merge(m, src) +} +func (m *Match) XXX_Size() int { + return m.Size() +} +func (m *Match) XXX_DiscardUnknown() { + xxx_messageInfo_Match.DiscardUnknown(m) +} + +var xxx_messageInfo_Match proto.InternalMessageInfo + +func (m *MatchDetails) Reset() { *m = MatchDetails{} } +func (*MatchDetails) ProtoMessage() {} +func (*MatchDetails) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{67} +} +func (m *MatchDetails) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MatchDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *MatchDetails) XXX_Merge(src proto.Message) { + xxx_messageInfo_MatchDetails.Merge(m, src) +} +func (m *MatchDetails) XXX_Size() int { + return m.Size() +} +func (m *MatchDetails) XXX_DiscardUnknown() { + xxx_messageInfo_MatchDetails.DiscardUnknown(m) +} + +var xxx_messageInfo_MatchDetails proto.InternalMessageInfo + +func (m *Metadata) Reset() { *m = Metadata{} } +func (*Metadata) ProtoMessage() {} +func (*Metadata) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{68} +} +func (m *Metadata) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Metadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *Metadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_Metadata.Merge(m, src) +} +func (m *Metadata) XXX_Size() int { + return m.Size() +} +func (m *Metadata) XXX_DiscardUnknown() { + xxx_messageInfo_Metadata.DiscardUnknown(m) +} + +var xxx_messageInfo_Metadata proto.InternalMessageInfo + +func (m *NetworkNeighbor) Reset() { *m = NetworkNeighbor{} } +func (*NetworkNeighbor) ProtoMessage() {} +func (*NetworkNeighbor) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{69} +} +func (m *NetworkNeighbor) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkNeighbor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *NetworkNeighbor) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkNeighbor.Merge(m, src) +} +func (m *NetworkNeighbor) XXX_Size() int { + return m.Size() +} +func (m *NetworkNeighbor) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkNeighbor.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkNeighbor proto.InternalMessageInfo + +func (m *NetworkNeighborhood) Reset() { *m = NetworkNeighborhood{} } +func (*NetworkNeighborhood) ProtoMessage() {} +func (*NetworkNeighborhood) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{70} +} +func (m *NetworkNeighborhood) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkNeighborhood) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *NetworkNeighborhood) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkNeighborhood.Merge(m, src) +} +func (m *NetworkNeighborhood) XXX_Size() int { + return m.Size() +} +func (m *NetworkNeighborhood) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkNeighborhood.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkNeighborhood proto.InternalMessageInfo + +func (m *NetworkNeighborhoodContainer) Reset() { *m = NetworkNeighborhoodContainer{} } +func (*NetworkNeighborhoodContainer) ProtoMessage() {} +func (*NetworkNeighborhoodContainer) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{71} +} +func (m *NetworkNeighborhoodContainer) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkNeighborhoodContainer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *NetworkNeighborhoodContainer) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkNeighborhoodContainer.Merge(m, src) +} +func (m *NetworkNeighborhoodContainer) XXX_Size() int { + return m.Size() +} +func (m *NetworkNeighborhoodContainer) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkNeighborhoodContainer.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkNeighborhoodContainer proto.InternalMessageInfo + +func (m *NetworkNeighborhoodList) Reset() { *m = NetworkNeighborhoodList{} } +func (*NetworkNeighborhoodList) ProtoMessage() {} +func (*NetworkNeighborhoodList) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{72} +} +func (m *NetworkNeighborhoodList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkNeighborhoodList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *NetworkNeighborhoodList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkNeighborhoodList.Merge(m, src) +} +func (m *NetworkNeighborhoodList) XXX_Size() int { + return m.Size() +} +func (m *NetworkNeighborhoodList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkNeighborhoodList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkNeighborhoodList proto.InternalMessageInfo + +func (m *NetworkNeighborhoodSpec) Reset() { *m = NetworkNeighborhoodSpec{} } +func (*NetworkNeighborhoodSpec) ProtoMessage() {} +func (*NetworkNeighborhoodSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{73} +} +func (m *NetworkNeighborhoodSpec) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkNeighborhoodSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *NetworkNeighborhoodSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkNeighborhoodSpec.Merge(m, src) +} +func (m *NetworkNeighborhoodSpec) XXX_Size() int { + return m.Size() +} +func (m *NetworkNeighborhoodSpec) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkNeighborhoodSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkNeighborhoodSpec proto.InternalMessageInfo + +func (m *NetworkNeighbors) Reset() { *m = NetworkNeighbors{} } +func (*NetworkNeighbors) ProtoMessage() {} +func (*NetworkNeighbors) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{74} +} +func (m *NetworkNeighbors) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkNeighbors) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *NetworkNeighbors) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkNeighbors.Merge(m, src) +} +func (m *NetworkNeighbors) XXX_Size() int { + return m.Size() +} +func (m *NetworkNeighbors) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkNeighbors.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkNeighbors proto.InternalMessageInfo + +func (m *NetworkNeighborsList) Reset() { *m = NetworkNeighborsList{} } +func (*NetworkNeighborsList) ProtoMessage() {} +func (*NetworkNeighborsList) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{75} +} +func (m *NetworkNeighborsList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkNeighborsList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *NetworkNeighborsList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkNeighborsList.Merge(m, src) +} +func (m *NetworkNeighborsList) XXX_Size() int { + return m.Size() +} +func (m *NetworkNeighborsList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkNeighborsList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkNeighborsList proto.InternalMessageInfo + +func (m *NetworkNeighborsSpec) Reset() { *m = NetworkNeighborsSpec{} } +func (*NetworkNeighborsSpec) ProtoMessage() {} +func (*NetworkNeighborsSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{76} +} +func (m *NetworkNeighborsSpec) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkNeighborsSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *NetworkNeighborsSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkNeighborsSpec.Merge(m, src) +} +func (m *NetworkNeighborsSpec) XXX_Size() int { + return m.Size() +} +func (m *NetworkNeighborsSpec) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkNeighborsSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkNeighborsSpec proto.InternalMessageInfo + +func (m *NetworkPolicy) Reset() { *m = NetworkPolicy{} } +func (*NetworkPolicy) ProtoMessage() {} +func (*NetworkPolicy) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{77} +} +func (m *NetworkPolicy) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *NetworkPolicy) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkPolicy.Merge(m, src) +} +func (m *NetworkPolicy) XXX_Size() int { + return m.Size() +} +func (m *NetworkPolicy) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkPolicy.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkPolicy proto.InternalMessageInfo + +func (m *NetworkPolicyEgressRule) Reset() { *m = NetworkPolicyEgressRule{} } +func (*NetworkPolicyEgressRule) ProtoMessage() {} +func (*NetworkPolicyEgressRule) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{78} +} +func (m *NetworkPolicyEgressRule) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkPolicyEgressRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *NetworkPolicyEgressRule) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkPolicyEgressRule.Merge(m, src) +} +func (m *NetworkPolicyEgressRule) XXX_Size() int { + return m.Size() +} +func (m *NetworkPolicyEgressRule) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkPolicyEgressRule.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkPolicyEgressRule proto.InternalMessageInfo + +func (m *NetworkPolicyIngressRule) Reset() { *m = NetworkPolicyIngressRule{} } +func (*NetworkPolicyIngressRule) ProtoMessage() {} +func (*NetworkPolicyIngressRule) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{79} +} +func (m *NetworkPolicyIngressRule) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkPolicyIngressRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *NetworkPolicyIngressRule) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkPolicyIngressRule.Merge(m, src) +} +func (m *NetworkPolicyIngressRule) XXX_Size() int { + return m.Size() +} +func (m *NetworkPolicyIngressRule) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkPolicyIngressRule.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkPolicyIngressRule proto.InternalMessageInfo + +func (m *NetworkPolicyList) Reset() { *m = NetworkPolicyList{} } +func (*NetworkPolicyList) ProtoMessage() {} +func (*NetworkPolicyList) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{80} +} +func (m *NetworkPolicyList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkPolicyList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *NetworkPolicyList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkPolicyList.Merge(m, src) +} +func (m *NetworkPolicyList) XXX_Size() int { + return m.Size() +} +func (m *NetworkPolicyList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkPolicyList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkPolicyList proto.InternalMessageInfo + +func (m *NetworkPolicyPeer) Reset() { *m = NetworkPolicyPeer{} } +func (*NetworkPolicyPeer) ProtoMessage() {} +func (*NetworkPolicyPeer) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{81} +} +func (m *NetworkPolicyPeer) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkPolicyPeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *NetworkPolicyPeer) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkPolicyPeer.Merge(m, src) +} +func (m *NetworkPolicyPeer) XXX_Size() int { + return m.Size() +} +func (m *NetworkPolicyPeer) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkPolicyPeer.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkPolicyPeer proto.InternalMessageInfo + +func (m *NetworkPolicyPort) Reset() { *m = NetworkPolicyPort{} } +func (*NetworkPolicyPort) ProtoMessage() {} +func (*NetworkPolicyPort) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{82} +} +func (m *NetworkPolicyPort) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkPolicyPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *NetworkPolicyPort) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkPolicyPort.Merge(m, src) +} +func (m *NetworkPolicyPort) XXX_Size() int { + return m.Size() +} +func (m *NetworkPolicyPort) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkPolicyPort.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkPolicyPort proto.InternalMessageInfo + +func (m *NetworkPolicySpec) Reset() { *m = NetworkPolicySpec{} } +func (*NetworkPolicySpec) ProtoMessage() {} +func (*NetworkPolicySpec) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{83} +} +func (m *NetworkPolicySpec) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkPolicySpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *NetworkPolicySpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkPolicySpec.Merge(m, src) +} +func (m *NetworkPolicySpec) XXX_Size() int { + return m.Size() +} +func (m *NetworkPolicySpec) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkPolicySpec.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkPolicySpec proto.InternalMessageInfo + +func (m *NetworkPolicyStatus) Reset() { *m = NetworkPolicyStatus{} } +func (*NetworkPolicyStatus) ProtoMessage() {} +func (*NetworkPolicyStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{84} +} +func (m *NetworkPolicyStatus) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkPolicyStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *NetworkPolicyStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkPolicyStatus.Merge(m, src) +} +func (m *NetworkPolicyStatus) XXX_Size() int { + return m.Size() +} +func (m *NetworkPolicyStatus) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkPolicyStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkPolicyStatus proto.InternalMessageInfo + +func (m *NetworkPort) Reset() { *m = NetworkPort{} } +func (*NetworkPort) ProtoMessage() {} +func (*NetworkPort) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{85} +} +func (m *NetworkPort) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *NetworkPort) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkPort.Merge(m, src) +} +func (m *NetworkPort) XXX_Size() int { + return m.Size() +} +func (m *NetworkPort) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkPort.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkPort proto.InternalMessageInfo + +func (m *OpenCalls) Reset() { *m = OpenCalls{} } +func (*OpenCalls) ProtoMessage() {} +func (*OpenCalls) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{86} +} +func (m *OpenCalls) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OpenCalls) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *OpenCalls) XXX_Merge(src proto.Message) { + xxx_messageInfo_OpenCalls.Merge(m, src) +} +func (m *OpenCalls) XXX_Size() int { + return m.Size() +} +func (m *OpenCalls) XXX_DiscardUnknown() { + xxx_messageInfo_OpenCalls.DiscardUnknown(m) +} + +var xxx_messageInfo_OpenCalls proto.InternalMessageInfo + +func (m *OpenVulnerabilityExchangeContainer) Reset() { *m = OpenVulnerabilityExchangeContainer{} } +func (*OpenVulnerabilityExchangeContainer) ProtoMessage() {} +func (*OpenVulnerabilityExchangeContainer) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{87} +} +func (m *OpenVulnerabilityExchangeContainer) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OpenVulnerabilityExchangeContainer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *OpenVulnerabilityExchangeContainer) XXX_Merge(src proto.Message) { + xxx_messageInfo_OpenVulnerabilityExchangeContainer.Merge(m, src) +} +func (m *OpenVulnerabilityExchangeContainer) XXX_Size() int { + return m.Size() +} +func (m *OpenVulnerabilityExchangeContainer) XXX_DiscardUnknown() { + xxx_messageInfo_OpenVulnerabilityExchangeContainer.DiscardUnknown(m) +} + +var xxx_messageInfo_OpenVulnerabilityExchangeContainer proto.InternalMessageInfo + +func (m *OpenVulnerabilityExchangeContainerList) Reset() { + *m = OpenVulnerabilityExchangeContainerList{} +} +func (*OpenVulnerabilityExchangeContainerList) ProtoMessage() {} +func (*OpenVulnerabilityExchangeContainerList) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{88} +} +func (m *OpenVulnerabilityExchangeContainerList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OpenVulnerabilityExchangeContainerList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *OpenVulnerabilityExchangeContainerList) XXX_Merge(src proto.Message) { + xxx_messageInfo_OpenVulnerabilityExchangeContainerList.Merge(m, src) +} +func (m *OpenVulnerabilityExchangeContainerList) XXX_Size() int { + return m.Size() +} +func (m *OpenVulnerabilityExchangeContainerList) XXX_DiscardUnknown() { + xxx_messageInfo_OpenVulnerabilityExchangeContainerList.DiscardUnknown(m) +} + +var xxx_messageInfo_OpenVulnerabilityExchangeContainerList proto.InternalMessageInfo + +func (m *PackageBasicData) Reset() { *m = PackageBasicData{} } +func (*PackageBasicData) ProtoMessage() {} +func (*PackageBasicData) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{89} +} +func (m *PackageBasicData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PackageBasicData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *PackageBasicData) XXX_Merge(src proto.Message) { + xxx_messageInfo_PackageBasicData.Merge(m, src) +} +func (m *PackageBasicData) XXX_Size() int { + return m.Size() +} +func (m *PackageBasicData) XXX_DiscardUnknown() { + xxx_messageInfo_PackageBasicData.DiscardUnknown(m) +} + +var xxx_messageInfo_PackageBasicData proto.InternalMessageInfo + +func (m *PackageBasicDataV01011) Reset() { *m = PackageBasicDataV01011{} } +func (*PackageBasicDataV01011) ProtoMessage() {} +func (*PackageBasicDataV01011) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{90} +} +func (m *PackageBasicDataV01011) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PackageBasicDataV01011) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *PackageBasicDataV01011) XXX_Merge(src proto.Message) { + xxx_messageInfo_PackageBasicDataV01011.Merge(m, src) +} +func (m *PackageBasicDataV01011) XXX_Size() int { + return m.Size() +} +func (m *PackageBasicDataV01011) XXX_DiscardUnknown() { + xxx_messageInfo_PackageBasicDataV01011.DiscardUnknown(m) +} + +var xxx_messageInfo_PackageBasicDataV01011 proto.InternalMessageInfo + +func (m *PackageCustomData) Reset() { *m = PackageCustomData{} } +func (*PackageCustomData) ProtoMessage() {} +func (*PackageCustomData) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{91} +} +func (m *PackageCustomData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PackageCustomData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *PackageCustomData) XXX_Merge(src proto.Message) { + xxx_messageInfo_PackageCustomData.Merge(m, src) +} +func (m *PackageCustomData) XXX_Size() int { + return m.Size() +} +func (m *PackageCustomData) XXX_DiscardUnknown() { + xxx_messageInfo_PackageCustomData.DiscardUnknown(m) +} + +var xxx_messageInfo_PackageCustomData proto.InternalMessageInfo + +func (m *PolicyRef) Reset() { *m = PolicyRef{} } +func (*PolicyRef) ProtoMessage() {} +func (*PolicyRef) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{92} +} +func (m *PolicyRef) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PolicyRef) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *PolicyRef) XXX_Merge(src proto.Message) { + xxx_messageInfo_PolicyRef.Merge(m, src) +} +func (m *PolicyRef) XXX_Size() int { + return m.Size() +} +func (m *PolicyRef) XXX_DiscardUnknown() { + xxx_messageInfo_PolicyRef.DiscardUnknown(m) +} + +var xxx_messageInfo_PolicyRef proto.InternalMessageInfo + +func (m *Product) Reset() { *m = Product{} } +func (*Product) ProtoMessage() {} +func (*Product) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{93} +} +func (m *Product) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Product) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *Product) XXX_Merge(src proto.Message) { + xxx_messageInfo_Product.Merge(m, src) +} +func (m *Product) XXX_Size() int { + return m.Size() +} +func (m *Product) XXX_DiscardUnknown() { + xxx_messageInfo_Product.DiscardUnknown(m) +} + +var xxx_messageInfo_Product proto.InternalMessageInfo + +func (m *ReportMeta) Reset() { *m = ReportMeta{} } +func (*ReportMeta) ProtoMessage() {} +func (*ReportMeta) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{94} +} +func (m *ReportMeta) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ReportMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ReportMeta) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReportMeta.Merge(m, src) +} +func (m *ReportMeta) XXX_Size() int { + return m.Size() +} +func (m *ReportMeta) XXX_DiscardUnknown() { + xxx_messageInfo_ReportMeta.DiscardUnknown(m) +} + +var xxx_messageInfo_ReportMeta proto.InternalMessageInfo + +func (m *RulePath) Reset() { *m = RulePath{} } +func (*RulePath) ProtoMessage() {} +func (*RulePath) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{95} +} +func (m *RulePath) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RulePath) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *RulePath) XXX_Merge(src proto.Message) { + xxx_messageInfo_RulePath.Merge(m, src) +} +func (m *RulePath) XXX_Size() int { + return m.Size() +} +func (m *RulePath) XXX_DiscardUnknown() { + xxx_messageInfo_RulePath.DiscardUnknown(m) +} + +var xxx_messageInfo_RulePath proto.InternalMessageInfo + +func (m *RuleStatus) Reset() { *m = RuleStatus{} } +func (*RuleStatus) ProtoMessage() {} +func (*RuleStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{96} +} +func (m *RuleStatus) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RuleStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *RuleStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_RuleStatus.Merge(m, src) +} +func (m *RuleStatus) XXX_Size() int { + return m.Size() +} +func (m *RuleStatus) XXX_DiscardUnknown() { + xxx_messageInfo_RuleStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_RuleStatus proto.InternalMessageInfo + +func (m *SBOMSyft) Reset() { *m = SBOMSyft{} } +func (*SBOMSyft) ProtoMessage() {} +func (*SBOMSyft) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{97} +} +func (m *SBOMSyft) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SBOMSyft) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *SBOMSyft) XXX_Merge(src proto.Message) { + xxx_messageInfo_SBOMSyft.Merge(m, src) +} +func (m *SBOMSyft) XXX_Size() int { + return m.Size() +} +func (m *SBOMSyft) XXX_DiscardUnknown() { + xxx_messageInfo_SBOMSyft.DiscardUnknown(m) +} + +var xxx_messageInfo_SBOMSyft proto.InternalMessageInfo + +func (m *SBOMSyftFiltered) Reset() { *m = SBOMSyftFiltered{} } +func (*SBOMSyftFiltered) ProtoMessage() {} +func (*SBOMSyftFiltered) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{98} +} +func (m *SBOMSyftFiltered) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SBOMSyftFiltered) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *SBOMSyftFiltered) XXX_Merge(src proto.Message) { + xxx_messageInfo_SBOMSyftFiltered.Merge(m, src) +} +func (m *SBOMSyftFiltered) XXX_Size() int { + return m.Size() +} +func (m *SBOMSyftFiltered) XXX_DiscardUnknown() { + xxx_messageInfo_SBOMSyftFiltered.DiscardUnknown(m) +} + +var xxx_messageInfo_SBOMSyftFiltered proto.InternalMessageInfo + +func (m *SBOMSyftFilteredList) Reset() { *m = SBOMSyftFilteredList{} } +func (*SBOMSyftFilteredList) ProtoMessage() {} +func (*SBOMSyftFilteredList) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{99} +} +func (m *SBOMSyftFilteredList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SBOMSyftFilteredList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *SBOMSyftFilteredList) XXX_Merge(src proto.Message) { + xxx_messageInfo_SBOMSyftFilteredList.Merge(m, src) +} +func (m *SBOMSyftFilteredList) XXX_Size() int { + return m.Size() +} +func (m *SBOMSyftFilteredList) XXX_DiscardUnknown() { + xxx_messageInfo_SBOMSyftFilteredList.DiscardUnknown(m) +} + +var xxx_messageInfo_SBOMSyftFilteredList proto.InternalMessageInfo + +func (m *SBOMSyftList) Reset() { *m = SBOMSyftList{} } +func (*SBOMSyftList) ProtoMessage() {} +func (*SBOMSyftList) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{100} +} +func (m *SBOMSyftList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SBOMSyftList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *SBOMSyftList) XXX_Merge(src proto.Message) { + xxx_messageInfo_SBOMSyftList.Merge(m, src) +} +func (m *SBOMSyftList) XXX_Size() int { + return m.Size() +} +func (m *SBOMSyftList) XXX_DiscardUnknown() { + xxx_messageInfo_SBOMSyftList.DiscardUnknown(m) +} + +var xxx_messageInfo_SBOMSyftList proto.InternalMessageInfo + +func (m *SBOMSyftSpec) Reset() { *m = SBOMSyftSpec{} } +func (*SBOMSyftSpec) ProtoMessage() {} +func (*SBOMSyftSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{101} +} +func (m *SBOMSyftSpec) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SBOMSyftSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *SBOMSyftSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_SBOMSyftSpec.Merge(m, src) +} +func (m *SBOMSyftSpec) XXX_Size() int { + return m.Size() +} +func (m *SBOMSyftSpec) XXX_DiscardUnknown() { + xxx_messageInfo_SBOMSyftSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_SBOMSyftSpec proto.InternalMessageInfo + +func (m *SBOMSyftStatus) Reset() { *m = SBOMSyftStatus{} } +func (*SBOMSyftStatus) ProtoMessage() {} +func (*SBOMSyftStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{102} +} +func (m *SBOMSyftStatus) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SBOMSyftStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *SBOMSyftStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_SBOMSyftStatus.Merge(m, src) +} +func (m *SBOMSyftStatus) XXX_Size() int { + return m.Size() +} +func (m *SBOMSyftStatus) XXX_DiscardUnknown() { + xxx_messageInfo_SBOMSyftStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_SBOMSyftStatus proto.InternalMessageInfo + +func (m *SPDXMeta) Reset() { *m = SPDXMeta{} } +func (*SPDXMeta) ProtoMessage() {} +func (*SPDXMeta) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{103} +} +func (m *SPDXMeta) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SPDXMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *SPDXMeta) XXX_Merge(src proto.Message) { + xxx_messageInfo_SPDXMeta.Merge(m, src) +} +func (m *SPDXMeta) XXX_Size() int { + return m.Size() +} +func (m *SPDXMeta) XXX_DiscardUnknown() { + xxx_messageInfo_SPDXMeta.DiscardUnknown(m) +} + +var xxx_messageInfo_SPDXMeta proto.InternalMessageInfo + +func (m *ScannedControl) Reset() { *m = ScannedControl{} } +func (*ScannedControl) ProtoMessage() {} +func (*ScannedControl) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{104} +} +func (m *ScannedControl) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ScannedControl) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ScannedControl) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScannedControl.Merge(m, src) +} +func (m *ScannedControl) XXX_Size() int { + return m.Size() +} +func (m *ScannedControl) XXX_DiscardUnknown() { + xxx_messageInfo_ScannedControl.DiscardUnknown(m) +} + +var xxx_messageInfo_ScannedControl proto.InternalMessageInfo + +func (m *ScannedControlRule) Reset() { *m = ScannedControlRule{} } +func (*ScannedControlRule) ProtoMessage() {} +func (*ScannedControlRule) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{105} +} +func (m *ScannedControlRule) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ScannedControlRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ScannedControlRule) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScannedControlRule.Merge(m, src) +} +func (m *ScannedControlRule) XXX_Size() int { + return m.Size() +} +func (m *ScannedControlRule) XXX_DiscardUnknown() { + xxx_messageInfo_ScannedControlRule.DiscardUnknown(m) +} + +var xxx_messageInfo_ScannedControlRule proto.InternalMessageInfo + +func (m *ScannedControlStatus) Reset() { *m = ScannedControlStatus{} } +func (*ScannedControlStatus) ProtoMessage() {} +func (*ScannedControlStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{106} +} +func (m *ScannedControlStatus) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ScannedControlStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ScannedControlStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScannedControlStatus.Merge(m, src) +} +func (m *ScannedControlStatus) XXX_Size() int { + return m.Size() +} +func (m *ScannedControlStatus) XXX_DiscardUnknown() { + xxx_messageInfo_ScannedControlStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_ScannedControlStatus proto.InternalMessageInfo + +func (m *ScannedControlSummary) Reset() { *m = ScannedControlSummary{} } +func (*ScannedControlSummary) ProtoMessage() {} +func (*ScannedControlSummary) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{107} +} +func (m *ScannedControlSummary) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ScannedControlSummary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ScannedControlSummary) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScannedControlSummary.Merge(m, src) +} +func (m *ScannedControlSummary) XXX_Size() int { + return m.Size() +} +func (m *ScannedControlSummary) XXX_DiscardUnknown() { + xxx_messageInfo_ScannedControlSummary.DiscardUnknown(m) +} + +var xxx_messageInfo_ScannedControlSummary proto.InternalMessageInfo + +func (m *Schema) Reset() { *m = Schema{} } +func (*Schema) ProtoMessage() {} +func (*Schema) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{108} +} +func (m *Schema) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Schema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *Schema) XXX_Merge(src proto.Message) { + xxx_messageInfo_Schema.Merge(m, src) +} +func (m *Schema) XXX_Size() int { + return m.Size() +} +func (m *Schema) XXX_DiscardUnknown() { + xxx_messageInfo_Schema.DiscardUnknown(m) +} + +var xxx_messageInfo_Schema proto.InternalMessageInfo + +func (m *SeccompProfile) Reset() { *m = SeccompProfile{} } +func (*SeccompProfile) ProtoMessage() {} +func (*SeccompProfile) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{109} +} +func (m *SeccompProfile) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SeccompProfile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *SeccompProfile) XXX_Merge(src proto.Message) { + xxx_messageInfo_SeccompProfile.Merge(m, src) +} +func (m *SeccompProfile) XXX_Size() int { + return m.Size() +} +func (m *SeccompProfile) XXX_DiscardUnknown() { + xxx_messageInfo_SeccompProfile.DiscardUnknown(m) +} + +var xxx_messageInfo_SeccompProfile proto.InternalMessageInfo + +func (m *SeccompProfileList) Reset() { *m = SeccompProfileList{} } +func (*SeccompProfileList) ProtoMessage() {} +func (*SeccompProfileList) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{110} +} +func (m *SeccompProfileList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SeccompProfileList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *SeccompProfileList) XXX_Merge(src proto.Message) { + xxx_messageInfo_SeccompProfileList.Merge(m, src) +} +func (m *SeccompProfileList) XXX_Size() int { + return m.Size() +} +func (m *SeccompProfileList) XXX_DiscardUnknown() { + xxx_messageInfo_SeccompProfileList.DiscardUnknown(m) +} + +var xxx_messageInfo_SeccompProfileList proto.InternalMessageInfo + +func (m *SeccompProfileSpec) Reset() { *m = SeccompProfileSpec{} } +func (*SeccompProfileSpec) ProtoMessage() {} +func (*SeccompProfileSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{111} +} +func (m *SeccompProfileSpec) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SeccompProfileSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *SeccompProfileSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_SeccompProfileSpec.Merge(m, src) +} +func (m *SeccompProfileSpec) XXX_Size() int { + return m.Size() +} +func (m *SeccompProfileSpec) XXX_DiscardUnknown() { + xxx_messageInfo_SeccompProfileSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_SeccompProfileSpec proto.InternalMessageInfo + +func (m *SeccompProfileStatus) Reset() { *m = SeccompProfileStatus{} } +func (*SeccompProfileStatus) ProtoMessage() {} +func (*SeccompProfileStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{112} +} +func (m *SeccompProfileStatus) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SeccompProfileStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *SeccompProfileStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_SeccompProfileStatus.Merge(m, src) +} +func (m *SeccompProfileStatus) XXX_Size() int { + return m.Size() +} +func (m *SeccompProfileStatus) XXX_DiscardUnknown() { + xxx_messageInfo_SeccompProfileStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_SeccompProfileStatus proto.InternalMessageInfo + +func (m *ServiceBackendPort) Reset() { *m = ServiceBackendPort{} } +func (*ServiceBackendPort) ProtoMessage() {} +func (*ServiceBackendPort) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{113} +} +func (m *ServiceBackendPort) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ServiceBackendPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ServiceBackendPort) XXX_Merge(src proto.Message) { + xxx_messageInfo_ServiceBackendPort.Merge(m, src) +} +func (m *ServiceBackendPort) XXX_Size() int { + return m.Size() +} +func (m *ServiceBackendPort) XXX_DiscardUnknown() { + xxx_messageInfo_ServiceBackendPort.DiscardUnknown(m) +} + +var xxx_messageInfo_ServiceBackendPort proto.InternalMessageInfo + +func (m *SeveritySummary) Reset() { *m = SeveritySummary{} } +func (*SeveritySummary) ProtoMessage() {} +func (*SeveritySummary) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{114} +} +func (m *SeveritySummary) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SeveritySummary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *SeveritySummary) XXX_Merge(src proto.Message) { + xxx_messageInfo_SeveritySummary.Merge(m, src) +} +func (m *SeveritySummary) XXX_Size() int { + return m.Size() +} +func (m *SeveritySummary) XXX_DiscardUnknown() { + xxx_messageInfo_SeveritySummary.DiscardUnknown(m) +} + +var xxx_messageInfo_SeveritySummary proto.InternalMessageInfo + +func (m *SingleSeccompProfile) Reset() { *m = SingleSeccompProfile{} } +func (*SingleSeccompProfile) ProtoMessage() {} +func (*SingleSeccompProfile) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{115} +} +func (m *SingleSeccompProfile) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SingleSeccompProfile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *SingleSeccompProfile) XXX_Merge(src proto.Message) { + xxx_messageInfo_SingleSeccompProfile.Merge(m, src) +} +func (m *SingleSeccompProfile) XXX_Size() int { + return m.Size() +} +func (m *SingleSeccompProfile) XXX_DiscardUnknown() { + xxx_messageInfo_SingleSeccompProfile.DiscardUnknown(m) +} + +var xxx_messageInfo_SingleSeccompProfile proto.InternalMessageInfo + +func (m *SingleSeccompProfileSpec) Reset() { *m = SingleSeccompProfileSpec{} } +func (*SingleSeccompProfileSpec) ProtoMessage() {} +func (*SingleSeccompProfileSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{116} +} +func (m *SingleSeccompProfileSpec) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SingleSeccompProfileSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *SingleSeccompProfileSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_SingleSeccompProfileSpec.Merge(m, src) +} +func (m *SingleSeccompProfileSpec) XXX_Size() int { + return m.Size() +} +func (m *SingleSeccompProfileSpec) XXX_DiscardUnknown() { + xxx_messageInfo_SingleSeccompProfileSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_SingleSeccompProfileSpec proto.InternalMessageInfo + +func (m *SingleSeccompProfileStatus) Reset() { *m = SingleSeccompProfileStatus{} } +func (*SingleSeccompProfileStatus) ProtoMessage() {} +func (*SingleSeccompProfileStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{117} +} +func (m *SingleSeccompProfileStatus) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SingleSeccompProfileStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *SingleSeccompProfileStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_SingleSeccompProfileStatus.Merge(m, src) +} +func (m *SingleSeccompProfileStatus) XXX_Size() int { + return m.Size() +} +func (m *SingleSeccompProfileStatus) XXX_DiscardUnknown() { + xxx_messageInfo_SingleSeccompProfileStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_SingleSeccompProfileStatus proto.InternalMessageInfo + +func (m *Source) Reset() { *m = Source{} } +func (*Source) ProtoMessage() {} +func (*Source) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{118} +} +func (m *Source) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Source) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *Source) XXX_Merge(src proto.Message) { + xxx_messageInfo_Source.Merge(m, src) +} +func (m *Source) XXX_Size() int { + return m.Size() +} +func (m *Source) XXX_DiscardUnknown() { + xxx_messageInfo_Source.DiscardUnknown(m) +} + +var xxx_messageInfo_Source proto.InternalMessageInfo + +func (m *SpecBase) Reset() { *m = SpecBase{} } +func (*SpecBase) ProtoMessage() {} +func (*SpecBase) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{119} +} +func (m *SpecBase) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SpecBase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *SpecBase) XXX_Merge(src proto.Message) { + xxx_messageInfo_SpecBase.Merge(m, src) +} +func (m *SpecBase) XXX_Size() int { + return m.Size() +} +func (m *SpecBase) XXX_DiscardUnknown() { + xxx_messageInfo_SpecBase.DiscardUnknown(m) +} + +var xxx_messageInfo_SpecBase proto.InternalMessageInfo + +func (m *Statement) Reset() { *m = Statement{} } +func (*Statement) ProtoMessage() {} +func (*Statement) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{120} +} +func (m *Statement) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Statement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *Statement) XXX_Merge(src proto.Message) { + xxx_messageInfo_Statement.Merge(m, src) +} +func (m *Statement) XXX_Size() int { + return m.Size() +} +func (m *Statement) XXX_DiscardUnknown() { + xxx_messageInfo_Statement.DiscardUnknown(m) +} + +var xxx_messageInfo_Statement proto.InternalMessageInfo + +func (m *StatusBase) Reset() { *m = StatusBase{} } +func (*StatusBase) ProtoMessage() {} +func (*StatusBase) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{121} +} +func (m *StatusBase) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StatusBase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *StatusBase) XXX_Merge(src proto.Message) { + xxx_messageInfo_StatusBase.Merge(m, src) +} +func (m *StatusBase) XXX_Size() int { + return m.Size() +} +func (m *StatusBase) XXX_DiscardUnknown() { + xxx_messageInfo_StatusBase.DiscardUnknown(m) +} + +var xxx_messageInfo_StatusBase proto.InternalMessageInfo + +func (m *Subcomponent) Reset() { *m = Subcomponent{} } +func (*Subcomponent) ProtoMessage() {} +func (*Subcomponent) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{122} +} +func (m *Subcomponent) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Subcomponent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *Subcomponent) XXX_Merge(src proto.Message) { + xxx_messageInfo_Subcomponent.Merge(m, src) +} +func (m *Subcomponent) XXX_Size() int { + return m.Size() +} +func (m *Subcomponent) XXX_DiscardUnknown() { + xxx_messageInfo_Subcomponent.DiscardUnknown(m) +} + +var xxx_messageInfo_Subcomponent proto.InternalMessageInfo + +func (m *SyftCoordinates) Reset() { *m = SyftCoordinates{} } +func (*SyftCoordinates) ProtoMessage() {} +func (*SyftCoordinates) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{123} +} +func (m *SyftCoordinates) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SyftCoordinates) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *SyftCoordinates) XXX_Merge(src proto.Message) { + xxx_messageInfo_SyftCoordinates.Merge(m, src) +} +func (m *SyftCoordinates) XXX_Size() int { + return m.Size() +} +func (m *SyftCoordinates) XXX_DiscardUnknown() { + xxx_messageInfo_SyftCoordinates.DiscardUnknown(m) +} + +var xxx_messageInfo_SyftCoordinates proto.InternalMessageInfo + +func (m *SyftDescriptor) Reset() { *m = SyftDescriptor{} } +func (*SyftDescriptor) ProtoMessage() {} +func (*SyftDescriptor) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{124} +} +func (m *SyftDescriptor) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SyftDescriptor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *SyftDescriptor) XXX_Merge(src proto.Message) { + xxx_messageInfo_SyftDescriptor.Merge(m, src) +} +func (m *SyftDescriptor) XXX_Size() int { + return m.Size() +} +func (m *SyftDescriptor) XXX_DiscardUnknown() { + xxx_messageInfo_SyftDescriptor.DiscardUnknown(m) +} + +var xxx_messageInfo_SyftDescriptor proto.InternalMessageInfo + +func (m *SyftDocument) Reset() { *m = SyftDocument{} } +func (*SyftDocument) ProtoMessage() {} +func (*SyftDocument) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{125} +} +func (m *SyftDocument) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SyftDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *SyftDocument) XXX_Merge(src proto.Message) { + xxx_messageInfo_SyftDocument.Merge(m, src) +} +func (m *SyftDocument) XXX_Size() int { + return m.Size() +} +func (m *SyftDocument) XXX_DiscardUnknown() { + xxx_messageInfo_SyftDocument.DiscardUnknown(m) +} + +var xxx_messageInfo_SyftDocument proto.InternalMessageInfo + +func (m *SyftFile) Reset() { *m = SyftFile{} } +func (*SyftFile) ProtoMessage() {} +func (*SyftFile) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{126} +} +func (m *SyftFile) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SyftFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *SyftFile) XXX_Merge(src proto.Message) { + xxx_messageInfo_SyftFile.Merge(m, src) +} +func (m *SyftFile) XXX_Size() int { + return m.Size() +} +func (m *SyftFile) XXX_DiscardUnknown() { + xxx_messageInfo_SyftFile.DiscardUnknown(m) +} + +var xxx_messageInfo_SyftFile proto.InternalMessageInfo + +func (m *SyftPackage) Reset() { *m = SyftPackage{} } +func (*SyftPackage) ProtoMessage() {} +func (*SyftPackage) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{127} +} +func (m *SyftPackage) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SyftPackage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *SyftPackage) XXX_Merge(src proto.Message) { + xxx_messageInfo_SyftPackage.Merge(m, src) +} +func (m *SyftPackage) XXX_Size() int { + return m.Size() +} +func (m *SyftPackage) XXX_DiscardUnknown() { + xxx_messageInfo_SyftPackage.DiscardUnknown(m) +} + +var xxx_messageInfo_SyftPackage proto.InternalMessageInfo + +func (m *SyftRelationship) Reset() { *m = SyftRelationship{} } +func (*SyftRelationship) ProtoMessage() {} +func (*SyftRelationship) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{128} +} +func (m *SyftRelationship) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SyftRelationship) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *SyftRelationship) XXX_Merge(src proto.Message) { + xxx_messageInfo_SyftRelationship.Merge(m, src) +} +func (m *SyftRelationship) XXX_Size() int { + return m.Size() +} +func (m *SyftRelationship) XXX_DiscardUnknown() { + xxx_messageInfo_SyftRelationship.DiscardUnknown(m) +} + +var xxx_messageInfo_SyftRelationship proto.InternalMessageInfo + +func (m *SyftSource) Reset() { *m = SyftSource{} } +func (*SyftSource) ProtoMessage() {} +func (*SyftSource) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{129} +} +func (m *SyftSource) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SyftSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *SyftSource) XXX_Merge(src proto.Message) { + xxx_messageInfo_SyftSource.Merge(m, src) +} +func (m *SyftSource) XXX_Size() int { + return m.Size() +} +func (m *SyftSource) XXX_DiscardUnknown() { + xxx_messageInfo_SyftSource.DiscardUnknown(m) +} + +var xxx_messageInfo_SyftSource proto.InternalMessageInfo + +func (m *Syscall) Reset() { *m = Syscall{} } +func (*Syscall) ProtoMessage() {} +func (*Syscall) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{130} +} +func (m *Syscall) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Syscall) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *Syscall) XXX_Merge(src proto.Message) { + xxx_messageInfo_Syscall.Merge(m, src) +} +func (m *Syscall) XXX_Size() int { + return m.Size() +} +func (m *Syscall) XXX_DiscardUnknown() { + xxx_messageInfo_Syscall.DiscardUnknown(m) +} + +var xxx_messageInfo_Syscall proto.InternalMessageInfo + +func (m *ToolMeta) Reset() { *m = ToolMeta{} } +func (*ToolMeta) ProtoMessage() {} +func (*ToolMeta) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{131} +} +func (m *ToolMeta) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ToolMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ToolMeta) XXX_Merge(src proto.Message) { + xxx_messageInfo_ToolMeta.Merge(m, src) +} +func (m *ToolMeta) XXX_Size() int { + return m.Size() +} +func (m *ToolMeta) XXX_DiscardUnknown() { + xxx_messageInfo_ToolMeta.DiscardUnknown(m) +} + +var xxx_messageInfo_ToolMeta proto.InternalMessageInfo + +func (m *UpstreamPackage) Reset() { *m = UpstreamPackage{} } +func (*UpstreamPackage) ProtoMessage() {} +func (*UpstreamPackage) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{132} +} +func (m *UpstreamPackage) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UpstreamPackage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *UpstreamPackage) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpstreamPackage.Merge(m, src) +} +func (m *UpstreamPackage) XXX_Size() int { + return m.Size() +} +func (m *UpstreamPackage) XXX_DiscardUnknown() { + xxx_messageInfo_UpstreamPackage.DiscardUnknown(m) +} + +var xxx_messageInfo_UpstreamPackage proto.InternalMessageInfo + +func (m *VEX) Reset() { *m = VEX{} } +func (*VEX) ProtoMessage() {} +func (*VEX) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{133} +} +func (m *VEX) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *VEX) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *VEX) XXX_Merge(src proto.Message) { + xxx_messageInfo_VEX.Merge(m, src) +} +func (m *VEX) XXX_Size() int { + return m.Size() +} +func (m *VEX) XXX_DiscardUnknown() { + xxx_messageInfo_VEX.DiscardUnknown(m) +} + +var xxx_messageInfo_VEX proto.InternalMessageInfo + +func (m *VexVulnerability) Reset() { *m = VexVulnerability{} } +func (*VexVulnerability) ProtoMessage() {} +func (*VexVulnerability) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{134} +} +func (m *VexVulnerability) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *VexVulnerability) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *VexVulnerability) XXX_Merge(src proto.Message) { + xxx_messageInfo_VexVulnerability.Merge(m, src) +} +func (m *VexVulnerability) XXX_Size() int { + return m.Size() +} +func (m *VexVulnerability) XXX_DiscardUnknown() { + xxx_messageInfo_VexVulnerability.DiscardUnknown(m) +} + +var xxx_messageInfo_VexVulnerability proto.InternalMessageInfo + +func (m *VulnerabilitiesComponents) Reset() { *m = VulnerabilitiesComponents{} } +func (*VulnerabilitiesComponents) ProtoMessage() {} +func (*VulnerabilitiesComponents) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{135} +} +func (m *VulnerabilitiesComponents) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *VulnerabilitiesComponents) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *VulnerabilitiesComponents) XXX_Merge(src proto.Message) { + xxx_messageInfo_VulnerabilitiesComponents.Merge(m, src) +} +func (m *VulnerabilitiesComponents) XXX_Size() int { + return m.Size() +} +func (m *VulnerabilitiesComponents) XXX_DiscardUnknown() { + xxx_messageInfo_VulnerabilitiesComponents.DiscardUnknown(m) +} + +var xxx_messageInfo_VulnerabilitiesComponents proto.InternalMessageInfo + +func (m *VulnerabilitiesObjScope) Reset() { *m = VulnerabilitiesObjScope{} } +func (*VulnerabilitiesObjScope) ProtoMessage() {} +func (*VulnerabilitiesObjScope) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{136} +} +func (m *VulnerabilitiesObjScope) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *VulnerabilitiesObjScope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *VulnerabilitiesObjScope) XXX_Merge(src proto.Message) { + xxx_messageInfo_VulnerabilitiesObjScope.Merge(m, src) +} +func (m *VulnerabilitiesObjScope) XXX_Size() int { + return m.Size() +} +func (m *VulnerabilitiesObjScope) XXX_DiscardUnknown() { + xxx_messageInfo_VulnerabilitiesObjScope.DiscardUnknown(m) +} + +var xxx_messageInfo_VulnerabilitiesObjScope proto.InternalMessageInfo + +func (m *Vulnerability) Reset() { *m = Vulnerability{} } +func (*Vulnerability) ProtoMessage() {} +func (*Vulnerability) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{137} +} +func (m *Vulnerability) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Vulnerability) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *Vulnerability) XXX_Merge(src proto.Message) { + xxx_messageInfo_Vulnerability.Merge(m, src) +} +func (m *Vulnerability) XXX_Size() int { + return m.Size() +} +func (m *Vulnerability) XXX_DiscardUnknown() { + xxx_messageInfo_Vulnerability.DiscardUnknown(m) +} + +var xxx_messageInfo_Vulnerability proto.InternalMessageInfo + +func (m *VulnerabilityCounters) Reset() { *m = VulnerabilityCounters{} } +func (*VulnerabilityCounters) ProtoMessage() {} +func (*VulnerabilityCounters) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{138} +} +func (m *VulnerabilityCounters) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *VulnerabilityCounters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *VulnerabilityCounters) XXX_Merge(src proto.Message) { + xxx_messageInfo_VulnerabilityCounters.Merge(m, src) +} +func (m *VulnerabilityCounters) XXX_Size() int { + return m.Size() +} +func (m *VulnerabilityCounters) XXX_DiscardUnknown() { + xxx_messageInfo_VulnerabilityCounters.DiscardUnknown(m) +} + +var xxx_messageInfo_VulnerabilityCounters proto.InternalMessageInfo + +func (m *VulnerabilityManifest) Reset() { *m = VulnerabilityManifest{} } +func (*VulnerabilityManifest) ProtoMessage() {} +func (*VulnerabilityManifest) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{139} +} +func (m *VulnerabilityManifest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *VulnerabilityManifest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *VulnerabilityManifest) XXX_Merge(src proto.Message) { + xxx_messageInfo_VulnerabilityManifest.Merge(m, src) +} +func (m *VulnerabilityManifest) XXX_Size() int { + return m.Size() +} +func (m *VulnerabilityManifest) XXX_DiscardUnknown() { + xxx_messageInfo_VulnerabilityManifest.DiscardUnknown(m) +} + +var xxx_messageInfo_VulnerabilityManifest proto.InternalMessageInfo + +func (m *VulnerabilityManifestList) Reset() { *m = VulnerabilityManifestList{} } +func (*VulnerabilityManifestList) ProtoMessage() {} +func (*VulnerabilityManifestList) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{140} +} +func (m *VulnerabilityManifestList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *VulnerabilityManifestList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *VulnerabilityManifestList) XXX_Merge(src proto.Message) { + xxx_messageInfo_VulnerabilityManifestList.Merge(m, src) +} +func (m *VulnerabilityManifestList) XXX_Size() int { + return m.Size() +} +func (m *VulnerabilityManifestList) XXX_DiscardUnknown() { + xxx_messageInfo_VulnerabilityManifestList.DiscardUnknown(m) +} + +var xxx_messageInfo_VulnerabilityManifestList proto.InternalMessageInfo + +func (m *VulnerabilityManifestMeta) Reset() { *m = VulnerabilityManifestMeta{} } +func (*VulnerabilityManifestMeta) ProtoMessage() {} +func (*VulnerabilityManifestMeta) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{141} +} +func (m *VulnerabilityManifestMeta) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *VulnerabilityManifestMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *VulnerabilityManifestMeta) XXX_Merge(src proto.Message) { + xxx_messageInfo_VulnerabilityManifestMeta.Merge(m, src) +} +func (m *VulnerabilityManifestMeta) XXX_Size() int { + return m.Size() +} +func (m *VulnerabilityManifestMeta) XXX_DiscardUnknown() { + xxx_messageInfo_VulnerabilityManifestMeta.DiscardUnknown(m) +} + +var xxx_messageInfo_VulnerabilityManifestMeta proto.InternalMessageInfo + +func (m *VulnerabilityManifestReportMeta) Reset() { *m = VulnerabilityManifestReportMeta{} } +func (*VulnerabilityManifestReportMeta) ProtoMessage() {} +func (*VulnerabilityManifestReportMeta) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{142} +} +func (m *VulnerabilityManifestReportMeta) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *VulnerabilityManifestReportMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *VulnerabilityManifestReportMeta) XXX_Merge(src proto.Message) { + xxx_messageInfo_VulnerabilityManifestReportMeta.Merge(m, src) +} +func (m *VulnerabilityManifestReportMeta) XXX_Size() int { + return m.Size() +} +func (m *VulnerabilityManifestReportMeta) XXX_DiscardUnknown() { + xxx_messageInfo_VulnerabilityManifestReportMeta.DiscardUnknown(m) +} + +var xxx_messageInfo_VulnerabilityManifestReportMeta proto.InternalMessageInfo + +func (m *VulnerabilityManifestSpec) Reset() { *m = VulnerabilityManifestSpec{} } +func (*VulnerabilityManifestSpec) ProtoMessage() {} +func (*VulnerabilityManifestSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{143} +} +func (m *VulnerabilityManifestSpec) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *VulnerabilityManifestSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *VulnerabilityManifestSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_VulnerabilityManifestSpec.Merge(m, src) +} +func (m *VulnerabilityManifestSpec) XXX_Size() int { + return m.Size() +} +func (m *VulnerabilityManifestSpec) XXX_DiscardUnknown() { + xxx_messageInfo_VulnerabilityManifestSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_VulnerabilityManifestSpec proto.InternalMessageInfo + +func (m *VulnerabilityManifestStatus) Reset() { *m = VulnerabilityManifestStatus{} } +func (*VulnerabilityManifestStatus) ProtoMessage() {} +func (*VulnerabilityManifestStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{144} +} +func (m *VulnerabilityManifestStatus) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *VulnerabilityManifestStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *VulnerabilityManifestStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_VulnerabilityManifestStatus.Merge(m, src) +} +func (m *VulnerabilityManifestStatus) XXX_Size() int { + return m.Size() +} +func (m *VulnerabilityManifestStatus) XXX_DiscardUnknown() { + xxx_messageInfo_VulnerabilityManifestStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_VulnerabilityManifestStatus proto.InternalMessageInfo + +func (m *VulnerabilityManifestSummary) Reset() { *m = VulnerabilityManifestSummary{} } +func (*VulnerabilityManifestSummary) ProtoMessage() {} +func (*VulnerabilityManifestSummary) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{145} +} +func (m *VulnerabilityManifestSummary) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *VulnerabilityManifestSummary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *VulnerabilityManifestSummary) XXX_Merge(src proto.Message) { + xxx_messageInfo_VulnerabilityManifestSummary.Merge(m, src) +} +func (m *VulnerabilityManifestSummary) XXX_Size() int { + return m.Size() +} +func (m *VulnerabilityManifestSummary) XXX_DiscardUnknown() { + xxx_messageInfo_VulnerabilityManifestSummary.DiscardUnknown(m) +} + +var xxx_messageInfo_VulnerabilityManifestSummary proto.InternalMessageInfo + +func (m *VulnerabilityManifestSummaryList) Reset() { *m = VulnerabilityManifestSummaryList{} } +func (*VulnerabilityManifestSummaryList) ProtoMessage() {} +func (*VulnerabilityManifestSummaryList) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{146} +} +func (m *VulnerabilityManifestSummaryList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *VulnerabilityManifestSummaryList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *VulnerabilityManifestSummaryList) XXX_Merge(src proto.Message) { + xxx_messageInfo_VulnerabilityManifestSummaryList.Merge(m, src) +} +func (m *VulnerabilityManifestSummaryList) XXX_Size() int { + return m.Size() +} +func (m *VulnerabilityManifestSummaryList) XXX_DiscardUnknown() { + xxx_messageInfo_VulnerabilityManifestSummaryList.DiscardUnknown(m) +} + +var xxx_messageInfo_VulnerabilityManifestSummaryList proto.InternalMessageInfo + +func (m *VulnerabilityManifestSummarySpec) Reset() { *m = VulnerabilityManifestSummarySpec{} } +func (*VulnerabilityManifestSummarySpec) ProtoMessage() {} +func (*VulnerabilityManifestSummarySpec) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{147} +} +func (m *VulnerabilityManifestSummarySpec) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *VulnerabilityManifestSummarySpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *VulnerabilityManifestSummarySpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_VulnerabilityManifestSummarySpec.Merge(m, src) +} +func (m *VulnerabilityManifestSummarySpec) XXX_Size() int { + return m.Size() +} +func (m *VulnerabilityManifestSummarySpec) XXX_DiscardUnknown() { + xxx_messageInfo_VulnerabilityManifestSummarySpec.DiscardUnknown(m) +} + +var xxx_messageInfo_VulnerabilityManifestSummarySpec proto.InternalMessageInfo + +func (m *VulnerabilityManifestToolMeta) Reset() { *m = VulnerabilityManifestToolMeta{} } +func (*VulnerabilityManifestToolMeta) ProtoMessage() {} +func (*VulnerabilityManifestToolMeta) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{148} +} +func (m *VulnerabilityManifestToolMeta) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *VulnerabilityManifestToolMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *VulnerabilityManifestToolMeta) XXX_Merge(src proto.Message) { + xxx_messageInfo_VulnerabilityManifestToolMeta.Merge(m, src) +} +func (m *VulnerabilityManifestToolMeta) XXX_Size() int { + return m.Size() +} +func (m *VulnerabilityManifestToolMeta) XXX_DiscardUnknown() { + xxx_messageInfo_VulnerabilityManifestToolMeta.DiscardUnknown(m) +} + +var xxx_messageInfo_VulnerabilityManifestToolMeta proto.InternalMessageInfo + +func (m *VulnerabilityMetadata) Reset() { *m = VulnerabilityMetadata{} } +func (*VulnerabilityMetadata) ProtoMessage() {} +func (*VulnerabilityMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{149} +} +func (m *VulnerabilityMetadata) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *VulnerabilityMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *VulnerabilityMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_VulnerabilityMetadata.Merge(m, src) +} +func (m *VulnerabilityMetadata) XXX_Size() int { + return m.Size() +} +func (m *VulnerabilityMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_VulnerabilityMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_VulnerabilityMetadata proto.InternalMessageInfo + +func (m *VulnerabilitySummary) Reset() { *m = VulnerabilitySummary{} } +func (*VulnerabilitySummary) ProtoMessage() {} +func (*VulnerabilitySummary) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{150} +} +func (m *VulnerabilitySummary) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *VulnerabilitySummary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *VulnerabilitySummary) XXX_Merge(src proto.Message) { + xxx_messageInfo_VulnerabilitySummary.Merge(m, src) +} +func (m *VulnerabilitySummary) XXX_Size() int { + return m.Size() +} +func (m *VulnerabilitySummary) XXX_DiscardUnknown() { + xxx_messageInfo_VulnerabilitySummary.DiscardUnknown(m) +} + +var xxx_messageInfo_VulnerabilitySummary proto.InternalMessageInfo + +func (m *VulnerabilitySummaryList) Reset() { *m = VulnerabilitySummaryList{} } +func (*VulnerabilitySummaryList) ProtoMessage() {} +func (*VulnerabilitySummaryList) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{151} +} +func (m *VulnerabilitySummaryList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *VulnerabilitySummaryList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *VulnerabilitySummaryList) XXX_Merge(src proto.Message) { + xxx_messageInfo_VulnerabilitySummaryList.Merge(m, src) +} +func (m *VulnerabilitySummaryList) XXX_Size() int { + return m.Size() +} +func (m *VulnerabilitySummaryList) XXX_DiscardUnknown() { + xxx_messageInfo_VulnerabilitySummaryList.DiscardUnknown(m) +} + +var xxx_messageInfo_VulnerabilitySummaryList proto.InternalMessageInfo + +func (m *VulnerabilitySummarySpec) Reset() { *m = VulnerabilitySummarySpec{} } +func (*VulnerabilitySummarySpec) ProtoMessage() {} +func (*VulnerabilitySummarySpec) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{152} +} +func (m *VulnerabilitySummarySpec) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *VulnerabilitySummarySpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *VulnerabilitySummarySpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_VulnerabilitySummarySpec.Merge(m, src) +} +func (m *VulnerabilitySummarySpec) XXX_Size() int { + return m.Size() +} +func (m *VulnerabilitySummarySpec) XXX_DiscardUnknown() { + xxx_messageInfo_VulnerabilitySummarySpec.DiscardUnknown(m) +} + +var xxx_messageInfo_VulnerabilitySummarySpec proto.InternalMessageInfo + +func (m *VulnerabilitySummaryStatus) Reset() { *m = VulnerabilitySummaryStatus{} } +func (*VulnerabilitySummaryStatus) ProtoMessage() {} +func (*VulnerabilitySummaryStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{153} +} +func (m *VulnerabilitySummaryStatus) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *VulnerabilitySummaryStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *VulnerabilitySummaryStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_VulnerabilitySummaryStatus.Merge(m, src) +} +func (m *VulnerabilitySummaryStatus) XXX_Size() int { + return m.Size() +} +func (m *VulnerabilitySummaryStatus) XXX_DiscardUnknown() { + xxx_messageInfo_VulnerabilitySummaryStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_VulnerabilitySummaryStatus proto.InternalMessageInfo + +func (m *WorkloadConfigurationScan) Reset() { *m = WorkloadConfigurationScan{} } +func (*WorkloadConfigurationScan) ProtoMessage() {} +func (*WorkloadConfigurationScan) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{154} +} +func (m *WorkloadConfigurationScan) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WorkloadConfigurationScan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *WorkloadConfigurationScan) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkloadConfigurationScan.Merge(m, src) +} +func (m *WorkloadConfigurationScan) XXX_Size() int { + return m.Size() +} +func (m *WorkloadConfigurationScan) XXX_DiscardUnknown() { + xxx_messageInfo_WorkloadConfigurationScan.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkloadConfigurationScan proto.InternalMessageInfo + +func (m *WorkloadConfigurationScanList) Reset() { *m = WorkloadConfigurationScanList{} } +func (*WorkloadConfigurationScanList) ProtoMessage() {} +func (*WorkloadConfigurationScanList) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{155} +} +func (m *WorkloadConfigurationScanList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WorkloadConfigurationScanList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *WorkloadConfigurationScanList) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkloadConfigurationScanList.Merge(m, src) +} +func (m *WorkloadConfigurationScanList) XXX_Size() int { + return m.Size() +} +func (m *WorkloadConfigurationScanList) XXX_DiscardUnknown() { + xxx_messageInfo_WorkloadConfigurationScanList.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkloadConfigurationScanList proto.InternalMessageInfo + +func (m *WorkloadConfigurationScanSeveritiesSummary) Reset() { + *m = WorkloadConfigurationScanSeveritiesSummary{} +} +func (*WorkloadConfigurationScanSeveritiesSummary) ProtoMessage() {} +func (*WorkloadConfigurationScanSeveritiesSummary) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{156} +} +func (m *WorkloadConfigurationScanSeveritiesSummary) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WorkloadConfigurationScanSeveritiesSummary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *WorkloadConfigurationScanSeveritiesSummary) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkloadConfigurationScanSeveritiesSummary.Merge(m, src) +} +func (m *WorkloadConfigurationScanSeveritiesSummary) XXX_Size() int { + return m.Size() +} +func (m *WorkloadConfigurationScanSeveritiesSummary) XXX_DiscardUnknown() { + xxx_messageInfo_WorkloadConfigurationScanSeveritiesSummary.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkloadConfigurationScanSeveritiesSummary proto.InternalMessageInfo + +func (m *WorkloadConfigurationScanSpec) Reset() { *m = WorkloadConfigurationScanSpec{} } +func (*WorkloadConfigurationScanSpec) ProtoMessage() {} +func (*WorkloadConfigurationScanSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{157} +} +func (m *WorkloadConfigurationScanSpec) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WorkloadConfigurationScanSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *WorkloadConfigurationScanSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkloadConfigurationScanSpec.Merge(m, src) +} +func (m *WorkloadConfigurationScanSpec) XXX_Size() int { + return m.Size() +} +func (m *WorkloadConfigurationScanSpec) XXX_DiscardUnknown() { + xxx_messageInfo_WorkloadConfigurationScanSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkloadConfigurationScanSpec proto.InternalMessageInfo + +func (m *WorkloadConfigurationScanSummary) Reset() { *m = WorkloadConfigurationScanSummary{} } +func (*WorkloadConfigurationScanSummary) ProtoMessage() {} +func (*WorkloadConfigurationScanSummary) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{158} +} +func (m *WorkloadConfigurationScanSummary) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WorkloadConfigurationScanSummary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *WorkloadConfigurationScanSummary) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkloadConfigurationScanSummary.Merge(m, src) +} +func (m *WorkloadConfigurationScanSummary) XXX_Size() int { + return m.Size() +} +func (m *WorkloadConfigurationScanSummary) XXX_DiscardUnknown() { + xxx_messageInfo_WorkloadConfigurationScanSummary.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkloadConfigurationScanSummary proto.InternalMessageInfo + +func (m *WorkloadConfigurationScanSummaryIdentifier) Reset() { + *m = WorkloadConfigurationScanSummaryIdentifier{} +} +func (*WorkloadConfigurationScanSummaryIdentifier) ProtoMessage() {} +func (*WorkloadConfigurationScanSummaryIdentifier) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{159} +} +func (m *WorkloadConfigurationScanSummaryIdentifier) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WorkloadConfigurationScanSummaryIdentifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *WorkloadConfigurationScanSummaryIdentifier) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkloadConfigurationScanSummaryIdentifier.Merge(m, src) +} +func (m *WorkloadConfigurationScanSummaryIdentifier) XXX_Size() int { + return m.Size() +} +func (m *WorkloadConfigurationScanSummaryIdentifier) XXX_DiscardUnknown() { + xxx_messageInfo_WorkloadConfigurationScanSummaryIdentifier.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkloadConfigurationScanSummaryIdentifier proto.InternalMessageInfo + +func (m *WorkloadConfigurationScanSummaryList) Reset() { *m = WorkloadConfigurationScanSummaryList{} } +func (*WorkloadConfigurationScanSummaryList) ProtoMessage() {} +func (*WorkloadConfigurationScanSummaryList) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{160} +} +func (m *WorkloadConfigurationScanSummaryList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WorkloadConfigurationScanSummaryList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *WorkloadConfigurationScanSummaryList) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkloadConfigurationScanSummaryList.Merge(m, src) +} +func (m *WorkloadConfigurationScanSummaryList) XXX_Size() int { + return m.Size() +} +func (m *WorkloadConfigurationScanSummaryList) XXX_DiscardUnknown() { + xxx_messageInfo_WorkloadConfigurationScanSummaryList.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkloadConfigurationScanSummaryList proto.InternalMessageInfo + +func (m *WorkloadConfigurationScanSummarySpec) Reset() { *m = WorkloadConfigurationScanSummarySpec{} } +func (*WorkloadConfigurationScanSummarySpec) ProtoMessage() {} +func (*WorkloadConfigurationScanSummarySpec) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{161} +} +func (m *WorkloadConfigurationScanSummarySpec) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WorkloadConfigurationScanSummarySpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *WorkloadConfigurationScanSummarySpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkloadConfigurationScanSummarySpec.Merge(m, src) +} +func (m *WorkloadConfigurationScanSummarySpec) XXX_Size() int { + return m.Size() +} +func (m *WorkloadConfigurationScanSummarySpec) XXX_DiscardUnknown() { + xxx_messageInfo_WorkloadConfigurationScanSummarySpec.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkloadConfigurationScanSummarySpec proto.InternalMessageInfo + +func (m *WorkloadScanRelatedObject) Reset() { *m = WorkloadScanRelatedObject{} } +func (*WorkloadScanRelatedObject) ProtoMessage() {} +func (*WorkloadScanRelatedObject) Descriptor() ([]byte, []int) { + return fileDescriptor_ada9a9c05eeab74f, []int{162} +} +func (m *WorkloadScanRelatedObject) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WorkloadScanRelatedObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *WorkloadScanRelatedObject) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkloadScanRelatedObject.Merge(m, src) +} +func (m *WorkloadScanRelatedObject) XXX_Size() int { + return m.Size() +} +func (m *WorkloadScanRelatedObject) XXX_DiscardUnknown() { + xxx_messageInfo_WorkloadScanRelatedObject.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkloadScanRelatedObject proto.InternalMessageInfo + +func init() { + proto.RegisterType((*Advisory)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.Advisory") + proto.RegisterType((*ApplicationActivity)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.ApplicationActivity") + proto.RegisterType((*ApplicationActivityList)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.ApplicationActivityList") + proto.RegisterType((*ApplicationActivitySpec)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.ApplicationActivitySpec") + proto.RegisterType((*ApplicationActivityStatus)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.ApplicationActivityStatus") + proto.RegisterType((*ApplicationProfile)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.ApplicationProfile") + proto.RegisterType((*ApplicationProfileContainer)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.ApplicationProfileContainer") + proto.RegisterType((*ApplicationProfileList)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.ApplicationProfileList") + proto.RegisterType((*ApplicationProfileSpec)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.ApplicationProfileSpec") + proto.RegisterType((*ApplicationProfileStatus)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.ApplicationProfileStatus") + proto.RegisterType((*Arg)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.Arg") + proto.RegisterType((*CPE)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.CPE") + proto.RegisterType((*Component)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.Component") + proto.RegisterMapType((map[Algorithm]Hash)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.Component.HashesEntry") + proto.RegisterMapType((map[IdentifierType]string)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.Component.IdentifiersEntry") + proto.RegisterType((*Condition)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.Condition") + proto.RegisterType((*ConditionedStatus)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.ConditionedStatus") + proto.RegisterType((*ConfigurationScanSummary)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.ConfigurationScanSummary") + proto.RegisterType((*ConfigurationScanSummaryList)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.ConfigurationScanSummaryList") + proto.RegisterType((*ConfigurationScanSummarySpec)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.ConfigurationScanSummarySpec") + proto.RegisterType((*ControlSeverity)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.ControlSeverity") + proto.RegisterType((*Coordinates)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.Coordinates") + proto.RegisterType((*Cvss)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.Cvss") + proto.RegisterType((*CvssMetrics)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.CvssMetrics") + proto.RegisterType((*Descriptor)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.Descriptor") + proto.RegisterType((*Digest)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.Digest") + proto.RegisterType((*Distribution)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.Distribution") + proto.RegisterType((*ELFSecurityFeatures)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.ELFSecurityFeatures") + proto.RegisterType((*ExecCalls)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.ExecCalls") + proto.RegisterType((*Executable)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.Executable") + proto.RegisterType((*FileLicense)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.FileLicense") + proto.RegisterType((*FileLicenseEvidence)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.FileLicenseEvidence") + proto.RegisterType((*FileMetadataEntry)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.FileMetadataEntry") + proto.RegisterType((*Fix)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.Fix") + proto.RegisterType((*GeneratedNetworkPolicy)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.GeneratedNetworkPolicy") + proto.RegisterType((*GeneratedNetworkPolicyList)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.GeneratedNetworkPolicyList") + proto.RegisterType((*GrypeDocument)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.GrypeDocument") + proto.RegisterType((*GrypePackage)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.GrypePackage") + proto.RegisterType((*HTTPIngressPath)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.HTTPIngressPath") + proto.RegisterType((*HTTPIngressRuleValue)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.HTTPIngressRuleValue") + proto.RegisterType((*IPBlock)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.IPBlock") + proto.RegisterType((*IgnoreRule)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.IgnoreRule") + proto.RegisterType((*IgnoreRulePackage)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.IgnoreRulePackage") + proto.RegisterType((*IgnoredMatch)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.IgnoredMatch") + proto.RegisterType((*Ingress)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.Ingress") + proto.RegisterType((*IngressBackend)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.IngressBackend") + proto.RegisterType((*IngressClass)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.IngressClass") + proto.RegisterType((*IngressClassList)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.IngressClassList") + proto.RegisterType((*IngressClassParametersReference)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.IngressClassParametersReference") + proto.RegisterType((*IngressClassSpec)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.IngressClassSpec") + proto.RegisterType((*IngressList)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.IngressList") + proto.RegisterType((*IngressLoadBalancerIngress)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.IngressLoadBalancerIngress") + proto.RegisterType((*IngressLoadBalancerStatus)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.IngressLoadBalancerStatus") + proto.RegisterType((*IngressPortStatus)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.IngressPortStatus") + proto.RegisterType((*IngressRule)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.IngressRule") + proto.RegisterType((*IngressRuleValue)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.IngressRuleValue") + proto.RegisterType((*IngressServiceBackend)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.IngressServiceBackend") + proto.RegisterType((*IngressSpec)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.IngressSpec") + proto.RegisterType((*IngressStatus)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.IngressStatus") + proto.RegisterType((*IngressTLS)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.IngressTLS") + proto.RegisterType((*KnownServer)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.KnownServer") + proto.RegisterType((*KnownServerEntry)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.KnownServerEntry") + proto.RegisterType((*KnownServerList)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.KnownServerList") + proto.RegisterType((*License)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.License") + proto.RegisterType((*LinuxRelease)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.LinuxRelease") + proto.RegisterType((*Location)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.Location") + proto.RegisterType((*LocationData)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.LocationData") + proto.RegisterType((*LocationMetadata)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.LocationMetadata") + proto.RegisterMapType((map[string]string)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.LocationMetadata.AnnotationsEntry") + proto.RegisterType((*Match)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.Match") + proto.RegisterType((*MatchDetails)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.MatchDetails") + proto.RegisterType((*Metadata)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.Metadata") + proto.RegisterType((*NetworkNeighbor)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.NetworkNeighbor") + proto.RegisterType((*NetworkNeighborhood)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.NetworkNeighborhood") + proto.RegisterType((*NetworkNeighborhoodContainer)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.NetworkNeighborhoodContainer") + proto.RegisterType((*NetworkNeighborhoodList)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.NetworkNeighborhoodList") + proto.RegisterType((*NetworkNeighborhoodSpec)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.NetworkNeighborhoodSpec") + proto.RegisterType((*NetworkNeighbors)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.NetworkNeighbors") + proto.RegisterType((*NetworkNeighborsList)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.NetworkNeighborsList") + proto.RegisterType((*NetworkNeighborsSpec)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.NetworkNeighborsSpec") + proto.RegisterType((*NetworkPolicy)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.NetworkPolicy") + proto.RegisterType((*NetworkPolicyEgressRule)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.NetworkPolicyEgressRule") + proto.RegisterType((*NetworkPolicyIngressRule)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.NetworkPolicyIngressRule") + proto.RegisterType((*NetworkPolicyList)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.NetworkPolicyList") + proto.RegisterType((*NetworkPolicyPeer)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.NetworkPolicyPeer") + proto.RegisterType((*NetworkPolicyPort)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.NetworkPolicyPort") + proto.RegisterType((*NetworkPolicySpec)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.NetworkPolicySpec") + proto.RegisterType((*NetworkPolicyStatus)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.NetworkPolicyStatus") + proto.RegisterType((*NetworkPort)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.NetworkPort") + proto.RegisterType((*OpenCalls)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.OpenCalls") + proto.RegisterType((*OpenVulnerabilityExchangeContainer)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.OpenVulnerabilityExchangeContainer") + proto.RegisterType((*OpenVulnerabilityExchangeContainerList)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.OpenVulnerabilityExchangeContainerList") + proto.RegisterType((*PackageBasicData)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.PackageBasicData") + proto.RegisterType((*PackageBasicDataV01011)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.PackageBasicDataV01011") + proto.RegisterType((*PackageCustomData)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.PackageCustomData") + proto.RegisterType((*PolicyRef)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.PolicyRef") + proto.RegisterType((*Product)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.Product") + proto.RegisterType((*ReportMeta)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.ReportMeta") + proto.RegisterType((*RulePath)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.RulePath") + proto.RegisterType((*RuleStatus)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.RuleStatus") + proto.RegisterType((*SBOMSyft)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.SBOMSyft") + proto.RegisterType((*SBOMSyftFiltered)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.SBOMSyftFiltered") + proto.RegisterType((*SBOMSyftFilteredList)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.SBOMSyftFilteredList") + proto.RegisterType((*SBOMSyftList)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.SBOMSyftList") + proto.RegisterType((*SBOMSyftSpec)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.SBOMSyftSpec") + proto.RegisterType((*SBOMSyftStatus)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.SBOMSyftStatus") + proto.RegisterType((*SPDXMeta)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.SPDXMeta") + proto.RegisterType((*ScannedControl)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.ScannedControl") + proto.RegisterType((*ScannedControlRule)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.ScannedControlRule") + proto.RegisterMapType((map[string]string)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.ScannedControlRule.ControlConfigurationsEntry") + proto.RegisterType((*ScannedControlStatus)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.ScannedControlStatus") + proto.RegisterType((*ScannedControlSummary)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.ScannedControlSummary") + proto.RegisterType((*Schema)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.Schema") + proto.RegisterType((*SeccompProfile)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.SeccompProfile") + proto.RegisterType((*SeccompProfileList)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.SeccompProfileList") + proto.RegisterType((*SeccompProfileSpec)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.SeccompProfileSpec") + proto.RegisterType((*SeccompProfileStatus)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.SeccompProfileStatus") + proto.RegisterMapType((map[string]SingleSeccompProfileStatus)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.SeccompProfileStatus.ContainersEntry") + proto.RegisterType((*ServiceBackendPort)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.ServiceBackendPort") + proto.RegisterType((*SeveritySummary)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.SeveritySummary") + proto.RegisterType((*SingleSeccompProfile)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.SingleSeccompProfile") + proto.RegisterType((*SingleSeccompProfileSpec)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.SingleSeccompProfileSpec") + proto.RegisterType((*SingleSeccompProfileStatus)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.SingleSeccompProfileStatus") + proto.RegisterType((*Source)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.Source") + proto.RegisterType((*SpecBase)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.SpecBase") + proto.RegisterType((*Statement)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.Statement") + proto.RegisterType((*StatusBase)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.StatusBase") + proto.RegisterType((*Subcomponent)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.Subcomponent") + proto.RegisterType((*SyftCoordinates)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.SyftCoordinates") + proto.RegisterType((*SyftDescriptor)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.SyftDescriptor") + proto.RegisterType((*SyftDocument)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.SyftDocument") + proto.RegisterType((*SyftFile)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.SyftFile") + proto.RegisterType((*SyftPackage)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.SyftPackage") + proto.RegisterType((*SyftRelationship)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.SyftRelationship") + proto.RegisterType((*SyftSource)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.SyftSource") + proto.RegisterType((*Syscall)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.Syscall") + proto.RegisterType((*ToolMeta)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.ToolMeta") + proto.RegisterType((*UpstreamPackage)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.UpstreamPackage") + proto.RegisterType((*VEX)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.VEX") + proto.RegisterType((*VexVulnerability)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.VexVulnerability") + proto.RegisterType((*VulnerabilitiesComponents)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.VulnerabilitiesComponents") + proto.RegisterType((*VulnerabilitiesObjScope)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.VulnerabilitiesObjScope") + proto.RegisterType((*Vulnerability)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.Vulnerability") + proto.RegisterType((*VulnerabilityCounters)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.VulnerabilityCounters") + proto.RegisterType((*VulnerabilityManifest)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.VulnerabilityManifest") + proto.RegisterType((*VulnerabilityManifestList)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.VulnerabilityManifestList") + proto.RegisterType((*VulnerabilityManifestMeta)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.VulnerabilityManifestMeta") + proto.RegisterType((*VulnerabilityManifestReportMeta)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.VulnerabilityManifestReportMeta") + proto.RegisterType((*VulnerabilityManifestSpec)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.VulnerabilityManifestSpec") + proto.RegisterType((*VulnerabilityManifestStatus)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.VulnerabilityManifestStatus") + proto.RegisterType((*VulnerabilityManifestSummary)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.VulnerabilityManifestSummary") + proto.RegisterType((*VulnerabilityManifestSummaryList)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.VulnerabilityManifestSummaryList") + proto.RegisterType((*VulnerabilityManifestSummarySpec)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.VulnerabilityManifestSummarySpec") + proto.RegisterType((*VulnerabilityManifestToolMeta)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.VulnerabilityManifestToolMeta") + proto.RegisterType((*VulnerabilityMetadata)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.VulnerabilityMetadata") + proto.RegisterType((*VulnerabilitySummary)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.VulnerabilitySummary") + proto.RegisterType((*VulnerabilitySummaryList)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.VulnerabilitySummaryList") + proto.RegisterType((*VulnerabilitySummarySpec)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.VulnerabilitySummarySpec") + proto.RegisterType((*VulnerabilitySummaryStatus)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.VulnerabilitySummaryStatus") + proto.RegisterType((*WorkloadConfigurationScan)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.WorkloadConfigurationScan") + proto.RegisterType((*WorkloadConfigurationScanList)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.WorkloadConfigurationScanList") + proto.RegisterType((*WorkloadConfigurationScanSeveritiesSummary)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.WorkloadConfigurationScanSeveritiesSummary") + proto.RegisterType((*WorkloadConfigurationScanSpec)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.WorkloadConfigurationScanSpec") + proto.RegisterMapType((map[string]ScannedControl)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.WorkloadConfigurationScanSpec.ControlsEntry") + proto.RegisterType((*WorkloadConfigurationScanSummary)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.WorkloadConfigurationScanSummary") + proto.RegisterType((*WorkloadConfigurationScanSummaryIdentifier)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.WorkloadConfigurationScanSummaryIdentifier") + proto.RegisterType((*WorkloadConfigurationScanSummaryList)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.WorkloadConfigurationScanSummaryList") + proto.RegisterType((*WorkloadConfigurationScanSummarySpec)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.WorkloadConfigurationScanSummarySpec") + proto.RegisterMapType((map[string]ScannedControlSummary)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.WorkloadConfigurationScanSummarySpec.ControlsEntry") + proto.RegisterType((*WorkloadScanRelatedObject)(nil), "github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1.WorkloadScanRelatedObject") +} + +func init() { + proto.RegisterFile("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1/generated.proto", fileDescriptor_ada9a9c05eeab74f) +} + +var fileDescriptor_ada9a9c05eeab74f = []byte{ + // 8967 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x7d, 0x6d, 0x70, 0x24, 0xc7, + 0x75, 0x18, 0x67, 0x3f, 0x80, 0xc5, 0x03, 0xee, 0x0e, 0xd7, 0xc7, 0x23, 0x41, 0xf0, 0xee, 0x70, + 0x1e, 0x49, 0x17, 0x52, 0x3a, 0x01, 0x24, 0xf5, 0x61, 0xda, 0x4a, 0xa4, 0xe0, 0x93, 0x07, 0x11, + 0x87, 0x03, 0x1b, 0xe0, 0x91, 0x16, 0x29, 0x9e, 0x07, 0xb3, 0xbd, 0x8b, 0xe1, 0xed, 0xce, 0xac, + 0x66, 0x66, 0x71, 0x58, 0x8a, 0x14, 0x29, 0xd2, 0xa2, 0x3e, 0x62, 0x7d, 0x45, 0x65, 0xab, 0x14, + 0x3b, 0x51, 0x29, 0x2e, 0xcb, 0xfa, 0x11, 0x2b, 0x29, 0x55, 0xaa, 0xf2, 0xc3, 0xf9, 0xa8, 0x72, + 0xc5, 0x65, 0xa5, 0x12, 0xbb, 0x5c, 0xa5, 0xa4, 0xec, 0x7c, 0x18, 0x8a, 0xce, 0x4e, 0xe2, 0x52, + 0x25, 0xb2, 0xca, 0x25, 0xa7, 0x92, 0x2b, 0x57, 0x39, 0xd5, 0x9f, 0xd3, 0x3d, 0x3b, 0x03, 0xe0, + 0xce, 0xb3, 0x4b, 0x2a, 0xe5, 0x5f, 0xc0, 0xbe, 0xf7, 0xba, 0xdf, 0xeb, 0x9e, 0xd7, 0xaf, 0xdf, + 0xeb, 0x7e, 0xdd, 0x0d, 0x4f, 0x34, 0xbd, 0x78, 0xa7, 0xbb, 0x3d, 0xeb, 0x06, 0xed, 0xb9, 0xeb, + 0xdd, 0x6d, 0x12, 0xb9, 0x4e, 0x87, 0xcc, 0x45, 0x71, 0x10, 0x3a, 0x4d, 0x32, 0xd7, 0xb9, 0xde, + 0x9c, 0x73, 0x3a, 0x5e, 0x34, 0x17, 0x05, 0x8d, 0xf8, 0x86, 0x13, 0x12, 0x37, 0x68, 0x77, 0x82, + 0xc8, 0x8b, 0xbd, 0xc0, 0x9f, 0xdb, 0x7d, 0x78, 0x9b, 0xc4, 0xce, 0xc3, 0x73, 0x4d, 0xe2, 0x93, + 0xd0, 0x89, 0x49, 0x7d, 0xb6, 0x13, 0x06, 0x71, 0x80, 0xe6, 0x93, 0x2a, 0x67, 0x55, 0x95, 0xb3, + 0xa2, 0xca, 0xd9, 0xce, 0xf5, 0xe6, 0x2c, 0xad, 0x72, 0x36, 0xa3, 0xca, 0x59, 0x51, 0xe5, 0xf4, + 0x3b, 0x35, 0xa9, 0x9a, 0x41, 0x33, 0x98, 0x63, 0x35, 0x6f, 0x77, 0x1b, 0xec, 0x17, 0xfb, 0xc1, + 0xfe, 0xe3, 0x1c, 0xa7, 0xed, 0xeb, 0x8f, 0x46, 0xb3, 0x5e, 0x40, 0x45, 0x9d, 0x73, 0x83, 0x90, + 0xcc, 0xed, 0xf6, 0x49, 0x35, 0xfd, 0xee, 0x84, 0xa6, 0xed, 0xb8, 0x3b, 0x9e, 0x4f, 0xc2, 0x5e, + 0xd2, 0xbe, 0x36, 0x89, 0x9d, 0xac, 0x52, 0x73, 0x79, 0xa5, 0xc2, 0xae, 0x1f, 0x7b, 0x6d, 0xd2, + 0x57, 0xe0, 0xbd, 0x87, 0x15, 0x88, 0xdc, 0x1d, 0xd2, 0x76, 0xd2, 0xe5, 0xec, 0x4b, 0x50, 0x9b, + 0xaf, 0xef, 0x7a, 0x51, 0x10, 0xf6, 0xd0, 0x34, 0x94, 0xbc, 0xfa, 0x94, 0x75, 0xde, 0x7a, 0x60, + 0x6c, 0x01, 0xbe, 0xbd, 0x3f, 0x73, 0xd7, 0xcd, 0xfd, 0x99, 0xd2, 0xea, 0x12, 0x2e, 0x79, 0x75, + 0x74, 0x1e, 0x2a, 0x2d, 0xcf, 0xbf, 0x3e, 0x55, 0x62, 0xd8, 0x09, 0x81, 0xad, 0xac, 0x79, 0xfe, + 0x75, 0xcc, 0x30, 0xf6, 0x5f, 0x94, 0xe0, 0xd4, 0x7c, 0xa7, 0xd3, 0xf2, 0x5c, 0x87, 0xf6, 0xe9, + 0xbc, 0x1b, 0x7b, 0xbb, 0x5e, 0xdc, 0x43, 0x3f, 0x0b, 0x35, 0xda, 0xca, 0xba, 0x13, 0x3b, 0xac, + 0xee, 0xf1, 0x47, 0x1e, 0x9a, 0xe5, 0xc2, 0xce, 0xea, 0xc2, 0x26, 0x1f, 0x88, 0x52, 0xcf, 0xee, + 0x3e, 0x3c, 0x7b, 0x65, 0xfb, 0x79, 0xe2, 0xc6, 0x97, 0x49, 0xec, 0x2c, 0x20, 0xc1, 0x0f, 0x12, + 0x18, 0x56, 0xb5, 0xa2, 0x17, 0xa1, 0x12, 0x75, 0x88, 0xcb, 0x64, 0x1b, 0x7f, 0xe4, 0x43, 0xb3, + 0x7f, 0x65, 0x3d, 0x98, 0xcd, 0x68, 0xc7, 0x66, 0x87, 0xb8, 0x49, 0xbb, 0xe9, 0x2f, 0xcc, 0xb8, + 0xa2, 0x9f, 0xb3, 0x60, 0x24, 0x8a, 0x9d, 0xb8, 0x1b, 0x4d, 0x95, 0x99, 0x00, 0xcf, 0x0e, 0x48, + 0x00, 0xc6, 0x63, 0xe1, 0xb8, 0x10, 0x61, 0x84, 0xff, 0xc6, 0x82, 0xb7, 0xfd, 0x23, 0x0b, 0xee, + 0xcd, 0x28, 0xb5, 0xe6, 0x45, 0x31, 0x7a, 0xb6, 0xef, 0x13, 0xcc, 0x1e, 0xed, 0x13, 0xd0, 0xd2, + 0xec, 0x03, 0x4c, 0x0a, 0xae, 0x35, 0x09, 0xd1, 0xba, 0xff, 0xa3, 0x50, 0xf5, 0x62, 0xd2, 0x8e, + 0xa6, 0x4a, 0xe7, 0xcb, 0x0f, 0x8c, 0x3f, 0x72, 0x75, 0x30, 0xcd, 0x5f, 0x38, 0x26, 0x44, 0xa8, + 0xae, 0x52, 0x66, 0x98, 0xf3, 0xb4, 0x17, 0x33, 0x5b, 0x4d, 0x3f, 0x0f, 0x7a, 0x00, 0x6a, 0x51, + 0x2f, 0x72, 0x9d, 0x56, 0x2b, 0x9a, 0xb2, 0xce, 0x97, 0xa9, 0xda, 0xd2, 0x16, 0x6c, 0x0a, 0x18, + 0x56, 0x58, 0xfb, 0x7e, 0xb8, 0x2f, 0xb7, 0xc3, 0xed, 0xff, 0x5b, 0x02, 0xa4, 0x61, 0x37, 0xc2, + 0xa0, 0xe1, 0xb5, 0xc8, 0x10, 0xd4, 0xfa, 0xa3, 0x86, 0x5a, 0xff, 0x4c, 0xb1, 0xdd, 0x2a, 0x9a, + 0x91, 0xab, 0xd5, 0xaf, 0xa5, 0xb5, 0xfa, 0x99, 0xc1, 0xf0, 0x3f, 0x58, 0xa9, 0xbf, 0x5a, 0x81, + 0xfb, 0xfb, 0x0b, 0x2d, 0x06, 0x7e, 0xec, 0xd0, 0xde, 0xa5, 0x56, 0xc9, 0x77, 0xda, 0x44, 0xd8, + 0x2c, 0xd5, 0x8e, 0x75, 0xa7, 0x4d, 0x30, 0xc3, 0xa0, 0x77, 0xc3, 0x84, 0xeb, 0x74, 0x9c, 0x6d, + 0xaf, 0xe5, 0xc5, 0x1e, 0xe1, 0x3a, 0x3a, 0xb6, 0x30, 0x79, 0x73, 0x7f, 0x66, 0x62, 0x51, 0x83, + 0x63, 0x83, 0x0a, 0x7d, 0x04, 0xaa, 0x64, 0x8f, 0xb8, 0xb4, 0xed, 0x54, 0xa5, 0xd7, 0x0a, 0x68, + 0xfb, 0xf2, 0x1e, 0x71, 0x17, 0xa9, 0xb6, 0x25, 0x8a, 0x4c, 0x41, 0x11, 0xe6, 0x9c, 0x28, 0xcb, + 0xa0, 0x43, 0xfc, 0x68, 0xaa, 0x52, 0x18, 0xcb, 0x2b, 0x1d, 0xe2, 0xa7, 0x58, 0x52, 0x50, 0x84, + 0x39, 0x27, 0x63, 0x80, 0x54, 0x0f, 0x1a, 0x20, 0xe8, 0xcb, 0x16, 0x1c, 0x8f, 0x88, 0x4b, 0x99, + 0x88, 0x6f, 0x30, 0x35, 0xc2, 0xb4, 0xe2, 0xa9, 0x02, 0xc4, 0xdc, 0xf4, 0xfc, 0x66, 0x8b, 0x6c, + 0x1a, 0xd5, 0x2f, 0xdc, 0x23, 0x24, 0x3e, 0x6e, 0xc2, 0x71, 0x4a, 0x0c, 0xfb, 0xcf, 0x2c, 0xb8, + 0xa7, 0x5f, 0x43, 0x86, 0x60, 0xf5, 0x5e, 0x30, 0xad, 0xde, 0x93, 0x03, 0x19, 0x1e, 0x39, 0x46, + 0xef, 0x9f, 0x55, 0xb2, 0x1a, 0xcd, 0x8c, 0xde, 0x4f, 0xc2, 0x31, 0x27, 0x74, 0x77, 0xbc, 0x98, + 0xb8, 0x71, 0x37, 0x24, 0xd2, 0xf2, 0x9d, 0xbc, 0xb9, 0x3f, 0x73, 0x6c, 0x5e, 0x47, 0x60, 0x93, + 0x0e, 0xfd, 0x5d, 0x0b, 0xc0, 0x95, 0x03, 0x4b, 0xb6, 0xea, 0xb9, 0x81, 0xb4, 0x4a, 0x8d, 0xdf, + 0xc4, 0x00, 0x2a, 0x50, 0x84, 0x35, 0x29, 0xd0, 0x3f, 0xb0, 0xe0, 0xb8, 0xe7, 0x7b, 0x71, 0x82, + 0x16, 0x23, 0x72, 0xd0, 0x82, 0x29, 0xf5, 0x5b, 0x35, 0xb8, 0xe3, 0x94, 0x34, 0xe8, 0xd7, 0x2d, + 0x38, 0x45, 0x3a, 0x3b, 0xa4, 0x4d, 0x42, 0xa7, 0xa5, 0x49, 0x59, 0x19, 0x8a, 0x94, 0xf7, 0x0b, + 0x29, 0x4f, 0x2d, 0xf7, 0x8b, 0x80, 0xb3, 0xe4, 0xb2, 0xa7, 0x61, 0x2a, 0xcf, 0x08, 0xdb, 0xbf, + 0x6b, 0x41, 0x79, 0x3e, 0x6c, 0xa2, 0xb7, 0x40, 0xd5, 0xf3, 0xeb, 0x64, 0x8f, 0x0d, 0x9a, 0x8a, + 0xa6, 0x82, 0x14, 0x88, 0x39, 0x8e, 0x12, 0xed, 0x3a, 0xad, 0x2e, 0x61, 0xb3, 0x93, 0x46, 0x74, + 0x95, 0x02, 0x31, 0xc7, 0xa1, 0x8b, 0x50, 0x63, 0xff, 0x6c, 0xdd, 0x08, 0xd8, 0x2c, 0x52, 0x49, + 0x46, 0xd4, 0x55, 0x01, 0xc7, 0x8a, 0x02, 0x5d, 0x81, 0x52, 0xd0, 0x99, 0xaa, 0x30, 0x53, 0xfe, + 0x01, 0xe9, 0x7e, 0x5e, 0xe9, 0xdc, 0xda, 0x9f, 0x79, 0x58, 0x73, 0xcb, 0x13, 0xed, 0x98, 0x73, + 0x83, 0x76, 0x3b, 0xf0, 0x99, 0x97, 0x2b, 0xac, 0x02, 0x35, 0x79, 0xa1, 0x13, 0x07, 0x21, 0x2e, + 0x05, 0x1d, 0x7b, 0x1d, 0xca, 0x8b, 0x1b, 0xcb, 0x68, 0x06, 0xca, 0x6e, 0x47, 0xce, 0x11, 0x29, + 0x41, 0x29, 0x06, 0x5d, 0x80, 0x91, 0x28, 0xe8, 0x86, 0x2e, 0x11, 0xde, 0x6d, 0x32, 0x1b, 0x31, + 0x28, 0x16, 0x58, 0xfb, 0x8b, 0x15, 0x18, 0x5b, 0xa4, 0x9f, 0xc8, 0x27, 0x7e, 0x7c, 0xa0, 0xb7, + 0xfc, 0x0b, 0x16, 0x8c, 0xec, 0x38, 0xd1, 0x0e, 0x91, 0x03, 0xe9, 0xe9, 0x02, 0x34, 0x41, 0xb1, + 0x9e, 0xbd, 0xc4, 0xaa, 0x5e, 0xf6, 0xe3, 0xb0, 0xb7, 0xf0, 0x16, 0x29, 0x2c, 0x07, 0xbe, 0xfa, + 0xdd, 0x99, 0xb1, 0xf9, 0x56, 0x33, 0x08, 0xbd, 0x78, 0xa7, 0xfd, 0x99, 0xef, 0xce, 0x54, 0x28, + 0x18, 0x0b, 0x61, 0xd0, 0xd7, 0x2d, 0x18, 0xf7, 0xea, 0xc4, 0x8f, 0xbd, 0x86, 0x97, 0x0c, 0xa6, + 0x0f, 0x17, 0x2a, 0xdc, 0x6a, 0x52, 0x3f, 0x97, 0xf0, 0x6d, 0x42, 0xc2, 0x71, 0x0d, 0xf3, 0xea, + 0x77, 0x67, 0x8e, 0x27, 0x3f, 0xb7, 0x7a, 0x1d, 0x82, 0x75, 0xc1, 0xa8, 0xe6, 0x44, 0x5d, 0xaa, + 0xa8, 0x24, 0x14, 0x1a, 0xa1, 0x34, 0x67, 0x53, 0xc0, 0xb1, 0xa2, 0x98, 0xfe, 0x29, 0x18, 0xd7, + 0xba, 0x04, 0x4d, 0x42, 0xf9, 0x3a, 0xe9, 0xf1, 0x4f, 0x83, 0xe9, 0xbf, 0xe8, 0x6e, 0x5d, 0x5b, + 0xc7, 0x84, 0x7a, 0xfe, 0x74, 0xe9, 0x51, 0x6b, 0xfa, 0xfd, 0x30, 0x99, 0x16, 0xf8, 0x76, 0xca, + 0xdb, 0xdf, 0x2f, 0x51, 0x9d, 0xf0, 0xeb, 0xac, 0x37, 0xd0, 0xc3, 0x50, 0x89, 0x7b, 0x4a, 0xd7, + 0xce, 0x4a, 0x7f, 0x84, 0xb6, 0xef, 0xd6, 0xfe, 0xcc, 0x31, 0x45, 0xc8, 0x1a, 0xcc, 0x48, 0xd1, + 0x9a, 0xf2, 0xb3, 0xb8, 0xf2, 0xbd, 0xdb, 0x74, 0x85, 0x6e, 0xed, 0xcf, 0x64, 0x44, 0x99, 0xb3, + 0xaa, 0x26, 0xd3, 0x61, 0x42, 0xbb, 0x80, 0x5a, 0x4e, 0x14, 0x6f, 0x85, 0x8e, 0xcf, 0x3f, 0xd0, + 0x96, 0xd7, 0x26, 0xc2, 0x83, 0x7b, 0xfb, 0xd1, 0x66, 0x3f, 0x5a, 0x62, 0x61, 0x5a, 0x48, 0x81, + 0xd6, 0xfa, 0x6a, 0xc3, 0x19, 0x1c, 0xd0, 0x4f, 0xc1, 0x48, 0x48, 0x9c, 0x28, 0xf0, 0xc5, 0xd7, + 0xfa, 0x09, 0xd9, 0x0a, 0xcc, 0xa0, 0xb7, 0xf6, 0x67, 0x4e, 0x28, 0x91, 0x39, 0x08, 0x8b, 0x02, + 0xe8, 0x41, 0x18, 0x6d, 0x93, 0x28, 0x72, 0x9a, 0x64, 0xaa, 0xca, 0xca, 0x9e, 0x10, 0x65, 0x47, + 0x2f, 0x73, 0x30, 0x96, 0x78, 0xfb, 0x17, 0x2d, 0x38, 0xa9, 0xaa, 0x21, 0x75, 0xde, 0x76, 0xf4, + 0x0a, 0x9f, 0xb9, 0x38, 0x94, 0x4f, 0x78, 0xc5, 0xf8, 0x4f, 0x8a, 0x95, 0x31, 0x4f, 0x09, 0x3e, + 0x58, 0xe3, 0x69, 0xbf, 0x52, 0x82, 0xa9, 0xc5, 0xc0, 0x6f, 0x78, 0xcd, 0x6e, 0xc8, 0x2c, 0xeb, + 0xa6, 0xeb, 0xf8, 0x9b, 0xdd, 0x76, 0xdb, 0x09, 0x87, 0x11, 0x00, 0x7f, 0xdc, 0x32, 0x42, 0x85, + 0x6b, 0xc5, 0xb4, 0x3d, 0xb3, 0x35, 0x79, 0x01, 0x83, 0xfd, 0x97, 0x16, 0x9c, 0xc9, 0x2b, 0x34, + 0x04, 0x77, 0xec, 0x15, 0xcb, 0xf4, 0xc7, 0x9e, 0x19, 0x60, 0x1f, 0xe4, 0x78, 0x65, 0x9f, 0x2c, + 0xe7, 0xf7, 0x00, 0xf3, 0xcd, 0xbe, 0x66, 0x01, 0x44, 0x64, 0x97, 0x84, 0x3c, 0x14, 0xe1, 0x9d, + 0xd0, 0x2e, 0x40, 0xd0, 0xa7, 0x82, 0xf0, 0x7a, 0x2b, 0x70, 0xea, 0xfd, 0xdc, 0x15, 0x37, 0x29, + 0xba, 0x52, 0xa4, 0x04, 0x85, 0x35, 0xa1, 0xd0, 0x6f, 0x52, 0x19, 0x39, 0x2d, 0x26, 0x0d, 0xd1, + 0x99, 0x83, 0x95, 0x91, 0x73, 0x4b, 0xac, 0xf0, 0xc2, 0xbb, 0x84, 0x8c, 0xef, 0x38, 0x7a, 0x19, + 0xda, 0x08, 0x25, 0xb5, 0xbd, 0x0b, 0xd4, 0xda, 0xc4, 0x61, 0xd0, 0x12, 0xad, 0xec, 0xb1, 0x09, + 0x45, 0xfc, 0x2f, 0xac, 0x73, 0x32, 0xa1, 0x08, 0x38, 0x56, 0x14, 0xe8, 0x3d, 0x30, 0x1e, 0x51, + 0x53, 0xbb, 0xe2, 0xb8, 0x71, 0x10, 0xb2, 0x61, 0x55, 0x5a, 0x38, 0x25, 0xe7, 0xb1, 0xcd, 0x04, + 0x85, 0x75, 0x3a, 0xdb, 0x85, 0xf1, 0xc5, 0x20, 0x08, 0xeb, 0x9e, 0xef, 0xc4, 0x24, 0x42, 0x6f, + 0x85, 0x4a, 0xc7, 0x89, 0x77, 0xd2, 0xfc, 0x30, 0x71, 0x5a, 0x1b, 0x4e, 0xbc, 0x83, 0x19, 0x16, + 0xcd, 0xc2, 0x68, 0xcb, 0xe9, 0x91, 0x70, 0x75, 0x49, 0xcc, 0x00, 0x77, 0x0b, 0xc2, 0x89, 0x15, + 0xea, 0x9b, 0xf5, 0xa2, 0x98, 0xb4, 0x57, 0x97, 0xb0, 0x24, 0xb2, 0xff, 0x51, 0x09, 0x2a, 0x8b, + 0xbb, 0x51, 0x44, 0x0d, 0xe7, 0x2e, 0x09, 0x23, 0x2f, 0xf0, 0x05, 0x07, 0x65, 0x38, 0xaf, 0x72, + 0x30, 0x96, 0x78, 0xea, 0xe1, 0xec, 0x12, 0xd5, 0x14, 0xcd, 0xc3, 0xb9, 0xca, 0xa0, 0x58, 0x60, + 0x51, 0x8f, 0xda, 0xe2, 0x38, 0xf4, 0x5c, 0x19, 0xf5, 0xaf, 0x17, 0x31, 0x8c, 0x76, 0xa3, 0xe8, + 0x32, 0xaf, 0x55, 0xb7, 0xed, 0x0c, 0x80, 0x25, 0x3f, 0x74, 0x15, 0x8e, 0xef, 0x12, 0xbf, 0x1e, + 0x84, 0x97, 0xa5, 0x91, 0xa0, 0x33, 0xc9, 0xc4, 0xc2, 0x2c, 0xf5, 0xc2, 0xaf, 0x1a, 0x98, 0x5b, + 0xfb, 0x33, 0x53, 0xc4, 0x77, 0x83, 0xba, 0xe7, 0x37, 0xe7, 0x9e, 0x8f, 0x02, 0x7f, 0x16, 0x3b, + 0x37, 0xe4, 0x64, 0x91, 0xaa, 0xc5, 0xfe, 0xe7, 0x16, 0x8c, 0x6b, 0x12, 0xa0, 0x39, 0x18, 0xdb, + 0x76, 0x22, 0xc2, 0xbe, 0x21, 0xeb, 0x37, 0x6b, 0xe1, 0xa4, 0x10, 0x6a, 0x6c, 0x41, 0x22, 0x70, + 0x42, 0x83, 0x56, 0xe1, 0x14, 0xd9, 0xeb, 0xb4, 0x02, 0x2f, 0xe6, 0xeb, 0x03, 0x3d, 0x5e, 0xb4, + 0xc4, 0x8a, 0xde, 0xcb, 0xbc, 0xef, 0x7e, 0x34, 0xce, 0x2a, 0x83, 0x1e, 0x86, 0x71, 0xaf, 0xdd, + 0x71, 0xdc, 0x98, 0x57, 0x51, 0x66, 0x55, 0x9c, 0x60, 0xae, 0x51, 0x02, 0xc6, 0x3a, 0x8d, 0xfd, + 0xe7, 0x16, 0xc0, 0x12, 0x89, 0xdc, 0xd0, 0xeb, 0xd0, 0x0f, 0x74, 0xf8, 0x82, 0x87, 0xa6, 0x15, + 0xa5, 0x43, 0xb4, 0x62, 0x13, 0x8e, 0xb9, 0xfa, 0xc8, 0x62, 0x02, 0x4d, 0x2c, 0xbc, 0xf3, 0x26, + 0x77, 0x55, 0x12, 0xc4, 0x81, 0x1d, 0x6e, 0xd6, 0x81, 0x96, 0xa1, 0x54, 0xdf, 0x16, 0xdf, 0xee, + 0x3d, 0x37, 0xf7, 0x67, 0x4e, 0x5f, 0xed, 0xb6, 0x7c, 0x12, 0x8a, 0x7e, 0x58, 0x5a, 0x50, 0x6e, + 0x4d, 0x7e, 0x8d, 0xa5, 0xfa, 0xb6, 0xfd, 0x1c, 0x8c, 0x2c, 0x79, 0x4d, 0x12, 0xc5, 0xf4, 0x83, + 0x39, 0xd2, 0xa1, 0x15, 0xed, 0x56, 0x1f, 0x4c, 0x79, 0xba, 0x38, 0xa1, 0x31, 0x43, 0x93, 0xb1, + 0xec, 0xd0, 0xc4, 0x7e, 0x19, 0x26, 0x96, 0xbc, 0x28, 0x0e, 0xbd, 0xed, 0x2e, 0x13, 0xbb, 0xd0, + 0x8e, 0xb5, 0x61, 0xc4, 0xab, 0xaf, 0x79, 0xd7, 0x09, 0x73, 0xb0, 0xc7, 0x16, 0x80, 0x0e, 0xb5, + 0xd5, 0x25, 0x0a, 0xc1, 0x02, 0x63, 0xbf, 0x52, 0x81, 0x53, 0xcb, 0x6b, 0x2b, 0x9b, 0xc4, 0xed, + 0x52, 0x93, 0xb3, 0x42, 0x1c, 0x1e, 0x87, 0x5f, 0x86, 0x53, 0x51, 0xaf, 0xbd, 0x1d, 0xb4, 0xb6, + 0x9c, 0x6d, 0x1a, 0x9a, 0x85, 0x5e, 0xa7, 0x43, 0x78, 0x9c, 0x51, 0x4b, 0x02, 0xbe, 0xcd, 0x7e, + 0x12, 0x9c, 0x55, 0x8e, 0xaa, 0x5c, 0x14, 0x3b, 0xee, 0xf5, 0x45, 0xc7, 0x77, 0xc2, 0x1e, 0x93, + 0xbc, 0xc6, 0x55, 0x6e, 0x33, 0x01, 0x63, 0x9d, 0x06, 0xbd, 0x15, 0x4a, 0xfe, 0x1e, 0xd3, 0x85, + 0x5a, 0x62, 0x8b, 0xd6, 0x83, 0xe5, 0x3d, 0xe2, 0x76, 0x63, 0x5a, 0x39, 0x2e, 0xf9, 0x7b, 0x68, + 0x05, 0xaa, 0x21, 0x69, 0xe1, 0x2b, 0xc2, 0xe1, 0x7b, 0x48, 0x3a, 0x8c, 0x98, 0xb4, 0x02, 0x1e, + 0x5d, 0x62, 0xe2, 0xd4, 0xaf, 0xf8, 0xad, 0xde, 0xad, 0x4c, 0x28, 0xe6, 0xc5, 0xd1, 0x4f, 0x42, + 0xb9, 0xe3, 0x71, 0xd7, 0xaf, 0xa6, 0x42, 0x85, 0xb3, 0x1b, 0xc2, 0x88, 0xd0, 0x98, 0xb3, 0x43, + 0x7c, 0x6a, 0xe7, 0x35, 0xfe, 0xb4, 0x04, 0x7a, 0x27, 0x94, 0xeb, 0x51, 0xc0, 0xd6, 0xa1, 0xb4, + 0x8e, 0x59, 0xea, 0xf9, 0x4e, 0xdb, 0x73, 0x37, 0x77, 0x9c, 0x90, 0xd4, 0xb9, 0xb3, 0x84, 0x29, + 0x1d, 0x55, 0xa3, 0xc8, 0x69, 0x10, 0xd6, 0xea, 0xa9, 0x51, 0x56, 0x88, 0x2d, 0x8a, 0xac, 0xb5, + 0x76, 0xdb, 0x9b, 0x12, 0x81, 0x13, 0x1a, 0x34, 0x0b, 0x65, 0xb7, 0xe1, 0x4d, 0xd5, 0x18, 0xe9, + 0x99, 0x9b, 0xfb, 0x33, 0x53, 0x94, 0x54, 0xcc, 0x2b, 0x2b, 0xad, 0xe0, 0xc6, 0xaa, 0x1f, 0x93, + 0x26, 0x9b, 0x38, 0x28, 0x21, 0x7a, 0x08, 0x46, 0x1b, 0x41, 0x18, 0x7b, 0x8d, 0xde, 0xd4, 0x18, + 0x2b, 0x73, 0x0f, 0xed, 0x8e, 0xc5, 0x96, 0xe3, 0x37, 0x57, 0x38, 0x5c, 0x84, 0x93, 0x92, 0xcc, + 0xf6, 0x60, 0x4c, 0xad, 0x0a, 0x52, 0x05, 0xd4, 0x26, 0x0b, 0xa5, 0x80, 0xda, 0x44, 0x71, 0x06, + 0x2a, 0x4e, 0xd8, 0x94, 0x4b, 0x98, 0x35, 0x8a, 0x9d, 0x0f, 0x9b, 0x11, 0x66, 0x50, 0x8a, 0x25, + 0xfe, 0x6e, 0x24, 0x34, 0x8e, 0x61, 0x97, 0xfd, 0xdd, 0x08, 0x33, 0xa8, 0xfd, 0x0f, 0xcb, 0x00, + 0x49, 0x07, 0xa2, 0x9f, 0x86, 0x91, 0x46, 0x10, 0xb6, 0x9d, 0x58, 0xb0, 0xb3, 0xe5, 0x7c, 0xb0, + 0xc2, 0xa0, 0xb7, 0xf6, 0x67, 0x26, 0x13, 0x6a, 0x0e, 0xc3, 0xa2, 0x04, 0x7a, 0x04, 0x60, 0xc7, + 0x89, 0x96, 0xf7, 0x3a, 0x41, 0x18, 0x47, 0x42, 0xa1, 0x94, 0x57, 0x71, 0x49, 0x61, 0xb0, 0x46, + 0x85, 0xde, 0x07, 0xc7, 0xe8, 0x2f, 0x1a, 0x5d, 0x75, 0x02, 0xcf, 0x8f, 0x85, 0x76, 0x9d, 0x16, + 0xc5, 0x8e, 0x5d, 0xd2, 0x91, 0xd8, 0xa4, 0x45, 0x8b, 0x70, 0xd2, 0x6b, 0xd3, 0x7a, 0x48, 0x7d, + 0xcd, 0xdb, 0x0e, 0x9d, 0x90, 0x3a, 0x4f, 0x15, 0xd6, 0xcc, 0xd3, 0x37, 0xf7, 0x67, 0x4e, 0xae, + 0xa6, 0x91, 0xb8, 0x9f, 0x9e, 0xfa, 0x5e, 0xa7, 0x48, 0xab, 0x91, 0x1e, 0x6e, 0x4c, 0xef, 0x8a, + 0xd9, 0xb3, 0xc8, 0x18, 0xcc, 0x62, 0x7a, 0xe8, 0x47, 0xe0, 0x2c, 0x59, 0xec, 0xaf, 0x97, 0x60, + 0x7c, 0x85, 0xad, 0x5e, 0xba, 0xc4, 0x8f, 0x48, 0x62, 0xc8, 0xac, 0x7c, 0x43, 0x86, 0xde, 0x0f, + 0xc7, 0xa3, 0x4e, 0x7d, 0x6f, 0x79, 0xaf, 0x13, 0x92, 0x48, 0xb3, 0x4e, 0xc9, 0x02, 0xea, 0xc6, + 0xd2, 0xd3, 0x09, 0x16, 0xa7, 0xa8, 0xd1, 0x9c, 0x08, 0x59, 0xcb, 0xac, 0xd4, 0xfd, 0xa9, 0x90, + 0x75, 0x5c, 0xc8, 0xa2, 0x05, 0xac, 0xaf, 0x58, 0x50, 0x23, 0xbb, 0x34, 0x58, 0x77, 0x09, 0x1b, + 0xfc, 0xc5, 0x74, 0x9f, 0xd6, 0xf0, 0x65, 0x51, 0x3b, 0x5f, 0x8e, 0x96, 0xbf, 0xb0, 0xe2, 0x6a, + 0x7f, 0xc5, 0x82, 0x53, 0x19, 0xf4, 0x54, 0x35, 0xd9, 0x64, 0xc4, 0x65, 0xa3, 0xbd, 0x56, 0x36, + 0x42, 0x37, 0x81, 0xc1, 0x1a, 0x15, 0x75, 0x8d, 0x82, 0x46, 0x23, 0x22, 0x31, 0xeb, 0xb7, 0x72, + 0xe2, 0x1a, 0x5d, 0x61, 0x50, 0x2c, 0xb0, 0x94, 0x8e, 0xec, 0xc5, 0x44, 0xe8, 0xae, 0x46, 0xb7, + 0xcc, 0xa0, 0x58, 0x60, 0xed, 0x7f, 0x59, 0x82, 0x93, 0x54, 0x36, 0xe9, 0x80, 0xf0, 0x25, 0x85, + 0xf3, 0x50, 0x69, 0x07, 0x75, 0x29, 0x93, 0x1a, 0xdd, 0x97, 0x83, 0x3a, 0xc1, 0x0c, 0x43, 0x29, + 0xd8, 0x77, 0x48, 0x6d, 0xb0, 0x6a, 0x1d, 0x3f, 0x0f, 0x27, 0x5a, 0x9e, 0x7f, 0x7d, 0x89, 0x44, + 0x31, 0x75, 0x30, 0xe5, 0x84, 0x3d, 0xb6, 0x70, 0xaf, 0x20, 0x3e, 0xb1, 0x66, 0xa2, 0x71, 0x9a, + 0x9e, 0x36, 0xa2, 0x1b, 0x31, 0x57, 0xb3, 0x62, 0x36, 0xe2, 0x49, 0x06, 0xc5, 0x02, 0x4b, 0xe7, + 0xba, 0x66, 0x18, 0x74, 0x3b, 0xab, 0x4b, 0x6c, 0x80, 0x94, 0x93, 0xb9, 0xee, 0x31, 0x0e, 0xc6, + 0x12, 0x4f, 0x1d, 0xeb, 0xb6, 0xd7, 0x66, 0x0a, 0xc2, 0x6c, 0xb1, 0xe6, 0xe8, 0x5e, 0x5e, 0xbd, + 0xbc, 0xcc, 0xe4, 0x57, 0x14, 0xe8, 0x27, 0xa0, 0x12, 0x79, 0x2f, 0x10, 0x66, 0x80, 0xcb, 0x89, + 0x46, 0x6f, 0x7a, 0x2f, 0x90, 0x6b, 0x98, 0xa1, 0xec, 0x2d, 0x28, 0xaf, 0x78, 0x7b, 0xe8, 0x01, + 0xa8, 0x89, 0xe9, 0xd4, 0xd8, 0xbd, 0x13, 0x73, 0x6d, 0x84, 0x15, 0x96, 0x0e, 0x93, 0x28, 0x76, + 0xe2, 0xbe, 0xf9, 0x9e, 0x7a, 0x1a, 0x04, 0x73, 0x9c, 0xfd, 0xa7, 0x25, 0xb8, 0xe7, 0x31, 0xb9, + 0xf7, 0xbd, 0x4e, 0xe2, 0x1b, 0x41, 0x78, 0x7d, 0x23, 0x68, 0x79, 0xee, 0x30, 0xe2, 0xf3, 0xd0, + 0x08, 0xcf, 0x37, 0x0a, 0x18, 0x2d, 0x46, 0x0b, 0x32, 0x37, 0xf0, 0x5e, 0x86, 0xb1, 0x0e, 0xc3, + 0xd2, 0x30, 0xae, 0xb8, 0x6d, 0xac, 0x0d, 0x59, 0x67, 0x12, 0x0e, 0x31, 0x10, 0x35, 0xbb, 0xa4, + 0x81, 0x13, 0x9e, 0xf6, 0x2d, 0x0b, 0xa6, 0xb3, 0x7b, 0x7c, 0x08, 0xcb, 0x01, 0x1f, 0x33, 0x57, + 0x03, 0x8a, 0xd8, 0x3c, 0xcd, 0x6e, 0x4b, 0xce, 0x5a, 0xc0, 0x6b, 0x55, 0x38, 0xf6, 0x58, 0xd8, + 0xeb, 0x90, 0xa5, 0xc0, 0xed, 0xb6, 0x89, 0x1f, 0xa3, 0x08, 0x46, 0xdb, 0x4e, 0xec, 0xee, 0x10, + 0xb9, 0x42, 0x75, 0xa9, 0x00, 0x99, 0x2e, 0xd3, 0x1a, 0xb5, 0xa0, 0x8a, 0x33, 0xc0, 0x92, 0x13, + 0xfa, 0xbc, 0x05, 0xc7, 0xbd, 0xa6, 0x1f, 0x84, 0xa4, 0x2e, 0x70, 0xa2, 0x43, 0xae, 0x14, 0xc0, + 0x7c, 0x55, 0xab, 0x58, 0xdb, 0x30, 0x31, 0xd8, 0xe1, 0x14, 0x7b, 0xd4, 0x56, 0x6b, 0xed, 0x3c, + 0xc0, 0x5c, 0x2d, 0x62, 0x03, 0x91, 0x55, 0xc8, 0xbd, 0x6c, 0x73, 0xc9, 0x1e, 0xdd, 0x80, 0x91, + 0x3a, 0x75, 0xf3, 0x03, 0x31, 0x53, 0x15, 0xd1, 0x6e, 0x3d, 0x6e, 0x48, 0x2c, 0x28, 0x83, 0x06, + 0x58, 0xb0, 0x43, 0xaf, 0x5a, 0x00, 0x75, 0x15, 0xb7, 0x09, 0x37, 0xe3, 0x72, 0x11, 0xdc, 0x55, + 0xa5, 0xc9, 0x08, 0x4c, 0x60, 0xd7, 0xb0, 0xc6, 0xd5, 0xfe, 0x9d, 0x2a, 0x4c, 0x30, 0x2d, 0xdc, + 0x70, 0xdc, 0xeb, 0x4e, 0x93, 0x14, 0x1b, 0xe5, 0x5c, 0x34, 0x3c, 0x87, 0xa9, 0x94, 0xe7, 0x50, + 0xdb, 0xec, 0x35, 0x62, 0x6d, 0xf6, 0x7a, 0xcd, 0x82, 0x31, 0x19, 0x03, 0xc8, 0xfd, 0x31, 0x5c, + 0xc4, 0xc7, 0xef, 0x35, 0x62, 0x6d, 0xd1, 0x25, 0x89, 0x0d, 0xd7, 0x24, 0x33, 0x9c, 0xf0, 0x45, + 0x7f, 0x13, 0x6a, 0xd4, 0x21, 0xef, 0x26, 0xab, 0xcd, 0xe7, 0x95, 0x15, 0x11, 0xf0, 0x5b, 0xfb, + 0x33, 0x13, 0xb4, 0x52, 0xf9, 0x1b, 0xab, 0x12, 0x74, 0x4e, 0x6a, 0x71, 0x97, 0x23, 0x9a, 0x1a, + 0x49, 0xe6, 0x24, 0xe1, 0x86, 0x44, 0x58, 0x61, 0xa9, 0x37, 0xee, 0x76, 0x48, 0x34, 0x35, 0x9a, + 0x78, 0xe3, 0x8b, 0x1b, 0xcb, 0x11, 0x66, 0x50, 0xe6, 0xeb, 0x77, 0xc3, 0x16, 0x8b, 0x2d, 0x74, + 0x5f, 0xff, 0x49, 0xbc, 0x86, 0x19, 0x86, 0xf5, 0x56, 0xb7, 0x13, 0xc5, 0x21, 0x71, 0xda, 0xd1, + 0xd4, 0x58, 0x61, 0xbd, 0xf5, 0xa4, 0xa8, 0x53, 0x28, 0x44, 0xd2, 0x5b, 0x12, 0x11, 0xe1, 0x84, + 0x2f, 0xba, 0x04, 0x13, 0xd2, 0xa2, 0xb2, 0xf9, 0x1d, 0x98, 0xbc, 0x6f, 0x95, 0x31, 0xe1, 0x65, + 0x0d, 0x77, 0x2b, 0xf5, 0x1b, 0x1b, 0x25, 0xd1, 0x92, 0x66, 0xed, 0xc7, 0xd9, 0xda, 0xc0, 0x03, + 0xcc, 0x43, 0x38, 0xca, 0x8a, 0x8e, 0x2a, 0x69, 0xff, 0x0f, 0x0b, 0x4e, 0x5c, 0xda, 0xda, 0xda, + 0x58, 0xf5, 0x9b, 0xd4, 0x7d, 0xa5, 0xb1, 0xd1, 0x11, 0xe2, 0xa6, 0x77, 0x43, 0x8d, 0xfe, 0xdd, + 0xd2, 0x74, 0x95, 0xf2, 0xde, 0x10, 0xb0, 0x5b, 0xda, 0xff, 0x58, 0x51, 0xa2, 0x17, 0x61, 0x74, + 0xdb, 0x71, 0xaf, 0x13, 0xbf, 0x2e, 0xa6, 0xed, 0x27, 0x8a, 0x30, 0x99, 0x5c, 0xf0, 0x05, 0x5e, + 0x71, 0x32, 0xb6, 0x04, 0x00, 0x4b, 0x96, 0xf6, 0xe7, 0x2d, 0xb8, 0x5b, 0x6b, 0x29, 0xee, 0xb6, + 0x08, 0xf3, 0xfa, 0xd1, 0x0d, 0xa8, 0x52, 0x11, 0xe5, 0x24, 0x52, 0x84, 0x4e, 0xa4, 0x7a, 0x34, + 0x99, 0xd1, 0xe8, 0xaf, 0x08, 0x73, 0x7e, 0xf6, 0x15, 0x18, 0x5d, 0xdd, 0x58, 0x68, 0x05, 0xee, + 0x75, 0xda, 0xe5, 0xae, 0x57, 0x0f, 0xd3, 0x5d, 0xbe, 0xb8, 0xba, 0x84, 0x31, 0xc3, 0x20, 0x9b, + 0x3a, 0xcb, 0x2e, 0xe9, 0xc4, 0x22, 0x58, 0x05, 0xee, 0x28, 0x53, 0x08, 0x16, 0x18, 0xfb, 0x47, + 0x16, 0x00, 0x9f, 0x2c, 0x68, 0xeb, 0x68, 0x88, 0xb8, 0xab, 0xaf, 0x14, 0x89, 0xda, 0x55, 0x88, + 0x68, 0x2c, 0x23, 0x61, 0x93, 0x96, 0x3a, 0xa1, 0x0d, 0x6f, 0x4f, 0xf7, 0x02, 0x95, 0x73, 0xb0, + 0xe2, 0xed, 0x71, 0x47, 0x50, 0x51, 0xa0, 0x8f, 0xc2, 0x68, 0x87, 0xeb, 0xbf, 0x98, 0x84, 0xb6, + 0x0a, 0x9b, 0x0d, 0x69, 0x53, 0xe4, 0xd8, 0x1a, 0xa7, 0x5f, 0x56, 0xfc, 0xc0, 0x92, 0xa3, 0xfd, + 0x7d, 0x0b, 0x4e, 0xf6, 0xd1, 0x16, 0x6b, 0x98, 0xcf, 0x1b, 0x86, 0x39, 0x2b, 0x94, 0xb8, 0x08, + 0x35, 0x69, 0x13, 0xd3, 0xdb, 0xab, 0xd2, 0x6c, 0x62, 0x45, 0x81, 0x1e, 0x85, 0x09, 0x69, 0x13, + 0x98, 0x90, 0x55, 0x73, 0x99, 0x5a, 0x9a, 0x0e, 0x26, 0xac, 0x41, 0x69, 0x7f, 0xa5, 0x04, 0x13, + 0xba, 0x43, 0x80, 0xda, 0x50, 0x65, 0xbe, 0x89, 0x70, 0xf9, 0x8a, 0xf3, 0x81, 0x94, 0xd2, 0xb2, + 0x9f, 0x98, 0x73, 0x41, 0x5f, 0xb1, 0x00, 0x39, 0x6c, 0x93, 0xb8, 0x9e, 0xf4, 0xb9, 0xf4, 0x81, + 0x2e, 0x17, 0xfa, 0xd5, 0x93, 0x2d, 0xd3, 0xf9, 0x3e, 0x86, 0x38, 0x43, 0x08, 0xfb, 0xf7, 0x4b, + 0x30, 0x2a, 0x86, 0xdd, 0x10, 0x42, 0x90, 0x8e, 0x11, 0x82, 0xac, 0x17, 0x67, 0xcb, 0x72, 0x33, + 0x08, 0xf7, 0x52, 0x09, 0x84, 0x1b, 0x05, 0xf2, 0x3c, 0x38, 0x6b, 0xf0, 0xfb, 0x16, 0x1c, 0x37, + 0x2d, 0x2d, 0x7a, 0x19, 0x46, 0x23, 0x12, 0xee, 0x7a, 0x6a, 0xc9, 0xe2, 0xe9, 0x02, 0xa5, 0xe1, + 0x15, 0x4b, 0xa3, 0xce, 0x86, 0xbd, 0x80, 0x61, 0xc9, 0x15, 0x3d, 0x05, 0xb5, 0x90, 0x18, 0x9e, + 0xef, 0x3b, 0xb5, 0x2f, 0x3c, 0xeb, 0x06, 0x21, 0x61, 0x9b, 0xef, 0xbd, 0x0e, 0xa9, 0xd3, 0x21, + 0xd8, 0x12, 0x6b, 0x97, 0xa4, 0x41, 0xc2, 0x64, 0x2d, 0x04, 0x8b, 0x2a, 0xb0, 0xaa, 0x8c, 0xce, + 0x89, 0x13, 0x42, 0x90, 0xc5, 0x96, 0x33, 0x14, 0x5d, 0xea, 0x1a, 0xba, 0xb4, 0x59, 0x5c, 0x4f, + 0xb2, 0x06, 0xe4, 0xee, 0x30, 0xff, 0x77, 0x0b, 0x26, 0x75, 0xc2, 0x21, 0x84, 0x91, 0xb1, 0x19, + 0x46, 0x5e, 0x29, 0xb8, 0xa9, 0x39, 0xc1, 0xe3, 0x1f, 0x5a, 0x30, 0xa3, 0x93, 0x6d, 0x38, 0xa1, + 0xd3, 0x26, 0x31, 0x09, 0x23, 0xa5, 0x0e, 0xd4, 0x15, 0x75, 0x36, 0x56, 0xd9, 0x6a, 0x8c, 0x9c, + 0x34, 0x68, 0x1b, 0xe6, 0x05, 0x0c, 0x2b, 0x2c, 0x9d, 0x0d, 0xae, 0x7b, 0xc2, 0x8b, 0xd1, 0x66, + 0x83, 0xc7, 0x3d, 0xbf, 0x8e, 0x19, 0x46, 0x4d, 0x3e, 0xe5, 0xdc, 0xc9, 0x67, 0x06, 0xaa, 0x91, + 0x1b, 0x74, 0x88, 0x98, 0x2c, 0xc6, 0xd8, 0xf2, 0x0a, 0x05, 0x60, 0x0e, 0x47, 0xef, 0x80, 0x31, + 0x4a, 0x18, 0x75, 0x1c, 0x57, 0xce, 0x0f, 0xc7, 0xa8, 0x5b, 0xb9, 0x2e, 0x81, 0x38, 0xc1, 0xdb, + 0xff, 0x39, 0xf5, 0x21, 0xd9, 0xe6, 0x38, 0x5f, 0xbb, 0x8b, 0xc3, 0xa0, 0xd5, 0x22, 0xd2, 0xb5, + 0x30, 0xd2, 0x03, 0x39, 0x06, 0x6b, 0x54, 0x2c, 0x67, 0xb1, 0xa3, 0x3a, 0x47, 0xe8, 0xe3, 0x76, + 0xc1, 0x1f, 0x29, 0xa3, 0xf7, 0x17, 0x8e, 0x53, 0xa1, 0x34, 0x84, 0x26, 0x85, 0xfd, 0x5f, 0x2c, + 0x18, 0x17, 0xe5, 0x87, 0xa0, 0xa1, 0x81, 0xa9, 0xa1, 0x1f, 0x2c, 0xd0, 0x49, 0xcd, 0x56, 0xce, + 0xef, 0x59, 0x30, 0x2d, 0x9b, 0x17, 0x38, 0xf5, 0x05, 0xa7, 0xe5, 0xf8, 0x2e, 0x09, 0xe5, 0x4c, + 0x36, 0x0d, 0x25, 0xaf, 0xd3, 0x97, 0x15, 0xb7, 0x81, 0x4b, 0x5e, 0x87, 0x7a, 0x1d, 0x3b, 0x41, + 0x14, 0x33, 0x5d, 0x4b, 0x79, 0x69, 0x97, 0x04, 0x1c, 0x2b, 0x0a, 0xd4, 0x83, 0x2a, 0xdf, 0x62, + 0xe0, 0xb1, 0xe2, 0x56, 0x71, 0x2d, 0xdb, 0x08, 0xc2, 0x58, 0x4c, 0x21, 0x89, 0xaf, 0xcb, 0xf6, + 0x2c, 0x38, 0x47, 0xfb, 0xeb, 0x16, 0xdc, 0x97, 0xd1, 0x46, 0x91, 0x6f, 0xf4, 0x29, 0x0b, 0x46, + 0x3d, 0x8e, 0x15, 0x5e, 0xf8, 0x87, 0x8b, 0x93, 0x2d, 0xa3, 0x4f, 0x13, 0x4f, 0x4f, 0x46, 0x03, + 0x92, 0xbd, 0xfd, 0x2b, 0xd4, 0x99, 0x4c, 0x37, 0x8a, 0x85, 0x44, 0x41, 0xc8, 0xf7, 0x76, 0xaa, + 0x5a, 0x48, 0x14, 0x84, 0x31, 0x66, 0x18, 0xf4, 0x38, 0xd4, 0xd8, 0xf1, 0x1f, 0x37, 0x68, 0x89, + 0x2f, 0x31, 0x27, 0xbf, 0xc4, 0x86, 0x80, 0xdf, 0xda, 0x9f, 0xb9, 0x3f, 0x23, 0xf1, 0x4c, 0xa2, + 0xb1, 0xaa, 0x80, 0x1a, 0x07, 0x12, 0x86, 0x41, 0x28, 0xec, 0x07, 0x33, 0x0e, 0xcb, 0x14, 0x80, + 0x39, 0xdc, 0xfe, 0xb7, 0xc9, 0x88, 0x60, 0xae, 0xfe, 0x79, 0xa8, 0xd0, 0xaf, 0x9c, 0x76, 0x76, + 0xa9, 0x0e, 0x60, 0x86, 0xa1, 0x7e, 0xdb, 0xa4, 0x97, 0x0a, 0x7d, 0x8a, 0x9f, 0x6e, 0x54, 0xd5, + 0x6a, 0xf1, 0x62, 0x32, 0x8d, 0xc1, 0x7d, 0x62, 0xd8, 0x9f, 0x4e, 0xac, 0x57, 0x12, 0x96, 0x75, + 0xa1, 0xb2, 0x13, 0xc7, 0x1d, 0x31, 0xc0, 0x9f, 0x2a, 0x36, 0x2a, 0x4b, 0xe4, 0x64, 0x0b, 0x09, + 0x14, 0x83, 0x19, 0x3b, 0xfb, 0x5b, 0x16, 0x9c, 0xce, 0xf4, 0x42, 0x8e, 0x10, 0x50, 0xdc, 0x10, + 0x5a, 0xc2, 0xbb, 0xb5, 0x88, 0xfc, 0x75, 0x53, 0x04, 0xaa, 0x6e, 0x59, 0xca, 0x67, 0xff, 0x66, + 0x59, 0xa9, 0x03, 0xb3, 0xfc, 0x7f, 0x5b, 0x7d, 0x6b, 0x66, 0x6f, 0xa9, 0x88, 0x62, 0x9e, 0xb9, + 0x5b, 0xfb, 0x24, 0x0a, 0x87, 0xfb, 0xa8, 0xd1, 0x67, 0x2d, 0x38, 0x5e, 0x27, 0x0d, 0xa7, 0xdb, + 0x8a, 0x05, 0x73, 0xf1, 0x21, 0x06, 0x10, 0xb3, 0xa3, 0x9b, 0xfb, 0x33, 0xc7, 0x97, 0x0c, 0x66, + 0x38, 0xc5, 0x1c, 0xb5, 0xa0, 0x1c, 0xb7, 0x0a, 0x0d, 0x33, 0xb8, 0x0c, 0x5b, 0x6b, 0x9b, 0x0b, + 0xe3, 0xa2, 0x47, 0xcb, 0x5b, 0x6b, 0x9b, 0x98, 0xb2, 0x41, 0x11, 0x54, 0x43, 0x16, 0xd6, 0xf0, + 0x55, 0xfe, 0xf5, 0x62, 0x07, 0x48, 0x62, 0x22, 0x79, 0x28, 0xc3, 0x79, 0xd9, 0xdf, 0xb0, 0xe0, + 0x98, 0xe1, 0x8d, 0xa3, 0x5f, 0xb4, 0x60, 0xa2, 0xa5, 0x59, 0x2f, 0xf1, 0x09, 0x9e, 0x1d, 0x8c, + 0x6d, 0x14, 0xf6, 0x5b, 0x05, 0xa1, 0x3a, 0x0e, 0x1b, 0x72, 0xd8, 0x0e, 0x40, 0xd2, 0x7f, 0xd4, + 0x5a, 0x51, 0x13, 0x23, 0x37, 0x95, 0x98, 0xb5, 0xa2, 0x96, 0x27, 0xc2, 0x1c, 0x4e, 0x1d, 0x91, + 0x88, 0xb8, 0x21, 0x89, 0xd7, 0x93, 0x79, 0x4a, 0xcb, 0x9a, 0x93, 0x18, 0xac, 0x51, 0x51, 0xd7, + 0x74, 0xfc, 0x71, 0x3f, 0xb8, 0xe1, 0xd3, 0x21, 0x40, 0xc2, 0xa1, 0xfa, 0xe0, 0xe5, 0x82, 0x8c, + 0xa2, 0x26, 0x3f, 0xcf, 0xdb, 0xce, 0xf2, 0xc1, 0x3f, 0x69, 0xc1, 0x64, 0x9a, 0x10, 0x3d, 0x08, + 0xa3, 0x5e, 0x87, 0x2d, 0x0d, 0xa5, 0x13, 0xd1, 0xc4, 0x8a, 0x11, 0x96, 0x78, 0x96, 0x6a, 0xcf, + 0x4a, 0xf6, 0xa5, 0xda, 0x33, 0x28, 0x16, 0xd8, 0xc3, 0x5d, 0x52, 0xfb, 0x8f, 0x2d, 0x38, 0xa1, + 0x49, 0x32, 0x04, 0x57, 0x2b, 0x32, 0x5d, 0xad, 0xf5, 0x62, 0xfb, 0x3c, 0xc7, 0xdd, 0xfa, 0x8d, + 0x12, 0x8c, 0xbe, 0xb9, 0xf3, 0x01, 0xce, 0x40, 0xa5, 0x1b, 0xb6, 0x64, 0x46, 0x06, 0x9b, 0xa1, + 0x9e, 0xc4, 0x6b, 0x11, 0x66, 0x50, 0xf4, 0xa2, 0xbe, 0xea, 0x5f, 0x65, 0x1d, 0xf7, 0x78, 0x01, + 0x1d, 0x27, 0x57, 0xa9, 0x0e, 0x5e, 0xee, 0xb7, 0xff, 0xd7, 0x08, 0x4c, 0xac, 0x79, 0x7e, 0x77, + 0x0f, 0x93, 0x16, 0x71, 0x22, 0x96, 0x21, 0xd0, 0x09, 0x49, 0x1c, 0xf7, 0xd6, 0x93, 0xc9, 0x51, + 0x0d, 0xb4, 0x0d, 0x85, 0xc1, 0x1a, 0x95, 0xd2, 0xc5, 0x52, 0xee, 0x54, 0xca, 0x8f, 0x82, 0x94, + 0x33, 0x8f, 0x82, 0x24, 0xb9, 0x60, 0x95, 0xbc, 0x5c, 0x30, 0x7d, 0x6d, 0xaf, 0x7a, 0xc8, 0xda, + 0xde, 0x1c, 0x8c, 0x89, 0x7f, 0x57, 0x97, 0xc4, 0x7e, 0xbb, 0xea, 0x82, 0xab, 0x12, 0x81, 0x13, + 0x1a, 0x34, 0x0f, 0x27, 0xc4, 0x8f, 0xc5, 0xa0, 0x4e, 0x58, 0x43, 0x46, 0xcd, 0xac, 0x81, 0xab, + 0x26, 0x1a, 0xa7, 0xe9, 0xa9, 0x78, 0xdb, 0x5d, 0xaf, 0x55, 0x5f, 0x5d, 0x12, 0x3b, 0x16, 0xc9, + 0xba, 0x35, 0x07, 0x63, 0x89, 0x67, 0xa6, 0xa0, 0xed, 0x34, 0xc9, 0xea, 0x12, 0x4b, 0x82, 0xd2, + 0x4d, 0x01, 0x07, 0x63, 0x89, 0x47, 0x8f, 0xc2, 0x04, 0xfb, 0x57, 0xb0, 0x17, 0x9b, 0x0b, 0xca, + 0xa0, 0xaf, 0x6a, 0x38, 0x6c, 0x50, 0xb2, 0xee, 0x72, 0x42, 0xcf, 0xf1, 0x63, 0xb6, 0x97, 0xa0, + 0x77, 0x17, 0x07, 0x63, 0x89, 0x67, 0xdd, 0xc5, 0xff, 0x5d, 0x5d, 0x9a, 0x9a, 0x48, 0x75, 0x97, + 0x44, 0xe0, 0x84, 0x86, 0xd6, 0xbd, 0x13, 0xb4, 0xc9, 0x93, 0x78, 0x6d, 0xea, 0x98, 0x59, 0xf7, + 0x25, 0x0e, 0xc6, 0x12, 0xcf, 0x26, 0x8a, 0x6e, 0x87, 0xba, 0x34, 0x94, 0xfa, 0x78, 0x6a, 0xa2, + 0x50, 0x18, 0xac, 0x51, 0xd1, 0x46, 0x6f, 0x77, 0x9b, 0x98, 0xc8, 0x52, 0x27, 0xcc, 0x46, 0x2f, + 0x68, 0x38, 0x6c, 0x50, 0xa2, 0x25, 0x98, 0xec, 0x84, 0xde, 0xae, 0xe3, 0xf6, 0xf8, 0xc6, 0x33, + 0x2d, 0x3d, 0x69, 0xec, 0xbc, 0x4d, 0x6e, 0xa4, 0xf0, 0xb8, 0xaf, 0x04, 0x6d, 0x9e, 0xdb, 0x21, + 0x4c, 0xf9, 0x4f, 0x9a, 0xcd, 0x5b, 0xdc, 0x58, 0x66, 0x1a, 0x2d, 0xf1, 0x5a, 0xf3, 0x96, 0xfd, + 0xfa, 0x14, 0xca, 0x6c, 0xde, 0xb2, 0x5f, 0xc7, 0x1a, 0x95, 0xfd, 0xad, 0x12, 0xa8, 0x05, 0x64, + 0xf4, 0x69, 0xe6, 0x10, 0xf0, 0x1f, 0x4b, 0x89, 0x49, 0xbe, 0x52, 0xe0, 0xf0, 0xa7, 0xd5, 0xea, + 0x3e, 0x40, 0x02, 0xc5, 0x06, 0x6b, 0x16, 0x50, 0x48, 0x80, 0x4a, 0x30, 0x2e, 0x2e, 0xa0, 0x58, + 0x4b, 0x55, 0x9d, 0x7c, 0x93, 0x34, 0x06, 0xf7, 0x89, 0x41, 0xc3, 0x23, 0x43, 0x74, 0xf4, 0x09, + 0x0b, 0xc6, 0xdd, 0x64, 0x4b, 0x53, 0xf4, 0x5b, 0x21, 0xa9, 0xd8, 0xda, 0x46, 0xa9, 0xda, 0x3d, + 0xd6, 0x80, 0x58, 0xe7, 0x8b, 0xde, 0x05, 0xe0, 0xb8, 0xae, 0xd8, 0x16, 0x12, 0xe6, 0x4f, 0x95, + 0xba, 0xea, 0x85, 0x71, 0x57, 0x24, 0xb2, 0x6b, 0x64, 0xf6, 0x0f, 0x2d, 0xe8, 0x6b, 0x34, 0xfa, + 0x25, 0x0b, 0xc6, 0x1d, 0xdf, 0x0f, 0x62, 0x47, 0x3f, 0xa3, 0x53, 0x1f, 0x40, 0xcf, 0xcf, 0xce, + 0x27, 0x6c, 0xb8, 0x1b, 0xa3, 0x24, 0xd6, 0x30, 0x58, 0x97, 0x66, 0xfa, 0xfd, 0x30, 0x99, 0x2e, + 0x75, 0x5b, 0x67, 0xc0, 0xfe, 0x43, 0x05, 0xf8, 0xb6, 0x03, 0x0d, 0x44, 0x32, 0x76, 0xb1, 0x8a, + 0x59, 0xfb, 0x36, 0x36, 0xc0, 0x8e, 0xb8, 0x2f, 0xf6, 0x4f, 0x2c, 0xb8, 0x27, 0x24, 0x2d, 0x27, + 0x26, 0x75, 0x9d, 0xce, 0x2b, 0xf4, 0x5c, 0xa2, 0x21, 0x81, 0x1a, 0x01, 0xe7, 0x84, 0x80, 0xf7, + 0xe0, 0x4c, 0xfe, 0x38, 0x47, 0x2e, 0x66, 0x35, 0xd8, 0xe6, 0xcd, 0x12, 0x89, 0x1d, 0xaf, 0x25, + 0xa3, 0x9a, 0x2b, 0x45, 0xed, 0x14, 0x89, 0x6a, 0x13, 0xab, 0xa1, 0x43, 0xb1, 0xc1, 0x1a, 0xbd, + 0x04, 0x35, 0x27, 0x8c, 0xbd, 0x86, 0xe3, 0xc6, 0x05, 0xe6, 0x8f, 0xe8, 0x19, 0x19, 0x89, 0xc3, + 0x39, 0x2f, 0x18, 0x61, 0xc5, 0x92, 0xba, 0xb8, 0x86, 0x74, 0x6a, 0x63, 0xcf, 0xca, 0xdd, 0xd8, + 0x7b, 0x50, 0x66, 0x19, 0x85, 0xe9, 0x5d, 0x42, 0x9e, 0x80, 0x13, 0xca, 0xdc, 0xa0, 0x10, 0x7d, + 0x90, 0xc6, 0x39, 0x4e, 0xe8, 0xee, 0x90, 0xfa, 0x42, 0x4f, 0xa4, 0xfe, 0xbf, 0x9d, 0xc7, 0x38, + 0x12, 0x7a, 0xe0, 0xb6, 0xbc, 0x56, 0x1a, 0xbd, 0x0f, 0xaa, 0x8d, 0xa0, 0xeb, 0xd7, 0x45, 0xde, + 0xff, 0xdb, 0xa8, 0x57, 0xba, 0x42, 0x01, 0x07, 0xd6, 0xc0, 0xcb, 0xd8, 0x9f, 0x2b, 0x83, 0x4a, + 0x04, 0x60, 0x13, 0x54, 0xe0, 0xc7, 0x64, 0x2f, 0x4e, 0xc7, 0x12, 0x8b, 0x1c, 0x8c, 0x25, 0x5e, + 0x78, 0x5d, 0xa5, 0x4c, 0xaf, 0xeb, 0x02, 0x8c, 0x38, 0xdd, 0x78, 0x47, 0x2d, 0x4a, 0xa9, 0x38, + 0x63, 0x9e, 0x41, 0xb1, 0xc0, 0xa2, 0x0b, 0x50, 0x09, 0x83, 0x96, 0x5c, 0x6f, 0x50, 0xd3, 0x9b, + 0xa0, 0x0a, 0x5a, 0x04, 0x33, 0x3c, 0xf5, 0x23, 0x62, 0xaf, 0x4d, 0xa2, 0xd8, 0x69, 0x77, 0x84, + 0x8f, 0xa6, 0xfc, 0x88, 0x2d, 0x89, 0xc0, 0x09, 0x0d, 0x7a, 0x2f, 0x4c, 0xb4, 0x9c, 0x28, 0xbe, + 0xd6, 0xed, 0xd4, 0xa9, 0x96, 0x0b, 0x57, 0x4d, 0xd9, 0xa2, 0x35, 0x27, 0x8a, 0x9f, 0xe4, 0x28, + 0x3c, 0xde, 0x4a, 0x7e, 0xe8, 0xae, 0xe0, 0xa8, 0x99, 0x79, 0xd9, 0xe7, 0x0a, 0x3e, 0x08, 0xa3, + 0x71, 0x10, 0xb4, 0x3c, 0xbf, 0x99, 0x76, 0xcb, 0xb6, 0x38, 0x18, 0x4b, 0xbc, 0x71, 0x9c, 0x76, + 0xec, 0xb0, 0xe3, 0xb4, 0xf6, 0xef, 0x54, 0xe0, 0x84, 0x48, 0x72, 0x5b, 0x27, 0x5e, 0x73, 0x67, + 0x3b, 0x08, 0xa9, 0x37, 0x90, 0x9c, 0xcf, 0x4d, 0x3b, 0xce, 0xc9, 0x39, 0x2c, 0xac, 0x51, 0xa1, + 0xf7, 0x18, 0x29, 0xad, 0x3f, 0x91, 0x0a, 0x25, 0x4e, 0x2e, 0x06, 0xed, 0x76, 0xd7, 0x17, 0x47, + 0xd1, 0x35, 0x1d, 0x3e, 0x0b, 0xe5, 0xba, 0x1f, 0x89, 0x0f, 0xa7, 0x96, 0x3b, 0x96, 0xd6, 0x37, + 0x31, 0x85, 0xa3, 0x07, 0xa0, 0x56, 0xf7, 0xd9, 0xba, 0x8f, 0x8c, 0x39, 0xd8, 0xce, 0xc7, 0xd2, + 0xfa, 0x26, 0x83, 0x61, 0x85, 0xa5, 0x01, 0x1b, 0x5f, 0x41, 0xae, 0x16, 0x16, 0xb0, 0xa9, 0xdc, + 0xbf, 0x30, 0xce, 0x5e, 0x3b, 0x46, 0x0d, 0x18, 0xef, 0x04, 0xf5, 0x4d, 0xd2, 0xe2, 0xe7, 0xad, + 0xf8, 0x35, 0x19, 0xef, 0x3a, 0x62, 0x18, 0xea, 0x6c, 0x93, 0x96, 0x2c, 0xca, 0x4f, 0x69, 0x6c, + 0x24, 0x75, 0x61, 0xbd, 0x62, 0xb4, 0x07, 0x27, 0xd5, 0x8e, 0x8a, 0xe2, 0x36, 0x7a, 0xe7, 0xdc, + 0x58, 0x2a, 0xfd, 0x7a, 0xba, 0x46, 0xdc, 0xcf, 0x84, 0x8e, 0x05, 0xaf, 0x33, 0x5f, 0xaf, 0xb3, + 0x05, 0xf0, 0x9a, 0x39, 0x16, 0x56, 0x37, 0x04, 0x02, 0x27, 0x34, 0xf6, 0x9f, 0x5b, 0x70, 0x2a, + 0xa5, 0x4f, 0x3b, 0x41, 0x50, 0xff, 0xb1, 0xbc, 0x19, 0x2a, 0xa3, 0x1d, 0xb9, 0x1b, 0x96, 0xbf, + 0x51, 0x82, 0x33, 0x19, 0xf4, 0xb7, 0x73, 0x7d, 0xcd, 0x4b, 0xc9, 0x56, 0x43, 0xa9, 0xb0, 0x84, + 0x9f, 0x94, 0x4c, 0xf9, 0xfb, 0x0b, 0xe8, 0x05, 0x18, 0x21, 0x9c, 0x7b, 0x79, 0x60, 0xdc, 0x93, + 0x44, 0x7a, 0xce, 0x5c, 0x70, 0x64, 0x17, 0x5a, 0x65, 0xf4, 0xde, 0x8f, 0xe7, 0x85, 0x56, 0x19, + 0x0d, 0xc9, 0x59, 0xf0, 0xf9, 0x51, 0x25, 0xb3, 0xd9, 0x6c, 0xa5, 0xbc, 0x03, 0xc7, 0x5a, 0xfa, + 0xa0, 0x15, 0x99, 0x04, 0x77, 0x36, 0xde, 0xa5, 0x03, 0x69, 0x80, 0xb1, 0xc9, 0x00, 0x7d, 0xc9, + 0xbc, 0x15, 0x86, 0x6f, 0xc5, 0x5d, 0x1b, 0x4c, 0x87, 0x1c, 0xfd, 0x5a, 0x98, 0xaf, 0xf6, 0x5f, + 0x0b, 0x53, 0x1d, 0x8e, 0x64, 0x47, 0xbd, 0x17, 0xe6, 0x9b, 0x39, 0xf7, 0xc2, 0x8c, 0x0c, 0x47, + 0xcc, 0xdb, 0xbf, 0x18, 0xe6, 0x4f, 0x2d, 0x98, 0x4c, 0x55, 0x39, 0x8c, 0x54, 0x92, 0x9e, 0x61, + 0xa0, 0x9f, 0x2a, 0xbe, 0x5f, 0xf2, 0xd3, 0x49, 0x7e, 0x60, 0xc1, 0xdd, 0x69, 0xe2, 0x21, 0x18, + 0x97, 0x3d, 0xd3, 0xb8, 0x6c, 0x0e, 0xa0, 0xc9, 0x79, 0x67, 0x12, 0xca, 0xfd, 0x0d, 0x7e, 0x83, + 0xcc, 0x8a, 0x36, 0xad, 0x55, 0xde, 0xd0, 0x69, 0xad, 0x3a, 0xf4, 0x69, 0xed, 0x5f, 0x95, 0xe0, + 0x98, 0x79, 0xfe, 0x48, 0x26, 0xe8, 0x58, 0xb9, 0x09, 0x3a, 0x8f, 0x00, 0x38, 0x1d, 0xef, 0xaa, + 0x91, 0xfe, 0x99, 0xc4, 0x2a, 0x1b, 0xab, 0x32, 0x34, 0xd0, 0xa8, 0x8c, 0xb1, 0x5b, 0x1e, 0xc8, + 0xd8, 0xdd, 0x15, 0x63, 0xb7, 0x52, 0x58, 0x0e, 0xad, 0xd1, 0x2f, 0xb9, 0x03, 0xf7, 0xf5, 0x92, + 0x9a, 0x21, 0x39, 0xe5, 0x72, 0x92, 0x5a, 0xa0, 0x92, 0x46, 0xac, 0xc2, 0x92, 0x46, 0x0c, 0x56, + 0x07, 0x38, 0xfe, 0x1d, 0x28, 0xc5, 0x81, 0x18, 0xd5, 0xc5, 0xf3, 0x25, 0x24, 0x4c, 0x82, 0xdc, + 0xad, 0x00, 0x97, 0xe2, 0xc0, 0xfe, 0x6c, 0x09, 0xa6, 0x0c, 0x2a, 0x3d, 0xc9, 0xe2, 0x0d, 0xec, + 0x89, 0x5d, 0xa8, 0x34, 0xc2, 0xa0, 0x3d, 0xd0, 0xbe, 0x50, 0x8a, 0xb1, 0x12, 0x06, 0x6d, 0xcc, + 0xf8, 0xd9, 0x7f, 0x62, 0xc1, 0xc9, 0x61, 0x1f, 0x34, 0xeb, 0x9a, 0xe6, 0xbc, 0xf8, 0xb3, 0x7d, + 0xd9, 0xb6, 0xfc, 0x4f, 0x4a, 0xa9, 0xa6, 0xd2, 0x4e, 0x49, 0xc7, 0x9e, 0xd6, 0x50, 0x63, 0xcf, + 0xd2, 0x30, 0x62, 0xcf, 0x8f, 0x24, 0x5b, 0xcd, 0xdc, 0xa8, 0x15, 0x92, 0xf0, 0xc6, 0x77, 0xa9, + 0x79, 0xe6, 0x6e, 0x7a, 0xcb, 0xda, 0xfe, 0x5a, 0x5a, 0xab, 0xa8, 0xae, 0xa3, 0xc7, 0xb4, 0x0c, + 0x2a, 0x6e, 0xb8, 0xdf, 0x71, 0x67, 0xd9, 0x53, 0x67, 0xb4, 0x34, 0x9c, 0x2a, 0xdf, 0x3e, 0xd5, + 0x12, 0xb5, 0xde, 0x06, 0xa3, 0x22, 0x95, 0x86, 0xb5, 0xb7, 0xca, 0x65, 0x5c, 0xe6, 0x20, 0x2c, + 0x71, 0xf6, 0xef, 0x96, 0x53, 0x32, 0xb2, 0x79, 0xfd, 0xf9, 0xc2, 0xd4, 0x41, 0x3b, 0xeb, 0x99, + 0xa3, 0x12, 0xaf, 0x5b, 0xe9, 0x48, 0xf5, 0x99, 0xa2, 0x87, 0x82, 0x9e, 0x94, 0x92, 0x3f, 0xb7, + 0xbf, 0x6a, 0xa5, 0x62, 0xd6, 0x0f, 0x15, 0x2d, 0x47, 0x32, 0xdd, 0xe4, 0x4d, 0xf2, 0xe8, 0x03, + 0xb4, 0xe7, 0x29, 0xed, 0x56, 0xaf, 0xa3, 0x96, 0xa9, 0xce, 0xaa, 0xc3, 0xb2, 0x1c, 0x7c, 0x6b, + 0x7f, 0x06, 0x92, 0x9f, 0x58, 0x2f, 0x61, 0xbf, 0xa0, 0x56, 0x4c, 0xc4, 0xf7, 0xe4, 0x39, 0x36, + 0x6e, 0xc6, 0x4d, 0x67, 0x73, 0x47, 0xfb, 0xa0, 0x47, 0xbf, 0xcc, 0xec, 0x93, 0x16, 0x8c, 0x6b, + 0xeb, 0x5c, 0x47, 0x58, 0xa5, 0x78, 0xb4, 0x2f, 0x9d, 0xf0, 0x4c, 0x46, 0x3a, 0x61, 0xed, 0x00, + 0xed, 0x2f, 0x67, 0x69, 0xbf, 0xbd, 0x0e, 0x63, 0xea, 0x0e, 0xdb, 0x23, 0x1c, 0xf4, 0x9a, 0x81, + 0x6a, 0xa3, 0xe5, 0xa8, 0x1b, 0x32, 0x58, 0x6a, 0xcf, 0x0a, 0x05, 0x60, 0x0e, 0xb7, 0x7f, 0x68, + 0x81, 0x4d, 0x2b, 0x34, 0x76, 0x2c, 0x96, 0xf7, 0xdc, 0x1d, 0xc7, 0x6f, 0x6a, 0xb7, 0x0a, 0x0f, + 0x3e, 0xec, 0xd9, 0x31, 0xc2, 0x9e, 0x95, 0x22, 0x36, 0x61, 0x96, 0x9f, 0xce, 0x74, 0x96, 0xbe, + 0x54, 0x82, 0x0b, 0x87, 0x37, 0x79, 0x08, 0x13, 0xe5, 0x67, 0x52, 0x17, 0xb4, 0x91, 0x82, 0x2e, + 0x38, 0x3e, 0xb8, 0x61, 0x39, 0xd3, 0xe7, 0xad, 0x0a, 0x4c, 0xca, 0x1d, 0x18, 0x27, 0xf2, 0x5c, + 0xb6, 0xed, 0x7a, 0xc8, 0xf5, 0xf7, 0x87, 0xe4, 0x80, 0x68, 0x0b, 0xf7, 0xe5, 0x23, 0x9e, 0xcf, + 0xaa, 0x1c, 0xb4, 0x8d, 0xc3, 0xf6, 0x46, 0x16, 0x7a, 0xe9, 0x84, 0x90, 0x15, 0x0e, 0xc6, 0x12, + 0x6f, 0x26, 0xd8, 0x8c, 0x0c, 0x39, 0xc1, 0x06, 0xed, 0x69, 0x27, 0x62, 0x47, 0x0b, 0xcb, 0x40, + 0x17, 0x49, 0x46, 0xba, 0x3e, 0xf5, 0x9d, 0xb0, 0xbd, 0xa8, 0x9d, 0xe4, 0xad, 0xa5, 0x8e, 0xb0, + 0xf5, 0x9f, 0xdc, 0xdd, 0x11, 0xe7, 0x71, 0xf9, 0x49, 0xda, 0x22, 0x06, 0xdc, 0xe2, 0xc6, 0xb2, + 0x76, 0xf4, 0xb1, 0xff, 0x6c, 0x2f, 0xe4, 0x9d, 0xed, 0xb5, 0xff, 0x69, 0x05, 0xee, 0x49, 0x2b, + 0xdf, 0xd5, 0x87, 0x1e, 0x7e, 0xe8, 0xe1, 0x87, 0xff, 0x5a, 0x05, 0xff, 0x3f, 0x56, 0xc1, 0x33, + 0x9a, 0x0a, 0xe6, 0x1f, 0x09, 0xcf, 0x57, 0x9b, 0x2f, 0x59, 0x70, 0x52, 0xa8, 0xcd, 0x62, 0x37, + 0x8a, 0x83, 0x36, 0x33, 0x5a, 0x8f, 0xa6, 0x8e, 0x68, 0x5b, 0x66, 0x42, 0xd1, 0x11, 0x8f, 0x64, + 0x97, 0xee, 0xf8, 0x48, 0xf6, 0x77, 0x2c, 0x18, 0x53, 0x77, 0x82, 0xdc, 0x4e, 0x26, 0xe8, 0x23, + 0x00, 0x41, 0xe8, 0x35, 0x3d, 0xdf, 0x69, 0xad, 0x6e, 0xa4, 0xd7, 0x34, 0xae, 0x28, 0x0c, 0xd6, + 0xa8, 0x0e, 0xdb, 0x19, 0x94, 0x23, 0xa4, 0x92, 0x3b, 0x42, 0x92, 0xf4, 0xd3, 0xea, 0x41, 0xe9, + 0xa7, 0xf6, 0x97, 0x4b, 0x30, 0xba, 0x11, 0x06, 0xf5, 0xae, 0x1b, 0xa3, 0x97, 0x60, 0xcc, 0x95, + 0x97, 0x1b, 0x8b, 0x79, 0x71, 0xad, 0xc8, 0x0b, 0x93, 0x13, 0xf5, 0x56, 0x20, 0x9c, 0x70, 0x44, + 0x3f, 0x6f, 0xc1, 0xb1, 0xa8, 0xbb, 0xad, 0x00, 0x45, 0x9e, 0x45, 0xdb, 0xd4, 0xea, 0x4d, 0x56, + 0xee, 0x74, 0x68, 0x84, 0x4d, 0xe6, 0xb6, 0x07, 0xc0, 0x73, 0xd2, 0xa8, 0x9e, 0xa0, 0x67, 0x60, + 0xcc, 0x0d, 0x89, 0x13, 0x93, 0xfa, 0xbc, 0xec, 0x9b, 0xdb, 0xb9, 0x65, 0x38, 0x69, 0xb9, 0xac, + 0x04, 0x27, 0xf5, 0xd9, 0xbf, 0x6f, 0x41, 0x8d, 0x9f, 0x91, 0x8e, 0x77, 0xa8, 0xba, 0x34, 0x1c, + 0xaf, 0x45, 0xea, 0x1b, 0x89, 0x0f, 0xa8, 0xd4, 0x65, 0x45, 0x61, 0xb0, 0x46, 0xc5, 0x4c, 0x98, + 0xb7, 0xa7, 0x25, 0x2f, 0x25, 0x26, 0x8c, 0x83, 0xb1, 0xc4, 0xd3, 0x61, 0x24, 0xfe, 0xe5, 0x67, + 0x4d, 0xca, 0xe9, 0x9b, 0x38, 0x13, 0x1c, 0x36, 0x28, 0x99, 0x60, 0xde, 0xde, 0x62, 0xd0, 0x6e, + 0x3b, 0x22, 0xff, 0x41, 0x17, 0x4c, 0x61, 0xb0, 0x46, 0x65, 0x13, 0x00, 0xda, 0x30, 0xe1, 0xd4, + 0x5f, 0x50, 0x07, 0x65, 0xad, 0x94, 0x52, 0x9a, 0x77, 0x3b, 0xcf, 0xc1, 0x58, 0xd4, 0xdd, 0xde, + 0xd4, 0x2f, 0x8b, 0x56, 0x1d, 0xb8, 0x29, 0x11, 0x38, 0xa1, 0xb1, 0xff, 0x53, 0x09, 0x6a, 0x9b, + 0x0b, 0x57, 0x2e, 0x6f, 0xf6, 0x1a, 0xf1, 0x10, 0x9c, 0xda, 0x8f, 0x18, 0x4e, 0x6d, 0x21, 0xfa, + 0x29, 0x84, 0xcf, 0x3d, 0x63, 0xdc, 0x4b, 0x9d, 0x31, 0x7e, 0xa2, 0x48, 0xa6, 0x07, 0x1f, 0x32, + 0xbe, 0x59, 0x82, 0x49, 0x49, 0xba, 0xe2, 0xb5, 0x62, 0x12, 0x92, 0xfa, 0x5f, 0x77, 0x72, 0xc1, + 0x9d, 0xfc, 0x03, 0x0b, 0xee, 0x4e, 0x77, 0xf2, 0x8f, 0xe7, 0x1e, 0x4d, 0xba, 0x15, 0x39, 0x81, + 0xc9, 0xbe, 0x05, 0x13, 0x92, 0x74, 0x08, 0x0d, 0xed, 0x98, 0x0d, 0x7d, 0xbc, 0xc0, 0x86, 0xe6, + 0x34, 0xf0, 0x2f, 0xb4, 0x06, 0x6e, 0x72, 0xed, 0x4a, 0x37, 0xb0, 0x10, 0x29, 0x36, 0x96, 0x9e, + 0x36, 0x5b, 0xaf, 0x12, 0x70, 0xcd, 0xb1, 0xd4, 0x6b, 0xc4, 0x45, 0x8e, 0xa5, 0x5e, 0x23, 0x96, + 0x37, 0x7e, 0x69, 0x63, 0xa9, 0xd7, 0x88, 0x31, 0x63, 0x65, 0x4f, 0xc2, 0x71, 0x53, 0xf5, 0xed, + 0x1f, 0x5a, 0x50, 0x93, 0xd2, 0xa2, 0x36, 0x54, 0xe2, 0x40, 0xac, 0x28, 0x16, 0xd3, 0x11, 0x5b, + 0x41, 0xd0, 0x62, 0x1d, 0x91, 0xf8, 0xf8, 0x41, 0xd0, 0xc2, 0x8c, 0x0d, 0xea, 0xc2, 0x48, 0x48, + 0xb4, 0x43, 0x80, 0x45, 0x1c, 0x55, 0x4b, 0xbc, 0x83, 0x64, 0x54, 0x73, 0x18, 0x16, 0xcc, 0xec, + 0x3f, 0x2a, 0xc3, 0xf1, 0x4d, 0xd7, 0xf1, 0x7d, 0x52, 0x17, 0x07, 0xbb, 0xe9, 0xdc, 0x26, 0xce, + 0x75, 0xaf, 0x2e, 0xa5, 0x2f, 0xf9, 0x5d, 0x94, 0x08, 0x9c, 0xd0, 0x1c, 0x21, 0x1a, 0x7a, 0xc5, + 0xd2, 0xae, 0xfc, 0xe6, 0x96, 0x0b, 0x17, 0x73, 0x29, 0xbc, 0x7e, 0xb1, 0xf8, 0x81, 0xd7, 0x88, + 0xbf, 0xac, 0x2c, 0x67, 0xa5, 0xb8, 0xd7, 0x92, 0x8c, 0x8e, 0x3b, 0xd8, 0x7e, 0xa2, 0x17, 0xe4, + 0xd1, 0xc0, 0x6a, 0x61, 0x8f, 0x14, 0x99, 0xfc, 0x0f, 0x38, 0x21, 0xf8, 0xaf, 0xab, 0x80, 0xfa, + 0x89, 0x8f, 0xb0, 0x9a, 0xd8, 0x35, 0x5e, 0xc4, 0x28, 0x48, 0x2b, 0xbb, 0x87, 0xbd, 0x35, 0x86, + 0x7e, 0xcb, 0x82, 0xd3, 0x42, 0xbf, 0x8c, 0xcb, 0xaf, 0xe5, 0x3a, 0x72, 0x67, 0x20, 0x9d, 0x27, + 0xf5, 0xc9, 0x64, 0xc9, 0x33, 0xd7, 0xe5, 0xfb, 0x21, 0xa7, 0x33, 0x69, 0x70, 0xb6, 0xb4, 0xd4, + 0xa6, 0xf3, 0x1b, 0xa2, 0x2a, 0x85, 0xd9, 0x74, 0xe9, 0x85, 0x67, 0x5f, 0x0d, 0x85, 0x56, 0x32, + 0x2f, 0xd9, 0xe1, 0x2f, 0x8a, 0xdd, 0x73, 0xf4, 0x1b, 0x71, 0xd0, 0x2a, 0x9c, 0x12, 0x49, 0xe1, + 0xf2, 0x9e, 0x93, 0x68, 0x75, 0x49, 0xde, 0xb4, 0xc6, 0xae, 0xd2, 0xc5, 0xfd, 0x68, 0x9c, 0x55, + 0x66, 0xfa, 0x12, 0x4c, 0xe7, 0x77, 0xec, 0x6d, 0x25, 0xf7, 0x7f, 0x91, 0xba, 0x20, 0x19, 0x63, + 0x6e, 0x60, 0x6e, 0x3b, 0x1d, 0x21, 0x9e, 0xdf, 0x08, 0xd2, 0x67, 0x1f, 0x57, 0xfd, 0x46, 0x80, + 0x19, 0xc6, 0xfe, 0x77, 0x25, 0x38, 0x9d, 0x92, 0x49, 0xbc, 0x35, 0x72, 0xdb, 0x76, 0xd4, 0xb0, + 0x92, 0xa5, 0x37, 0xd8, 0x4a, 0x96, 0xdf, 0x10, 0x2b, 0x69, 0x63, 0x18, 0xd9, 0x64, 0xaf, 0xa3, + 0xde, 0xce, 0x93, 0x0a, 0x67, 0xa1, 0xdc, 0x0d, 0xe5, 0x76, 0x87, 0x5a, 0x8b, 0x78, 0x12, 0xaf, + 0x61, 0x0a, 0xb7, 0xff, 0x67, 0x09, 0x52, 0x4f, 0xd7, 0x0d, 0x21, 0x38, 0xb8, 0x61, 0x04, 0x07, + 0xc5, 0x1c, 0xe9, 0xd7, 0x9b, 0x90, 0x1b, 0x22, 0x0c, 0xe4, 0x13, 0x9a, 0xac, 0x0f, 0xbd, 0xf2, + 0x09, 0x99, 0x05, 0x86, 0xe0, 0x3d, 0xef, 0x9a, 0xde, 0xf3, 0x13, 0x85, 0x37, 0x3a, 0xc7, 0x87, + 0xfe, 0x6f, 0xe5, 0x74, 0x63, 0x99, 0x27, 0xfd, 0x77, 0xcc, 0x5c, 0x4d, 0xbe, 0x3b, 0x38, 0xb0, + 0x07, 0x1a, 0x0f, 0xcb, 0xd1, 0xfc, 0x72, 0x7f, 0x8e, 0x66, 0x69, 0xb0, 0x12, 0x1d, 0x35, 0x37, + 0xf3, 0xeb, 0x39, 0xb9, 0x99, 0xe5, 0xc1, 0x8a, 0x77, 0xfb, 0x39, 0x99, 0xdf, 0x29, 0xc1, 0xdd, + 0x59, 0xa3, 0x00, 0xfd, 0x52, 0xd6, 0x97, 0x6e, 0x0e, 0x68, 0xcc, 0xcd, 0x26, 0x12, 0x71, 0xb7, + 0xe4, 0x90, 0x2f, 0x3f, 0xfd, 0xcb, 0x16, 0x7f, 0x7e, 0x47, 0x2b, 0x93, 0x31, 0xe3, 0x46, 0xfa, + 0x8c, 0x5b, 0xcc, 0x15, 0x3a, 0x59, 0xdd, 0x2e, 0xec, 0x84, 0x36, 0xa1, 0x3f, 0x47, 0x07, 0x4f, + 0xfa, 0xa2, 0x92, 0x23, 0xb8, 0xa5, 0x17, 0x60, 0xc4, 0xef, 0xb6, 0xb7, 0xc5, 0xc9, 0xaa, 0x6a, + 0x62, 0x8a, 0xd6, 0x19, 0x14, 0x0b, 0xac, 0xfd, 0x6b, 0x23, 0x70, 0x42, 0xce, 0x72, 0x72, 0x5a, + 0x7e, 0xdd, 0x82, 0x9a, 0x1b, 0x7a, 0xb1, 0xe7, 0x3a, 0x32, 0xb8, 0x2b, 0xfc, 0xe4, 0xdd, 0x62, + 0xd0, 0xf5, 0x63, 0x12, 0x46, 0x89, 0xc9, 0x5a, 0x14, 0x1c, 0xb1, 0xe2, 0x8d, 0x5e, 0x80, 0xca, + 0x8e, 0xd7, 0xdc, 0x11, 0x9d, 0x3e, 0x38, 0x19, 0x92, 0x4b, 0x7d, 0xbc, 0xe6, 0x0e, 0x66, 0x3c, + 0xa9, 0xab, 0x31, 0xd2, 0x26, 0x75, 0xaf, 0xdb, 0x16, 0xb3, 0xc4, 0xe0, 0xd8, 0xab, 0x6f, 0x73, + 0x99, 0xf1, 0xc3, 0x82, 0x2f, 0xba, 0x01, 0xe5, 0x56, 0x70, 0xa3, 0xc0, 0x2b, 0x00, 0xb3, 0xd9, + 0x2b, 0x77, 0x60, 0x2d, 0xb8, 0x81, 0x29, 0x47, 0xf4, 0xf3, 0x16, 0x80, 0x4f, 0x9a, 0x2d, 0xaf, + 0xe9, 0x6d, 0xb7, 0x88, 0xb8, 0x0e, 0x7a, 0x70, 0x02, 0xa8, 0x21, 0xba, 0xae, 0x78, 0x62, 0x8d, + 0x3f, 0x7a, 0xcd, 0x82, 0xd1, 0xae, 0x7f, 0xdd, 0x0f, 0x6e, 0xf8, 0xe2, 0x84, 0xd2, 0xe0, 0x64, + 0x51, 0x2e, 0xd4, 0x93, 0x9c, 0x21, 0x96, 0x9c, 0xed, 0xff, 0x48, 0x5d, 0xeb, 0x8c, 0x31, 0x7b, + 0x84, 0xc1, 0x28, 0x93, 0x41, 0x4a, 0xb9, 0xc9, 0x20, 0x2f, 0x09, 0x5f, 0xa8, 0xb8, 0xd7, 0xab, + 0x33, 0xcd, 0x4b, 0x5e, 0x92, 0xea, 0x37, 0xaa, 0x30, 0x95, 0x57, 0x00, 0xf5, 0xa0, 0x46, 0x89, + 0x16, 0x9c, 0x88, 0x14, 0xb9, 0xe6, 0x25, 0xaa, 0xd4, 0x9c, 0x6d, 0x01, 0xc1, 0x8a, 0x1d, 0x9a, + 0x87, 0x13, 0xdb, 0x4e, 0x44, 0x84, 0x34, 0xda, 0x15, 0x37, 0xea, 0x3a, 0x88, 0x05, 0x13, 0x8d, + 0xd3, 0xf4, 0xc8, 0x87, 0x63, 0xe2, 0xbe, 0xa3, 0x79, 0x57, 0x7b, 0x85, 0xe2, 0x92, 0xdc, 0x3f, + 0x5a, 0xd2, 0x91, 0xb7, 0xf6, 0x67, 0xe6, 0x8e, 0xfc, 0x7a, 0x2b, 0x2f, 0x82, 0xcd, 0xea, 0xd1, + 0x07, 0xd2, 0x4f, 0x1a, 0xf3, 0x74, 0xaa, 0xfb, 0xfa, 0x9e, 0x34, 0xbe, 0xc5, 0x5e, 0xc4, 0x71, + 0x77, 0xd2, 0x4f, 0x1b, 0x3f, 0x0a, 0x13, 0x2d, 0x2f, 0x8a, 0x89, 0x4f, 0x42, 0xb6, 0x19, 0x94, + 0xba, 0xbf, 0x76, 0x4d, 0xc3, 0x61, 0x83, 0x12, 0x2d, 0xc1, 0xa4, 0xfc, 0xad, 0x6e, 0x0d, 0x18, + 0x31, 0x2f, 0x5d, 0x58, 0x4b, 0xe1, 0x71, 0x5f, 0x09, 0x14, 0x6b, 0xef, 0x6c, 0x17, 0xb7, 0x43, + 0x2d, 0x9e, 0xe9, 0xce, 0x7d, 0xb3, 0xfb, 0x6f, 0xc8, 0x6c, 0xa8, 0x9a, 0x7a, 0x01, 0x9a, 0x67, + 0x43, 0xd1, 0x6e, 0xa2, 0xff, 0xc8, 0xac, 0xa8, 0xdf, 0x2e, 0xc1, 0x74, 0xfe, 0xd4, 0x89, 0x3e, + 0x6e, 0x01, 0x70, 0x2f, 0x5b, 0xd3, 0xd7, 0x22, 0xd6, 0x64, 0x36, 0x55, 0xa5, 0xda, 0xbd, 0x12, + 0x0a, 0x86, 0x35, 0xa6, 0x47, 0x18, 0xee, 0x7f, 0x0b, 0x4e, 0x38, 0x6e, 0xec, 0xed, 0x12, 0xf9, + 0x66, 0xa0, 0x7c, 0x09, 0xe9, 0x14, 0xd5, 0xe9, 0x79, 0x13, 0x85, 0xd3, 0xb4, 0xec, 0x43, 0x07, + 0xae, 0xd3, 0xda, 0x09, 0xa2, 0x58, 0xbe, 0x70, 0x5e, 0x49, 0x7d, 0xe8, 0x14, 0x1e, 0xf7, 0x95, + 0xb0, 0x9f, 0x07, 0xf1, 0xfe, 0xc0, 0x11, 0x4e, 0x6a, 0xbf, 0x1f, 0x46, 0x62, 0x27, 0x6c, 0x8a, + 0x77, 0x67, 0x26, 0x16, 0x2e, 0xd0, 0xe9, 0x6a, 0x8b, 0x41, 0x0e, 0xdc, 0x7a, 0x17, 0xa5, 0xec, + 0x47, 0x41, 0x0d, 0x6f, 0x74, 0x11, 0x6a, 0x75, 0x2f, 0x72, 0xb6, 0x5b, 0xea, 0xa1, 0x30, 0x65, + 0x02, 0x96, 0x04, 0x1c, 0x2b, 0x0a, 0xfb, 0x5f, 0x8c, 0xc0, 0x18, 0xbb, 0x12, 0xbb, 0x7d, 0xd8, + 0x33, 0xc6, 0x5f, 0xe8, 0xbb, 0xce, 0xa0, 0xb8, 0x2b, 0x33, 0xae, 0x92, 0xbd, 0x3b, 0xb9, 0xd1, + 0xc0, 0x38, 0x88, 0x5d, 0xbe, 0x83, 0x83, 0xd8, 0x95, 0x23, 0x1e, 0xc4, 0xde, 0x63, 0x39, 0x8d, + 0xf5, 0xae, 0xab, 0xce, 0x0f, 0x17, 0x31, 0x68, 0x45, 0x52, 0x41, 0xf2, 0x7d, 0x04, 0x20, 0xc2, + 0x8a, 0x1b, 0x7a, 0x48, 0x05, 0xd3, 0xa6, 0xa9, 0x49, 0x5e, 0x04, 0x4e, 0x2f, 0x31, 0xbd, 0x17, + 0x26, 0xf8, 0x7f, 0xd7, 0xfc, 0x20, 0x66, 0x69, 0x30, 0x46, 0x1b, 0x39, 0xf5, 0x7a, 0xc0, 0x2e, + 0xf8, 0x88, 0x92, 0x1f, 0x68, 0x0d, 0x8e, 0x3d, 0xdf, 0x8d, 0x62, 0xaf, 0x21, 0x0e, 0x61, 0x8b, + 0x2c, 0x96, 0x0b, 0xf2, 0x4b, 0x7c, 0x50, 0x47, 0xde, 0x4a, 0x03, 0xb0, 0x59, 0x18, 0x2d, 0xc0, + 0x24, 0x7f, 0xb9, 0xf0, 0x5a, 0x24, 0xb5, 0x4b, 0x1c, 0x36, 0x57, 0x73, 0x8b, 0x78, 0xe6, 0x50, + 0xa2, 0xf1, 0x09, 0xcf, 0x04, 0xd0, 0x3a, 0x1c, 0x66, 0xf5, 0xb5, 0x3a, 0xc0, 0xac, 0x83, 0xcf, + 0x0a, 0x5a, 0x1d, 0x8e, 0x09, 0x40, 0xcf, 0xc1, 0x74, 0xba, 0x8e, 0x6b, 0x89, 0xce, 0x8c, 0x1b, + 0xaf, 0x3e, 0x4c, 0xa5, 0x6a, 0x4b, 0x54, 0x68, 0xca, 0xc9, 0xc1, 0xd8, 0x7f, 0x6c, 0x81, 0x66, + 0xa7, 0xd0, 0xdf, 0xb7, 0xe0, 0xa4, 0x9b, 0x7e, 0x94, 0x58, 0x98, 0xc9, 0xad, 0x22, 0x5f, 0x21, + 0x96, 0x75, 0x2f, 0xdc, 0x27, 0x84, 0xef, 0x7f, 0x0b, 0x19, 0xf7, 0x4b, 0x82, 0xde, 0x9b, 0x7a, + 0x60, 0xfa, 0x5c, 0x9f, 0x3a, 0x4d, 0x68, 0x06, 0x9f, 0xa8, 0x25, 0x95, 0xcf, 0x5a, 0x30, 0xa1, + 0xa7, 0x82, 0xbc, 0xc1, 0x89, 0x30, 0x76, 0x13, 0x4e, 0xa4, 0xde, 0xfa, 0x18, 0xd0, 0x03, 0xab, + 0xdf, 0xb2, 0xe0, 0x38, 0xdb, 0xc8, 0xfb, 0x31, 0x7a, 0x76, 0xd3, 0xfe, 0xea, 0x28, 0x4c, 0xe8, + 0xbb, 0x8f, 0xe8, 0x65, 0x18, 0x93, 0x17, 0x89, 0xc8, 0x15, 0x82, 0xf5, 0x82, 0x76, 0x38, 0xfb, + 0x1e, 0x0f, 0x91, 0x77, 0x97, 0x44, 0x38, 0xe1, 0x89, 0xbe, 0x61, 0xc1, 0x69, 0xf9, 0x8b, 0xad, + 0xdb, 0x7b, 0x81, 0x1f, 0xed, 0x78, 0x9d, 0x42, 0x77, 0xd5, 0x7b, 0x0d, 0xa3, 0xee, 0x64, 0xcb, + 0x64, 0x3e, 0x8b, 0x33, 0xce, 0x16, 0x08, 0x75, 0xa0, 0x4a, 0xf5, 0x5f, 0x2e, 0x01, 0x3d, 0x5e, + 0x90, 0x64, 0x2b, 0xc6, 0x12, 0x1e, 0xfd, 0x15, 0x61, 0xce, 0x88, 0xe5, 0x54, 0xf0, 0xcb, 0xe0, + 0x2b, 0xc5, 0xf9, 0x53, 0xbd, 0x46, 0x2c, 0x9e, 0x42, 0x4a, 0xfc, 0x29, 0x05, 0xcb, 0x78, 0x12, + 0xa9, 0x5a, 0xdc, 0x7d, 0x5c, 0xda, 0x1d, 0x7b, 0xb9, 0x4f, 0x22, 0x7d, 0xda, 0x7c, 0x12, 0x69, + 0xa4, 0xb8, 0x64, 0x12, 0x63, 0xb0, 0x6a, 0x37, 0x1d, 0x1a, 0x70, 0xfd, 0x65, 0x24, 0xf4, 0x11, + 0x18, 0x89, 0xd8, 0x92, 0xbf, 0xb8, 0x32, 0xa3, 0x90, 0x67, 0xa8, 0x58, 0x85, 0xda, 0x12, 0x35, + 0xfb, 0x8d, 0x05, 0x23, 0xfb, 0xb7, 0xaa, 0x50, 0x93, 0x5a, 0x71, 0xa0, 0xd7, 0xf5, 0xa2, 0xf6, + 0x38, 0x47, 0x69, 0x20, 0x57, 0x7f, 0x1d, 0xf4, 0xd8, 0xc7, 0xc7, 0xfa, 0xce, 0x8d, 0x6e, 0x15, + 0xf4, 0xba, 0xa3, 0xf1, 0x22, 0x22, 0x0f, 0x5b, 0x32, 0x92, 0x32, 0x2e, 0x42, 0x8d, 0x5d, 0xf0, + 0xe3, 0xc7, 0x51, 0xfa, 0x69, 0x92, 0x45, 0x01, 0xc7, 0x8a, 0x02, 0xc5, 0x30, 0x5a, 0x67, 0xcf, + 0x04, 0x4b, 0x27, 0x6d, 0xb5, 0x90, 0x07, 0xbe, 0x68, 0x8d, 0x89, 0x05, 0xe7, 0xbf, 0x23, 0x2c, + 0x59, 0xb1, 0x2f, 0xa4, 0xbf, 0x03, 0x55, 0xcc, 0x17, 0xd2, 0x5e, 0xb4, 0x3c, 0x30, 0xed, 0xf8, + 0x25, 0x00, 0xa2, 0x1e, 0x67, 0x15, 0xfa, 0x5b, 0x84, 0xfd, 0x48, 0x5e, 0x7c, 0xe5, 0xf7, 0xdb, + 0x6b, 0x0f, 0xee, 0x6a, 0x0c, 0xed, 0x7f, 0x53, 0x82, 0x71, 0x6d, 0x16, 0x60, 0x57, 0xeb, 0x75, + 0x52, 0xe9, 0xec, 0xc2, 0x3d, 0x28, 0xc2, 0xc4, 0xa7, 0x33, 0xe5, 0xb5, 0xeb, 0x0e, 0x53, 0x18, + 0xdc, 0x27, 0x06, 0xf3, 0xcd, 0x3a, 0xe9, 0x9c, 0x69, 0x31, 0xa8, 0xb6, 0x8a, 0x13, 0x2e, 0xa9, + 0x3b, 0xf1, 0xcd, 0xfa, 0x50, 0xb8, 0x5f, 0x12, 0xfb, 0xb7, 0x2d, 0x98, 0x4c, 0xcf, 0x61, 0xe8, + 0x02, 0x8c, 0x74, 0x9c, 0x50, 0x3a, 0x59, 0xda, 0xc6, 0xf2, 0x06, 0x83, 0x62, 0x81, 0x45, 0x6f, + 0x81, 0xaa, 0xbb, 0xe3, 0xb5, 0xea, 0xe9, 0x77, 0x2f, 0x17, 0x29, 0x10, 0x73, 0xdc, 0x11, 0xde, + 0x02, 0xd2, 0xf3, 0xc0, 0x2b, 0x77, 0x9c, 0x07, 0xfe, 0x87, 0xd4, 0x29, 0x56, 0x93, 0xcd, 0x9b, + 0xe9, 0x20, 0x83, 0xde, 0xbe, 0xea, 0x1d, 0xb7, 0xef, 0x2b, 0x25, 0x18, 0x15, 0x8b, 0x2c, 0x68, + 0x06, 0xaa, 0xec, 0x64, 0xaa, 0x7e, 0x85, 0x34, 0xbf, 0x7b, 0x8a, 0xc3, 0xd1, 0xcf, 0xc0, 0x08, + 0x8f, 0x1e, 0x44, 0x1b, 0xe7, 0xd5, 0xed, 0x63, 0x77, 0xbc, 0x26, 0x26, 0x2a, 0xa4, 0xe6, 0x91, + 0x84, 0xa1, 0x1f, 0x60, 0xc2, 0x0f, 0xcd, 0x55, 0x12, 0x53, 0xb1, 0x2c, 0xe0, 0x58, 0x51, 0xa0, + 0xba, 0x78, 0x32, 0xba, 0x52, 0xd8, 0xb1, 0x97, 0xf9, 0xb0, 0x99, 0x7e, 0x7a, 0xda, 0x7e, 0x0a, + 0x6a, 0x32, 0xcd, 0xac, 0x50, 0x4f, 0xd9, 0x7e, 0x0e, 0x4e, 0xa4, 0x1e, 0xac, 0x2b, 0xb6, 0xfe, + 0xd7, 0x4a, 0x50, 0xbe, 0xba, 0xfc, 0xf4, 0x80, 0x72, 0x10, 0xd5, 0x55, 0x88, 0x07, 0xe5, 0x20, + 0xbe, 0x22, 0x56, 0xd7, 0x58, 0x8c, 0x29, 0x5d, 0xe3, 0xb5, 0x82, 0x56, 0xd7, 0x58, 0xa5, 0xe6, + 0xe2, 0x1a, 0xe7, 0x83, 0x35, 0x9e, 0xf6, 0x37, 0x2d, 0x98, 0x4c, 0xaf, 0xc6, 0xfc, 0x15, 0x07, + 0xf0, 0x7b, 0x60, 0x5c, 0x3a, 0x5b, 0xc9, 0x20, 0xee, 0x7b, 0xae, 0x92, 0x7e, 0x0b, 0x9d, 0x0e, + 0xbd, 0x0d, 0x46, 0x9d, 0x96, 0xe7, 0x44, 0x6a, 0x8d, 0x97, 0x9d, 0x76, 0x9e, 0xe7, 0x20, 0x2c, + 0x71, 0xf6, 0xb7, 0x4b, 0x70, 0x5f, 0xea, 0xda, 0x48, 0x15, 0x31, 0x46, 0xe8, 0xb3, 0x16, 0x94, + 0x9d, 0x96, 0xdc, 0x66, 0xfb, 0x50, 0xc1, 0xfb, 0x1a, 0x1e, 0x89, 0xae, 0x6c, 0x3f, 0xcf, 0xde, + 0xbe, 0x59, 0x98, 0x11, 0x0d, 0xba, 0x97, 0xdf, 0x55, 0xdc, 0x47, 0x85, 0xa9, 0x1c, 0xe8, 0xef, + 0x59, 0x50, 0x0b, 0x49, 0x8b, 0xec, 0x3a, 0x7e, 0x5c, 0xe0, 0x45, 0x64, 0x79, 0x42, 0xc9, 0xa7, + 0xdc, 0xa7, 0xe5, 0xe2, 0x66, 0x86, 0x5c, 0x4a, 0x1e, 0xfb, 0x73, 0x16, 0xdc, 0x9b, 0x53, 0x13, + 0x9a, 0xd3, 0xdf, 0xf4, 0x49, 0xe5, 0x12, 0x65, 0xbd, 0xeb, 0x73, 0x04, 0xbd, 0x90, 0x57, 0x9d, + 0x94, 0xf3, 0xae, 0x3a, 0xb1, 0x7f, 0xad, 0x0c, 0xe6, 0x02, 0x20, 0xfa, 0x75, 0x0b, 0x4e, 0xef, + 0x66, 0x5d, 0x31, 0xca, 0x56, 0xab, 0x06, 0x79, 0x85, 0xa9, 0x0a, 0x26, 0x33, 0xd1, 0x38, 0x5b, + 0x2a, 0x44, 0xa0, 0xdc, 0xf0, 0xf6, 0xd8, 0xca, 0x57, 0x31, 0x26, 0x77, 0xc5, 0xdb, 0x4b, 0x76, + 0x14, 0x57, 0xbc, 0x3d, 0x4c, 0xeb, 0x47, 0x2f, 0x03, 0x38, 0xf5, 0x5d, 0x2f, 0x0a, 0xd8, 0x73, + 0xf8, 0x50, 0x58, 0xe0, 0x3a, 0xcf, 0x2b, 0xd5, 0xb6, 0xf9, 0xe7, 0x15, 0x1b, 0xac, 0xb1, 0xb4, + 0xeb, 0x70, 0x3a, 0x73, 0xc3, 0x0f, 0x9d, 0x4d, 0xc6, 0x5f, 0x39, 0x11, 0x7c, 0xbe, 0xd5, 0xe2, + 0xe3, 0xe1, 0x62, 0x6a, 0x38, 0x94, 0xf5, 0x85, 0x1b, 0x0e, 0xd7, 0x14, 0xf4, 0xd5, 0x72, 0x8a, + 0xcd, 0x65, 0xc7, 0xf7, 0x1a, 0x24, 0x1a, 0xc6, 0x81, 0x96, 0x8f, 0x19, 0xe9, 0x54, 0xcf, 0x16, + 0xae, 0x67, 0xa2, 0x25, 0xb9, 0x59, 0x55, 0xaf, 0x5b, 0xa9, 0xb4, 0xaa, 0xe7, 0x06, 0x26, 0xc2, + 0xc1, 0xd9, 0x55, 0xff, 0xc7, 0x32, 0x0d, 0xae, 0x2a, 0x37, 0x84, 0x24, 0xab, 0x97, 0xcc, 0x24, + 0xab, 0xa7, 0x07, 0xd5, 0x05, 0x39, 0xb9, 0x56, 0xdf, 0x2f, 0xe5, 0x34, 0x9d, 0x79, 0x3b, 0xef, + 0x83, 0x63, 0x37, 0xbc, 0x78, 0x47, 0xe8, 0xad, 0xdb, 0x13, 0xbb, 0x2f, 0x6a, 0x2b, 0xe3, 0x29, + 0x1d, 0x89, 0x4d, 0x5a, 0xf4, 0xaa, 0x25, 0xb2, 0xfd, 0xb9, 0x7e, 0xfd, 0xec, 0xa0, 0x5a, 0x76, + 0xe0, 0x11, 0x80, 0xcf, 0x58, 0xea, 0x0c, 0x40, 0xb9, 0xb0, 0xe7, 0xd3, 0x32, 0xc5, 0x38, 0xc2, + 0xc1, 0x80, 0x8f, 0xc1, 0xcc, 0x21, 0x45, 0x07, 0x7b, 0xe2, 0xf0, 0x57, 0xf3, 0x3e, 0x36, 0xdb, + 0xb5, 0xff, 0x8c, 0xd5, 0xa7, 0xe8, 0x03, 0xb3, 0x09, 0x87, 0x9e, 0x5d, 0x61, 0x6f, 0xd8, 0xf6, + 0xe8, 0xfc, 0x2e, 0xd4, 0x67, 0xa3, 0xa8, 0x9b, 0xa9, 0xd5, 0xf9, 0x15, 0xe5, 0x37, 0x6f, 0x70, + 0x46, 0x58, 0x72, 0xb4, 0xcf, 0xc2, 0xfd, 0x07, 0x98, 0x11, 0xfb, 0x8b, 0x65, 0x38, 0x93, 0x8d, + 0x17, 0xe9, 0x50, 0x83, 0x37, 0xdd, 0x9f, 0xb0, 0x0c, 0xdb, 0xed, 0x0e, 0xcc, 0x70, 0xf2, 0x16, + 0xbd, 0xf9, 0x4d, 0xf8, 0x27, 0x4b, 0x70, 0xfe, 0xa0, 0x16, 0x0c, 0xc1, 0x92, 0xff, 0x5c, 0xea, + 0x06, 0x90, 0x6b, 0x03, 0xfe, 0x28, 0x39, 0x16, 0xfd, 0x3b, 0x87, 0xf4, 0xc4, 0xa6, 0xf8, 0x6e, + 0x20, 0x12, 0xd4, 0x3d, 0xf5, 0x02, 0x43, 0x21, 0xcf, 0xd5, 0x9b, 0x99, 0x81, 0xfa, 0xcb, 0x52, + 0x92, 0x1b, 0xd6, 0x38, 0xa3, 0x5f, 0xb5, 0x00, 0xed, 0xa6, 0xae, 0xce, 0x27, 0x8d, 0x01, 0xb9, + 0x24, 0x46, 0x20, 0xa5, 0x3d, 0x10, 0x93, 0xe2, 0x9f, 0x21, 0x90, 0xfd, 0x8f, 0x2d, 0x38, 0x7b, + 0xe0, 0xec, 0x53, 0xec, 0x1e, 0xda, 0x3c, 0x9c, 0xa0, 0x3a, 0xb5, 0xed, 0x44, 0xea, 0xfd, 0x98, + 0xb2, 0xb9, 0x4d, 0xbc, 0x64, 0xa2, 0x71, 0x9a, 0xde, 0x7e, 0xbd, 0xcf, 0xb3, 0x94, 0x8a, 0x7a, + 0x50, 0xec, 0xfb, 0x08, 0x00, 0xa5, 0xe1, 0xcb, 0x5c, 0xe9, 0x6b, 0x0b, 0x96, 0x14, 0x06, 0x6b, + 0x54, 0x66, 0x20, 0x55, 0x3e, 0x42, 0x20, 0x75, 0x51, 0x3b, 0x93, 0x91, 0x5a, 0x03, 0xcf, 0x38, + 0x3f, 0x21, 0x1f, 0x60, 0xaa, 0x66, 0x3e, 0xc0, 0x94, 0x0a, 0xc5, 0x47, 0x8e, 0x18, 0x8a, 0x7b, + 0x50, 0x71, 0x77, 0x23, 0x99, 0xaf, 0xf4, 0x58, 0x11, 0x1b, 0x10, 0xbb, 0x91, 0x96, 0x17, 0x4a, + 0x7f, 0x61, 0xc6, 0xc2, 0xfe, 0xcb, 0x12, 0xdc, 0x6d, 0x7c, 0x88, 0xe1, 0x4d, 0x13, 0x2f, 0x19, + 0xb3, 0xc4, 0x33, 0x45, 0x1b, 0xa4, 0xc3, 0x66, 0x87, 0x4f, 0xa4, 0x67, 0x87, 0x0f, 0x0f, 0x4a, + 0x82, 0x83, 0x27, 0x87, 0xff, 0x6d, 0xc1, 0x54, 0x56, 0xb1, 0x21, 0x4c, 0x0a, 0x2f, 0x9a, 0x73, + 0xc2, 0x53, 0x03, 0xea, 0x80, 0x9c, 0xb9, 0xe0, 0xdf, 0x97, 0xb2, 0x1b, 0xfe, 0xe6, 0x9a, 0x03, + 0xbe, 0x99, 0x37, 0x07, 0x94, 0xdf, 0x04, 0x6b, 0x49, 0x59, 0x93, 0xc1, 0x19, 0x98, 0xce, 0xd7, + 0x42, 0xfb, 0xd5, 0x12, 0xdc, 0x27, 0x2b, 0x34, 0xf2, 0x1d, 0x36, 0x5d, 0xc7, 0x1f, 0xc2, 0xa0, + 0x7f, 0xd5, 0xf4, 0x0d, 0x8b, 0x88, 0xbb, 0x72, 0x9b, 0x93, 0x9b, 0x1f, 0xfc, 0xf1, 0x12, 0x9c, + 0xcd, 0x2d, 0x35, 0x84, 0x71, 0xf7, 0xf1, 0x94, 0x33, 0xf6, 0xec, 0x20, 0x7b, 0x21, 0x67, 0xf4, + 0xfd, 0xc0, 0x82, 0xb7, 0xe7, 0xf7, 0x9c, 0xd2, 0x7f, 0x39, 0x1d, 0x5c, 0x4c, 0x9d, 0xa1, 0x28, + 0x1f, 0x78, 0xd2, 0xe1, 0xbc, 0x76, 0xd2, 0xa1, 0x9c, 0x79, 0x1e, 0xe1, 0x82, 0x71, 0x1c, 0xa1, + 0x9c, 0x7b, 0x68, 0xe0, 0x6c, 0x72, 0x68, 0xa0, 0x9c, 0x91, 0xda, 0xff, 0x60, 0x92, 0x4a, 0x5f, + 0x35, 0x5f, 0x6c, 0xe9, 0x4b, 0x78, 0xff, 0x41, 0xf9, 0x80, 0x8f, 0xce, 0x6c, 0xce, 0x2f, 0x5b, + 0x7c, 0xfb, 0x3b, 0x0c, 0xd4, 0xfb, 0xb1, 0xfe, 0xa0, 0xf5, 0x53, 0x1e, 0xd6, 0x14, 0xc7, 0x7b, + 0x8c, 0xed, 0x76, 0x0a, 0xc6, 0x4a, 0x22, 0x2a, 0xde, 0x71, 0x71, 0xdc, 0x96, 0x0f, 0x2d, 0x99, + 0x32, 0x53, 0xa4, 0xfa, 0x50, 0xb9, 0xb0, 0xce, 0x24, 0xc9, 0xe8, 0x30, 0xc0, 0x11, 0x4e, 0xc9, + 0x32, 0xfd, 0x39, 0x0b, 0x8e, 0x19, 0x8d, 0xc9, 0x38, 0x77, 0xd4, 0x34, 0xcf, 0x1d, 0x3d, 0x51, + 0xfc, 0xa9, 0x6e, 0xed, 0xac, 0xd1, 0x17, 0x4a, 0x70, 0x3e, 0xbf, 0xef, 0x87, 0xe6, 0xe6, 0x7c, + 0xda, 0xb4, 0x78, 0xcd, 0x81, 0x6a, 0xd4, 0xc1, 0x3e, 0x8f, 0xfd, 0xb5, 0x03, 0x07, 0x3d, 0x2f, + 0x9c, 0xbc, 0x27, 0x74, 0x47, 0x9b, 0x10, 0x6c, 0x8b, 0xa1, 0x94, 0x7b, 0x9b, 0xfa, 0xe1, 0x6f, + 0xcb, 0x7e, 0xbe, 0x04, 0x6f, 0x3d, 0x4c, 0xc6, 0x21, 0xd8, 0xe8, 0x4f, 0xa5, 0x6c, 0xb4, 0x3b, + 0x84, 0xef, 0x96, 0x63, 0xaa, 0x3f, 0x55, 0x39, 0xbc, 0x47, 0x98, 0x01, 0xfb, 0x5a, 0x96, 0xd3, + 0xd4, 0x1e, 0xa8, 0xe0, 0xe9, 0x89, 0xe2, 0x50, 0x7f, 0xea, 0x57, 0xfa, 0x8d, 0x6c, 0x77, 0x48, + 0x43, 0xe2, 0xe8, 0xb6, 0x76, 0xfa, 0x17, 0x8e, 0x60, 0xcc, 0x7c, 0xd3, 0x98, 0x3d, 0x5d, 0xfc, + 0xc9, 0x79, 0x2e, 0xba, 0x6e, 0xd3, 0xfe, 0xcc, 0x4a, 0xdc, 0xb7, 0x3e, 0x53, 0x7d, 0xfb, 0xe3, + 0xf5, 0x22, 0xd4, 0x9c, 0x8e, 0xf7, 0x58, 0x18, 0x74, 0x3b, 0x62, 0xcc, 0x26, 0x4f, 0xe2, 0x6d, + 0xac, 0x32, 0x38, 0x56, 0x14, 0xa9, 0x97, 0x10, 0xca, 0x47, 0x7a, 0x09, 0x41, 0x5a, 0x84, 0xca, + 0xa1, 0x16, 0xa1, 0x9a, 0x67, 0x11, 0x16, 0x9a, 0xdf, 0xfe, 0xde, 0xb9, 0xbb, 0x7e, 0xef, 0x7b, + 0xe7, 0xee, 0xfa, 0x83, 0xef, 0x9d, 0xbb, 0xeb, 0x95, 0x9b, 0xe7, 0xac, 0x6f, 0xdf, 0x3c, 0x67, + 0xfd, 0xde, 0xcd, 0x73, 0xd6, 0x1f, 0xdc, 0x3c, 0x67, 0xfd, 0xd7, 0x9b, 0xe7, 0xac, 0x2f, 0xfc, + 0xd1, 0xb9, 0xbb, 0x3e, 0x34, 0xaf, 0x65, 0x75, 0xa8, 0xee, 0x9f, 0x13, 0xdd, 0xcf, 0xb2, 0x3a, + 0x68, 0xf7, 0xcf, 0x65, 0x74, 0xff, 0x9c, 0xe8, 0xfe, 0xff, 0x17, 0x00, 0x00, 0xff, 0xff, 0xc9, + 0x35, 0x1a, 0x0d, 0x18, 0xb7, 0x00, 0x00, +} + +func (m *Advisory) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Advisory) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Advisory) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.Link) + copy(dAtA[i:], m.Link) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Link))) + i-- + dAtA[i] = 0x12 + i -= len(m.ID) + copy(dAtA[i:], m.ID) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ID))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ApplicationActivity) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ApplicationActivity) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ApplicationActivity) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ApplicationActivityList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ApplicationActivityList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ApplicationActivityList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Items) > 0 { + for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ApplicationActivitySpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ApplicationActivitySpec) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ApplicationActivitySpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Syscalls) > 0 { + for iNdEx := len(m.Syscalls) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Syscalls[iNdEx]) + copy(dAtA[i:], m.Syscalls[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Syscalls[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *ApplicationActivityStatus) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ApplicationActivityStatus) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ApplicationActivityStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *ApplicationProfile) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ApplicationProfile) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ApplicationProfile) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ApplicationProfileContainer) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ApplicationProfileContainer) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ApplicationProfileContainer) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.SeccompProfile.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + if len(m.Syscalls) > 0 { + for iNdEx := len(m.Syscalls) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Syscalls[iNdEx]) + copy(dAtA[i:], m.Syscalls[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Syscalls[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + if len(m.Opens) > 0 { + for iNdEx := len(m.Opens) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Opens[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.Execs) > 0 { + for iNdEx := len(m.Execs) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Execs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.Capabilities) > 0 { + for iNdEx := len(m.Capabilities) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Capabilities[iNdEx]) + copy(dAtA[i:], m.Capabilities[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Capabilities[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ApplicationProfileList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ApplicationProfileList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ApplicationProfileList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Items) > 0 { + for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ApplicationProfileSpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ApplicationProfileSpec) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ApplicationProfileSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.EphemeralContainers) > 0 { + for iNdEx := len(m.EphemeralContainers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.EphemeralContainers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.InitContainers) > 0 { + for iNdEx := len(m.InitContainers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.InitContainers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.Containers) > 0 { + for iNdEx := len(m.Containers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Containers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.Architectures) > 0 { + for iNdEx := len(m.Architectures) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Architectures[iNdEx]) + copy(dAtA[i:], m.Architectures[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Architectures[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *ApplicationProfileStatus) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ApplicationProfileStatus) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ApplicationProfileStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *Arg) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Arg) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Arg) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.Op) + copy(dAtA[i:], m.Op) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Op))) + i-- + dAtA[i] = 0x22 + i = encodeVarintGenerated(dAtA, i, uint64(m.ValueTwo)) + i-- + dAtA[i] = 0x18 + i = encodeVarintGenerated(dAtA, i, uint64(m.Value)) + i-- + dAtA[i] = 0x10 + i = encodeVarintGenerated(dAtA, i, uint64(m.Index)) + i-- + dAtA[i] = 0x8 + return len(dAtA) - i, nil +} + +func (m *CPE) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CPE) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CPE) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.Source) + copy(dAtA[i:], m.Source) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Source))) + i-- + dAtA[i] = 0x12 + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *Component) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Component) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Component) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.Supplier) + copy(dAtA[i:], m.Supplier) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Supplier))) + i-- + dAtA[i] = 0x22 + if len(m.Identifiers) > 0 { + keysForIdentifiers := make([]string, 0, len(m.Identifiers)) + for k := range m.Identifiers { + keysForIdentifiers = append(keysForIdentifiers, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForIdentifiers) + for iNdEx := len(keysForIdentifiers) - 1; iNdEx >= 0; iNdEx-- { + v := m.Identifiers[IdentifierType(keysForIdentifiers[iNdEx])] + baseI := i + i -= len(v) + copy(dAtA[i:], v) + i = encodeVarintGenerated(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 + i -= len(keysForIdentifiers[iNdEx]) + copy(dAtA[i:], keysForIdentifiers[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(keysForIdentifiers[iNdEx]))) + i-- + dAtA[i] = 0xa + i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x1a + } + } + if len(m.Hashes) > 0 { + keysForHashes := make([]string, 0, len(m.Hashes)) + for k := range m.Hashes { + keysForHashes = append(keysForHashes, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForHashes) + for iNdEx := len(keysForHashes) - 1; iNdEx >= 0; iNdEx-- { + v := m.Hashes[Algorithm(keysForHashes[iNdEx])] + baseI := i + i -= len(v) + copy(dAtA[i:], v) + i = encodeVarintGenerated(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 + i -= len(keysForHashes[iNdEx]) + copy(dAtA[i:], keysForHashes[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(keysForHashes[iNdEx]))) + i-- + dAtA[i] = 0xa + i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x12 + } + } + i -= len(m.ID) + copy(dAtA[i:], m.ID) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ID))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *Condition) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Condition) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Condition) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.Message) + copy(dAtA[i:], m.Message) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) + i-- + dAtA[i] = 0x2a + i -= len(m.Reason) + copy(dAtA[i:], m.Reason) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) + i-- + dAtA[i] = 0x22 + { + size, err := m.LastTransitionTime.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + i -= len(m.Status) + copy(dAtA[i:], m.Status) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status))) + i-- + dAtA[i] = 0x12 + i -= len(m.Type) + copy(dAtA[i:], m.Type) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ConditionedStatus) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ConditionedStatus) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ConditionedStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Conditions) > 0 { + for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *ConfigurationScanSummary) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ConfigurationScanSummary) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ConfigurationScanSummary) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ConfigurationScanSummaryList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ConfigurationScanSummaryList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ConfigurationScanSummaryList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Items) > 0 { + for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ConfigurationScanSummarySpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ConfigurationScanSummarySpec) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ConfigurationScanSummarySpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.WorkloadConfigurationScanSummaryIdentifiers) > 0 { + for iNdEx := len(m.WorkloadConfigurationScanSummaryIdentifiers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.WorkloadConfigurationScanSummaryIdentifiers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.Severities.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ControlSeverity) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ControlSeverity) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ControlSeverity) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= 4 + encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.ScoreFactor)))) + i-- + dAtA[i] = 0x15 + i -= len(m.Severity) + copy(dAtA[i:], m.Severity) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Severity))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *Coordinates) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Coordinates) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Coordinates) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.FileSystemID) + copy(dAtA[i:], m.FileSystemID) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.FileSystemID))) + i-- + dAtA[i] = 0x12 + i -= len(m.RealPath) + copy(dAtA[i:], m.RealPath) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.RealPath))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *Cvss) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Cvss) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Cvss) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.VendorMetadata != nil { + i -= len(m.VendorMetadata) + copy(dAtA[i:], m.VendorMetadata) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.VendorMetadata))) + i-- + dAtA[i] = 0x22 + } + { + size, err := m.Metrics.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + i -= len(m.Vector) + copy(dAtA[i:], m.Vector) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Vector))) + i-- + dAtA[i] = 0x12 + i -= len(m.Version) + copy(dAtA[i:], m.Version) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Version))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *CvssMetrics) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CvssMetrics) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CvssMetrics) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ImpactScore != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.ImpactScore)))) + i-- + dAtA[i] = 0x19 + } + if m.ExploitabilityScore != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.ExploitabilityScore)))) + i-- + dAtA[i] = 0x11 + } + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.BaseScore)))) + i-- + dAtA[i] = 0x9 + return len(dAtA) - i, nil +} + +func (m *Descriptor) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Descriptor) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Descriptor) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.VulnerabilityDBStatus != nil { + i -= len(m.VulnerabilityDBStatus) + copy(dAtA[i:], m.VulnerabilityDBStatus) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.VulnerabilityDBStatus))) + i-- + dAtA[i] = 0x22 + } + if m.Configuration != nil { + i -= len(m.Configuration) + copy(dAtA[i:], m.Configuration) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Configuration))) + i-- + dAtA[i] = 0x1a + } + i -= len(m.Version) + copy(dAtA[i:], m.Version) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Version))) + i-- + dAtA[i] = 0x12 + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *Digest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Digest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Digest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0x12 + i -= len(m.Algorithm) + copy(dAtA[i:], m.Algorithm) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Algorithm))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *Distribution) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Distribution) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Distribution) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.IDLike) > 0 { + for iNdEx := len(m.IDLike) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.IDLike[iNdEx]) + copy(dAtA[i:], m.IDLike[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.IDLike[iNdEx]))) + i-- + dAtA[i] = 0x1a + } + } + i -= len(m.Version) + copy(dAtA[i:], m.Version) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Version))) + i-- + dAtA[i] = 0x12 + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ELFSecurityFeatures) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ELFSecurityFeatures) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ELFSecurityFeatures) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ClangFortifySource != nil { + i-- + if *m.ClangFortifySource { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x48 + } + if m.LlvmControlFlowIntegrity != nil { + i-- + if *m.LlvmControlFlowIntegrity { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x40 + } + if m.LlvmSafeStack != nil { + i-- + if *m.LlvmSafeStack { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + } + i-- + if m.DynamicSharedObject { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + i-- + if m.PositionIndependentExecutable { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + i -= len(m.RelocationReadOnly) + copy(dAtA[i:], m.RelocationReadOnly) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.RelocationReadOnly))) + i-- + dAtA[i] = 0x22 + i-- + if m.NoExecutable { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + if m.StackCanary != nil { + i-- + if *m.StackCanary { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + i-- + if m.SymbolTableStripped { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + return len(dAtA) - i, nil +} + +func (m *ExecCalls) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ExecCalls) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ExecCalls) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Envs) > 0 { + for iNdEx := len(m.Envs) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Envs[iNdEx]) + copy(dAtA[i:], m.Envs[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Envs[iNdEx]))) + i-- + dAtA[i] = 0x1a + } + } + if len(m.Args) > 0 { + for iNdEx := len(m.Args) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Args[iNdEx]) + copy(dAtA[i:], m.Args[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Args[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + i -= len(m.Path) + copy(dAtA[i:], m.Path) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Path))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *Executable) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Executable) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Executable) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ELFSecurityFeatures != nil { + { + size, err := m.ELFSecurityFeatures.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if len(m.ImportedLibraries) > 0 { + for iNdEx := len(m.ImportedLibraries) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ImportedLibraries[iNdEx]) + copy(dAtA[i:], m.ImportedLibraries[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ImportedLibraries[iNdEx]))) + i-- + dAtA[i] = 0x22 + } + } + i-- + if m.HasEntrypoint { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + i-- + if m.HasExports { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + i -= len(m.Format) + copy(dAtA[i:], m.Format) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Format))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *FileLicense) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *FileLicense) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FileLicense) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Evidence != nil { + { + size, err := m.Evidence.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + i -= len(m.Type) + copy(dAtA[i:], m.Type) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) + i-- + dAtA[i] = 0x1a + i -= len(m.SPDXExpression) + copy(dAtA[i:], m.SPDXExpression) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.SPDXExpression))) + i-- + dAtA[i] = 0x12 + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *FileLicenseEvidence) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *FileLicenseEvidence) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FileLicenseEvidence) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i = encodeVarintGenerated(dAtA, i, uint64(m.Extent)) + i-- + dAtA[i] = 0x18 + i = encodeVarintGenerated(dAtA, i, uint64(m.Offset)) + i-- + dAtA[i] = 0x10 + i = encodeVarintGenerated(dAtA, i, uint64(m.Confidence)) + i-- + dAtA[i] = 0x8 + return len(dAtA) - i, nil +} + +func (m *FileMetadataEntry) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *FileMetadataEntry) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FileMetadataEntry) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i = encodeVarintGenerated(dAtA, i, uint64(m.Size_)) + i-- + dAtA[i] = 0x38 + i -= len(m.MIMEType) + copy(dAtA[i:], m.MIMEType) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.MIMEType))) + i-- + dAtA[i] = 0x32 + i = encodeVarintGenerated(dAtA, i, uint64(m.GroupID)) + i-- + dAtA[i] = 0x28 + i = encodeVarintGenerated(dAtA, i, uint64(m.UserID)) + i-- + dAtA[i] = 0x20 + i -= len(m.LinkDestination) + copy(dAtA[i:], m.LinkDestination) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.LinkDestination))) + i-- + dAtA[i] = 0x1a + i -= len(m.Type) + copy(dAtA[i:], m.Type) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) + i-- + dAtA[i] = 0x12 + i = encodeVarintGenerated(dAtA, i, uint64(m.Mode)) + i-- + dAtA[i] = 0x8 + return len(dAtA) - i, nil +} + +func (m *Fix) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Fix) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Fix) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.State) + copy(dAtA[i:], m.State) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.State))) + i-- + dAtA[i] = 0x12 + if len(m.Versions) > 0 { + for iNdEx := len(m.Versions) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Versions[iNdEx]) + copy(dAtA[i:], m.Versions[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Versions[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *GeneratedNetworkPolicy) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GeneratedNetworkPolicy) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GeneratedNetworkPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.PoliciesRef) > 0 { + for iNdEx := len(m.PoliciesRef) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PoliciesRef[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *GeneratedNetworkPolicyList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GeneratedNetworkPolicyList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GeneratedNetworkPolicyList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Items) > 0 { + for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *GrypeDocument) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GrypeDocument) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GrypeDocument) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Descriptor_.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + { + size, err := m.Distro.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + if m.Source != nil { + { + size, err := m.Source.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.IgnoredMatches) > 0 { + for iNdEx := len(m.IgnoredMatches) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.IgnoredMatches[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.Matches) > 0 { + for iNdEx := len(m.Matches) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Matches[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *GrypePackage) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GrypePackage) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GrypePackage) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Metadata != nil { + i -= len(m.Metadata) + copy(dAtA[i:], m.Metadata) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Metadata))) + i-- + dAtA[i] = 0x5a + } + i -= len(m.MetadataType) + copy(dAtA[i:], m.MetadataType) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.MetadataType))) + i-- + dAtA[i] = 0x52 + if len(m.Upstreams) > 0 { + for iNdEx := len(m.Upstreams) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Upstreams[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } + } + i -= len(m.PURL) + copy(dAtA[i:], m.PURL) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.PURL))) + i-- + dAtA[i] = 0x42 + if len(m.CPEs) > 0 { + for iNdEx := len(m.CPEs) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.CPEs[iNdEx]) + copy(dAtA[i:], m.CPEs[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.CPEs[iNdEx]))) + i-- + dAtA[i] = 0x3a + } + } + if len(m.Licenses) > 0 { + for iNdEx := len(m.Licenses) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Licenses[iNdEx]) + copy(dAtA[i:], m.Licenses[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Licenses[iNdEx]))) + i-- + dAtA[i] = 0x32 + } + } + i -= len(m.Language) + copy(dAtA[i:], m.Language) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Language))) + i-- + dAtA[i] = 0x2a + if len(m.Locations) > 0 { + for iNdEx := len(m.Locations) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Locations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + i -= len(m.Type) + copy(dAtA[i:], m.Type) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) + i-- + dAtA[i] = 0x1a + i -= len(m.Version) + copy(dAtA[i:], m.Version) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Version))) + i-- + dAtA[i] = 0x12 + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *HTTPIngressPath) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *HTTPIngressPath) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *HTTPIngressPath) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.PathType != nil { + i -= len(*m.PathType) + copy(dAtA[i:], *m.PathType) + i = encodeVarintGenerated(dAtA, i, uint64(len(*m.PathType))) + i-- + dAtA[i] = 0x1a + } + { + size, err := m.Backend.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + i -= len(m.Path) + copy(dAtA[i:], m.Path) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Path))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *HTTPIngressRuleValue) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *HTTPIngressRuleValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *HTTPIngressRuleValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Paths) > 0 { + for iNdEx := len(m.Paths) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Paths[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *IPBlock) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *IPBlock) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IPBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Except) > 0 { + for iNdEx := len(m.Except) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Except[iNdEx]) + copy(dAtA[i:], m.Except[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Except[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + i -= len(m.CIDR) + copy(dAtA[i:], m.CIDR) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.CIDR))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *IgnoreRule) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *IgnoreRule) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IgnoreRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Package != nil { + { + size, err := m.Package.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + i -= len(m.FixState) + copy(dAtA[i:], m.FixState) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.FixState))) + i-- + dAtA[i] = 0x12 + i -= len(m.Vulnerability) + copy(dAtA[i:], m.Vulnerability) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Vulnerability))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *IgnoreRulePackage) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *IgnoreRulePackage) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IgnoreRulePackage) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.UpstreamName) + copy(dAtA[i:], m.UpstreamName) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.UpstreamName))) + i-- + dAtA[i] = 0x2a + i -= len(m.Location) + copy(dAtA[i:], m.Location) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Location))) + i-- + dAtA[i] = 0x22 + i -= len(m.Type) + copy(dAtA[i:], m.Type) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) + i-- + dAtA[i] = 0x1a + i -= len(m.Version) + copy(dAtA[i:], m.Version) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Version))) + i-- + dAtA[i] = 0x12 + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *IgnoredMatch) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *IgnoredMatch) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IgnoredMatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.AppliedIgnoreRules) > 0 { + for iNdEx := len(m.AppliedIgnoreRules) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.AppliedIgnoreRules[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.Match.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *Ingress) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Ingress) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Ingress) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *IngressBackend) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *IngressBackend) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IngressBackend) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Service != nil { + { + size, err := m.Service.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.Resource != nil { + { + size, err := m.Resource.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + return len(dAtA) - i, nil +} + +func (m *IngressClass) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *IngressClass) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IngressClass) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *IngressClassList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *IngressClassList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IngressClassList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Items) > 0 { + for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *IngressClassParametersReference) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *IngressClassParametersReference) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IngressClassParametersReference) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Namespace != nil { + i -= len(*m.Namespace) + copy(dAtA[i:], *m.Namespace) + i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Namespace))) + i-- + dAtA[i] = 0x2a + } + if m.Scope != nil { + i -= len(*m.Scope) + copy(dAtA[i:], *m.Scope) + i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Scope))) + i-- + dAtA[i] = 0x22 + } + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x1a + i -= len(m.Kind) + copy(dAtA[i:], m.Kind) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind))) + i-- + dAtA[i] = 0x12 + if m.APIGroup != nil { + i -= len(*m.APIGroup) + copy(dAtA[i:], *m.APIGroup) + i = encodeVarintGenerated(dAtA, i, uint64(len(*m.APIGroup))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *IngressClassSpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *IngressClassSpec) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IngressClassSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Parameters != nil { + { + size, err := m.Parameters.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + i -= len(m.Controller) + copy(dAtA[i:], m.Controller) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Controller))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *IngressList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *IngressList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IngressList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Items) > 0 { + for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *IngressLoadBalancerIngress) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *IngressLoadBalancerIngress) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IngressLoadBalancerIngress) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Ports) > 0 { + for iNdEx := len(m.Ports) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Ports[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + i -= len(m.Hostname) + copy(dAtA[i:], m.Hostname) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Hostname))) + i-- + dAtA[i] = 0x12 + i -= len(m.IP) + copy(dAtA[i:], m.IP) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.IP))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *IngressLoadBalancerStatus) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *IngressLoadBalancerStatus) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IngressLoadBalancerStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Ingress) > 0 { + for iNdEx := len(m.Ingress) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Ingress[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *IngressPortStatus) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *IngressPortStatus) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IngressPortStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Error != nil { + i -= len(*m.Error) + copy(dAtA[i:], *m.Error) + i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Error))) + i-- + dAtA[i] = 0x1a + } + i -= len(m.Protocol) + copy(dAtA[i:], m.Protocol) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Protocol))) + i-- + dAtA[i] = 0x12 + i = encodeVarintGenerated(dAtA, i, uint64(m.Port)) + i-- + dAtA[i] = 0x8 + return len(dAtA) - i, nil +} + +func (m *IngressRule) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *IngressRule) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IngressRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.IngressRuleValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + i -= len(m.Host) + copy(dAtA[i:], m.Host) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Host))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *IngressRuleValue) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *IngressRuleValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IngressRuleValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.HTTP != nil { + { + size, err := m.HTTP.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *IngressServiceBackend) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *IngressServiceBackend) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IngressServiceBackend) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Port.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *IngressSpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *IngressSpec) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IngressSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.IngressClassName != nil { + i -= len(*m.IngressClassName) + copy(dAtA[i:], *m.IngressClassName) + i = encodeVarintGenerated(dAtA, i, uint64(len(*m.IngressClassName))) + i-- + dAtA[i] = 0x22 + } + if len(m.Rules) > 0 { + for iNdEx := len(m.Rules) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Rules[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.TLS) > 0 { + for iNdEx := len(m.TLS) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TLS[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if m.DefaultBackend != nil { + { + size, err := m.DefaultBackend.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *IngressStatus) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *IngressStatus) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IngressStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.LoadBalancer.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *IngressTLS) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *IngressTLS) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IngressTLS) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.SecretName) + copy(dAtA[i:], m.SecretName) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.SecretName))) + i-- + dAtA[i] = 0x12 + if len(m.Hosts) > 0 { + for iNdEx := len(m.Hosts) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Hosts[iNdEx]) + copy(dAtA[i:], m.Hosts[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Hosts[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *KnownServer) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *KnownServer) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *KnownServer) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Spec) > 0 { + for iNdEx := len(m.Spec) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Spec[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *KnownServerEntry) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *KnownServerEntry) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *KnownServerEntry) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x1a + i -= len(m.Server) + copy(dAtA[i:], m.Server) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Server))) + i-- + dAtA[i] = 0x12 + i -= len(m.IPBlock) + copy(dAtA[i:], m.IPBlock) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.IPBlock))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *KnownServerList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *KnownServerList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *KnownServerList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Items) > 0 { + for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *License) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *License) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *License) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Locations) > 0 { + for iNdEx := len(m.Locations) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Locations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if len(m.URLs) > 0 { + for iNdEx := len(m.URLs) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.URLs[iNdEx]) + copy(dAtA[i:], m.URLs[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.URLs[iNdEx]))) + i-- + dAtA[i] = 0x22 + } + } + i -= len(m.Type) + copy(dAtA[i:], m.Type) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) + i-- + dAtA[i] = 0x1a + i -= len(m.SPDXExpression) + copy(dAtA[i:], m.SPDXExpression) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.SPDXExpression))) + i-- + dAtA[i] = 0x12 + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *LinuxRelease) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LinuxRelease) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LinuxRelease) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.SupportEnd) + copy(dAtA[i:], m.SupportEnd) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.SupportEnd))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x92 + i -= len(m.CPEName) + copy(dAtA[i:], m.CPEName) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.CPEName))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x8a + i -= len(m.PrivacyPolicyURL) + copy(dAtA[i:], m.PrivacyPolicyURL) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.PrivacyPolicyURL))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 + i -= len(m.BugReportURL) + copy(dAtA[i:], m.BugReportURL) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.BugReportURL))) + i-- + dAtA[i] = 0x7a + i -= len(m.SupportURL) + copy(dAtA[i:], m.SupportURL) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.SupportURL))) + i-- + dAtA[i] = 0x72 + i -= len(m.HomeURL) + copy(dAtA[i:], m.HomeURL) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.HomeURL))) + i-- + dAtA[i] = 0x6a + i -= len(m.VariantID) + copy(dAtA[i:], m.VariantID) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.VariantID))) + i-- + dAtA[i] = 0x62 + i -= len(m.Variant) + copy(dAtA[i:], m.Variant) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Variant))) + i-- + dAtA[i] = 0x5a + i -= len(m.ImageVersion) + copy(dAtA[i:], m.ImageVersion) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ImageVersion))) + i-- + dAtA[i] = 0x52 + i -= len(m.ImageID) + copy(dAtA[i:], m.ImageID) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ImageID))) + i-- + dAtA[i] = 0x4a + i -= len(m.BuildID) + copy(dAtA[i:], m.BuildID) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.BuildID))) + i-- + dAtA[i] = 0x42 + i -= len(m.VersionCodename) + copy(dAtA[i:], m.VersionCodename) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.VersionCodename))) + i-- + dAtA[i] = 0x3a + i -= len(m.VersionID) + copy(dAtA[i:], m.VersionID) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.VersionID))) + i-- + dAtA[i] = 0x32 + i -= len(m.Version) + copy(dAtA[i:], m.Version) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Version))) + i-- + dAtA[i] = 0x2a + if len(m.IDLike) > 0 { + for iNdEx := len(m.IDLike) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.IDLike[iNdEx]) + copy(dAtA[i:], m.IDLike[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.IDLike[iNdEx]))) + i-- + dAtA[i] = 0x22 + } + } + i -= len(m.ID) + copy(dAtA[i:], m.ID) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ID))) + i-- + dAtA[i] = 0x1a + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + i -= len(m.PrettyName) + copy(dAtA[i:], m.PrettyName) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.PrettyName))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *Location) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Location) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Location) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.LocationMetadata.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.LocationData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *LocationData) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LocationData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LocationData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.VirtualPath) + copy(dAtA[i:], m.VirtualPath) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.VirtualPath))) + i-- + dAtA[i] = 0x12 + { + size, err := m.Coordinates.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *LocationMetadata) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LocationMetadata) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LocationMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Annotations) > 0 { + keysForAnnotations := make([]string, 0, len(m.Annotations)) + for k := range m.Annotations { + keysForAnnotations = append(keysForAnnotations, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForAnnotations) + for iNdEx := len(keysForAnnotations) - 1; iNdEx >= 0; iNdEx-- { + v := m.Annotations[string(keysForAnnotations[iNdEx])] + baseI := i + i -= len(v) + copy(dAtA[i:], v) + i = encodeVarintGenerated(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 + i -= len(keysForAnnotations[iNdEx]) + copy(dAtA[i:], keysForAnnotations[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(keysForAnnotations[iNdEx]))) + i-- + dAtA[i] = 0xa + i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *Match) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Match) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Match) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Artifact.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + if len(m.MatchDetails) > 0 { + for iNdEx := len(m.MatchDetails) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.MatchDetails[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.RelatedVulnerabilities) > 0 { + for iNdEx := len(m.RelatedVulnerabilities) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.RelatedVulnerabilities[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.Vulnerability.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *MatchDetails) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MatchDetails) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MatchDetails) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Found != nil { + i -= len(m.Found) + copy(dAtA[i:], m.Found) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Found))) + i-- + dAtA[i] = 0x22 + } + if m.SearchedBy != nil { + i -= len(m.SearchedBy) + copy(dAtA[i:], m.SearchedBy) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.SearchedBy))) + i-- + dAtA[i] = 0x1a + } + i -= len(m.Matcher) + copy(dAtA[i:], m.Matcher) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Matcher))) + i-- + dAtA[i] = 0x12 + i -= len(m.Type) + copy(dAtA[i:], m.Type) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *Metadata) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Metadata) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Metadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.Supplier) + copy(dAtA[i:], m.Supplier) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Supplier))) + i-- + dAtA[i] = 0x4a + i -= len(m.Tooling) + copy(dAtA[i:], m.Tooling) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Tooling))) + i-- + dAtA[i] = 0x42 + i = encodeVarintGenerated(dAtA, i, uint64(m.Version)) + i-- + dAtA[i] = 0x38 + i -= len(m.LastUpdated) + copy(dAtA[i:], m.LastUpdated) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.LastUpdated))) + i-- + dAtA[i] = 0x32 + i -= len(m.Timestamp) + copy(dAtA[i:], m.Timestamp) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Timestamp))) + i-- + dAtA[i] = 0x2a + i -= len(m.AuthorRole) + copy(dAtA[i:], m.AuthorRole) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.AuthorRole))) + i-- + dAtA[i] = 0x22 + i -= len(m.Author) + copy(dAtA[i:], m.Author) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Author))) + i-- + dAtA[i] = 0x1a + i -= len(m.ID) + copy(dAtA[i:], m.ID) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ID))) + i-- + dAtA[i] = 0x12 + i -= len(m.Context) + copy(dAtA[i:], m.Context) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Context))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *NetworkNeighbor) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkNeighbor) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkNeighbor) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.IPAddress) + copy(dAtA[i:], m.IPAddress) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.IPAddress))) + i-- + dAtA[i] = 0x42 + if m.NamespaceSelector != nil { + { + size, err := m.NamespaceSelector.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + if m.PodSelector != nil { + { + size, err := m.PodSelector.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if len(m.Ports) > 0 { + for iNdEx := len(m.Ports) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Ports[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if len(m.DNSNames) > 0 { + for iNdEx := len(m.DNSNames) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.DNSNames[iNdEx]) + copy(dAtA[i:], m.DNSNames[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.DNSNames[iNdEx]))) + i-- + dAtA[i] = 0x22 + } + } + i -= len(m.DNS) + copy(dAtA[i:], m.DNS) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.DNS))) + i-- + dAtA[i] = 0x1a + i -= len(m.Type) + copy(dAtA[i:], m.Type) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) + i-- + dAtA[i] = 0x12 + i -= len(m.Identifier) + copy(dAtA[i:], m.Identifier) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Identifier))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *NetworkNeighborhood) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkNeighborhood) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkNeighborhood) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *NetworkNeighborhoodContainer) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkNeighborhoodContainer) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkNeighborhoodContainer) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Egress) > 0 { + for iNdEx := len(m.Egress) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Egress[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.Ingress) > 0 { + for iNdEx := len(m.Ingress) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Ingress[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *NetworkNeighborhoodList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkNeighborhoodList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkNeighborhoodList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Items) > 0 { + for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *NetworkNeighborhoodSpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkNeighborhoodSpec) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkNeighborhoodSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.EphemeralContainers) > 0 { + for iNdEx := len(m.EphemeralContainers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.EphemeralContainers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if len(m.InitContainers) > 0 { + for iNdEx := len(m.InitContainers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.InitContainers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if len(m.Containers) > 0 { + for iNdEx := len(m.Containers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Containers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + { + size, err := m.LabelSelector.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + return len(dAtA) - i, nil +} + +func (m *NetworkNeighbors) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkNeighbors) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkNeighbors) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *NetworkNeighborsList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkNeighborsList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkNeighborsList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Items) > 0 { + for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *NetworkNeighborsSpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkNeighborsSpec) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkNeighborsSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Egress) > 0 { + for iNdEx := len(m.Egress) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Egress[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if len(m.Ingress) > 0 { + for iNdEx := len(m.Ingress) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Ingress[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + { + size, err := m.LabelSelector.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + return len(dAtA) - i, nil +} + +func (m *NetworkPolicy) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkPolicy) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + { + size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + i -= len(m.APIVersion) + copy(dAtA[i:], m.APIVersion) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIVersion))) + i-- + dAtA[i] = 0x12 + i -= len(m.Kind) + copy(dAtA[i:], m.Kind) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *NetworkPolicyEgressRule) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkPolicyEgressRule) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkPolicyEgressRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.To) > 0 { + for iNdEx := len(m.To) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.To[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.Ports) > 0 { + for iNdEx := len(m.Ports) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Ports[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkPolicyIngressRule) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkPolicyIngressRule) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkPolicyIngressRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.From) > 0 { + for iNdEx := len(m.From) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.From[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.Ports) > 0 { + for iNdEx := len(m.Ports) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Ports[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkPolicyList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkPolicyList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkPolicyList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Items) > 0 { + for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *NetworkPolicyPeer) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkPolicyPeer) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkPolicyPeer) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.IPBlock != nil { + { + size, err := m.IPBlock.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.NamespaceSelector != nil { + { + size, err := m.NamespaceSelector.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.PodSelector != nil { + { + size, err := m.PodSelector.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *NetworkPolicyPort) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkPolicyPort) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkPolicyPort) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.EndPort != nil { + i = encodeVarintGenerated(dAtA, i, uint64(*m.EndPort)) + i-- + dAtA[i] = 0x18 + } + if m.Port != nil { + i = encodeVarintGenerated(dAtA, i, uint64(*m.Port)) + i-- + dAtA[i] = 0x10 + } + if m.Protocol != nil { + i -= len(*m.Protocol) + copy(dAtA[i:], *m.Protocol) + i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Protocol))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *NetworkPolicySpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkPolicySpec) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkPolicySpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.PolicyTypes) > 0 { + for iNdEx := len(m.PolicyTypes) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.PolicyTypes[iNdEx]) + copy(dAtA[i:], m.PolicyTypes[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.PolicyTypes[iNdEx]))) + i-- + dAtA[i] = 0x22 + } + } + if len(m.Egress) > 0 { + for iNdEx := len(m.Egress) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Egress[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.Ingress) > 0 { + for iNdEx := len(m.Ingress) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Ingress[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.PodSelector.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *NetworkPolicyStatus) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkPolicyStatus) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkPolicyStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Conditions) > 0 { + for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkPort) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkPort) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkPort) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Port != nil { + i = encodeVarintGenerated(dAtA, i, uint64(*m.Port)) + i-- + dAtA[i] = 0x18 + } + i -= len(m.Protocol) + copy(dAtA[i:], m.Protocol) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Protocol))) + i-- + dAtA[i] = 0x12 + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *OpenCalls) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *OpenCalls) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OpenCalls) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Flags) > 0 { + for iNdEx := len(m.Flags) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Flags[iNdEx]) + copy(dAtA[i:], m.Flags[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Flags[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + i -= len(m.Path) + copy(dAtA[i:], m.Path) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Path))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *OpenVulnerabilityExchangeContainer) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *OpenVulnerabilityExchangeContainer) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OpenVulnerabilityExchangeContainer) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *OpenVulnerabilityExchangeContainerList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *OpenVulnerabilityExchangeContainerList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OpenVulnerabilityExchangeContainerList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Items) > 0 { + for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *PackageBasicData) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PackageBasicData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PackageBasicData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.PURL) + copy(dAtA[i:], m.PURL) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.PURL))) + i-- + dAtA[i] = 0x52 + if len(m.CPEs) > 0 { + for iNdEx := len(m.CPEs) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CPEs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } + } + i -= len(m.Language) + copy(dAtA[i:], m.Language) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Language))) + i-- + dAtA[i] = 0x42 + if len(m.Licenses) > 0 { + for iNdEx := len(m.Licenses) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Licenses[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + } + if len(m.Locations) > 0 { + for iNdEx := len(m.Locations) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Locations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + i -= len(m.FoundBy) + copy(dAtA[i:], m.FoundBy) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.FoundBy))) + i-- + dAtA[i] = 0x2a + i -= len(m.Type) + copy(dAtA[i:], m.Type) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) + i-- + dAtA[i] = 0x22 + i -= len(m.Version) + copy(dAtA[i:], m.Version) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Version))) + i-- + dAtA[i] = 0x1a + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + i -= len(m.ID) + copy(dAtA[i:], m.ID) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ID))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *PackageBasicDataV01011) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PackageBasicDataV01011) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PackageBasicDataV01011) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.PURL) + copy(dAtA[i:], m.PURL) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.PURL))) + i-- + dAtA[i] = 0x52 + if len(m.CPEs) > 0 { + for iNdEx := len(m.CPEs) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.CPEs[iNdEx]) + copy(dAtA[i:], m.CPEs[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.CPEs[iNdEx]))) + i-- + dAtA[i] = 0x4a + } + } + i -= len(m.Language) + copy(dAtA[i:], m.Language) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Language))) + i-- + dAtA[i] = 0x42 + if len(m.Licenses) > 0 { + for iNdEx := len(m.Licenses) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Licenses[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + } + if len(m.Locations) > 0 { + for iNdEx := len(m.Locations) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Locations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + i -= len(m.FoundBy) + copy(dAtA[i:], m.FoundBy) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.FoundBy))) + i-- + dAtA[i] = 0x2a + i -= len(m.Type) + copy(dAtA[i:], m.Type) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) + i-- + dAtA[i] = 0x22 + i -= len(m.Version) + copy(dAtA[i:], m.Version) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Version))) + i-- + dAtA[i] = 0x1a + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + i -= len(m.ID) + copy(dAtA[i:], m.ID) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ID))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *PackageCustomData) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PackageCustomData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PackageCustomData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Metadata != nil { + i -= len(m.Metadata) + copy(dAtA[i:], m.Metadata) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Metadata))) + i-- + dAtA[i] = 0x12 + } + i -= len(m.MetadataType) + copy(dAtA[i:], m.MetadataType) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.MetadataType))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *PolicyRef) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PolicyRef) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PolicyRef) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.Server) + copy(dAtA[i:], m.Server) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Server))) + i-- + dAtA[i] = 0x2a + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x22 + i -= len(m.DNS) + copy(dAtA[i:], m.DNS) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.DNS))) + i-- + dAtA[i] = 0x1a + i -= len(m.OriginalIP) + copy(dAtA[i:], m.OriginalIP) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.OriginalIP))) + i-- + dAtA[i] = 0x12 + i -= len(m.IPBlock) + copy(dAtA[i:], m.IPBlock) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.IPBlock))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *Product) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Product) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Product) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Subcomponents) > 0 { + for iNdEx := len(m.Subcomponents) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Subcomponents[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.Component.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ReportMeta) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ReportMeta) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ReportMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.CreatedAt.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *RulePath) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RulePath) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RulePath) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.FixCommand) + copy(dAtA[i:], m.FixCommand) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.FixCommand))) + i-- + dAtA[i] = 0x22 + i -= len(m.FixPathValue) + copy(dAtA[i:], m.FixPathValue) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.FixPathValue))) + i-- + dAtA[i] = 0x1a + i -= len(m.FixPath) + copy(dAtA[i:], m.FixPath) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.FixPath))) + i-- + dAtA[i] = 0x12 + i -= len(m.FailedPath) + copy(dAtA[i:], m.FailedPath) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.FailedPath))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *RuleStatus) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RuleStatus) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RuleStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.SubStatus) + copy(dAtA[i:], m.SubStatus) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.SubStatus))) + i-- + dAtA[i] = 0x12 + i -= len(m.Status) + copy(dAtA[i:], m.Status) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *SBOMSyft) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SBOMSyft) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SBOMSyft) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *SBOMSyftFiltered) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SBOMSyftFiltered) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SBOMSyftFiltered) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *SBOMSyftFilteredList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SBOMSyftFilteredList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SBOMSyftFilteredList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Items) > 0 { + for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *SBOMSyftList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SBOMSyftList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SBOMSyftList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Items) > 0 { + for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *SBOMSyftSpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SBOMSyftSpec) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SBOMSyftSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Syft.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *SBOMSyftStatus) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SBOMSyftStatus) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SBOMSyftStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *SPDXMeta) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SPDXMeta) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SPDXMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Report.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.Tool.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ScannedControl) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ScannedControl) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ScannedControl) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Rules) > 0 { + for iNdEx := len(m.Rules) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Rules[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + { + size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + { + size, err := m.Severity.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + i -= len(m.ControlID) + copy(dAtA[i:], m.ControlID) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ControlID))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ScannedControlRule) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ScannedControlRule) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ScannedControlRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.RelatedResourcesIDs) > 0 { + for iNdEx := len(m.RelatedResourcesIDs) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.RelatedResourcesIDs[iNdEx]) + copy(dAtA[i:], m.RelatedResourcesIDs[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.RelatedResourcesIDs[iNdEx]))) + i-- + dAtA[i] = 0x32 + } + } + if len(m.AppliedIgnoreRules) > 0 { + for iNdEx := len(m.AppliedIgnoreRules) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.AppliedIgnoreRules[iNdEx]) + copy(dAtA[i:], m.AppliedIgnoreRules[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.AppliedIgnoreRules[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + if len(m.Paths) > 0 { + for iNdEx := len(m.Paths) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Paths[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.ControlConfigurations) > 0 { + keysForControlConfigurations := make([]string, 0, len(m.ControlConfigurations)) + for k := range m.ControlConfigurations { + keysForControlConfigurations = append(keysForControlConfigurations, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForControlConfigurations) + for iNdEx := len(keysForControlConfigurations) - 1; iNdEx >= 0; iNdEx-- { + v := m.ControlConfigurations[string(keysForControlConfigurations[iNdEx])] + baseI := i + i -= len(v) + copy(dAtA[i:], v) + i = encodeVarintGenerated(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 + i -= len(keysForControlConfigurations[iNdEx]) + copy(dAtA[i:], keysForControlConfigurations[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(keysForControlConfigurations[iNdEx]))) + i-- + dAtA[i] = 0xa + i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x1a + } + } + { + size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ScannedControlStatus) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ScannedControlStatus) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ScannedControlStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.Info) + copy(dAtA[i:], m.Info) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Info))) + i-- + dAtA[i] = 0x1a + i -= len(m.SubStatus) + copy(dAtA[i:], m.SubStatus) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.SubStatus))) + i-- + dAtA[i] = 0x12 + i -= len(m.Status) + copy(dAtA[i:], m.Status) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ScannedControlSummary) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ScannedControlSummary) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ScannedControlSummary) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size, err := m.Severity.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + i -= len(m.ControlID) + copy(dAtA[i:], m.ControlID) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ControlID))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *Schema) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Schema) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Schema) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.URL) + copy(dAtA[i:], m.URL) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.URL))) + i-- + dAtA[i] = 0x12 + i -= len(m.Version) + copy(dAtA[i:], m.Version) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Version))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *SeccompProfile) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SeccompProfile) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SeccompProfile) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *SeccompProfileList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SeccompProfileList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SeccompProfileList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Items) > 0 { + for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *SeccompProfileSpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SeccompProfileSpec) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SeccompProfileSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.EphemeralContainers) > 0 { + for iNdEx := len(m.EphemeralContainers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.EphemeralContainers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.InitContainers) > 0 { + for iNdEx := len(m.InitContainers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.InitContainers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.Containers) > 0 { + for iNdEx := len(m.Containers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Containers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *SeccompProfileStatus) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SeccompProfileStatus) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SeccompProfileStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Containers) > 0 { + keysForContainers := make([]string, 0, len(m.Containers)) + for k := range m.Containers { + keysForContainers = append(keysForContainers, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForContainers) + for iNdEx := len(keysForContainers) - 1; iNdEx >= 0; iNdEx-- { + v := m.Containers[string(keysForContainers[iNdEx])] + baseI := i + { + size, err := (&v).MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + i -= len(keysForContainers[iNdEx]) + copy(dAtA[i:], keysForContainers[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(keysForContainers[iNdEx]))) + i-- + dAtA[i] = 0xa + i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *ServiceBackendPort) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ServiceBackendPort) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ServiceBackendPort) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i = encodeVarintGenerated(dAtA, i, uint64(m.Number)) + i-- + dAtA[i] = 0x10 + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *SeveritySummary) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SeveritySummary) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SeveritySummary) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Unknown.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + { + size, err := m.Negligible.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + { + size, err := m.Low.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + { + size, err := m.Medium.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size, err := m.High.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.Critical.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *SingleSeccompProfile) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SingleSeccompProfile) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SingleSeccompProfile) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + i -= len(m.Path) + copy(dAtA[i:], m.Path) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Path))) + i-- + dAtA[i] = 0x12 + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *SingleSeccompProfileSpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SingleSeccompProfileSpec) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SingleSeccompProfileSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Flags) > 0 { + for iNdEx := len(m.Flags) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Flags[iNdEx]) + copy(dAtA[i:], m.Flags[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Flags[iNdEx]))) + i-- + dAtA[i] = 0x42 + } + } + if len(m.Syscalls) > 0 { + for iNdEx := len(m.Syscalls) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Syscalls[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + } + i -= len(m.ListenerMetadata) + copy(dAtA[i:], m.ListenerMetadata) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ListenerMetadata))) + i-- + dAtA[i] = 0x32 + i -= len(m.ListenerPath) + copy(dAtA[i:], m.ListenerPath) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ListenerPath))) + i-- + dAtA[i] = 0x2a + if len(m.Architectures) > 0 { + for iNdEx := len(m.Architectures) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Architectures[iNdEx]) + copy(dAtA[i:], m.Architectures[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Architectures[iNdEx]))) + i-- + dAtA[i] = 0x22 + } + } + i -= len(m.DefaultAction) + copy(dAtA[i:], m.DefaultAction) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.DefaultAction))) + i-- + dAtA[i] = 0x1a + i -= len(m.BaseProfileName) + copy(dAtA[i:], m.BaseProfileName) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.BaseProfileName))) + i-- + dAtA[i] = 0x12 + { + size, err := m.SpecBase.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *SingleSeccompProfileStatus) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SingleSeccompProfileStatus) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SingleSeccompProfileStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.LocalhostProfile) + copy(dAtA[i:], m.LocalhostProfile) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.LocalhostProfile))) + i-- + dAtA[i] = 0x22 + if len(m.ActiveWorkloads) > 0 { + for iNdEx := len(m.ActiveWorkloads) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ActiveWorkloads[iNdEx]) + copy(dAtA[i:], m.ActiveWorkloads[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ActiveWorkloads[iNdEx]))) + i-- + dAtA[i] = 0x1a + } + } + i -= len(m.Path) + copy(dAtA[i:], m.Path) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Path))) + i-- + dAtA[i] = 0x12 + { + size, err := m.StatusBase.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *Source) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Source) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Source) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Target != nil { + i -= len(m.Target) + copy(dAtA[i:], m.Target) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Target))) + i-- + dAtA[i] = 0x12 + } + i -= len(m.Type) + copy(dAtA[i:], m.Type) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *SpecBase) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SpecBase) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SpecBase) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i-- + if m.Disabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + return len(dAtA) - i, nil +} + +func (m *Statement) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Statement) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Statement) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.ActionStatementTimestamp) + copy(dAtA[i:], m.ActionStatementTimestamp) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ActionStatementTimestamp))) + i-- + dAtA[i] = 0x5a + i -= len(m.ActionStatement) + copy(dAtA[i:], m.ActionStatement) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ActionStatement))) + i-- + dAtA[i] = 0x52 + i -= len(m.ImpactStatement) + copy(dAtA[i:], m.ImpactStatement) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ImpactStatement))) + i-- + dAtA[i] = 0x4a + i -= len(m.Justification) + copy(dAtA[i:], m.Justification) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Justification))) + i-- + dAtA[i] = 0x42 + i -= len(m.StatusNotes) + copy(dAtA[i:], m.StatusNotes) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.StatusNotes))) + i-- + dAtA[i] = 0x3a + i -= len(m.Status) + copy(dAtA[i:], m.Status) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status))) + i-- + dAtA[i] = 0x32 + if len(m.Products) > 0 { + for iNdEx := len(m.Products) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Products[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + i -= len(m.LastUpdated) + copy(dAtA[i:], m.LastUpdated) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.LastUpdated))) + i-- + dAtA[i] = 0x22 + i -= len(m.Timestamp) + copy(dAtA[i:], m.Timestamp) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Timestamp))) + i-- + dAtA[i] = 0x1a + { + size, err := m.Vulnerability.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + i -= len(m.ID) + copy(dAtA[i:], m.ID) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ID))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *StatusBase) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *StatusBase) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StatusBase) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.Status) + copy(dAtA[i:], m.Status) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status))) + i-- + dAtA[i] = 0x12 + { + size, err := m.ConditionedStatus.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *Subcomponent) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Subcomponent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Subcomponent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Component.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *SyftCoordinates) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SyftCoordinates) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SyftCoordinates) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.FileSystemID) + copy(dAtA[i:], m.FileSystemID) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.FileSystemID))) + i-- + dAtA[i] = 0x12 + i -= len(m.RealPath) + copy(dAtA[i:], m.RealPath) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.RealPath))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *SyftDescriptor) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SyftDescriptor) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SyftDescriptor) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Configuration != nil { + i -= len(m.Configuration) + copy(dAtA[i:], m.Configuration) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Configuration))) + i-- + dAtA[i] = 0x1a + } + i -= len(m.Version) + copy(dAtA[i:], m.Version) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Version))) + i-- + dAtA[i] = 0x12 + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *SyftDocument) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SyftDocument) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SyftDocument) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Schema.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + { + size, err := m.SyftDescriptor.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + { + size, err := m.Distro.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + { + size, err := m.SyftSource.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + if len(m.Files) > 0 { + for iNdEx := len(m.Files) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Files[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.ArtifactRelationships) > 0 { + for iNdEx := len(m.ArtifactRelationships) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ArtifactRelationships[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.Artifacts) > 0 { + for iNdEx := len(m.Artifacts) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Artifacts[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *SyftFile) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SyftFile) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SyftFile) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Executable != nil { + { + size, err := m.Executable.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + if len(m.Licenses) > 0 { + for iNdEx := len(m.Licenses) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Licenses[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if len(m.Digests) > 0 { + for iNdEx := len(m.Digests) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Digests[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + i -= len(m.Contents) + copy(dAtA[i:], m.Contents) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Contents))) + i-- + dAtA[i] = 0x22 + if m.Metadata != nil { + { + size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + { + size, err := m.Location.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + i -= len(m.ID) + copy(dAtA[i:], m.ID) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ID))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *SyftPackage) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SyftPackage) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SyftPackage) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.PackageCustomData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.PackageBasicData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *SyftRelationship) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SyftRelationship) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SyftRelationship) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Metadata != nil { + i -= len(m.Metadata) + copy(dAtA[i:], m.Metadata) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Metadata))) + i-- + dAtA[i] = 0x22 + } + i -= len(m.Type) + copy(dAtA[i:], m.Type) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) + i-- + dAtA[i] = 0x1a + i -= len(m.Child) + copy(dAtA[i:], m.Child) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Child))) + i-- + dAtA[i] = 0x12 + i -= len(m.Parent) + copy(dAtA[i:], m.Parent) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Parent))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *SyftSource) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SyftSource) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SyftSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Metadata != nil { + i -= len(m.Metadata) + copy(dAtA[i:], m.Metadata) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Metadata))) + i-- + dAtA[i] = 0x2a + } + i -= len(m.Type) + copy(dAtA[i:], m.Type) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) + i-- + dAtA[i] = 0x22 + i -= len(m.Version) + copy(dAtA[i:], m.Version) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Version))) + i-- + dAtA[i] = 0x1a + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + i -= len(m.ID) + copy(dAtA[i:], m.ID) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ID))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *Syscall) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Syscall) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Syscall) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Args) > 0 { + for iNdEx := len(m.Args) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Args[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + i = encodeVarintGenerated(dAtA, i, uint64(m.ErrnoRet)) + i-- + dAtA[i] = 0x18 + i -= len(m.Action) + copy(dAtA[i:], m.Action) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Action))) + i-- + dAtA[i] = 0x12 + if len(m.Names) > 0 { + for iNdEx := len(m.Names) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Names[iNdEx]) + copy(dAtA[i:], m.Names[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Names[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *ToolMeta) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ToolMeta) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ToolMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.Version) + copy(dAtA[i:], m.Version) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Version))) + i-- + dAtA[i] = 0x12 + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *UpstreamPackage) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UpstreamPackage) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UpstreamPackage) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.Version) + copy(dAtA[i:], m.Version) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Version))) + i-- + dAtA[i] = 0x12 + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *VEX) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *VEX) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *VEX) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Statements) > 0 { + for iNdEx := len(m.Statements) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Statements[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *VexVulnerability) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *VexVulnerability) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *VexVulnerability) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Aliases) > 0 { + for iNdEx := len(m.Aliases) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Aliases[iNdEx]) + copy(dAtA[i:], m.Aliases[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Aliases[iNdEx]))) + i-- + dAtA[i] = 0x22 + } + } + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x1a + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + i -= len(m.ID) + copy(dAtA[i:], m.ID) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ID))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *VulnerabilitiesComponents) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *VulnerabilitiesComponents) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *VulnerabilitiesComponents) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.WorkloadVulnerabilitiesObj.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.ImageVulnerabilitiesObj.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *VulnerabilitiesObjScope) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *VulnerabilitiesObjScope) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *VulnerabilitiesObjScope) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.Kind) + copy(dAtA[i:], m.Kind) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind))) + i-- + dAtA[i] = 0x1a + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + i -= len(m.Namespace) + copy(dAtA[i:], m.Namespace) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *Vulnerability) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Vulnerability) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Vulnerability) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Advisories) > 0 { + for iNdEx := len(m.Advisories) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Advisories[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x52 + } + } + { + size, err := m.Fix.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + { + size, err := m.VulnerabilityMetadata.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + return len(dAtA) - i, nil +} + +func (m *VulnerabilityCounters) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *VulnerabilityCounters) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *VulnerabilityCounters) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i = encodeVarintGenerated(dAtA, i, uint64(m.Relevant)) + i-- + dAtA[i] = 0x10 + i = encodeVarintGenerated(dAtA, i, uint64(m.All)) + i-- + dAtA[i] = 0x8 + return len(dAtA) - i, nil +} + +func (m *VulnerabilityManifest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *VulnerabilityManifest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *VulnerabilityManifest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *VulnerabilityManifestList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *VulnerabilityManifestList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *VulnerabilityManifestList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Items) > 0 { + for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *VulnerabilityManifestMeta) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *VulnerabilityManifestMeta) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *VulnerabilityManifestMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Report.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size, err := m.Tool.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + i-- + if m.WithRelevancy { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + return len(dAtA) - i, nil +} + +func (m *VulnerabilityManifestReportMeta) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *VulnerabilityManifestReportMeta) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *VulnerabilityManifestReportMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.CreatedAt.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *VulnerabilityManifestSpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *VulnerabilityManifestSpec) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *VulnerabilityManifestSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Payload.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *VulnerabilityManifestStatus) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *VulnerabilityManifestStatus) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *VulnerabilityManifestStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *VulnerabilityManifestSummary) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *VulnerabilityManifestSummary) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *VulnerabilityManifestSummary) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *VulnerabilityManifestSummaryList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *VulnerabilityManifestSummaryList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *VulnerabilityManifestSummaryList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Items) > 0 { + for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *VulnerabilityManifestSummarySpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *VulnerabilityManifestSummarySpec) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *VulnerabilityManifestSummarySpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Vulnerabilities.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.Severities.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *VulnerabilityManifestToolMeta) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *VulnerabilityManifestToolMeta) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *VulnerabilityManifestToolMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.DatabaseVersion) + copy(dAtA[i:], m.DatabaseVersion) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.DatabaseVersion))) + i-- + dAtA[i] = 0x1a + i -= len(m.Version) + copy(dAtA[i:], m.Version) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Version))) + i-- + dAtA[i] = 0x12 + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *VulnerabilityMetadata) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *VulnerabilityMetadata) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *VulnerabilityMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Cvss) > 0 { + for iNdEx := len(m.Cvss) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Cvss[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + } + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x32 + if len(m.URLs) > 0 { + for iNdEx := len(m.URLs) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.URLs[iNdEx]) + copy(dAtA[i:], m.URLs[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.URLs[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + i -= len(m.Severity) + copy(dAtA[i:], m.Severity) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Severity))) + i-- + dAtA[i] = 0x22 + i -= len(m.Namespace) + copy(dAtA[i:], m.Namespace) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace))) + i-- + dAtA[i] = 0x1a + i -= len(m.DataSource) + copy(dAtA[i:], m.DataSource) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.DataSource))) + i-- + dAtA[i] = 0x12 + i -= len(m.ID) + copy(dAtA[i:], m.ID) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ID))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *VulnerabilitySummary) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *VulnerabilitySummary) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *VulnerabilitySummary) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *VulnerabilitySummaryList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *VulnerabilitySummaryList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *VulnerabilitySummaryList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Items) > 0 { + for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *VulnerabilitySummarySpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *VulnerabilitySummarySpec) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *VulnerabilitySummarySpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.WorkloadVulnerabilitiesObj) > 0 { + for iNdEx := len(m.WorkloadVulnerabilitiesObj) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.WorkloadVulnerabilitiesObj[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.Severities.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *VulnerabilitySummaryStatus) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *VulnerabilitySummaryStatus) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *VulnerabilitySummaryStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *WorkloadConfigurationScan) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *WorkloadConfigurationScan) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WorkloadConfigurationScan) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *WorkloadConfigurationScanList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *WorkloadConfigurationScanList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WorkloadConfigurationScanList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Items) > 0 { + for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *WorkloadConfigurationScanSeveritiesSummary) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *WorkloadConfigurationScanSeveritiesSummary) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WorkloadConfigurationScanSeveritiesSummary) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i = encodeVarintGenerated(dAtA, i, uint64(m.Unknown)) + i-- + dAtA[i] = 0x28 + i = encodeVarintGenerated(dAtA, i, uint64(m.Low)) + i-- + dAtA[i] = 0x20 + i = encodeVarintGenerated(dAtA, i, uint64(m.Medium)) + i-- + dAtA[i] = 0x18 + i = encodeVarintGenerated(dAtA, i, uint64(m.High)) + i-- + dAtA[i] = 0x10 + i = encodeVarintGenerated(dAtA, i, uint64(m.Critical)) + i-- + dAtA[i] = 0x8 + return len(dAtA) - i, nil +} + +func (m *WorkloadConfigurationScanSpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *WorkloadConfigurationScanSpec) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WorkloadConfigurationScanSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.RelatedObjects) > 0 { + for iNdEx := len(m.RelatedObjects) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.RelatedObjects[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.Controls) > 0 { + keysForControls := make([]string, 0, len(m.Controls)) + for k := range m.Controls { + keysForControls = append(keysForControls, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForControls) + for iNdEx := len(keysForControls) - 1; iNdEx >= 0; iNdEx-- { + v := m.Controls[string(keysForControls[iNdEx])] + baseI := i + { + size, err := (&v).MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + i -= len(keysForControls[iNdEx]) + copy(dAtA[i:], keysForControls[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(keysForControls[iNdEx]))) + i-- + dAtA[i] = 0xa + i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x12 + } + } + return len(dAtA) - i, nil +} + +func (m *WorkloadConfigurationScanSummary) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *WorkloadConfigurationScanSummary) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WorkloadConfigurationScanSummary) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *WorkloadConfigurationScanSummaryIdentifier) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *WorkloadConfigurationScanSummaryIdentifier) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WorkloadConfigurationScanSummaryIdentifier) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x1a + i -= len(m.Kind) + copy(dAtA[i:], m.Kind) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind))) + i-- + dAtA[i] = 0x12 + i -= len(m.Namespace) + copy(dAtA[i:], m.Namespace) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *WorkloadConfigurationScanSummaryList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *WorkloadConfigurationScanSummaryList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WorkloadConfigurationScanSummaryList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Items) > 0 { + for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *WorkloadConfigurationScanSummarySpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *WorkloadConfigurationScanSummarySpec) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WorkloadConfigurationScanSummarySpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Controls) > 0 { + keysForControls := make([]string, 0, len(m.Controls)) + for k := range m.Controls { + keysForControls = append(keysForControls, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForControls) + for iNdEx := len(keysForControls) - 1; iNdEx >= 0; iNdEx-- { + v := m.Controls[string(keysForControls[iNdEx])] + baseI := i + { + size, err := (&v).MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + i -= len(keysForControls[iNdEx]) + copy(dAtA[i:], keysForControls[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(keysForControls[iNdEx]))) + i-- + dAtA[i] = 0xa + i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.Severities.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *WorkloadScanRelatedObject) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *WorkloadScanRelatedObject) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WorkloadScanRelatedObject) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x2a + i -= len(m.Kind) + copy(dAtA[i:], m.Kind) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind))) + i-- + dAtA[i] = 0x22 + i -= len(m.APIVersion) + copy(dAtA[i:], m.APIVersion) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIVersion))) + i-- + dAtA[i] = 0x1a + i -= len(m.APIGroup) + copy(dAtA[i:], m.APIGroup) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIGroup))) + i-- + dAtA[i] = 0x12 + i -= len(m.Namespace) + copy(dAtA[i:], m.Namespace) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { + offset -= sovGenerated(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Advisory) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ID) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Link) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *ApplicationActivity) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Spec.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Status.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *ApplicationActivityList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *ApplicationActivitySpec) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Syscalls) > 0 { + for _, s := range m.Syscalls { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *ApplicationActivityStatus) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *ApplicationProfile) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Spec.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Status.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *ApplicationProfileContainer) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Capabilities) > 0 { + for _, s := range m.Capabilities { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.Execs) > 0 { + for _, e := range m.Execs { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.Opens) > 0 { + for _, e := range m.Opens { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.Syscalls) > 0 { + for _, s := range m.Syscalls { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = m.SeccompProfile.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *ApplicationProfileList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *ApplicationProfileSpec) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Architectures) > 0 { + for _, s := range m.Architectures { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.Containers) > 0 { + for _, e := range m.Containers { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.InitContainers) > 0 { + for _, e := range m.InitContainers { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.EphemeralContainers) > 0 { + for _, e := range m.EphemeralContainers { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *ApplicationProfileStatus) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *Arg) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 1 + sovGenerated(uint64(m.Index)) + n += 1 + sovGenerated(uint64(m.Value)) + n += 1 + sovGenerated(uint64(m.ValueTwo)) + l = len(m.Op) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *CPE) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Value) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Source) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *Component) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ID) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Hashes) > 0 { + for k, v := range m.Hashes { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + if len(m.Identifiers) > 0 { + for k, v := range m.Identifiers { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + l = len(m.Supplier) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *Condition) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Type) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Status) + n += 1 + l + sovGenerated(uint64(l)) + l = m.LastTransitionTime.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Reason) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Message) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *ConditionedStatus) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Conditions) > 0 { + for _, e := range m.Conditions { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *ConfigurationScanSummary) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Spec.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *ConfigurationScanSummaryList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *ConfigurationScanSummarySpec) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Severities.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.WorkloadConfigurationScanSummaryIdentifiers) > 0 { + for _, e := range m.WorkloadConfigurationScanSummaryIdentifiers { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *ControlSeverity) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Severity) + n += 1 + l + sovGenerated(uint64(l)) + n += 5 + return n +} + +func (m *Coordinates) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.RealPath) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.FileSystemID) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *Cvss) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Version) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Vector) + n += 1 + l + sovGenerated(uint64(l)) + l = m.Metrics.Size() + n += 1 + l + sovGenerated(uint64(l)) + if m.VendorMetadata != nil { + l = len(m.VendorMetadata) + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *CvssMetrics) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 9 + if m.ExploitabilityScore != nil { + n += 9 + } + if m.ImpactScore != nil { + n += 9 + } + return n +} + +func (m *Descriptor) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Version) + n += 1 + l + sovGenerated(uint64(l)) + if m.Configuration != nil { + l = len(m.Configuration) + n += 1 + l + sovGenerated(uint64(l)) + } + if m.VulnerabilityDBStatus != nil { + l = len(m.VulnerabilityDBStatus) + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *Digest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Algorithm) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Value) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *Distribution) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Version) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.IDLike) > 0 { + for _, s := range m.IDLike { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *ELFSecurityFeatures) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 2 + if m.StackCanary != nil { + n += 2 + } + n += 2 + l = len(m.RelocationReadOnly) + n += 1 + l + sovGenerated(uint64(l)) + n += 2 + n += 2 + if m.LlvmSafeStack != nil { + n += 2 + } + if m.LlvmControlFlowIntegrity != nil { + n += 2 + } + if m.ClangFortifySource != nil { + n += 2 + } + return n +} + +func (m *ExecCalls) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Path) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Args) > 0 { + for _, s := range m.Args { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.Envs) > 0 { + for _, s := range m.Envs { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *Executable) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Format) + n += 1 + l + sovGenerated(uint64(l)) + n += 2 + n += 2 + if len(m.ImportedLibraries) > 0 { + for _, s := range m.ImportedLibraries { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + if m.ELFSecurityFeatures != nil { + l = m.ELFSecurityFeatures.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *FileLicense) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Value) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.SPDXExpression) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Type) + n += 1 + l + sovGenerated(uint64(l)) + if m.Evidence != nil { + l = m.Evidence.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *FileLicenseEvidence) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 1 + sovGenerated(uint64(m.Confidence)) + n += 1 + sovGenerated(uint64(m.Offset)) + n += 1 + sovGenerated(uint64(m.Extent)) + return n +} + +func (m *FileMetadataEntry) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 1 + sovGenerated(uint64(m.Mode)) + l = len(m.Type) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.LinkDestination) + n += 1 + l + sovGenerated(uint64(l)) + n += 1 + sovGenerated(uint64(m.UserID)) + n += 1 + sovGenerated(uint64(m.GroupID)) + l = len(m.MIMEType) + n += 1 + l + sovGenerated(uint64(l)) + n += 1 + sovGenerated(uint64(m.Size_)) + return n +} + +func (m *Fix) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Versions) > 0 { + for _, s := range m.Versions { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = len(m.State) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *GeneratedNetworkPolicy) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Spec.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.PoliciesRef) > 0 { + for _, e := range m.PoliciesRef { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *GeneratedNetworkPolicyList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *GrypeDocument) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Matches) > 0 { + for _, e := range m.Matches { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.IgnoredMatches) > 0 { + for _, e := range m.IgnoredMatches { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if m.Source != nil { + l = m.Source.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + l = m.Distro.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Descriptor_.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *GrypePackage) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Version) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Type) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Locations) > 0 { + for _, e := range m.Locations { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = len(m.Language) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Licenses) > 0 { + for _, s := range m.Licenses { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.CPEs) > 0 { + for _, s := range m.CPEs { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = len(m.PURL) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Upstreams) > 0 { + for _, e := range m.Upstreams { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = len(m.MetadataType) + n += 1 + l + sovGenerated(uint64(l)) + if m.Metadata != nil { + l = len(m.Metadata) + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *HTTPIngressPath) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Path) + n += 1 + l + sovGenerated(uint64(l)) + l = m.Backend.Size() + n += 1 + l + sovGenerated(uint64(l)) + if m.PathType != nil { + l = len(*m.PathType) + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *HTTPIngressRuleValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Paths) > 0 { + for _, e := range m.Paths { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *IPBlock) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.CIDR) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Except) > 0 { + for _, s := range m.Except { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *IgnoreRule) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Vulnerability) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.FixState) + n += 1 + l + sovGenerated(uint64(l)) + if m.Package != nil { + l = m.Package.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *IgnoreRulePackage) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Version) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Type) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Location) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.UpstreamName) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *IgnoredMatch) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Match.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.AppliedIgnoreRules) > 0 { + for _, e := range m.AppliedIgnoreRules { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *Ingress) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Spec.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Status.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *IngressBackend) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Resource != nil { + l = m.Resource.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.Service != nil { + l = m.Service.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *IngressClass) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Spec.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *IngressClassList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *IngressClassParametersReference) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.APIGroup != nil { + l = len(*m.APIGroup) + n += 1 + l + sovGenerated(uint64(l)) + } + l = len(m.Kind) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + if m.Scope != nil { + l = len(*m.Scope) + n += 1 + l + sovGenerated(uint64(l)) + } + if m.Namespace != nil { + l = len(*m.Namespace) + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *IngressClassSpec) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Controller) + n += 1 + l + sovGenerated(uint64(l)) + if m.Parameters != nil { + l = m.Parameters.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *IngressList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *IngressLoadBalancerIngress) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.IP) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Hostname) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Ports) > 0 { + for _, e := range m.Ports { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *IngressLoadBalancerStatus) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Ingress) > 0 { + for _, e := range m.Ingress { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *IngressPortStatus) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 1 + sovGenerated(uint64(m.Port)) + l = len(m.Protocol) + n += 1 + l + sovGenerated(uint64(l)) + if m.Error != nil { + l = len(*m.Error) + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *IngressRule) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Host) + n += 1 + l + sovGenerated(uint64(l)) + l = m.IngressRuleValue.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *IngressRuleValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.HTTP != nil { + l = m.HTTP.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *IngressServiceBackend) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + l = m.Port.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *IngressSpec) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.DefaultBackend != nil { + l = m.DefaultBackend.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if len(m.TLS) > 0 { + for _, e := range m.TLS { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.Rules) > 0 { + for _, e := range m.Rules { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if m.IngressClassName != nil { + l = len(*m.IngressClassName) + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *IngressStatus) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.LoadBalancer.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *IngressTLS) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Hosts) > 0 { + for _, s := range m.Hosts { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = len(m.SecretName) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *KnownServer) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Spec) > 0 { + for _, e := range m.Spec { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *KnownServerEntry) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.IPBlock) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Server) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *KnownServerList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *License) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Value) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.SPDXExpression) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Type) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.URLs) > 0 { + for _, s := range m.URLs { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.Locations) > 0 { + for _, e := range m.Locations { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *LinuxRelease) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.PrettyName) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.ID) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.IDLike) > 0 { + for _, s := range m.IDLike { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = len(m.Version) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.VersionID) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.VersionCodename) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.BuildID) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.ImageID) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.ImageVersion) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Variant) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.VariantID) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.HomeURL) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.SupportURL) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.BugReportURL) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.PrivacyPolicyURL) + n += 2 + l + sovGenerated(uint64(l)) + l = len(m.CPEName) + n += 2 + l + sovGenerated(uint64(l)) + l = len(m.SupportEnd) + n += 2 + l + sovGenerated(uint64(l)) + return n +} + +func (m *Location) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.LocationData.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.LocationMetadata.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *LocationData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Coordinates.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.VirtualPath) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *LocationMetadata) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Annotations) > 0 { + for k, v := range m.Annotations { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + return n +} + +func (m *Match) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Vulnerability.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.RelatedVulnerabilities) > 0 { + for _, e := range m.RelatedVulnerabilities { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.MatchDetails) > 0 { + for _, e := range m.MatchDetails { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = m.Artifact.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *MatchDetails) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Type) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Matcher) + n += 1 + l + sovGenerated(uint64(l)) + if m.SearchedBy != nil { + l = len(m.SearchedBy) + n += 1 + l + sovGenerated(uint64(l)) + } + if m.Found != nil { + l = len(m.Found) + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *Metadata) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Context) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.ID) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Author) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.AuthorRole) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Timestamp) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.LastUpdated) + n += 1 + l + sovGenerated(uint64(l)) + n += 1 + sovGenerated(uint64(m.Version)) + l = len(m.Tooling) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Supplier) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *NetworkNeighbor) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Identifier) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Type) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.DNS) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.DNSNames) > 0 { + for _, s := range m.DNSNames { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.Ports) > 0 { + for _, e := range m.Ports { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if m.PodSelector != nil { + l = m.PodSelector.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.NamespaceSelector != nil { + l = m.NamespaceSelector.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + l = len(m.IPAddress) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *NetworkNeighborhood) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Spec.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *NetworkNeighborhoodContainer) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Ingress) > 0 { + for _, e := range m.Ingress { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.Egress) > 0 { + for _, e := range m.Egress { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *NetworkNeighborhoodList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *NetworkNeighborhoodSpec) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.LabelSelector.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Containers) > 0 { + for _, e := range m.Containers { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.InitContainers) > 0 { + for _, e := range m.InitContainers { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.EphemeralContainers) > 0 { + for _, e := range m.EphemeralContainers { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *NetworkNeighbors) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Spec.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *NetworkNeighborsList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *NetworkNeighborsSpec) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.LabelSelector.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Ingress) > 0 { + for _, e := range m.Ingress { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.Egress) > 0 { + for _, e := range m.Egress { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *NetworkPolicy) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Kind) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.APIVersion) + n += 1 + l + sovGenerated(uint64(l)) + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Spec.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *NetworkPolicyEgressRule) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Ports) > 0 { + for _, e := range m.Ports { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.To) > 0 { + for _, e := range m.To { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *NetworkPolicyIngressRule) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Ports) > 0 { + for _, e := range m.Ports { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.From) > 0 { + for _, e := range m.From { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *NetworkPolicyList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *NetworkPolicyPeer) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PodSelector != nil { + l = m.PodSelector.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.NamespaceSelector != nil { + l = m.NamespaceSelector.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.IPBlock != nil { + l = m.IPBlock.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *NetworkPolicyPort) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Protocol != nil { + l = len(*m.Protocol) + n += 1 + l + sovGenerated(uint64(l)) + } + if m.Port != nil { + n += 1 + sovGenerated(uint64(*m.Port)) + } + if m.EndPort != nil { + n += 1 + sovGenerated(uint64(*m.EndPort)) + } + return n +} + +func (m *NetworkPolicySpec) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.PodSelector.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Ingress) > 0 { + for _, e := range m.Ingress { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.Egress) > 0 { + for _, e := range m.Egress { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.PolicyTypes) > 0 { + for _, s := range m.PolicyTypes { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *NetworkPolicyStatus) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Conditions) > 0 { + for _, e := range m.Conditions { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *NetworkPort) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Protocol) + n += 1 + l + sovGenerated(uint64(l)) + if m.Port != nil { + n += 1 + sovGenerated(uint64(*m.Port)) + } + return n +} + +func (m *OpenCalls) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Path) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Flags) > 0 { + for _, s := range m.Flags { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *OpenVulnerabilityExchangeContainer) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Spec.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *OpenVulnerabilityExchangeContainerList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *PackageBasicData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ID) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Version) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Type) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.FoundBy) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Locations) > 0 { + for _, e := range m.Locations { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.Licenses) > 0 { + for _, e := range m.Licenses { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = len(m.Language) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.CPEs) > 0 { + for _, e := range m.CPEs { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = len(m.PURL) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *PackageBasicDataV01011) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ID) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Version) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Type) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.FoundBy) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Locations) > 0 { + for _, e := range m.Locations { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.Licenses) > 0 { + for _, e := range m.Licenses { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = len(m.Language) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.CPEs) > 0 { + for _, s := range m.CPEs { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = len(m.PURL) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *PackageCustomData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.MetadataType) + n += 1 + l + sovGenerated(uint64(l)) + if m.Metadata != nil { + l = len(m.Metadata) + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *PolicyRef) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.IPBlock) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.OriginalIP) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.DNS) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Server) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *Product) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Component.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Subcomponents) > 0 { + for _, e := range m.Subcomponents { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *ReportMeta) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CreatedAt.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *RulePath) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.FailedPath) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.FixPath) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.FixPathValue) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.FixCommand) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *RuleStatus) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Status) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.SubStatus) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *SBOMSyft) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Spec.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Status.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *SBOMSyftFiltered) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Spec.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Status.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *SBOMSyftFilteredList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *SBOMSyftList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *SBOMSyftSpec) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Metadata.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Syft.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *SBOMSyftStatus) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *SPDXMeta) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Tool.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Report.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *ScannedControl) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ControlID) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + l = m.Severity.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Status.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Rules) > 0 { + for _, e := range m.Rules { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *ScannedControlRule) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + l = m.Status.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.ControlConfigurations) > 0 { + for k, v := range m.ControlConfigurations { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + if len(m.Paths) > 0 { + for _, e := range m.Paths { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.AppliedIgnoreRules) > 0 { + for _, s := range m.AppliedIgnoreRules { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.RelatedResourcesIDs) > 0 { + for _, s := range m.RelatedResourcesIDs { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *ScannedControlStatus) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Status) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.SubStatus) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Info) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *ScannedControlSummary) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ControlID) + n += 1 + l + sovGenerated(uint64(l)) + l = m.Severity.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Status.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *Schema) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Version) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.URL) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *SeccompProfile) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Spec.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Status.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *SeccompProfileList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *SeccompProfileSpec) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Containers) > 0 { + for _, e := range m.Containers { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.InitContainers) > 0 { + for _, e := range m.InitContainers { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.EphemeralContainers) > 0 { + for _, e := range m.EphemeralContainers { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *SeccompProfileStatus) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Containers) > 0 { + for k, v := range m.Containers { + _ = k + _ = v + l = v.Size() + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + return n +} + +func (m *ServiceBackendPort) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + n += 1 + sovGenerated(uint64(m.Number)) + return n +} + +func (m *SeveritySummary) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Critical.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.High.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Medium.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Low.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Negligible.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Unknown.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *SingleSeccompProfile) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Path) + n += 1 + l + sovGenerated(uint64(l)) + l = m.Spec.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *SingleSeccompProfileSpec) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.SpecBase.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.BaseProfileName) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.DefaultAction) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Architectures) > 0 { + for _, s := range m.Architectures { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = len(m.ListenerPath) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.ListenerMetadata) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Syscalls) > 0 { + for _, e := range m.Syscalls { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.Flags) > 0 { + for _, s := range m.Flags { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *SingleSeccompProfileStatus) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.StatusBase.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Path) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.ActiveWorkloads) > 0 { + for _, s := range m.ActiveWorkloads { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = len(m.LocalhostProfile) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *Source) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Type) + n += 1 + l + sovGenerated(uint64(l)) + if m.Target != nil { + l = len(m.Target) + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *SpecBase) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 2 + return n +} + +func (m *Statement) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ID) + n += 1 + l + sovGenerated(uint64(l)) + l = m.Vulnerability.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Timestamp) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.LastUpdated) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Products) > 0 { + for _, e := range m.Products { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = len(m.Status) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.StatusNotes) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Justification) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.ImpactStatement) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.ActionStatement) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.ActionStatementTimestamp) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *StatusBase) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ConditionedStatus.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Status) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *Subcomponent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Component.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *SyftCoordinates) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.RealPath) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.FileSystemID) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *SyftDescriptor) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Version) + n += 1 + l + sovGenerated(uint64(l)) + if m.Configuration != nil { + l = len(m.Configuration) + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *SyftDocument) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Artifacts) > 0 { + for _, e := range m.Artifacts { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.ArtifactRelationships) > 0 { + for _, e := range m.ArtifactRelationships { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.Files) > 0 { + for _, e := range m.Files { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = m.SyftSource.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Distro.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.SyftDescriptor.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Schema.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *SyftFile) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ID) + n += 1 + l + sovGenerated(uint64(l)) + l = m.Location.Size() + n += 1 + l + sovGenerated(uint64(l)) + if m.Metadata != nil { + l = m.Metadata.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + l = len(m.Contents) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Digests) > 0 { + for _, e := range m.Digests { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.Licenses) > 0 { + for _, e := range m.Licenses { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if m.Executable != nil { + l = m.Executable.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *SyftPackage) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.PackageBasicData.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.PackageCustomData.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *SyftRelationship) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Parent) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Child) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Type) + n += 1 + l + sovGenerated(uint64(l)) + if m.Metadata != nil { + l = len(m.Metadata) + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *SyftSource) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ID) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Version) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Type) + n += 1 + l + sovGenerated(uint64(l)) + if m.Metadata != nil { + l = len(m.Metadata) + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *Syscall) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Names) > 0 { + for _, s := range m.Names { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = len(m.Action) + n += 1 + l + sovGenerated(uint64(l)) + n += 1 + sovGenerated(uint64(m.ErrnoRet)) + if len(m.Args) > 0 { + for _, e := range m.Args { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *ToolMeta) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Version) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *UpstreamPackage) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Version) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *VEX) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Metadata.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Statements) > 0 { + for _, e := range m.Statements { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *VexVulnerability) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ID) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Description) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Aliases) > 0 { + for _, s := range m.Aliases { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *VulnerabilitiesComponents) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ImageVulnerabilitiesObj.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.WorkloadVulnerabilitiesObj.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *VulnerabilitiesObjScope) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Namespace) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Kind) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *Vulnerability) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.VulnerabilityMetadata.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Fix.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Advisories) > 0 { + for _, e := range m.Advisories { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *VulnerabilityCounters) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 1 + sovGenerated(uint64(m.All)) + n += 1 + sovGenerated(uint64(m.Relevant)) + return n +} + +func (m *VulnerabilityManifest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Spec.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Status.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *VulnerabilityManifestList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *VulnerabilityManifestMeta) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 2 + l = m.Tool.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Report.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *VulnerabilityManifestReportMeta) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CreatedAt.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *VulnerabilityManifestSpec) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Metadata.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Payload.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *VulnerabilityManifestStatus) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *VulnerabilityManifestSummary) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Spec.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Status.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *VulnerabilityManifestSummaryList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *VulnerabilityManifestSummarySpec) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Severities.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Vulnerabilities.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *VulnerabilityManifestToolMeta) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Version) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.DatabaseVersion) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *VulnerabilityMetadata) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ID) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.DataSource) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Namespace) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Severity) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.URLs) > 0 { + for _, s := range m.URLs { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = len(m.Description) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Cvss) > 0 { + for _, e := range m.Cvss { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *VulnerabilitySummary) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Spec.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Status.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *VulnerabilitySummaryList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *VulnerabilitySummarySpec) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Severities.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.WorkloadVulnerabilitiesObj) > 0 { + for _, e := range m.WorkloadVulnerabilitiesObj { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *VulnerabilitySummaryStatus) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *WorkloadConfigurationScan) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Spec.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *WorkloadConfigurationScanList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *WorkloadConfigurationScanSeveritiesSummary) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 1 + sovGenerated(uint64(m.Critical)) + n += 1 + sovGenerated(uint64(m.High)) + n += 1 + sovGenerated(uint64(m.Medium)) + n += 1 + sovGenerated(uint64(m.Low)) + n += 1 + sovGenerated(uint64(m.Unknown)) + return n +} + +func (m *WorkloadConfigurationScanSpec) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Controls) > 0 { + for k, v := range m.Controls { + _ = k + _ = v + l = v.Size() + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + if len(m.RelatedObjects) > 0 { + for _, e := range m.RelatedObjects { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *WorkloadConfigurationScanSummary) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Spec.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *WorkloadConfigurationScanSummaryIdentifier) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Namespace) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Kind) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *WorkloadConfigurationScanSummaryList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *WorkloadConfigurationScanSummarySpec) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Severities.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Controls) > 0 { + for k, v := range m.Controls { + _ = k + _ = v + l = v.Size() + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + return n +} + +func (m *WorkloadScanRelatedObject) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Namespace) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.APIGroup) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.APIVersion) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Kind) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func sovGenerated(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozGenerated(x uint64) (n int) { + return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (this *Advisory) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Advisory{`, + `ID:` + fmt.Sprintf("%v", this.ID) + `,`, + `Link:` + fmt.Sprintf("%v", this.Link) + `,`, + `}`, + }, "") + return s +} +func (this *ApplicationActivity) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ApplicationActivity{`, + `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ApplicationActivitySpec", "ApplicationActivitySpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ApplicationActivityStatus", "ApplicationActivityStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ApplicationActivityList) String() string { + if this == nil { + return "nil" + } + repeatedStringForItems := "[]ApplicationActivity{" + for _, f := range this.Items { + repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ApplicationActivity", "ApplicationActivity", 1), `&`, ``, 1) + "," + } + repeatedStringForItems += "}" + s := strings.Join([]string{`&ApplicationActivityList{`, + `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + repeatedStringForItems + `,`, + `}`, + }, "") + return s +} +func (this *ApplicationActivitySpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ApplicationActivitySpec{`, + `Syscalls:` + fmt.Sprintf("%v", this.Syscalls) + `,`, + `}`, + }, "") + return s +} +func (this *ApplicationActivityStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ApplicationActivityStatus{`, + `}`, + }, "") + return s +} +func (this *ApplicationProfile) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ApplicationProfile{`, + `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ApplicationProfileSpec", "ApplicationProfileSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ApplicationProfileStatus", "ApplicationProfileStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ApplicationProfileContainer) String() string { + if this == nil { + return "nil" + } + repeatedStringForExecs := "[]ExecCalls{" + for _, f := range this.Execs { + repeatedStringForExecs += strings.Replace(strings.Replace(f.String(), "ExecCalls", "ExecCalls", 1), `&`, ``, 1) + "," + } + repeatedStringForExecs += "}" + repeatedStringForOpens := "[]OpenCalls{" + for _, f := range this.Opens { + repeatedStringForOpens += strings.Replace(strings.Replace(f.String(), "OpenCalls", "OpenCalls", 1), `&`, ``, 1) + "," + } + repeatedStringForOpens += "}" + s := strings.Join([]string{`&ApplicationProfileContainer{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Capabilities:` + fmt.Sprintf("%v", this.Capabilities) + `,`, + `Execs:` + repeatedStringForExecs + `,`, + `Opens:` + repeatedStringForOpens + `,`, + `Syscalls:` + fmt.Sprintf("%v", this.Syscalls) + `,`, + `SeccompProfile:` + strings.Replace(strings.Replace(this.SeccompProfile.String(), "SingleSeccompProfile", "SingleSeccompProfile", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ApplicationProfileList) String() string { + if this == nil { + return "nil" + } + repeatedStringForItems := "[]ApplicationProfile{" + for _, f := range this.Items { + repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ApplicationProfile", "ApplicationProfile", 1), `&`, ``, 1) + "," + } + repeatedStringForItems += "}" + s := strings.Join([]string{`&ApplicationProfileList{`, + `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + repeatedStringForItems + `,`, + `}`, + }, "") + return s +} +func (this *ApplicationProfileSpec) String() string { + if this == nil { + return "nil" + } + repeatedStringForContainers := "[]ApplicationProfileContainer{" + for _, f := range this.Containers { + repeatedStringForContainers += strings.Replace(strings.Replace(f.String(), "ApplicationProfileContainer", "ApplicationProfileContainer", 1), `&`, ``, 1) + "," + } + repeatedStringForContainers += "}" + repeatedStringForInitContainers := "[]ApplicationProfileContainer{" + for _, f := range this.InitContainers { + repeatedStringForInitContainers += strings.Replace(strings.Replace(f.String(), "ApplicationProfileContainer", "ApplicationProfileContainer", 1), `&`, ``, 1) + "," + } + repeatedStringForInitContainers += "}" + repeatedStringForEphemeralContainers := "[]ApplicationProfileContainer{" + for _, f := range this.EphemeralContainers { + repeatedStringForEphemeralContainers += strings.Replace(strings.Replace(f.String(), "ApplicationProfileContainer", "ApplicationProfileContainer", 1), `&`, ``, 1) + "," + } + repeatedStringForEphemeralContainers += "}" + s := strings.Join([]string{`&ApplicationProfileSpec{`, + `Architectures:` + fmt.Sprintf("%v", this.Architectures) + `,`, + `Containers:` + repeatedStringForContainers + `,`, + `InitContainers:` + repeatedStringForInitContainers + `,`, + `EphemeralContainers:` + repeatedStringForEphemeralContainers + `,`, + `}`, + }, "") + return s +} +func (this *ApplicationProfileStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ApplicationProfileStatus{`, + `}`, + }, "") + return s +} +func (this *Arg) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Arg{`, + `Index:` + fmt.Sprintf("%v", this.Index) + `,`, + `Value:` + fmt.Sprintf("%v", this.Value) + `,`, + `ValueTwo:` + fmt.Sprintf("%v", this.ValueTwo) + `,`, + `Op:` + fmt.Sprintf("%v", this.Op) + `,`, + `}`, + }, "") + return s +} +func (this *CPE) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&CPE{`, + `Value:` + fmt.Sprintf("%v", this.Value) + `,`, + `Source:` + fmt.Sprintf("%v", this.Source) + `,`, + `}`, + }, "") + return s +} +func (this *Component) String() string { + if this == nil { + return "nil" + } + keysForHashes := make([]string, 0, len(this.Hashes)) + for k := range this.Hashes { + keysForHashes = append(keysForHashes, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForHashes) + mapStringForHashes := "map[Algorithm]Hash{" + for _, k := range keysForHashes { + mapStringForHashes += fmt.Sprintf("%v: %v,", k, this.Hashes[Algorithm(k)]) + } + mapStringForHashes += "}" + keysForIdentifiers := make([]string, 0, len(this.Identifiers)) + for k := range this.Identifiers { + keysForIdentifiers = append(keysForIdentifiers, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForIdentifiers) + mapStringForIdentifiers := "map[IdentifierType]string{" + for _, k := range keysForIdentifiers { + mapStringForIdentifiers += fmt.Sprintf("%v: %v,", k, this.Identifiers[IdentifierType(k)]) + } + mapStringForIdentifiers += "}" + s := strings.Join([]string{`&Component{`, + `ID:` + fmt.Sprintf("%v", this.ID) + `,`, + `Hashes:` + mapStringForHashes + `,`, + `Identifiers:` + mapStringForIdentifiers + `,`, + `Supplier:` + fmt.Sprintf("%v", this.Supplier) + `,`, + `}`, + }, "") + return s +} +func (this *Condition) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Condition{`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `Status:` + fmt.Sprintf("%v", this.Status) + `,`, + `LastTransitionTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastTransitionTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, + `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, + `Message:` + fmt.Sprintf("%v", this.Message) + `,`, + `}`, + }, "") + return s +} +func (this *ConditionedStatus) String() string { + if this == nil { + return "nil" + } + repeatedStringForConditions := "[]Condition{" + for _, f := range this.Conditions { + repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "Condition", "Condition", 1), `&`, ``, 1) + "," + } + repeatedStringForConditions += "}" + s := strings.Join([]string{`&ConditionedStatus{`, + `Conditions:` + repeatedStringForConditions + `,`, + `}`, + }, "") + return s +} +func (this *ConfigurationScanSummary) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ConfigurationScanSummary{`, + `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ConfigurationScanSummarySpec", "ConfigurationScanSummarySpec", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ConfigurationScanSummaryList) String() string { + if this == nil { + return "nil" + } + repeatedStringForItems := "[]ConfigurationScanSummary{" + for _, f := range this.Items { + repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ConfigurationScanSummary", "ConfigurationScanSummary", 1), `&`, ``, 1) + "," + } + repeatedStringForItems += "}" + s := strings.Join([]string{`&ConfigurationScanSummaryList{`, + `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + repeatedStringForItems + `,`, + `}`, + }, "") + return s +} +func (this *ConfigurationScanSummarySpec) String() string { + if this == nil { + return "nil" + } + repeatedStringForWorkloadConfigurationScanSummaryIdentifiers := "[]WorkloadConfigurationScanSummaryIdentifier{" + for _, f := range this.WorkloadConfigurationScanSummaryIdentifiers { + repeatedStringForWorkloadConfigurationScanSummaryIdentifiers += strings.Replace(strings.Replace(f.String(), "WorkloadConfigurationScanSummaryIdentifier", "WorkloadConfigurationScanSummaryIdentifier", 1), `&`, ``, 1) + "," + } + repeatedStringForWorkloadConfigurationScanSummaryIdentifiers += "}" + s := strings.Join([]string{`&ConfigurationScanSummarySpec{`, + `Severities:` + strings.Replace(strings.Replace(this.Severities.String(), "WorkloadConfigurationScanSeveritiesSummary", "WorkloadConfigurationScanSeveritiesSummary", 1), `&`, ``, 1) + `,`, + `WorkloadConfigurationScanSummaryIdentifiers:` + repeatedStringForWorkloadConfigurationScanSummaryIdentifiers + `,`, + `}`, + }, "") + return s +} +func (this *ControlSeverity) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ControlSeverity{`, + `Severity:` + fmt.Sprintf("%v", this.Severity) + `,`, + `ScoreFactor:` + fmt.Sprintf("%v", this.ScoreFactor) + `,`, + `}`, + }, "") + return s +} +func (this *Coordinates) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Coordinates{`, + `RealPath:` + fmt.Sprintf("%v", this.RealPath) + `,`, + `FileSystemID:` + fmt.Sprintf("%v", this.FileSystemID) + `,`, + `}`, + }, "") + return s +} +func (this *Cvss) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Cvss{`, + `Version:` + fmt.Sprintf("%v", this.Version) + `,`, + `Vector:` + fmt.Sprintf("%v", this.Vector) + `,`, + `Metrics:` + strings.Replace(strings.Replace(this.Metrics.String(), "CvssMetrics", "CvssMetrics", 1), `&`, ``, 1) + `,`, + `VendorMetadata:` + valueToStringGenerated(this.VendorMetadata) + `,`, + `}`, + }, "") + return s +} +func (this *CvssMetrics) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&CvssMetrics{`, + `BaseScore:` + fmt.Sprintf("%v", this.BaseScore) + `,`, + `ExploitabilityScore:` + valueToStringGenerated(this.ExploitabilityScore) + `,`, + `ImpactScore:` + valueToStringGenerated(this.ImpactScore) + `,`, + `}`, + }, "") + return s +} +func (this *Descriptor) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Descriptor{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Version:` + fmt.Sprintf("%v", this.Version) + `,`, + `Configuration:` + valueToStringGenerated(this.Configuration) + `,`, + `VulnerabilityDBStatus:` + valueToStringGenerated(this.VulnerabilityDBStatus) + `,`, + `}`, + }, "") + return s +} +func (this *Digest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Digest{`, + `Algorithm:` + fmt.Sprintf("%v", this.Algorithm) + `,`, + `Value:` + fmt.Sprintf("%v", this.Value) + `,`, + `}`, + }, "") + return s +} +func (this *Distribution) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Distribution{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Version:` + fmt.Sprintf("%v", this.Version) + `,`, + `IDLike:` + fmt.Sprintf("%v", this.IDLike) + `,`, + `}`, + }, "") + return s +} +func (this *ELFSecurityFeatures) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ELFSecurityFeatures{`, + `SymbolTableStripped:` + fmt.Sprintf("%v", this.SymbolTableStripped) + `,`, + `StackCanary:` + valueToStringGenerated(this.StackCanary) + `,`, + `NoExecutable:` + fmt.Sprintf("%v", this.NoExecutable) + `,`, + `RelocationReadOnly:` + fmt.Sprintf("%v", this.RelocationReadOnly) + `,`, + `PositionIndependentExecutable:` + fmt.Sprintf("%v", this.PositionIndependentExecutable) + `,`, + `DynamicSharedObject:` + fmt.Sprintf("%v", this.DynamicSharedObject) + `,`, + `LlvmSafeStack:` + valueToStringGenerated(this.LlvmSafeStack) + `,`, + `LlvmControlFlowIntegrity:` + valueToStringGenerated(this.LlvmControlFlowIntegrity) + `,`, + `ClangFortifySource:` + valueToStringGenerated(this.ClangFortifySource) + `,`, + `}`, + }, "") + return s +} +func (this *ExecCalls) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ExecCalls{`, + `Path:` + fmt.Sprintf("%v", this.Path) + `,`, + `Args:` + fmt.Sprintf("%v", this.Args) + `,`, + `Envs:` + fmt.Sprintf("%v", this.Envs) + `,`, + `}`, + }, "") + return s +} +func (this *Executable) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Executable{`, + `Format:` + fmt.Sprintf("%v", this.Format) + `,`, + `HasExports:` + fmt.Sprintf("%v", this.HasExports) + `,`, + `HasEntrypoint:` + fmt.Sprintf("%v", this.HasEntrypoint) + `,`, + `ImportedLibraries:` + fmt.Sprintf("%v", this.ImportedLibraries) + `,`, + `ELFSecurityFeatures:` + strings.Replace(this.ELFSecurityFeatures.String(), "ELFSecurityFeatures", "ELFSecurityFeatures", 1) + `,`, + `}`, + }, "") + return s +} +func (this *FileLicense) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&FileLicense{`, + `Value:` + fmt.Sprintf("%v", this.Value) + `,`, + `SPDXExpression:` + fmt.Sprintf("%v", this.SPDXExpression) + `,`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `Evidence:` + strings.Replace(this.Evidence.String(), "FileLicenseEvidence", "FileLicenseEvidence", 1) + `,`, + `}`, + }, "") + return s +} +func (this *FileLicenseEvidence) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&FileLicenseEvidence{`, + `Confidence:` + fmt.Sprintf("%v", this.Confidence) + `,`, + `Offset:` + fmt.Sprintf("%v", this.Offset) + `,`, + `Extent:` + fmt.Sprintf("%v", this.Extent) + `,`, + `}`, + }, "") + return s +} +func (this *FileMetadataEntry) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&FileMetadataEntry{`, + `Mode:` + fmt.Sprintf("%v", this.Mode) + `,`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `LinkDestination:` + fmt.Sprintf("%v", this.LinkDestination) + `,`, + `UserID:` + fmt.Sprintf("%v", this.UserID) + `,`, + `GroupID:` + fmt.Sprintf("%v", this.GroupID) + `,`, + `MIMEType:` + fmt.Sprintf("%v", this.MIMEType) + `,`, + `Size_:` + fmt.Sprintf("%v", this.Size_) + `,`, + `}`, + }, "") + return s +} +func (this *Fix) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Fix{`, + `Versions:` + fmt.Sprintf("%v", this.Versions) + `,`, + `State:` + fmt.Sprintf("%v", this.State) + `,`, + `}`, + }, "") + return s +} +func (this *GeneratedNetworkPolicy) String() string { + if this == nil { + return "nil" + } + repeatedStringForPoliciesRef := "[]PolicyRef{" + for _, f := range this.PoliciesRef { + repeatedStringForPoliciesRef += strings.Replace(strings.Replace(f.String(), "PolicyRef", "PolicyRef", 1), `&`, ``, 1) + "," + } + repeatedStringForPoliciesRef += "}" + s := strings.Join([]string{`&GeneratedNetworkPolicy{`, + `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "NetworkPolicy", "NetworkPolicy", 1), `&`, ``, 1) + `,`, + `PoliciesRef:` + repeatedStringForPoliciesRef + `,`, + `}`, + }, "") + return s +} +func (this *GeneratedNetworkPolicyList) String() string { + if this == nil { + return "nil" + } + repeatedStringForItems := "[]GeneratedNetworkPolicy{" + for _, f := range this.Items { + repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "GeneratedNetworkPolicy", "GeneratedNetworkPolicy", 1), `&`, ``, 1) + "," + } + repeatedStringForItems += "}" + s := strings.Join([]string{`&GeneratedNetworkPolicyList{`, + `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + repeatedStringForItems + `,`, + `}`, + }, "") + return s +} +func (this *GrypeDocument) String() string { + if this == nil { + return "nil" + } + repeatedStringForMatches := "[]Match{" + for _, f := range this.Matches { + repeatedStringForMatches += strings.Replace(strings.Replace(f.String(), "Match", "Match", 1), `&`, ``, 1) + "," + } + repeatedStringForMatches += "}" + repeatedStringForIgnoredMatches := "[]IgnoredMatch{" + for _, f := range this.IgnoredMatches { + repeatedStringForIgnoredMatches += strings.Replace(strings.Replace(f.String(), "IgnoredMatch", "IgnoredMatch", 1), `&`, ``, 1) + "," + } + repeatedStringForIgnoredMatches += "}" + s := strings.Join([]string{`&GrypeDocument{`, + `Matches:` + repeatedStringForMatches + `,`, + `IgnoredMatches:` + repeatedStringForIgnoredMatches + `,`, + `Source:` + strings.Replace(this.Source.String(), "Source", "Source", 1) + `,`, + `Distro:` + strings.Replace(strings.Replace(this.Distro.String(), "Distribution", "Distribution", 1), `&`, ``, 1) + `,`, + `Descriptor_:` + strings.Replace(strings.Replace(this.Descriptor_.String(), "Descriptor", "Descriptor", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *GrypePackage) String() string { + if this == nil { + return "nil" + } + repeatedStringForLocations := "[]SyftCoordinates{" + for _, f := range this.Locations { + repeatedStringForLocations += strings.Replace(strings.Replace(f.String(), "SyftCoordinates", "SyftCoordinates", 1), `&`, ``, 1) + "," + } + repeatedStringForLocations += "}" + repeatedStringForUpstreams := "[]UpstreamPackage{" + for _, f := range this.Upstreams { + repeatedStringForUpstreams += strings.Replace(strings.Replace(f.String(), "UpstreamPackage", "UpstreamPackage", 1), `&`, ``, 1) + "," + } + repeatedStringForUpstreams += "}" + s := strings.Join([]string{`&GrypePackage{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Version:` + fmt.Sprintf("%v", this.Version) + `,`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `Locations:` + repeatedStringForLocations + `,`, + `Language:` + fmt.Sprintf("%v", this.Language) + `,`, + `Licenses:` + fmt.Sprintf("%v", this.Licenses) + `,`, + `CPEs:` + fmt.Sprintf("%v", this.CPEs) + `,`, + `PURL:` + fmt.Sprintf("%v", this.PURL) + `,`, + `Upstreams:` + repeatedStringForUpstreams + `,`, + `MetadataType:` + fmt.Sprintf("%v", this.MetadataType) + `,`, + `Metadata:` + valueToStringGenerated(this.Metadata) + `,`, + `}`, + }, "") + return s +} +func (this *HTTPIngressPath) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&HTTPIngressPath{`, + `Path:` + fmt.Sprintf("%v", this.Path) + `,`, + `Backend:` + strings.Replace(strings.Replace(this.Backend.String(), "IngressBackend", "IngressBackend", 1), `&`, ``, 1) + `,`, + `PathType:` + valueToStringGenerated(this.PathType) + `,`, + `}`, + }, "") + return s +} +func (this *HTTPIngressRuleValue) String() string { + if this == nil { + return "nil" + } + repeatedStringForPaths := "[]HTTPIngressPath{" + for _, f := range this.Paths { + repeatedStringForPaths += strings.Replace(strings.Replace(f.String(), "HTTPIngressPath", "HTTPIngressPath", 1), `&`, ``, 1) + "," + } + repeatedStringForPaths += "}" + s := strings.Join([]string{`&HTTPIngressRuleValue{`, + `Paths:` + repeatedStringForPaths + `,`, + `}`, + }, "") + return s +} +func (this *IPBlock) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&IPBlock{`, + `CIDR:` + fmt.Sprintf("%v", this.CIDR) + `,`, + `Except:` + fmt.Sprintf("%v", this.Except) + `,`, + `}`, + }, "") + return s +} +func (this *IgnoreRule) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&IgnoreRule{`, + `Vulnerability:` + fmt.Sprintf("%v", this.Vulnerability) + `,`, + `FixState:` + fmt.Sprintf("%v", this.FixState) + `,`, + `Package:` + strings.Replace(this.Package.String(), "IgnoreRulePackage", "IgnoreRulePackage", 1) + `,`, + `}`, + }, "") + return s +} +func (this *IgnoreRulePackage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&IgnoreRulePackage{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Version:` + fmt.Sprintf("%v", this.Version) + `,`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `Location:` + fmt.Sprintf("%v", this.Location) + `,`, + `UpstreamName:` + fmt.Sprintf("%v", this.UpstreamName) + `,`, + `}`, + }, "") + return s +} +func (this *IgnoredMatch) String() string { + if this == nil { + return "nil" + } + repeatedStringForAppliedIgnoreRules := "[]IgnoreRule{" + for _, f := range this.AppliedIgnoreRules { + repeatedStringForAppliedIgnoreRules += strings.Replace(strings.Replace(f.String(), "IgnoreRule", "IgnoreRule", 1), `&`, ``, 1) + "," + } + repeatedStringForAppliedIgnoreRules += "}" + s := strings.Join([]string{`&IgnoredMatch{`, + `Match:` + strings.Replace(strings.Replace(this.Match.String(), "Match", "Match", 1), `&`, ``, 1) + `,`, + `AppliedIgnoreRules:` + repeatedStringForAppliedIgnoreRules + `,`, + `}`, + }, "") + return s +} +func (this *Ingress) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Ingress{`, + `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "IngressSpec", "IngressSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "IngressStatus", "IngressStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *IngressBackend) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&IngressBackend{`, + `Resource:` + strings.Replace(fmt.Sprintf("%v", this.Resource), "TypedLocalObjectReference", "v11.TypedLocalObjectReference", 1) + `,`, + `Service:` + strings.Replace(this.Service.String(), "IngressServiceBackend", "IngressServiceBackend", 1) + `,`, + `}`, + }, "") + return s +} +func (this *IngressClass) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&IngressClass{`, + `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "IngressClassSpec", "IngressClassSpec", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *IngressClassList) String() string { + if this == nil { + return "nil" + } + repeatedStringForItems := "[]IngressClass{" + for _, f := range this.Items { + repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "IngressClass", "IngressClass", 1), `&`, ``, 1) + "," + } + repeatedStringForItems += "}" + s := strings.Join([]string{`&IngressClassList{`, + `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + repeatedStringForItems + `,`, + `}`, + }, "") + return s +} +func (this *IngressClassParametersReference) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&IngressClassParametersReference{`, + `APIGroup:` + valueToStringGenerated(this.APIGroup) + `,`, + `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Scope:` + valueToStringGenerated(this.Scope) + `,`, + `Namespace:` + valueToStringGenerated(this.Namespace) + `,`, + `}`, + }, "") + return s +} +func (this *IngressClassSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&IngressClassSpec{`, + `Controller:` + fmt.Sprintf("%v", this.Controller) + `,`, + `Parameters:` + strings.Replace(this.Parameters.String(), "IngressClassParametersReference", "IngressClassParametersReference", 1) + `,`, + `}`, + }, "") + return s +} +func (this *IngressList) String() string { + if this == nil { + return "nil" + } + repeatedStringForItems := "[]Ingress{" + for _, f := range this.Items { + repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "Ingress", "Ingress", 1), `&`, ``, 1) + "," + } + repeatedStringForItems += "}" + s := strings.Join([]string{`&IngressList{`, + `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + repeatedStringForItems + `,`, + `}`, + }, "") + return s +} +func (this *IngressLoadBalancerIngress) String() string { + if this == nil { + return "nil" + } + repeatedStringForPorts := "[]IngressPortStatus{" + for _, f := range this.Ports { + repeatedStringForPorts += strings.Replace(strings.Replace(f.String(), "IngressPortStatus", "IngressPortStatus", 1), `&`, ``, 1) + "," + } + repeatedStringForPorts += "}" + s := strings.Join([]string{`&IngressLoadBalancerIngress{`, + `IP:` + fmt.Sprintf("%v", this.IP) + `,`, + `Hostname:` + fmt.Sprintf("%v", this.Hostname) + `,`, + `Ports:` + repeatedStringForPorts + `,`, + `}`, + }, "") + return s +} +func (this *IngressLoadBalancerStatus) String() string { + if this == nil { + return "nil" + } + repeatedStringForIngress := "[]IngressLoadBalancerIngress{" + for _, f := range this.Ingress { + repeatedStringForIngress += strings.Replace(strings.Replace(f.String(), "IngressLoadBalancerIngress", "IngressLoadBalancerIngress", 1), `&`, ``, 1) + "," + } + repeatedStringForIngress += "}" + s := strings.Join([]string{`&IngressLoadBalancerStatus{`, + `Ingress:` + repeatedStringForIngress + `,`, + `}`, + }, "") + return s +} +func (this *IngressPortStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&IngressPortStatus{`, + `Port:` + fmt.Sprintf("%v", this.Port) + `,`, + `Protocol:` + fmt.Sprintf("%v", this.Protocol) + `,`, + `Error:` + valueToStringGenerated(this.Error) + `,`, + `}`, + }, "") + return s +} +func (this *IngressRule) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&IngressRule{`, + `Host:` + fmt.Sprintf("%v", this.Host) + `,`, + `IngressRuleValue:` + strings.Replace(strings.Replace(this.IngressRuleValue.String(), "IngressRuleValue", "IngressRuleValue", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *IngressRuleValue) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&IngressRuleValue{`, + `HTTP:` + strings.Replace(this.HTTP.String(), "HTTPIngressRuleValue", "HTTPIngressRuleValue", 1) + `,`, + `}`, + }, "") + return s +} +func (this *IngressServiceBackend) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&IngressServiceBackend{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Port:` + strings.Replace(strings.Replace(this.Port.String(), "ServiceBackendPort", "ServiceBackendPort", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *IngressSpec) String() string { + if this == nil { + return "nil" + } + repeatedStringForTLS := "[]IngressTLS{" + for _, f := range this.TLS { + repeatedStringForTLS += strings.Replace(strings.Replace(f.String(), "IngressTLS", "IngressTLS", 1), `&`, ``, 1) + "," + } + repeatedStringForTLS += "}" + repeatedStringForRules := "[]IngressRule{" + for _, f := range this.Rules { + repeatedStringForRules += strings.Replace(strings.Replace(f.String(), "IngressRule", "IngressRule", 1), `&`, ``, 1) + "," + } + repeatedStringForRules += "}" + s := strings.Join([]string{`&IngressSpec{`, + `DefaultBackend:` + strings.Replace(this.DefaultBackend.String(), "IngressBackend", "IngressBackend", 1) + `,`, + `TLS:` + repeatedStringForTLS + `,`, + `Rules:` + repeatedStringForRules + `,`, + `IngressClassName:` + valueToStringGenerated(this.IngressClassName) + `,`, + `}`, + }, "") + return s +} +func (this *IngressStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&IngressStatus{`, + `LoadBalancer:` + strings.Replace(strings.Replace(this.LoadBalancer.String(), "IngressLoadBalancerStatus", "IngressLoadBalancerStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *IngressTLS) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&IngressTLS{`, + `Hosts:` + fmt.Sprintf("%v", this.Hosts) + `,`, + `SecretName:` + fmt.Sprintf("%v", this.SecretName) + `,`, + `}`, + }, "") + return s +} +func (this *KnownServer) String() string { + if this == nil { + return "nil" + } + repeatedStringForSpec := "[]KnownServerEntry{" + for _, f := range this.Spec { + repeatedStringForSpec += strings.Replace(strings.Replace(f.String(), "KnownServerEntry", "KnownServerEntry", 1), `&`, ``, 1) + "," + } + repeatedStringForSpec += "}" + s := strings.Join([]string{`&KnownServer{`, + `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + repeatedStringForSpec + `,`, + `}`, + }, "") + return s +} +func (this *KnownServerEntry) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&KnownServerEntry{`, + `IPBlock:` + fmt.Sprintf("%v", this.IPBlock) + `,`, + `Server:` + fmt.Sprintf("%v", this.Server) + `,`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `}`, + }, "") + return s +} +func (this *KnownServerList) String() string { + if this == nil { + return "nil" + } + repeatedStringForItems := "[]KnownServer{" + for _, f := range this.Items { + repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "KnownServer", "KnownServer", 1), `&`, ``, 1) + "," + } + repeatedStringForItems += "}" + s := strings.Join([]string{`&KnownServerList{`, + `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + repeatedStringForItems + `,`, + `}`, + }, "") + return s +} +func (this *License) String() string { + if this == nil { + return "nil" + } + repeatedStringForLocations := "[]Location{" + for _, f := range this.Locations { + repeatedStringForLocations += strings.Replace(strings.Replace(f.String(), "Location", "Location", 1), `&`, ``, 1) + "," + } + repeatedStringForLocations += "}" + s := strings.Join([]string{`&License{`, + `Value:` + fmt.Sprintf("%v", this.Value) + `,`, + `SPDXExpression:` + fmt.Sprintf("%v", this.SPDXExpression) + `,`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `URLs:` + fmt.Sprintf("%v", this.URLs) + `,`, + `Locations:` + repeatedStringForLocations + `,`, + `}`, + }, "") + return s +} +func (this *LinuxRelease) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&LinuxRelease{`, + `PrettyName:` + fmt.Sprintf("%v", this.PrettyName) + `,`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `ID:` + fmt.Sprintf("%v", this.ID) + `,`, + `IDLike:` + fmt.Sprintf("%v", this.IDLike) + `,`, + `Version:` + fmt.Sprintf("%v", this.Version) + `,`, + `VersionID:` + fmt.Sprintf("%v", this.VersionID) + `,`, + `VersionCodename:` + fmt.Sprintf("%v", this.VersionCodename) + `,`, + `BuildID:` + fmt.Sprintf("%v", this.BuildID) + `,`, + `ImageID:` + fmt.Sprintf("%v", this.ImageID) + `,`, + `ImageVersion:` + fmt.Sprintf("%v", this.ImageVersion) + `,`, + `Variant:` + fmt.Sprintf("%v", this.Variant) + `,`, + `VariantID:` + fmt.Sprintf("%v", this.VariantID) + `,`, + `HomeURL:` + fmt.Sprintf("%v", this.HomeURL) + `,`, + `SupportURL:` + fmt.Sprintf("%v", this.SupportURL) + `,`, + `BugReportURL:` + fmt.Sprintf("%v", this.BugReportURL) + `,`, + `PrivacyPolicyURL:` + fmt.Sprintf("%v", this.PrivacyPolicyURL) + `,`, + `CPEName:` + fmt.Sprintf("%v", this.CPEName) + `,`, + `SupportEnd:` + fmt.Sprintf("%v", this.SupportEnd) + `,`, + `}`, + }, "") + return s +} +func (this *Location) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Location{`, + `LocationData:` + strings.Replace(strings.Replace(this.LocationData.String(), "LocationData", "LocationData", 1), `&`, ``, 1) + `,`, + `LocationMetadata:` + strings.Replace(strings.Replace(this.LocationMetadata.String(), "LocationMetadata", "LocationMetadata", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *LocationData) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&LocationData{`, + `Coordinates:` + strings.Replace(strings.Replace(this.Coordinates.String(), "Coordinates", "Coordinates", 1), `&`, ``, 1) + `,`, + `VirtualPath:` + fmt.Sprintf("%v", this.VirtualPath) + `,`, + `}`, + }, "") + return s +} +func (this *LocationMetadata) String() string { + if this == nil { + return "nil" + } + keysForAnnotations := make([]string, 0, len(this.Annotations)) + for k := range this.Annotations { + keysForAnnotations = append(keysForAnnotations, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForAnnotations) + mapStringForAnnotations := "map[string]string{" + for _, k := range keysForAnnotations { + mapStringForAnnotations += fmt.Sprintf("%v: %v,", k, this.Annotations[k]) + } + mapStringForAnnotations += "}" + s := strings.Join([]string{`&LocationMetadata{`, + `Annotations:` + mapStringForAnnotations + `,`, + `}`, + }, "") + return s +} +func (this *Match) String() string { + if this == nil { + return "nil" + } + repeatedStringForRelatedVulnerabilities := "[]VulnerabilityMetadata{" + for _, f := range this.RelatedVulnerabilities { + repeatedStringForRelatedVulnerabilities += strings.Replace(strings.Replace(f.String(), "VulnerabilityMetadata", "VulnerabilityMetadata", 1), `&`, ``, 1) + "," + } + repeatedStringForRelatedVulnerabilities += "}" + repeatedStringForMatchDetails := "[]MatchDetails{" + for _, f := range this.MatchDetails { + repeatedStringForMatchDetails += strings.Replace(strings.Replace(f.String(), "MatchDetails", "MatchDetails", 1), `&`, ``, 1) + "," + } + repeatedStringForMatchDetails += "}" + s := strings.Join([]string{`&Match{`, + `Vulnerability:` + strings.Replace(strings.Replace(this.Vulnerability.String(), "Vulnerability", "Vulnerability", 1), `&`, ``, 1) + `,`, + `RelatedVulnerabilities:` + repeatedStringForRelatedVulnerabilities + `,`, + `MatchDetails:` + repeatedStringForMatchDetails + `,`, + `Artifact:` + strings.Replace(strings.Replace(this.Artifact.String(), "GrypePackage", "GrypePackage", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *MatchDetails) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&MatchDetails{`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `Matcher:` + fmt.Sprintf("%v", this.Matcher) + `,`, + `SearchedBy:` + valueToStringGenerated(this.SearchedBy) + `,`, + `Found:` + valueToStringGenerated(this.Found) + `,`, + `}`, + }, "") + return s +} +func (this *Metadata) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Metadata{`, + `Context:` + fmt.Sprintf("%v", this.Context) + `,`, + `ID:` + fmt.Sprintf("%v", this.ID) + `,`, + `Author:` + fmt.Sprintf("%v", this.Author) + `,`, + `AuthorRole:` + fmt.Sprintf("%v", this.AuthorRole) + `,`, + `Timestamp:` + fmt.Sprintf("%v", this.Timestamp) + `,`, + `LastUpdated:` + fmt.Sprintf("%v", this.LastUpdated) + `,`, + `Version:` + fmt.Sprintf("%v", this.Version) + `,`, + `Tooling:` + fmt.Sprintf("%v", this.Tooling) + `,`, + `Supplier:` + fmt.Sprintf("%v", this.Supplier) + `,`, + `}`, + }, "") + return s +} +func (this *NetworkNeighbor) String() string { + if this == nil { + return "nil" + } + repeatedStringForPorts := "[]NetworkPort{" + for _, f := range this.Ports { + repeatedStringForPorts += strings.Replace(strings.Replace(f.String(), "NetworkPort", "NetworkPort", 1), `&`, ``, 1) + "," + } + repeatedStringForPorts += "}" + s := strings.Join([]string{`&NetworkNeighbor{`, + `Identifier:` + fmt.Sprintf("%v", this.Identifier) + `,`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `DNS:` + fmt.Sprintf("%v", this.DNS) + `,`, + `DNSNames:` + fmt.Sprintf("%v", this.DNSNames) + `,`, + `Ports:` + repeatedStringForPorts + `,`, + `PodSelector:` + strings.Replace(fmt.Sprintf("%v", this.PodSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`, + `NamespaceSelector:` + strings.Replace(fmt.Sprintf("%v", this.NamespaceSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`, + `IPAddress:` + fmt.Sprintf("%v", this.IPAddress) + `,`, + `}`, + }, "") + return s +} +func (this *NetworkNeighborhood) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NetworkNeighborhood{`, + `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "NetworkNeighborhoodSpec", "NetworkNeighborhoodSpec", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *NetworkNeighborhoodContainer) String() string { + if this == nil { + return "nil" + } + repeatedStringForIngress := "[]NetworkNeighbor{" + for _, f := range this.Ingress { + repeatedStringForIngress += strings.Replace(strings.Replace(f.String(), "NetworkNeighbor", "NetworkNeighbor", 1), `&`, ``, 1) + "," + } + repeatedStringForIngress += "}" + repeatedStringForEgress := "[]NetworkNeighbor{" + for _, f := range this.Egress { + repeatedStringForEgress += strings.Replace(strings.Replace(f.String(), "NetworkNeighbor", "NetworkNeighbor", 1), `&`, ``, 1) + "," + } + repeatedStringForEgress += "}" + s := strings.Join([]string{`&NetworkNeighborhoodContainer{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Ingress:` + repeatedStringForIngress + `,`, + `Egress:` + repeatedStringForEgress + `,`, + `}`, + }, "") + return s +} +func (this *NetworkNeighborhoodList) String() string { + if this == nil { + return "nil" + } + repeatedStringForItems := "[]NetworkNeighborhood{" + for _, f := range this.Items { + repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "NetworkNeighborhood", "NetworkNeighborhood", 1), `&`, ``, 1) + "," + } + repeatedStringForItems += "}" + s := strings.Join([]string{`&NetworkNeighborhoodList{`, + `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + repeatedStringForItems + `,`, + `}`, + }, "") + return s +} +func (this *NetworkNeighborhoodSpec) String() string { + if this == nil { + return "nil" + } + repeatedStringForContainers := "[]NetworkNeighborhoodContainer{" + for _, f := range this.Containers { + repeatedStringForContainers += strings.Replace(strings.Replace(f.String(), "NetworkNeighborhoodContainer", "NetworkNeighborhoodContainer", 1), `&`, ``, 1) + "," + } + repeatedStringForContainers += "}" + repeatedStringForInitContainers := "[]NetworkNeighborhoodContainer{" + for _, f := range this.InitContainers { + repeatedStringForInitContainers += strings.Replace(strings.Replace(f.String(), "NetworkNeighborhoodContainer", "NetworkNeighborhoodContainer", 1), `&`, ``, 1) + "," + } + repeatedStringForInitContainers += "}" + repeatedStringForEphemeralContainers := "[]NetworkNeighborhoodContainer{" + for _, f := range this.EphemeralContainers { + repeatedStringForEphemeralContainers += strings.Replace(strings.Replace(f.String(), "NetworkNeighborhoodContainer", "NetworkNeighborhoodContainer", 1), `&`, ``, 1) + "," + } + repeatedStringForEphemeralContainers += "}" + s := strings.Join([]string{`&NetworkNeighborhoodSpec{`, + `LabelSelector:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LabelSelector), "LabelSelector", "v1.LabelSelector", 1), `&`, ``, 1) + `,`, + `Containers:` + repeatedStringForContainers + `,`, + `InitContainers:` + repeatedStringForInitContainers + `,`, + `EphemeralContainers:` + repeatedStringForEphemeralContainers + `,`, + `}`, + }, "") + return s +} +func (this *NetworkNeighbors) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NetworkNeighbors{`, + `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "NetworkNeighborsSpec", "NetworkNeighborsSpec", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *NetworkNeighborsList) String() string { + if this == nil { + return "nil" + } + repeatedStringForItems := "[]NetworkNeighbors{" + for _, f := range this.Items { + repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "NetworkNeighbors", "NetworkNeighbors", 1), `&`, ``, 1) + "," + } + repeatedStringForItems += "}" + s := strings.Join([]string{`&NetworkNeighborsList{`, + `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + repeatedStringForItems + `,`, + `}`, + }, "") + return s +} +func (this *NetworkNeighborsSpec) String() string { + if this == nil { + return "nil" + } + repeatedStringForIngress := "[]NetworkNeighbor{" + for _, f := range this.Ingress { + repeatedStringForIngress += strings.Replace(strings.Replace(f.String(), "NetworkNeighbor", "NetworkNeighbor", 1), `&`, ``, 1) + "," + } + repeatedStringForIngress += "}" + repeatedStringForEgress := "[]NetworkNeighbor{" + for _, f := range this.Egress { + repeatedStringForEgress += strings.Replace(strings.Replace(f.String(), "NetworkNeighbor", "NetworkNeighbor", 1), `&`, ``, 1) + "," + } + repeatedStringForEgress += "}" + s := strings.Join([]string{`&NetworkNeighborsSpec{`, + `LabelSelector:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LabelSelector), "LabelSelector", "v1.LabelSelector", 1), `&`, ``, 1) + `,`, + `Ingress:` + repeatedStringForIngress + `,`, + `Egress:` + repeatedStringForEgress + `,`, + `}`, + }, "") + return s +} +func (this *NetworkPolicy) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NetworkPolicy{`, + `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, + `APIVersion:` + fmt.Sprintf("%v", this.APIVersion) + `,`, + `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "NetworkPolicySpec", "NetworkPolicySpec", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *NetworkPolicyEgressRule) String() string { + if this == nil { + return "nil" + } + repeatedStringForPorts := "[]NetworkPolicyPort{" + for _, f := range this.Ports { + repeatedStringForPorts += strings.Replace(strings.Replace(f.String(), "NetworkPolicyPort", "NetworkPolicyPort", 1), `&`, ``, 1) + "," + } + repeatedStringForPorts += "}" + repeatedStringForTo := "[]NetworkPolicyPeer{" + for _, f := range this.To { + repeatedStringForTo += strings.Replace(strings.Replace(f.String(), "NetworkPolicyPeer", "NetworkPolicyPeer", 1), `&`, ``, 1) + "," + } + repeatedStringForTo += "}" + s := strings.Join([]string{`&NetworkPolicyEgressRule{`, + `Ports:` + repeatedStringForPorts + `,`, + `To:` + repeatedStringForTo + `,`, + `}`, + }, "") + return s +} +func (this *NetworkPolicyIngressRule) String() string { + if this == nil { + return "nil" + } + repeatedStringForPorts := "[]NetworkPolicyPort{" + for _, f := range this.Ports { + repeatedStringForPorts += strings.Replace(strings.Replace(f.String(), "NetworkPolicyPort", "NetworkPolicyPort", 1), `&`, ``, 1) + "," + } + repeatedStringForPorts += "}" + repeatedStringForFrom := "[]NetworkPolicyPeer{" + for _, f := range this.From { + repeatedStringForFrom += strings.Replace(strings.Replace(f.String(), "NetworkPolicyPeer", "NetworkPolicyPeer", 1), `&`, ``, 1) + "," + } + repeatedStringForFrom += "}" + s := strings.Join([]string{`&NetworkPolicyIngressRule{`, + `Ports:` + repeatedStringForPorts + `,`, + `From:` + repeatedStringForFrom + `,`, + `}`, + }, "") + return s +} +func (this *NetworkPolicyList) String() string { + if this == nil { + return "nil" + } + repeatedStringForItems := "[]NetworkPolicy{" + for _, f := range this.Items { + repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "NetworkPolicy", "NetworkPolicy", 1), `&`, ``, 1) + "," + } + repeatedStringForItems += "}" + s := strings.Join([]string{`&NetworkPolicyList{`, + `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + repeatedStringForItems + `,`, + `}`, + }, "") + return s +} +func (this *NetworkPolicyPeer) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NetworkPolicyPeer{`, + `PodSelector:` + strings.Replace(fmt.Sprintf("%v", this.PodSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`, + `NamespaceSelector:` + strings.Replace(fmt.Sprintf("%v", this.NamespaceSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`, + `IPBlock:` + strings.Replace(this.IPBlock.String(), "IPBlock", "IPBlock", 1) + `,`, + `}`, + }, "") + return s +} +func (this *NetworkPolicyPort) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NetworkPolicyPort{`, + `Protocol:` + valueToStringGenerated(this.Protocol) + `,`, + `Port:` + valueToStringGenerated(this.Port) + `,`, + `EndPort:` + valueToStringGenerated(this.EndPort) + `,`, + `}`, + }, "") + return s +} +func (this *NetworkPolicySpec) String() string { + if this == nil { + return "nil" + } + repeatedStringForIngress := "[]NetworkPolicyIngressRule{" + for _, f := range this.Ingress { + repeatedStringForIngress += strings.Replace(strings.Replace(f.String(), "NetworkPolicyIngressRule", "NetworkPolicyIngressRule", 1), `&`, ``, 1) + "," + } + repeatedStringForIngress += "}" + repeatedStringForEgress := "[]NetworkPolicyEgressRule{" + for _, f := range this.Egress { + repeatedStringForEgress += strings.Replace(strings.Replace(f.String(), "NetworkPolicyEgressRule", "NetworkPolicyEgressRule", 1), `&`, ``, 1) + "," + } + repeatedStringForEgress += "}" + s := strings.Join([]string{`&NetworkPolicySpec{`, + `PodSelector:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.PodSelector), "LabelSelector", "v1.LabelSelector", 1), `&`, ``, 1) + `,`, + `Ingress:` + repeatedStringForIngress + `,`, + `Egress:` + repeatedStringForEgress + `,`, + `PolicyTypes:` + fmt.Sprintf("%v", this.PolicyTypes) + `,`, + `}`, + }, "") + return s +} +func (this *NetworkPolicyStatus) String() string { + if this == nil { + return "nil" + } + repeatedStringForConditions := "[]Condition{" + for _, f := range this.Conditions { + repeatedStringForConditions += fmt.Sprintf("%v", f) + "," + } + repeatedStringForConditions += "}" + s := strings.Join([]string{`&NetworkPolicyStatus{`, + `Conditions:` + repeatedStringForConditions + `,`, + `}`, + }, "") + return s +} +func (this *NetworkPort) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NetworkPort{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Protocol:` + fmt.Sprintf("%v", this.Protocol) + `,`, + `Port:` + valueToStringGenerated(this.Port) + `,`, + `}`, + }, "") + return s +} +func (this *OpenCalls) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&OpenCalls{`, + `Path:` + fmt.Sprintf("%v", this.Path) + `,`, + `Flags:` + fmt.Sprintf("%v", this.Flags) + `,`, + `}`, + }, "") + return s +} +func (this *OpenVulnerabilityExchangeContainer) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&OpenVulnerabilityExchangeContainer{`, + `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "VEX", "VEX", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *OpenVulnerabilityExchangeContainerList) String() string { + if this == nil { + return "nil" + } + repeatedStringForItems := "[]OpenVulnerabilityExchangeContainer{" + for _, f := range this.Items { + repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "OpenVulnerabilityExchangeContainer", "OpenVulnerabilityExchangeContainer", 1), `&`, ``, 1) + "," + } + repeatedStringForItems += "}" + s := strings.Join([]string{`&OpenVulnerabilityExchangeContainerList{`, + `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + repeatedStringForItems + `,`, + `}`, + }, "") + return s +} +func (this *PackageBasicData) String() string { + if this == nil { + return "nil" + } + repeatedStringForLocations := "[]Location{" + for _, f := range this.Locations { + repeatedStringForLocations += strings.Replace(strings.Replace(f.String(), "Location", "Location", 1), `&`, ``, 1) + "," + } + repeatedStringForLocations += "}" + repeatedStringForLicenses := "[]License{" + for _, f := range this.Licenses { + repeatedStringForLicenses += strings.Replace(strings.Replace(f.String(), "License", "License", 1), `&`, ``, 1) + "," + } + repeatedStringForLicenses += "}" + repeatedStringForCPEs := "[]CPE{" + for _, f := range this.CPEs { + repeatedStringForCPEs += strings.Replace(strings.Replace(f.String(), "CPE", "CPE", 1), `&`, ``, 1) + "," + } + repeatedStringForCPEs += "}" + s := strings.Join([]string{`&PackageBasicData{`, + `ID:` + fmt.Sprintf("%v", this.ID) + `,`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Version:` + fmt.Sprintf("%v", this.Version) + `,`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `FoundBy:` + fmt.Sprintf("%v", this.FoundBy) + `,`, + `Locations:` + repeatedStringForLocations + `,`, + `Licenses:` + repeatedStringForLicenses + `,`, + `Language:` + fmt.Sprintf("%v", this.Language) + `,`, + `CPEs:` + repeatedStringForCPEs + `,`, + `PURL:` + fmt.Sprintf("%v", this.PURL) + `,`, + `}`, + }, "") + return s +} +func (this *PackageBasicDataV01011) String() string { + if this == nil { + return "nil" + } + repeatedStringForLocations := "[]Location{" + for _, f := range this.Locations { + repeatedStringForLocations += strings.Replace(strings.Replace(f.String(), "Location", "Location", 1), `&`, ``, 1) + "," + } + repeatedStringForLocations += "}" + repeatedStringForLicenses := "[]License{" + for _, f := range this.Licenses { + repeatedStringForLicenses += strings.Replace(strings.Replace(f.String(), "License", "License", 1), `&`, ``, 1) + "," + } + repeatedStringForLicenses += "}" + s := strings.Join([]string{`&PackageBasicDataV01011{`, + `ID:` + fmt.Sprintf("%v", this.ID) + `,`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Version:` + fmt.Sprintf("%v", this.Version) + `,`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `FoundBy:` + fmt.Sprintf("%v", this.FoundBy) + `,`, + `Locations:` + repeatedStringForLocations + `,`, + `Licenses:` + repeatedStringForLicenses + `,`, + `Language:` + fmt.Sprintf("%v", this.Language) + `,`, + `CPEs:` + fmt.Sprintf("%v", this.CPEs) + `,`, + `PURL:` + fmt.Sprintf("%v", this.PURL) + `,`, + `}`, + }, "") + return s +} +func (this *PackageCustomData) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PackageCustomData{`, + `MetadataType:` + fmt.Sprintf("%v", this.MetadataType) + `,`, + `Metadata:` + valueToStringGenerated(this.Metadata) + `,`, + `}`, + }, "") + return s +} +func (this *PolicyRef) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PolicyRef{`, + `IPBlock:` + fmt.Sprintf("%v", this.IPBlock) + `,`, + `OriginalIP:` + fmt.Sprintf("%v", this.OriginalIP) + `,`, + `DNS:` + fmt.Sprintf("%v", this.DNS) + `,`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Server:` + fmt.Sprintf("%v", this.Server) + `,`, + `}`, + }, "") + return s +} +func (this *Product) String() string { + if this == nil { + return "nil" + } + repeatedStringForSubcomponents := "[]Subcomponent{" + for _, f := range this.Subcomponents { + repeatedStringForSubcomponents += strings.Replace(strings.Replace(f.String(), "Subcomponent", "Subcomponent", 1), `&`, ``, 1) + "," + } + repeatedStringForSubcomponents += "}" + s := strings.Join([]string{`&Product{`, + `Component:` + strings.Replace(strings.Replace(this.Component.String(), "Component", "Component", 1), `&`, ``, 1) + `,`, + `Subcomponents:` + repeatedStringForSubcomponents + `,`, + `}`, + }, "") + return s +} +func (this *ReportMeta) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ReportMeta{`, + `CreatedAt:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.CreatedAt), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *RulePath) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&RulePath{`, + `FailedPath:` + fmt.Sprintf("%v", this.FailedPath) + `,`, + `FixPath:` + fmt.Sprintf("%v", this.FixPath) + `,`, + `FixPathValue:` + fmt.Sprintf("%v", this.FixPathValue) + `,`, + `FixCommand:` + fmt.Sprintf("%v", this.FixCommand) + `,`, + `}`, + }, "") + return s +} +func (this *RuleStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&RuleStatus{`, + `Status:` + fmt.Sprintf("%v", this.Status) + `,`, + `SubStatus:` + fmt.Sprintf("%v", this.SubStatus) + `,`, + `}`, + }, "") + return s +} +func (this *SBOMSyft) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SBOMSyft{`, + `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "SBOMSyftSpec", "SBOMSyftSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "SBOMSyftStatus", "SBOMSyftStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *SBOMSyftFiltered) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SBOMSyftFiltered{`, + `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "SBOMSyftSpec", "SBOMSyftSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "SBOMSyftStatus", "SBOMSyftStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *SBOMSyftFilteredList) String() string { + if this == nil { + return "nil" + } + repeatedStringForItems := "[]SBOMSyftFiltered{" + for _, f := range this.Items { + repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "SBOMSyftFiltered", "SBOMSyftFiltered", 1), `&`, ``, 1) + "," + } + repeatedStringForItems += "}" + s := strings.Join([]string{`&SBOMSyftFilteredList{`, + `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + repeatedStringForItems + `,`, + `}`, + }, "") + return s +} +func (this *SBOMSyftList) String() string { + if this == nil { + return "nil" + } + repeatedStringForItems := "[]SBOMSyft{" + for _, f := range this.Items { + repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "SBOMSyft", "SBOMSyft", 1), `&`, ``, 1) + "," + } + repeatedStringForItems += "}" + s := strings.Join([]string{`&SBOMSyftList{`, + `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + repeatedStringForItems + `,`, + `}`, + }, "") + return s +} +func (this *SBOMSyftSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SBOMSyftSpec{`, + `Metadata:` + strings.Replace(strings.Replace(this.Metadata.String(), "SPDXMeta", "SPDXMeta", 1), `&`, ``, 1) + `,`, + `Syft:` + strings.Replace(strings.Replace(this.Syft.String(), "SyftDocument", "SyftDocument", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *SBOMSyftStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SBOMSyftStatus{`, + `}`, + }, "") + return s +} +func (this *SPDXMeta) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SPDXMeta{`, + `Tool:` + strings.Replace(strings.Replace(this.Tool.String(), "ToolMeta", "ToolMeta", 1), `&`, ``, 1) + `,`, + `Report:` + strings.Replace(strings.Replace(this.Report.String(), "ReportMeta", "ReportMeta", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ScannedControl) String() string { + if this == nil { + return "nil" + } + repeatedStringForRules := "[]ScannedControlRule{" + for _, f := range this.Rules { + repeatedStringForRules += strings.Replace(strings.Replace(f.String(), "ScannedControlRule", "ScannedControlRule", 1), `&`, ``, 1) + "," + } + repeatedStringForRules += "}" + s := strings.Join([]string{`&ScannedControl{`, + `ControlID:` + fmt.Sprintf("%v", this.ControlID) + `,`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Severity:` + strings.Replace(strings.Replace(this.Severity.String(), "ControlSeverity", "ControlSeverity", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ScannedControlStatus", "ScannedControlStatus", 1), `&`, ``, 1) + `,`, + `Rules:` + repeatedStringForRules + `,`, + `}`, + }, "") + return s +} +func (this *ScannedControlRule) String() string { + if this == nil { + return "nil" + } + repeatedStringForPaths := "[]RulePath{" + for _, f := range this.Paths { + repeatedStringForPaths += strings.Replace(strings.Replace(f.String(), "RulePath", "RulePath", 1), `&`, ``, 1) + "," + } + repeatedStringForPaths += "}" + keysForControlConfigurations := make([]string, 0, len(this.ControlConfigurations)) + for k := range this.ControlConfigurations { + keysForControlConfigurations = append(keysForControlConfigurations, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForControlConfigurations) + mapStringForControlConfigurations := "map[string]string{" + for _, k := range keysForControlConfigurations { + mapStringForControlConfigurations += fmt.Sprintf("%v: %v,", k, this.ControlConfigurations[k]) + } + mapStringForControlConfigurations += "}" + s := strings.Join([]string{`&ScannedControlRule{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "RuleStatus", "RuleStatus", 1), `&`, ``, 1) + `,`, + `ControlConfigurations:` + mapStringForControlConfigurations + `,`, + `Paths:` + repeatedStringForPaths + `,`, + `AppliedIgnoreRules:` + fmt.Sprintf("%v", this.AppliedIgnoreRules) + `,`, + `RelatedResourcesIDs:` + fmt.Sprintf("%v", this.RelatedResourcesIDs) + `,`, + `}`, + }, "") + return s +} +func (this *ScannedControlStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ScannedControlStatus{`, + `Status:` + fmt.Sprintf("%v", this.Status) + `,`, + `SubStatus:` + fmt.Sprintf("%v", this.SubStatus) + `,`, + `Info:` + fmt.Sprintf("%v", this.Info) + `,`, + `}`, + }, "") + return s +} +func (this *ScannedControlSummary) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ScannedControlSummary{`, + `ControlID:` + fmt.Sprintf("%v", this.ControlID) + `,`, + `Severity:` + strings.Replace(strings.Replace(this.Severity.String(), "ControlSeverity", "ControlSeverity", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ScannedControlStatus", "ScannedControlStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *Schema) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Schema{`, + `Version:` + fmt.Sprintf("%v", this.Version) + `,`, + `URL:` + fmt.Sprintf("%v", this.URL) + `,`, + `}`, + }, "") + return s +} +func (this *SeccompProfile) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SeccompProfile{`, + `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "SeccompProfileSpec", "SeccompProfileSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "SeccompProfileStatus", "SeccompProfileStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *SeccompProfileList) String() string { + if this == nil { + return "nil" + } + repeatedStringForItems := "[]SeccompProfile{" + for _, f := range this.Items { + repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "SeccompProfile", "SeccompProfile", 1), `&`, ``, 1) + "," + } + repeatedStringForItems += "}" + s := strings.Join([]string{`&SeccompProfileList{`, + `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + repeatedStringForItems + `,`, + `}`, + }, "") + return s +} +func (this *SeccompProfileSpec) String() string { + if this == nil { + return "nil" + } + repeatedStringForContainers := "[]SingleSeccompProfile{" + for _, f := range this.Containers { + repeatedStringForContainers += strings.Replace(strings.Replace(f.String(), "SingleSeccompProfile", "SingleSeccompProfile", 1), `&`, ``, 1) + "," + } + repeatedStringForContainers += "}" + repeatedStringForInitContainers := "[]SingleSeccompProfile{" + for _, f := range this.InitContainers { + repeatedStringForInitContainers += strings.Replace(strings.Replace(f.String(), "SingleSeccompProfile", "SingleSeccompProfile", 1), `&`, ``, 1) + "," + } + repeatedStringForInitContainers += "}" + repeatedStringForEphemeralContainers := "[]SingleSeccompProfile{" + for _, f := range this.EphemeralContainers { + repeatedStringForEphemeralContainers += strings.Replace(strings.Replace(f.String(), "SingleSeccompProfile", "SingleSeccompProfile", 1), `&`, ``, 1) + "," + } + repeatedStringForEphemeralContainers += "}" + s := strings.Join([]string{`&SeccompProfileSpec{`, + `Containers:` + repeatedStringForContainers + `,`, + `InitContainers:` + repeatedStringForInitContainers + `,`, + `EphemeralContainers:` + repeatedStringForEphemeralContainers + `,`, + `}`, + }, "") + return s +} +func (this *SeccompProfileStatus) String() string { + if this == nil { + return "nil" + } + keysForContainers := make([]string, 0, len(this.Containers)) + for k := range this.Containers { + keysForContainers = append(keysForContainers, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForContainers) + mapStringForContainers := "map[string]SingleSeccompProfileStatus{" + for _, k := range keysForContainers { + mapStringForContainers += fmt.Sprintf("%v: %v,", k, this.Containers[k]) + } + mapStringForContainers += "}" + s := strings.Join([]string{`&SeccompProfileStatus{`, + `Containers:` + mapStringForContainers + `,`, + `}`, + }, "") + return s +} +func (this *ServiceBackendPort) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ServiceBackendPort{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Number:` + fmt.Sprintf("%v", this.Number) + `,`, + `}`, + }, "") + return s +} +func (this *SeveritySummary) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SeveritySummary{`, + `Critical:` + strings.Replace(strings.Replace(this.Critical.String(), "VulnerabilityCounters", "VulnerabilityCounters", 1), `&`, ``, 1) + `,`, + `High:` + strings.Replace(strings.Replace(this.High.String(), "VulnerabilityCounters", "VulnerabilityCounters", 1), `&`, ``, 1) + `,`, + `Medium:` + strings.Replace(strings.Replace(this.Medium.String(), "VulnerabilityCounters", "VulnerabilityCounters", 1), `&`, ``, 1) + `,`, + `Low:` + strings.Replace(strings.Replace(this.Low.String(), "VulnerabilityCounters", "VulnerabilityCounters", 1), `&`, ``, 1) + `,`, + `Negligible:` + strings.Replace(strings.Replace(this.Negligible.String(), "VulnerabilityCounters", "VulnerabilityCounters", 1), `&`, ``, 1) + `,`, + `Unknown:` + strings.Replace(strings.Replace(this.Unknown.String(), "VulnerabilityCounters", "VulnerabilityCounters", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *SingleSeccompProfile) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SingleSeccompProfile{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Path:` + fmt.Sprintf("%v", this.Path) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "SingleSeccompProfileSpec", "SingleSeccompProfileSpec", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *SingleSeccompProfileSpec) String() string { + if this == nil { + return "nil" + } + repeatedStringForSyscalls := "[]*Syscall{" + for _, f := range this.Syscalls { + repeatedStringForSyscalls += strings.Replace(f.String(), "Syscall", "Syscall", 1) + "," + } + repeatedStringForSyscalls += "}" + s := strings.Join([]string{`&SingleSeccompProfileSpec{`, + `SpecBase:` + strings.Replace(strings.Replace(this.SpecBase.String(), "SpecBase", "SpecBase", 1), `&`, ``, 1) + `,`, + `BaseProfileName:` + fmt.Sprintf("%v", this.BaseProfileName) + `,`, + `DefaultAction:` + fmt.Sprintf("%v", this.DefaultAction) + `,`, + `Architectures:` + fmt.Sprintf("%v", this.Architectures) + `,`, + `ListenerPath:` + fmt.Sprintf("%v", this.ListenerPath) + `,`, + `ListenerMetadata:` + fmt.Sprintf("%v", this.ListenerMetadata) + `,`, + `Syscalls:` + repeatedStringForSyscalls + `,`, + `Flags:` + fmt.Sprintf("%v", this.Flags) + `,`, + `}`, + }, "") + return s +} +func (this *SingleSeccompProfileStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SingleSeccompProfileStatus{`, + `StatusBase:` + strings.Replace(strings.Replace(this.StatusBase.String(), "StatusBase", "StatusBase", 1), `&`, ``, 1) + `,`, + `Path:` + fmt.Sprintf("%v", this.Path) + `,`, + `ActiveWorkloads:` + fmt.Sprintf("%v", this.ActiveWorkloads) + `,`, + `LocalhostProfile:` + fmt.Sprintf("%v", this.LocalhostProfile) + `,`, + `}`, + }, "") + return s +} +func (this *Source) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Source{`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `Target:` + valueToStringGenerated(this.Target) + `,`, + `}`, + }, "") + return s +} +func (this *SpecBase) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SpecBase{`, + `Disabled:` + fmt.Sprintf("%v", this.Disabled) + `,`, + `}`, + }, "") + return s +} +func (this *Statement) String() string { + if this == nil { + return "nil" + } + repeatedStringForProducts := "[]Product{" + for _, f := range this.Products { + repeatedStringForProducts += strings.Replace(strings.Replace(f.String(), "Product", "Product", 1), `&`, ``, 1) + "," + } + repeatedStringForProducts += "}" + s := strings.Join([]string{`&Statement{`, + `ID:` + fmt.Sprintf("%v", this.ID) + `,`, + `Vulnerability:` + strings.Replace(strings.Replace(this.Vulnerability.String(), "VexVulnerability", "VexVulnerability", 1), `&`, ``, 1) + `,`, + `Timestamp:` + fmt.Sprintf("%v", this.Timestamp) + `,`, + `LastUpdated:` + fmt.Sprintf("%v", this.LastUpdated) + `,`, + `Products:` + repeatedStringForProducts + `,`, + `Status:` + fmt.Sprintf("%v", this.Status) + `,`, + `StatusNotes:` + fmt.Sprintf("%v", this.StatusNotes) + `,`, + `Justification:` + fmt.Sprintf("%v", this.Justification) + `,`, + `ImpactStatement:` + fmt.Sprintf("%v", this.ImpactStatement) + `,`, + `ActionStatement:` + fmt.Sprintf("%v", this.ActionStatement) + `,`, + `ActionStatementTimestamp:` + fmt.Sprintf("%v", this.ActionStatementTimestamp) + `,`, + `}`, + }, "") + return s +} +func (this *StatusBase) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&StatusBase{`, + `ConditionedStatus:` + strings.Replace(strings.Replace(this.ConditionedStatus.String(), "ConditionedStatus", "ConditionedStatus", 1), `&`, ``, 1) + `,`, + `Status:` + fmt.Sprintf("%v", this.Status) + `,`, + `}`, + }, "") + return s +} +func (this *Subcomponent) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Subcomponent{`, + `Component:` + strings.Replace(strings.Replace(this.Component.String(), "Component", "Component", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *SyftCoordinates) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SyftCoordinates{`, + `RealPath:` + fmt.Sprintf("%v", this.RealPath) + `,`, + `FileSystemID:` + fmt.Sprintf("%v", this.FileSystemID) + `,`, + `}`, + }, "") + return s +} +func (this *SyftDescriptor) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SyftDescriptor{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Version:` + fmt.Sprintf("%v", this.Version) + `,`, + `Configuration:` + valueToStringGenerated(this.Configuration) + `,`, + `}`, + }, "") + return s +} +func (this *SyftDocument) String() string { + if this == nil { + return "nil" + } + repeatedStringForArtifacts := "[]SyftPackage{" + for _, f := range this.Artifacts { + repeatedStringForArtifacts += strings.Replace(strings.Replace(f.String(), "SyftPackage", "SyftPackage", 1), `&`, ``, 1) + "," + } + repeatedStringForArtifacts += "}" + repeatedStringForArtifactRelationships := "[]SyftRelationship{" + for _, f := range this.ArtifactRelationships { + repeatedStringForArtifactRelationships += strings.Replace(strings.Replace(f.String(), "SyftRelationship", "SyftRelationship", 1), `&`, ``, 1) + "," + } + repeatedStringForArtifactRelationships += "}" + repeatedStringForFiles := "[]SyftFile{" + for _, f := range this.Files { + repeatedStringForFiles += strings.Replace(strings.Replace(f.String(), "SyftFile", "SyftFile", 1), `&`, ``, 1) + "," + } + repeatedStringForFiles += "}" + s := strings.Join([]string{`&SyftDocument{`, + `Artifacts:` + repeatedStringForArtifacts + `,`, + `ArtifactRelationships:` + repeatedStringForArtifactRelationships + `,`, + `Files:` + repeatedStringForFiles + `,`, + `SyftSource:` + strings.Replace(strings.Replace(this.SyftSource.String(), "SyftSource", "SyftSource", 1), `&`, ``, 1) + `,`, + `Distro:` + strings.Replace(strings.Replace(this.Distro.String(), "LinuxRelease", "LinuxRelease", 1), `&`, ``, 1) + `,`, + `SyftDescriptor:` + strings.Replace(strings.Replace(this.SyftDescriptor.String(), "SyftDescriptor", "SyftDescriptor", 1), `&`, ``, 1) + `,`, + `Schema:` + strings.Replace(strings.Replace(this.Schema.String(), "Schema", "Schema", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *SyftFile) String() string { + if this == nil { + return "nil" + } + repeatedStringForDigests := "[]Digest{" + for _, f := range this.Digests { + repeatedStringForDigests += strings.Replace(strings.Replace(f.String(), "Digest", "Digest", 1), `&`, ``, 1) + "," + } + repeatedStringForDigests += "}" + repeatedStringForLicenses := "[]FileLicense{" + for _, f := range this.Licenses { + repeatedStringForLicenses += strings.Replace(strings.Replace(f.String(), "FileLicense", "FileLicense", 1), `&`, ``, 1) + "," + } + repeatedStringForLicenses += "}" + s := strings.Join([]string{`&SyftFile{`, + `ID:` + fmt.Sprintf("%v", this.ID) + `,`, + `Location:` + strings.Replace(strings.Replace(this.Location.String(), "Coordinates", "Coordinates", 1), `&`, ``, 1) + `,`, + `Metadata:` + strings.Replace(this.Metadata.String(), "FileMetadataEntry", "FileMetadataEntry", 1) + `,`, + `Contents:` + fmt.Sprintf("%v", this.Contents) + `,`, + `Digests:` + repeatedStringForDigests + `,`, + `Licenses:` + repeatedStringForLicenses + `,`, + `Executable:` + strings.Replace(this.Executable.String(), "Executable", "Executable", 1) + `,`, + `}`, + }, "") + return s +} +func (this *SyftPackage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SyftPackage{`, + `PackageBasicData:` + strings.Replace(strings.Replace(this.PackageBasicData.String(), "PackageBasicData", "PackageBasicData", 1), `&`, ``, 1) + `,`, + `PackageCustomData:` + strings.Replace(strings.Replace(this.PackageCustomData.String(), "PackageCustomData", "PackageCustomData", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *SyftRelationship) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SyftRelationship{`, + `Parent:` + fmt.Sprintf("%v", this.Parent) + `,`, + `Child:` + fmt.Sprintf("%v", this.Child) + `,`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `Metadata:` + valueToStringGenerated(this.Metadata) + `,`, + `}`, + }, "") + return s +} +func (this *SyftSource) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SyftSource{`, + `ID:` + fmt.Sprintf("%v", this.ID) + `,`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Version:` + fmt.Sprintf("%v", this.Version) + `,`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `Metadata:` + valueToStringGenerated(this.Metadata) + `,`, + `}`, + }, "") + return s +} +func (this *Syscall) String() string { + if this == nil { + return "nil" + } + repeatedStringForArgs := "[]*Arg{" + for _, f := range this.Args { + repeatedStringForArgs += strings.Replace(f.String(), "Arg", "Arg", 1) + "," + } + repeatedStringForArgs += "}" + s := strings.Join([]string{`&Syscall{`, + `Names:` + fmt.Sprintf("%v", this.Names) + `,`, + `Action:` + fmt.Sprintf("%v", this.Action) + `,`, + `ErrnoRet:` + fmt.Sprintf("%v", this.ErrnoRet) + `,`, + `Args:` + repeatedStringForArgs + `,`, + `}`, + }, "") + return s +} +func (this *ToolMeta) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ToolMeta{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Version:` + fmt.Sprintf("%v", this.Version) + `,`, + `}`, + }, "") + return s +} +func (this *UpstreamPackage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&UpstreamPackage{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Version:` + fmt.Sprintf("%v", this.Version) + `,`, + `}`, + }, "") + return s +} +func (this *VEX) String() string { + if this == nil { + return "nil" + } + repeatedStringForStatements := "[]Statement{" + for _, f := range this.Statements { + repeatedStringForStatements += strings.Replace(strings.Replace(f.String(), "Statement", "Statement", 1), `&`, ``, 1) + "," + } + repeatedStringForStatements += "}" + s := strings.Join([]string{`&VEX{`, + `Metadata:` + strings.Replace(strings.Replace(this.Metadata.String(), "Metadata", "Metadata", 1), `&`, ``, 1) + `,`, + `Statements:` + repeatedStringForStatements + `,`, + `}`, + }, "") + return s +} +func (this *VexVulnerability) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&VexVulnerability{`, + `ID:` + fmt.Sprintf("%v", this.ID) + `,`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Description:` + fmt.Sprintf("%v", this.Description) + `,`, + `Aliases:` + fmt.Sprintf("%v", this.Aliases) + `,`, + `}`, + }, "") + return s +} +func (this *VulnerabilitiesComponents) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&VulnerabilitiesComponents{`, + `ImageVulnerabilitiesObj:` + strings.Replace(strings.Replace(this.ImageVulnerabilitiesObj.String(), "VulnerabilitiesObjScope", "VulnerabilitiesObjScope", 1), `&`, ``, 1) + `,`, + `WorkloadVulnerabilitiesObj:` + strings.Replace(strings.Replace(this.WorkloadVulnerabilitiesObj.String(), "VulnerabilitiesObjScope", "VulnerabilitiesObjScope", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *VulnerabilitiesObjScope) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&VulnerabilitiesObjScope{`, + `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, + `}`, + }, "") + return s +} +func (this *Vulnerability) String() string { + if this == nil { + return "nil" + } + repeatedStringForAdvisories := "[]Advisory{" + for _, f := range this.Advisories { + repeatedStringForAdvisories += strings.Replace(strings.Replace(f.String(), "Advisory", "Advisory", 1), `&`, ``, 1) + "," + } + repeatedStringForAdvisories += "}" + s := strings.Join([]string{`&Vulnerability{`, + `VulnerabilityMetadata:` + strings.Replace(strings.Replace(this.VulnerabilityMetadata.String(), "VulnerabilityMetadata", "VulnerabilityMetadata", 1), `&`, ``, 1) + `,`, + `Fix:` + strings.Replace(strings.Replace(this.Fix.String(), "Fix", "Fix", 1), `&`, ``, 1) + `,`, + `Advisories:` + repeatedStringForAdvisories + `,`, + `}`, + }, "") + return s +} +func (this *VulnerabilityCounters) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&VulnerabilityCounters{`, + `All:` + fmt.Sprintf("%v", this.All) + `,`, + `Relevant:` + fmt.Sprintf("%v", this.Relevant) + `,`, + `}`, + }, "") + return s +} +func (this *VulnerabilityManifest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&VulnerabilityManifest{`, + `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "VulnerabilityManifestSpec", "VulnerabilityManifestSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "VulnerabilityManifestStatus", "VulnerabilityManifestStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *VulnerabilityManifestList) String() string { + if this == nil { + return "nil" + } + repeatedStringForItems := "[]VulnerabilityManifest{" + for _, f := range this.Items { + repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "VulnerabilityManifest", "VulnerabilityManifest", 1), `&`, ``, 1) + "," + } + repeatedStringForItems += "}" + s := strings.Join([]string{`&VulnerabilityManifestList{`, + `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + repeatedStringForItems + `,`, + `}`, + }, "") + return s +} +func (this *VulnerabilityManifestMeta) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&VulnerabilityManifestMeta{`, + `WithRelevancy:` + fmt.Sprintf("%v", this.WithRelevancy) + `,`, + `Tool:` + strings.Replace(strings.Replace(this.Tool.String(), "VulnerabilityManifestToolMeta", "VulnerabilityManifestToolMeta", 1), `&`, ``, 1) + `,`, + `Report:` + strings.Replace(strings.Replace(this.Report.String(), "VulnerabilityManifestReportMeta", "VulnerabilityManifestReportMeta", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *VulnerabilityManifestReportMeta) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&VulnerabilityManifestReportMeta{`, + `CreatedAt:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.CreatedAt), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *VulnerabilityManifestSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&VulnerabilityManifestSpec{`, + `Metadata:` + strings.Replace(strings.Replace(this.Metadata.String(), "VulnerabilityManifestMeta", "VulnerabilityManifestMeta", 1), `&`, ``, 1) + `,`, + `Payload:` + strings.Replace(strings.Replace(this.Payload.String(), "GrypeDocument", "GrypeDocument", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *VulnerabilityManifestStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&VulnerabilityManifestStatus{`, + `}`, + }, "") + return s +} +func (this *VulnerabilityManifestSummary) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&VulnerabilityManifestSummary{`, + `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "VulnerabilityManifestSummarySpec", "VulnerabilityManifestSummarySpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "VulnerabilityManifestStatus", "VulnerabilityManifestStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *VulnerabilityManifestSummaryList) String() string { + if this == nil { + return "nil" + } + repeatedStringForItems := "[]VulnerabilityManifestSummary{" + for _, f := range this.Items { + repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "VulnerabilityManifestSummary", "VulnerabilityManifestSummary", 1), `&`, ``, 1) + "," + } + repeatedStringForItems += "}" + s := strings.Join([]string{`&VulnerabilityManifestSummaryList{`, + `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + repeatedStringForItems + `,`, + `}`, + }, "") + return s +} +func (this *VulnerabilityManifestSummarySpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&VulnerabilityManifestSummarySpec{`, + `Severities:` + strings.Replace(strings.Replace(this.Severities.String(), "SeveritySummary", "SeveritySummary", 1), `&`, ``, 1) + `,`, + `Vulnerabilities:` + strings.Replace(strings.Replace(this.Vulnerabilities.String(), "VulnerabilitiesComponents", "VulnerabilitiesComponents", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *VulnerabilityManifestToolMeta) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&VulnerabilityManifestToolMeta{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Version:` + fmt.Sprintf("%v", this.Version) + `,`, + `DatabaseVersion:` + fmt.Sprintf("%v", this.DatabaseVersion) + `,`, + `}`, + }, "") + return s +} +func (this *VulnerabilityMetadata) String() string { + if this == nil { + return "nil" + } + repeatedStringForCvss := "[]Cvss{" + for _, f := range this.Cvss { + repeatedStringForCvss += strings.Replace(strings.Replace(f.String(), "Cvss", "Cvss", 1), `&`, ``, 1) + "," + } + repeatedStringForCvss += "}" + s := strings.Join([]string{`&VulnerabilityMetadata{`, + `ID:` + fmt.Sprintf("%v", this.ID) + `,`, + `DataSource:` + fmt.Sprintf("%v", this.DataSource) + `,`, + `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, + `Severity:` + fmt.Sprintf("%v", this.Severity) + `,`, + `URLs:` + fmt.Sprintf("%v", this.URLs) + `,`, + `Description:` + fmt.Sprintf("%v", this.Description) + `,`, + `Cvss:` + repeatedStringForCvss + `,`, + `}`, + }, "") + return s +} +func (this *VulnerabilitySummary) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&VulnerabilitySummary{`, + `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "VulnerabilitySummarySpec", "VulnerabilitySummarySpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "VulnerabilitySummaryStatus", "VulnerabilitySummaryStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *VulnerabilitySummaryList) String() string { + if this == nil { + return "nil" + } + repeatedStringForItems := "[]VulnerabilitySummary{" + for _, f := range this.Items { + repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "VulnerabilitySummary", "VulnerabilitySummary", 1), `&`, ``, 1) + "," + } + repeatedStringForItems += "}" + s := strings.Join([]string{`&VulnerabilitySummaryList{`, + `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + repeatedStringForItems + `,`, + `}`, + }, "") + return s +} +func (this *VulnerabilitySummarySpec) String() string { + if this == nil { + return "nil" + } + repeatedStringForWorkloadVulnerabilitiesObj := "[]VulnerabilitiesObjScope{" + for _, f := range this.WorkloadVulnerabilitiesObj { + repeatedStringForWorkloadVulnerabilitiesObj += strings.Replace(strings.Replace(f.String(), "VulnerabilitiesObjScope", "VulnerabilitiesObjScope", 1), `&`, ``, 1) + "," + } + repeatedStringForWorkloadVulnerabilitiesObj += "}" + s := strings.Join([]string{`&VulnerabilitySummarySpec{`, + `Severities:` + strings.Replace(strings.Replace(this.Severities.String(), "SeveritySummary", "SeveritySummary", 1), `&`, ``, 1) + `,`, + `WorkloadVulnerabilitiesObj:` + repeatedStringForWorkloadVulnerabilitiesObj + `,`, + `}`, + }, "") + return s +} +func (this *VulnerabilitySummaryStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&VulnerabilitySummaryStatus{`, + `}`, + }, "") + return s +} +func (this *WorkloadConfigurationScan) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&WorkloadConfigurationScan{`, + `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "WorkloadConfigurationScanSpec", "WorkloadConfigurationScanSpec", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *WorkloadConfigurationScanList) String() string { + if this == nil { + return "nil" + } + repeatedStringForItems := "[]WorkloadConfigurationScan{" + for _, f := range this.Items { + repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "WorkloadConfigurationScan", "WorkloadConfigurationScan", 1), `&`, ``, 1) + "," + } + repeatedStringForItems += "}" + s := strings.Join([]string{`&WorkloadConfigurationScanList{`, + `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + repeatedStringForItems + `,`, + `}`, + }, "") + return s +} +func (this *WorkloadConfigurationScanSeveritiesSummary) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&WorkloadConfigurationScanSeveritiesSummary{`, + `Critical:` + fmt.Sprintf("%v", this.Critical) + `,`, + `High:` + fmt.Sprintf("%v", this.High) + `,`, + `Medium:` + fmt.Sprintf("%v", this.Medium) + `,`, + `Low:` + fmt.Sprintf("%v", this.Low) + `,`, + `Unknown:` + fmt.Sprintf("%v", this.Unknown) + `,`, + `}`, + }, "") + return s +} +func (this *WorkloadConfigurationScanSpec) String() string { + if this == nil { + return "nil" + } + repeatedStringForRelatedObjects := "[]WorkloadScanRelatedObject{" + for _, f := range this.RelatedObjects { + repeatedStringForRelatedObjects += strings.Replace(strings.Replace(f.String(), "WorkloadScanRelatedObject", "WorkloadScanRelatedObject", 1), `&`, ``, 1) + "," + } + repeatedStringForRelatedObjects += "}" + keysForControls := make([]string, 0, len(this.Controls)) + for k := range this.Controls { + keysForControls = append(keysForControls, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForControls) + mapStringForControls := "map[string]ScannedControl{" + for _, k := range keysForControls { + mapStringForControls += fmt.Sprintf("%v: %v,", k, this.Controls[k]) + } + mapStringForControls += "}" + s := strings.Join([]string{`&WorkloadConfigurationScanSpec{`, + `Controls:` + mapStringForControls + `,`, + `RelatedObjects:` + repeatedStringForRelatedObjects + `,`, + `}`, + }, "") + return s +} +func (this *WorkloadConfigurationScanSummary) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&WorkloadConfigurationScanSummary{`, + `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "WorkloadConfigurationScanSummarySpec", "WorkloadConfigurationScanSummarySpec", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *WorkloadConfigurationScanSummaryIdentifier) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&WorkloadConfigurationScanSummaryIdentifier{`, + `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, + `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `}`, + }, "") + return s +} +func (this *WorkloadConfigurationScanSummaryList) String() string { + if this == nil { + return "nil" + } + repeatedStringForItems := "[]WorkloadConfigurationScanSummary{" + for _, f := range this.Items { + repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "WorkloadConfigurationScanSummary", "WorkloadConfigurationScanSummary", 1), `&`, ``, 1) + "," + } + repeatedStringForItems += "}" + s := strings.Join([]string{`&WorkloadConfigurationScanSummaryList{`, + `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + repeatedStringForItems + `,`, + `}`, + }, "") + return s +} +func (this *WorkloadConfigurationScanSummarySpec) String() string { + if this == nil { + return "nil" + } + keysForControls := make([]string, 0, len(this.Controls)) + for k := range this.Controls { + keysForControls = append(keysForControls, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForControls) + mapStringForControls := "map[string]ScannedControlSummary{" + for _, k := range keysForControls { + mapStringForControls += fmt.Sprintf("%v: %v,", k, this.Controls[k]) + } + mapStringForControls += "}" + s := strings.Join([]string{`&WorkloadConfigurationScanSummarySpec{`, + `Severities:` + strings.Replace(strings.Replace(this.Severities.String(), "WorkloadConfigurationScanSeveritiesSummary", "WorkloadConfigurationScanSeveritiesSummary", 1), `&`, ``, 1) + `,`, + `Controls:` + mapStringForControls + `,`, + `}`, + }, "") + return s +} +func (this *WorkloadScanRelatedObject) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&WorkloadScanRelatedObject{`, + `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, + `APIGroup:` + fmt.Sprintf("%v", this.APIGroup) + `,`, + `APIVersion:` + fmt.Sprintf("%v", this.APIVersion) + `,`, + `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `}`, + }, "") + return s +} +func valueToStringGenerated(v interface{}) string { + rv := reflect.ValueOf(v) + if rv.IsNil() { + return "nil" + } + pv := reflect.Indirect(rv).Interface() + return fmt.Sprintf("*%v", pv) +} +func (m *Advisory) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Advisory: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Advisory: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Link", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Link = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ApplicationActivity) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ApplicationActivity: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ApplicationActivity: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ApplicationActivityList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ApplicationActivityList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ApplicationActivityList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, ApplicationActivity{}) + if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ApplicationActivitySpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ApplicationActivitySpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ApplicationActivitySpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Syscalls", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Syscalls = append(m.Syscalls, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ApplicationActivityStatus) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ApplicationActivityStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ApplicationActivityStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ApplicationProfile) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ApplicationProfile: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ApplicationProfile: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ApplicationProfileContainer) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ApplicationProfileContainer: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ApplicationProfileContainer: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Capabilities", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Capabilities = append(m.Capabilities, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Execs", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Execs = append(m.Execs, ExecCalls{}) + if err := m.Execs[len(m.Execs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Opens", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Opens = append(m.Opens, OpenCalls{}) + if err := m.Opens[len(m.Opens)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Syscalls", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Syscalls = append(m.Syscalls, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SeccompProfile", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.SeccompProfile.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ApplicationProfileList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ApplicationProfileList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ApplicationProfileList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, ApplicationProfile{}) + if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ApplicationProfileSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ApplicationProfileSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ApplicationProfileSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Architectures", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Architectures = append(m.Architectures, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Containers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Containers = append(m.Containers, ApplicationProfileContainer{}) + if err := m.Containers[len(m.Containers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InitContainers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.InitContainers = append(m.InitContainers, ApplicationProfileContainer{}) + if err := m.InitContainers[len(m.InitContainers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EphemeralContainers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EphemeralContainers = append(m.EphemeralContainers, ApplicationProfileContainer{}) + if err := m.EphemeralContainers[len(m.EphemeralContainers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ApplicationProfileStatus) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ApplicationProfileStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ApplicationProfileStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Arg) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Arg: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Arg: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + } + m.Index = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Index |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + m.Value = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Value |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ValueTwo", wireType) + } + m.ValueTwo = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ValueTwo |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Op", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Op = github_com_containers_common_pkg_seccomp.Operator(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CPE) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CPE: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CPE: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Value = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Source = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Component) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Component: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Component: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Hashes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Hashes == nil { + m.Hashes = make(map[Algorithm]Hash) + } + var mapkey Algorithm + var mapvalue Hash + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLengthGenerated + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthGenerated + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = Algorithm(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var stringLenmapvalue uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapvalue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapvalue := int(stringLenmapvalue) + if intStringLenmapvalue < 0 { + return ErrInvalidLengthGenerated + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLengthGenerated + } + if postStringIndexmapvalue > l { + return io.ErrUnexpectedEOF + } + mapvalue = Hash(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + } else { + iNdEx = entryPreIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.Hashes[Algorithm(mapkey)] = ((Hash)(mapvalue)) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Identifiers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Identifiers == nil { + m.Identifiers = make(map[IdentifierType]string) + } + var mapkey IdentifierType + var mapvalue string + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLengthGenerated + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthGenerated + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = IdentifierType(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var stringLenmapvalue uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapvalue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapvalue := int(stringLenmapvalue) + if intStringLenmapvalue < 0 { + return ErrInvalidLengthGenerated + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLengthGenerated + } + if postStringIndexmapvalue > l { + return io.ErrUnexpectedEOF + } + mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + } else { + iNdEx = entryPreIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.Identifiers[IdentifierType(mapkey)] = mapvalue + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Supplier", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Supplier = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Condition) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Condition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Condition: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Type = ConditionType(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Status = k8s_io_api_core_v1.ConditionStatus(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Reason = ConditionReason(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Message = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ConditionedStatus) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ConditionedStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ConditionedStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Conditions = append(m.Conditions, Condition{}) + if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ConfigurationScanSummary) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ConfigurationScanSummary: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ConfigurationScanSummary: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ConfigurationScanSummaryList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ConfigurationScanSummaryList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ConfigurationScanSummaryList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, ConfigurationScanSummary{}) + if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ConfigurationScanSummarySpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ConfigurationScanSummarySpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ConfigurationScanSummarySpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Severities", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Severities.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field WorkloadConfigurationScanSummaryIdentifiers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.WorkloadConfigurationScanSummaryIdentifiers = append(m.WorkloadConfigurationScanSummaryIdentifiers, WorkloadConfigurationScanSummaryIdentifier{}) + if err := m.WorkloadConfigurationScanSummaryIdentifiers[len(m.WorkloadConfigurationScanSummaryIdentifiers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ControlSeverity) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ControlSeverity: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ControlSeverity: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Severity", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Severity = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field ScoreFactor", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.ScoreFactor = float32(math.Float32frombits(v)) + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Coordinates) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Coordinates: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Coordinates: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RealPath", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RealPath = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FileSystemID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FileSystemID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Cvss) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Cvss: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Cvss: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Version = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Vector", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Vector = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Metrics", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Metrics.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VendorMetadata", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.VendorMetadata = append(m.VendorMetadata[:0], dAtA[iNdEx:postIndex]...) + if m.VendorMetadata == nil { + m.VendorMetadata = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CvssMetrics) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CvssMetrics: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CvssMetrics: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field BaseScore", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.BaseScore = float64(math.Float64frombits(v)) + case 2: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field ExploitabilityScore", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.ExploitabilityScore = &v2 + case 3: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field ImpactScore", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.ImpactScore = &v2 + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Descriptor) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Descriptor: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Descriptor: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Version = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Configuration", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Configuration = append(m.Configuration[:0], dAtA[iNdEx:postIndex]...) + if m.Configuration == nil { + m.Configuration = []byte{} + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VulnerabilityDBStatus", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.VulnerabilityDBStatus = append(m.VulnerabilityDBStatus[:0], dAtA[iNdEx:postIndex]...) + if m.VulnerabilityDBStatus == nil { + m.VulnerabilityDBStatus = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Digest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Digest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Digest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Algorithm", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Algorithm = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Value = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Distribution) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Distribution: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Distribution: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Version = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IDLike", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IDLike = append(m.IDLike, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ELFSecurityFeatures) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ELFSecurityFeatures: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ELFSecurityFeatures: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SymbolTableStripped", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SymbolTableStripped = bool(v != 0) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StackCanary", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.StackCanary = &b + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NoExecutable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NoExecutable = bool(v != 0) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RelocationReadOnly", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RelocationReadOnly = RelocationReadOnly(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PositionIndependentExecutable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PositionIndependentExecutable = bool(v != 0) + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DynamicSharedObject", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DynamicSharedObject = bool(v != 0) + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LlvmSafeStack", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.LlvmSafeStack = &b + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LlvmControlFlowIntegrity", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.LlvmControlFlowIntegrity = &b + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ClangFortifySource", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.ClangFortifySource = &b + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ExecCalls) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ExecCalls: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ExecCalls: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Path = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Args", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Args = append(m.Args, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Envs", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Envs = append(m.Envs, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Executable) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Executable: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Executable: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Format", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Format = ExecutableFormat(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HasExports", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HasExports = bool(v != 0) + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HasEntrypoint", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HasEntrypoint = bool(v != 0) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ImportedLibraries", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ImportedLibraries = append(m.ImportedLibraries, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ELFSecurityFeatures", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ELFSecurityFeatures == nil { + m.ELFSecurityFeatures = &ELFSecurityFeatures{} + } + if err := m.ELFSecurityFeatures.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FileLicense) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: FileLicense: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FileLicense: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Value = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SPDXExpression", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SPDXExpression = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Type = LicenseType(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Evidence", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Evidence == nil { + m.Evidence = &FileLicenseEvidence{} + } + if err := m.Evidence.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FileLicenseEvidence) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: FileLicenseEvidence: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FileLicenseEvidence: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Confidence", wireType) + } + m.Confidence = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Confidence |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Offset", wireType) + } + m.Offset = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Offset |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Extent", wireType) + } + m.Extent = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Extent |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FileMetadataEntry) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: FileMetadataEntry: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FileMetadataEntry: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Mode", wireType) + } + m.Mode = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Mode |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Type = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LinkDestination", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LinkDestination = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UserID", wireType) + } + m.UserID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.UserID |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupID", wireType) + } + m.GroupID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupID |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MIMEType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MIMEType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Size_", wireType) + } + m.Size_ = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Size_ |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Fix) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Fix: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Fix: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Versions", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Versions = append(m.Versions, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.State = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GeneratedNetworkPolicy) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GeneratedNetworkPolicy: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GeneratedNetworkPolicy: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PoliciesRef", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PoliciesRef = append(m.PoliciesRef, PolicyRef{}) + if err := m.PoliciesRef[len(m.PoliciesRef)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GeneratedNetworkPolicyList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GeneratedNetworkPolicyList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GeneratedNetworkPolicyList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, GeneratedNetworkPolicy{}) + if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GrypeDocument) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GrypeDocument: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GrypeDocument: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Matches", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Matches = append(m.Matches, Match{}) + if err := m.Matches[len(m.Matches)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IgnoredMatches", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IgnoredMatches = append(m.IgnoredMatches, IgnoredMatch{}) + if err := m.IgnoredMatches[len(m.IgnoredMatches)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Source == nil { + m.Source = &Source{} + } + if err := m.Source.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Distro", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Distro.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Descriptor_", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Descriptor_.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GrypePackage) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GrypePackage: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GrypePackage: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Version = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Type = SyftType(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Locations", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Locations = append(m.Locations, SyftCoordinates{}) + if err := m.Locations[len(m.Locations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Language", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Language = SyftLanguage(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Licenses", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Licenses = append(m.Licenses, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CPEs", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CPEs = append(m.CPEs, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PURL", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PURL = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Upstreams", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Upstreams = append(m.Upstreams, UpstreamPackage{}) + if err := m.Upstreams[len(m.Upstreams)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MetadataType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MetadataType = MetadataType(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Metadata = append(m.Metadata[:0], dAtA[iNdEx:postIndex]...) + if m.Metadata == nil { + m.Metadata = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *HTTPIngressPath) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: HTTPIngressPath: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: HTTPIngressPath: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Path = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Backend", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Backend.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PathType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := PathType(dAtA[iNdEx:postIndex]) + m.PathType = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *HTTPIngressRuleValue) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: HTTPIngressRuleValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: HTTPIngressRuleValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Paths", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Paths = append(m.Paths, HTTPIngressPath{}) + if err := m.Paths[len(m.Paths)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *IPBlock) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: IPBlock: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IPBlock: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CIDR", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CIDR = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Except", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Except = append(m.Except, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *IgnoreRule) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: IgnoreRule: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IgnoreRule: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Vulnerability", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Vulnerability = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FixState", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FixState = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Package", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Package == nil { + m.Package = &IgnoreRulePackage{} + } + if err := m.Package.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *IgnoreRulePackage) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: IgnoreRulePackage: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IgnoreRulePackage: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Version = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Type = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Location", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Location = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UpstreamName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UpstreamName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *IgnoredMatch) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: IgnoredMatch: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IgnoredMatch: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Match", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Match.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AppliedIgnoreRules", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AppliedIgnoreRules = append(m.AppliedIgnoreRules, IgnoreRule{}) + if err := m.AppliedIgnoreRules[len(m.AppliedIgnoreRules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Ingress) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Ingress: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Ingress: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *IngressBackend) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: IngressBackend: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IngressBackend: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Resource == nil { + m.Resource = &v11.TypedLocalObjectReference{} + } + if err := m.Resource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Service", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Service == nil { + m.Service = &IngressServiceBackend{} + } + if err := m.Service.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *IngressClass) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: IngressClass: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IngressClass: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *IngressClassList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: IngressClassList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IngressClassList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, IngressClass{}) + if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *IngressClassParametersReference) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: IngressClassParametersReference: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IngressClassParametersReference: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field APIGroup", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.APIGroup = &s + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Kind = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Scope", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Scope = &s + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Namespace = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *IngressClassSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: IngressClassSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IngressClassSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Controller", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Controller = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Parameters", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Parameters == nil { + m.Parameters = &IngressClassParametersReference{} + } + if err := m.Parameters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *IngressList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: IngressList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IngressList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, Ingress{}) + if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *IngressLoadBalancerIngress) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: IngressLoadBalancerIngress: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IngressLoadBalancerIngress: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IP", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IP = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Hostname", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Hostname = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ports", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Ports = append(m.Ports, IngressPortStatus{}) + if err := m.Ports[len(m.Ports)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *IngressLoadBalancerStatus) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: IngressLoadBalancerStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IngressLoadBalancerStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ingress", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Ingress = append(m.Ingress, IngressLoadBalancerIngress{}) + if err := m.Ingress[len(m.Ingress)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *IngressPortStatus) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: IngressPortStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IngressPortStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) + } + m.Port = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Port |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Protocol", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Protocol = k8s_io_api_core_v1.Protocol(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Error = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *IngressRule) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: IngressRule: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IngressRule: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Host", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Host = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IngressRuleValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.IngressRuleValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *IngressRuleValue) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: IngressRuleValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IngressRuleValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HTTP", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.HTTP == nil { + m.HTTP = &HTTPIngressRuleValue{} + } + if err := m.HTTP.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *IngressServiceBackend) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: IngressServiceBackend: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IngressServiceBackend: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Port.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *IngressSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: IngressSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IngressSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DefaultBackend", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DefaultBackend == nil { + m.DefaultBackend = &IngressBackend{} + } + if err := m.DefaultBackend.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TLS", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TLS = append(m.TLS, IngressTLS{}) + if err := m.TLS[len(m.TLS)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Rules = append(m.Rules, IngressRule{}) + if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IngressClassName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.IngressClassName = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *IngressStatus) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: IngressStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IngressStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LoadBalancer", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.LoadBalancer.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *IngressTLS) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: IngressTLS: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IngressTLS: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Hosts", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Hosts = append(m.Hosts, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SecretName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SecretName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *KnownServer) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: KnownServer: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: KnownServer: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Spec = append(m.Spec, KnownServerEntry{}) + if err := m.Spec[len(m.Spec)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *KnownServerEntry) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: KnownServerEntry: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: KnownServerEntry: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IPBlock", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IPBlock = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Server", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Server = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *KnownServerList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: KnownServerList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: KnownServerList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, KnownServer{}) + if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *License) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: License: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: License: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Value = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SPDXExpression", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SPDXExpression = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Type = LicenseType(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field URLs", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.URLs = append(m.URLs, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Locations", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Locations = append(m.Locations, Location{}) + if err := m.Locations[len(m.Locations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LinuxRelease) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: LinuxRelease: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LinuxRelease: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrettyName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PrettyName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IDLike", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IDLike = append(m.IDLike, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Version = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VersionID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.VersionID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VersionCodename", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.VersionCodename = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BuildID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BuildID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ImageID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ImageID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ImageVersion", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ImageVersion = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Variant", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Variant = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VariantID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.VariantID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 13: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HomeURL", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.HomeURL = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 14: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SupportURL", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SupportURL = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 15: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BugReportURL", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BugReportURL = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 16: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrivacyPolicyURL", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PrivacyPolicyURL = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 17: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CPEName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CPEName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 18: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SupportEnd", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SupportEnd = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Location) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Location: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Location: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LocationData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.LocationData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LocationMetadata", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.LocationMetadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LocationData) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: LocationData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LocationData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Coordinates", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Coordinates.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VirtualPath", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.VirtualPath = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LocationMetadata) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: LocationMetadata: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LocationMetadata: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Annotations == nil { + m.Annotations = make(map[string]string) + } + var mapkey string + var mapvalue string + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLengthGenerated + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthGenerated + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var stringLenmapvalue uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapvalue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapvalue := int(stringLenmapvalue) + if intStringLenmapvalue < 0 { + return ErrInvalidLengthGenerated + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLengthGenerated + } + if postStringIndexmapvalue > l { + return io.ErrUnexpectedEOF + } + mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + } else { + iNdEx = entryPreIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.Annotations[mapkey] = mapvalue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Match) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Match: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Match: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Vulnerability", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Vulnerability.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RelatedVulnerabilities", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RelatedVulnerabilities = append(m.RelatedVulnerabilities, VulnerabilityMetadata{}) + if err := m.RelatedVulnerabilities[len(m.RelatedVulnerabilities)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MatchDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MatchDetails = append(m.MatchDetails, MatchDetails{}) + if err := m.MatchDetails[len(m.MatchDetails)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Artifact", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Artifact.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MatchDetails) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MatchDetails: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MatchDetails: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Type = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Matcher", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Matcher = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SearchedBy", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SearchedBy = append(m.SearchedBy[:0], dAtA[iNdEx:postIndex]...) + if m.SearchedBy == nil { + m.SearchedBy = []byte{} + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Found", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Found = append(m.Found[:0], dAtA[iNdEx:postIndex]...) + if m.Found == nil { + m.Found = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Metadata) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Metadata: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Metadata: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Context", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Context = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Author", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Author = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthorRole", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AuthorRole = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Timestamp = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastUpdated", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LastUpdated = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + m.Version = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Version |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tooling", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tooling = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Supplier", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Supplier = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkNeighbor) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NetworkNeighbor: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NetworkNeighbor: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Identifier", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Identifier = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Type = CommunicationType(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DNS", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DNS = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DNSNames", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DNSNames = append(m.DNSNames, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ports", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Ports = append(m.Ports, NetworkPort{}) + if err := m.Ports[len(m.Ports)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PodSelector", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PodSelector == nil { + m.PodSelector = &v1.LabelSelector{} + } + if err := m.PodSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NamespaceSelector", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.NamespaceSelector == nil { + m.NamespaceSelector = &v1.LabelSelector{} + } + if err := m.NamespaceSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IPAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IPAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkNeighborhood) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NetworkNeighborhood: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NetworkNeighborhood: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkNeighborhoodContainer) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NetworkNeighborhoodContainer: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NetworkNeighborhoodContainer: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ingress", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Ingress = append(m.Ingress, NetworkNeighbor{}) + if err := m.Ingress[len(m.Ingress)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Egress", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Egress = append(m.Egress, NetworkNeighbor{}) + if err := m.Egress[len(m.Egress)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkNeighborhoodList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NetworkNeighborhoodList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NetworkNeighborhoodList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, NetworkNeighborhood{}) + if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkNeighborhoodSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NetworkNeighborhoodSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NetworkNeighborhoodSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LabelSelector", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.LabelSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Containers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Containers = append(m.Containers, NetworkNeighborhoodContainer{}) + if err := m.Containers[len(m.Containers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InitContainers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.InitContainers = append(m.InitContainers, NetworkNeighborhoodContainer{}) + if err := m.InitContainers[len(m.InitContainers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EphemeralContainers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EphemeralContainers = append(m.EphemeralContainers, NetworkNeighborhoodContainer{}) + if err := m.EphemeralContainers[len(m.EphemeralContainers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkNeighbors) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NetworkNeighbors: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NetworkNeighbors: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkNeighborsList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NetworkNeighborsList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NetworkNeighborsList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, NetworkNeighbors{}) + if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkNeighborsSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NetworkNeighborsSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NetworkNeighborsSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LabelSelector", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.LabelSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ingress", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Ingress = append(m.Ingress, NetworkNeighbor{}) + if err := m.Ingress[len(m.Ingress)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Egress", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Egress = append(m.Egress, NetworkNeighbor{}) + if err := m.Egress[len(m.Egress)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkPolicy) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NetworkPolicy: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NetworkPolicy: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Kind = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field APIVersion", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.APIVersion = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkPolicyEgressRule) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NetworkPolicyEgressRule: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NetworkPolicyEgressRule: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ports", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Ports = append(m.Ports, NetworkPolicyPort{}) + if err := m.Ports[len(m.Ports)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.To = append(m.To, NetworkPolicyPeer{}) + if err := m.To[len(m.To)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkPolicyIngressRule) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NetworkPolicyIngressRule: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NetworkPolicyIngressRule: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ports", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Ports = append(m.Ports, NetworkPolicyPort{}) + if err := m.Ports[len(m.Ports)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.From = append(m.From, NetworkPolicyPeer{}) + if err := m.From[len(m.From)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkPolicyList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NetworkPolicyList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NetworkPolicyList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, NetworkPolicy{}) + if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkPolicyPeer) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NetworkPolicyPeer: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NetworkPolicyPeer: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PodSelector", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PodSelector == nil { + m.PodSelector = &v1.LabelSelector{} + } + if err := m.PodSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NamespaceSelector", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.NamespaceSelector == nil { + m.NamespaceSelector = &v1.LabelSelector{} + } + if err := m.NamespaceSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IPBlock", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.IPBlock == nil { + m.IPBlock = &IPBlock{} + } + if err := m.IPBlock.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkPolicyPort) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NetworkPolicyPort: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NetworkPolicyPort: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Protocol", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := k8s_io_api_core_v1.Protocol(dAtA[iNdEx:postIndex]) + m.Protocol = &s + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Port = &v + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EndPort", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EndPort = &v + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkPolicySpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NetworkPolicySpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NetworkPolicySpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PodSelector", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.PodSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ingress", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Ingress = append(m.Ingress, NetworkPolicyIngressRule{}) + if err := m.Ingress[len(m.Ingress)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Egress", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Egress = append(m.Egress, NetworkPolicyEgressRule{}) + if err := m.Egress[len(m.Egress)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PolicyTypes", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PolicyTypes = append(m.PolicyTypes, PolicyType(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkPolicyStatus) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NetworkPolicyStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NetworkPolicyStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Conditions = append(m.Conditions, v1.Condition{}) + if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkPort) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NetworkPort: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NetworkPort: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Protocol", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Protocol = Protocol(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Port = &v + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *OpenCalls) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: OpenCalls: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OpenCalls: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Path = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Flags", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Flags = append(m.Flags, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *OpenVulnerabilityExchangeContainer) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: OpenVulnerabilityExchangeContainer: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OpenVulnerabilityExchangeContainer: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *OpenVulnerabilityExchangeContainerList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: OpenVulnerabilityExchangeContainerList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OpenVulnerabilityExchangeContainerList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, OpenVulnerabilityExchangeContainer{}) + if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PackageBasicData) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PackageBasicData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PackageBasicData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Version = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Type = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FoundBy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FoundBy = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Locations", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Locations = append(m.Locations, Location{}) + if err := m.Locations[len(m.Locations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Licenses", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Licenses = append(m.Licenses, License{}) + if err := m.Licenses[len(m.Licenses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Language", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Language = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CPEs", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CPEs = append(m.CPEs, CPE{}) + if err := m.CPEs[len(m.CPEs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PURL", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PURL = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PackageBasicDataV01011) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PackageBasicDataV01011: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PackageBasicDataV01011: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Version = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Type = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FoundBy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FoundBy = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Locations", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Locations = append(m.Locations, Location{}) + if err := m.Locations[len(m.Locations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Licenses", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Licenses = append(m.Licenses, License{}) + if err := m.Licenses[len(m.Licenses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Language", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Language = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CPEs", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CPEs = append(m.CPEs, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PURL", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PURL = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PackageCustomData) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PackageCustomData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PackageCustomData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MetadataType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MetadataType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Metadata = append(m.Metadata[:0], dAtA[iNdEx:postIndex]...) + if m.Metadata == nil { + m.Metadata = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PolicyRef) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PolicyRef: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PolicyRef: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IPBlock", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IPBlock = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginalIP", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginalIP = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DNS", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DNS = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Server", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Server = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Product) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Product: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Product: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Component", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Component.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Subcomponents", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Subcomponents = append(m.Subcomponents, Subcomponent{}) + if err := m.Subcomponents[len(m.Subcomponents)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ReportMeta) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ReportMeta: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ReportMeta: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreatedAt", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CreatedAt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RulePath) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RulePath: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RulePath: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FailedPath", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FailedPath = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FixPath", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FixPath = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FixPathValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FixPathValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FixCommand", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FixCommand = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RuleStatus) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RuleStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RuleStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Status = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SubStatus", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SubStatus = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SBOMSyft) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SBOMSyft: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SBOMSyft: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SBOMSyftFiltered) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SBOMSyftFiltered: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SBOMSyftFiltered: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SBOMSyftFilteredList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SBOMSyftFilteredList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SBOMSyftFilteredList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, SBOMSyftFiltered{}) + if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SBOMSyftList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SBOMSyftList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SBOMSyftList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, SBOMSyft{}) + if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SBOMSyftSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SBOMSyftSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SBOMSyftSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Syft", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Syft.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SBOMSyftStatus) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SBOMSyftStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SBOMSyftStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SPDXMeta) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SPDXMeta: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SPDXMeta: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tool", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Tool.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Report", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Report.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ScannedControl) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ScannedControl: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ScannedControl: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ControlID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ControlID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Severity", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Severity.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Rules = append(m.Rules, ScannedControlRule{}) + if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ScannedControlRule) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ScannedControlRule: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ScannedControlRule: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ControlConfigurations", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ControlConfigurations == nil { + m.ControlConfigurations = make(map[string]string) + } + var mapkey string + var mapvalue string + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLengthGenerated + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthGenerated + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var stringLenmapvalue uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapvalue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapvalue := int(stringLenmapvalue) + if intStringLenmapvalue < 0 { + return ErrInvalidLengthGenerated + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLengthGenerated + } + if postStringIndexmapvalue > l { + return io.ErrUnexpectedEOF + } + mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + } else { + iNdEx = entryPreIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.ControlConfigurations[mapkey] = mapvalue + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Paths", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Paths = append(m.Paths, RulePath{}) + if err := m.Paths[len(m.Paths)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AppliedIgnoreRules", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AppliedIgnoreRules = append(m.AppliedIgnoreRules, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RelatedResourcesIDs", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RelatedResourcesIDs = append(m.RelatedResourcesIDs, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ScannedControlStatus) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ScannedControlStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ScannedControlStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Status = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SubStatus", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SubStatus = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Info = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ScannedControlSummary) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ScannedControlSummary: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ScannedControlSummary: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ControlID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ControlID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Severity", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Severity.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Schema) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Schema: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Schema: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Version = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field URL", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.URL = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SeccompProfile) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SeccompProfile: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SeccompProfile: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SeccompProfileList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SeccompProfileList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SeccompProfileList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, SeccompProfile{}) + if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SeccompProfileSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SeccompProfileSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SeccompProfileSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Containers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Containers = append(m.Containers, SingleSeccompProfile{}) + if err := m.Containers[len(m.Containers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InitContainers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.InitContainers = append(m.InitContainers, SingleSeccompProfile{}) + if err := m.InitContainers[len(m.InitContainers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EphemeralContainers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EphemeralContainers = append(m.EphemeralContainers, SingleSeccompProfile{}) + if err := m.EphemeralContainers[len(m.EphemeralContainers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SeccompProfileStatus) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SeccompProfileStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SeccompProfileStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Containers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Containers == nil { + m.Containers = make(map[string]SingleSeccompProfileStatus) + } + var mapkey string + mapvalue := &SingleSeccompProfileStatus{} + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLengthGenerated + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthGenerated + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return ErrInvalidLengthGenerated + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return ErrInvalidLengthGenerated + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &SingleSeccompProfileStatus{} + if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.Containers[mapkey] = *mapvalue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ServiceBackendPort) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ServiceBackendPort: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ServiceBackendPort: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Number", wireType) + } + m.Number = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Number |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SeveritySummary) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SeveritySummary: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SeveritySummary: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Critical", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Critical.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field High", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.High.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Medium", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Medium.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Low", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Low.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Negligible", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Negligible.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Unknown", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Unknown.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SingleSeccompProfile) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SingleSeccompProfile: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SingleSeccompProfile: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Path = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SingleSeccompProfileSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SingleSeccompProfileSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SingleSeccompProfileSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SpecBase", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.SpecBase.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BaseProfileName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BaseProfileName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DefaultAction", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DefaultAction = github_com_containers_common_pkg_seccomp.Action(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Architectures", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Architectures = append(m.Architectures, Arch(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListenerPath", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ListenerPath = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListenerMetadata", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ListenerMetadata = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Syscalls", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Syscalls = append(m.Syscalls, &Syscall{}) + if err := m.Syscalls[len(m.Syscalls)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Flags", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Flags = append(m.Flags, Flag(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SingleSeccompProfileStatus) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SingleSeccompProfileStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SingleSeccompProfileStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StatusBase", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.StatusBase.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Path = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ActiveWorkloads", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ActiveWorkloads = append(m.ActiveWorkloads, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LocalhostProfile", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LocalhostProfile = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Source) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Source: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Source: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Type = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Target = append(m.Target[:0], dAtA[iNdEx:postIndex]...) + if m.Target == nil { + m.Target = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SpecBase) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SpecBase: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SpecBase: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Disabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Disabled = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Statement) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Statement: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Statement: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Vulnerability", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Vulnerability.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Timestamp = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastUpdated", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LastUpdated = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Products", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Products = append(m.Products, Product{}) + if err := m.Products[len(m.Products)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Status = Status(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StatusNotes", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.StatusNotes = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Justification", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Justification = Justification(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ImpactStatement", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ImpactStatement = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ActionStatement", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ActionStatement = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ActionStatementTimestamp", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ActionStatementTimestamp = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StatusBase) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StatusBase: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StatusBase: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ConditionedStatus", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ConditionedStatus.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Status = ProfileState(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Subcomponent) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Subcomponent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Subcomponent: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Component", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Component.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SyftCoordinates) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SyftCoordinates: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SyftCoordinates: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RealPath", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RealPath = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FileSystemID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FileSystemID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SyftDescriptor) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SyftDescriptor: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SyftDescriptor: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Version = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Configuration", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Configuration = append(m.Configuration[:0], dAtA[iNdEx:postIndex]...) + if m.Configuration == nil { + m.Configuration = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SyftDocument) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SyftDocument: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SyftDocument: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Artifacts", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Artifacts = append(m.Artifacts, SyftPackage{}) + if err := m.Artifacts[len(m.Artifacts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ArtifactRelationships", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ArtifactRelationships = append(m.ArtifactRelationships, SyftRelationship{}) + if err := m.ArtifactRelationships[len(m.ArtifactRelationships)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Files", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Files = append(m.Files, SyftFile{}) + if err := m.Files[len(m.Files)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SyftSource", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.SyftSource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Distro", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Distro.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SyftDescriptor", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.SyftDescriptor.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Schema", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Schema.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SyftFile) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SyftFile: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SyftFile: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Location", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Location.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Metadata == nil { + m.Metadata = &FileMetadataEntry{} + } + if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Contents", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Contents = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Digests", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Digests = append(m.Digests, Digest{}) + if err := m.Digests[len(m.Digests)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Licenses", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Licenses = append(m.Licenses, FileLicense{}) + if err := m.Licenses[len(m.Licenses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Executable", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Executable == nil { + m.Executable = &Executable{} + } + if err := m.Executable.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SyftPackage) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SyftPackage: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SyftPackage: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PackageBasicData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.PackageBasicData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PackageCustomData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.PackageCustomData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SyftRelationship) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SyftRelationship: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SyftRelationship: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Parent", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Parent = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Child", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Child = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Type = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Metadata = append(m.Metadata[:0], dAtA[iNdEx:postIndex]...) + if m.Metadata == nil { + m.Metadata = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SyftSource) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SyftSource: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SyftSource: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Version = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Type = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Metadata = append(m.Metadata[:0], dAtA[iNdEx:postIndex]...) + if m.Metadata == nil { + m.Metadata = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Syscall) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Syscall: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Syscall: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Names", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Names = append(m.Names, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Action = github_com_containers_common_pkg_seccomp.Action(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ErrnoRet", wireType) + } + m.ErrnoRet = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ErrnoRet |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Args", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Args = append(m.Args, &Arg{}) + if err := m.Args[len(m.Args)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ToolMeta) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ToolMeta: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ToolMeta: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Version = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UpstreamPackage) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UpstreamPackage: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UpstreamPackage: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Version = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *VEX) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: VEX: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VEX: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Statements", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Statements = append(m.Statements, Statement{}) + if err := m.Statements[len(m.Statements)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *VexVulnerability) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: VexVulnerability: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VexVulnerability: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Aliases", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Aliases = append(m.Aliases, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *VulnerabilitiesComponents) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: VulnerabilitiesComponents: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VulnerabilitiesComponents: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ImageVulnerabilitiesObj", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ImageVulnerabilitiesObj.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field WorkloadVulnerabilitiesObj", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.WorkloadVulnerabilitiesObj.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *VulnerabilitiesObjScope) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: VulnerabilitiesObjScope: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VulnerabilitiesObjScope: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Namespace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Kind = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Vulnerability) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Vulnerability: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Vulnerability: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VulnerabilityMetadata", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.VulnerabilityMetadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Fix", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Fix.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Advisories", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Advisories = append(m.Advisories, Advisory{}) + if err := m.Advisories[len(m.Advisories)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *VulnerabilityCounters) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: VulnerabilityCounters: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VulnerabilityCounters: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field All", wireType) + } + m.All = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.All |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Relevant", wireType) + } + m.Relevant = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Relevant |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *VulnerabilityManifest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: VulnerabilityManifest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VulnerabilityManifest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *VulnerabilityManifestList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: VulnerabilityManifestList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VulnerabilityManifestList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, VulnerabilityManifest{}) + if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *VulnerabilityManifestMeta) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: VulnerabilityManifestMeta: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VulnerabilityManifestMeta: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field WithRelevancy", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.WithRelevancy = bool(v != 0) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tool", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Tool.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Report", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Report.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *VulnerabilityManifestReportMeta) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: VulnerabilityManifestReportMeta: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VulnerabilityManifestReportMeta: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreatedAt", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CreatedAt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *VulnerabilityManifestSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: VulnerabilityManifestSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VulnerabilityManifestSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Payload", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Payload.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *VulnerabilityManifestStatus) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: VulnerabilityManifestStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VulnerabilityManifestStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *VulnerabilityManifestSummary) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: VulnerabilityManifestSummary: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VulnerabilityManifestSummary: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *VulnerabilityManifestSummaryList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: VulnerabilityManifestSummaryList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VulnerabilityManifestSummaryList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, VulnerabilityManifestSummary{}) + if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *VulnerabilityManifestSummarySpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: VulnerabilityManifestSummarySpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VulnerabilityManifestSummarySpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Severities", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Severities.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Vulnerabilities", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Vulnerabilities.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *VulnerabilityManifestToolMeta) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: VulnerabilityManifestToolMeta: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VulnerabilityManifestToolMeta: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Version = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DatabaseVersion", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DatabaseVersion = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *VulnerabilityMetadata) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: VulnerabilityMetadata: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VulnerabilityMetadata: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DataSource", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DataSource = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Namespace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Severity", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Severity = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field URLs", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.URLs = append(m.URLs, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cvss", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Cvss = append(m.Cvss, Cvss{}) + if err := m.Cvss[len(m.Cvss)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *VulnerabilitySummary) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: VulnerabilitySummary: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VulnerabilitySummary: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *VulnerabilitySummaryList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: VulnerabilitySummaryList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VulnerabilitySummaryList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, VulnerabilitySummary{}) + if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *VulnerabilitySummarySpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: VulnerabilitySummarySpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VulnerabilitySummarySpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Severities", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Severities.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field WorkloadVulnerabilitiesObj", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.WorkloadVulnerabilitiesObj = append(m.WorkloadVulnerabilitiesObj, VulnerabilitiesObjScope{}) + if err := m.WorkloadVulnerabilitiesObj[len(m.WorkloadVulnerabilitiesObj)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *VulnerabilitySummaryStatus) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: VulnerabilitySummaryStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VulnerabilitySummaryStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *WorkloadConfigurationScan) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: WorkloadConfigurationScan: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WorkloadConfigurationScan: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *WorkloadConfigurationScanList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: WorkloadConfigurationScanList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WorkloadConfigurationScanList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, WorkloadConfigurationScan{}) + if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *WorkloadConfigurationScanSeveritiesSummary) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: WorkloadConfigurationScanSeveritiesSummary: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WorkloadConfigurationScanSeveritiesSummary: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Critical", wireType) + } + m.Critical = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Critical |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field High", wireType) + } + m.High = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.High |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Medium", wireType) + } + m.Medium = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Medium |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Low", wireType) + } + m.Low = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Low |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Unknown", wireType) + } + m.Unknown = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Unknown |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *WorkloadConfigurationScanSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: WorkloadConfigurationScanSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WorkloadConfigurationScanSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Controls", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Controls == nil { + m.Controls = make(map[string]ScannedControl) + } + var mapkey string + mapvalue := &ScannedControl{} + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLengthGenerated + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthGenerated + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return ErrInvalidLengthGenerated + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return ErrInvalidLengthGenerated + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &ScannedControl{} + if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.Controls[mapkey] = *mapvalue + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RelatedObjects", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RelatedObjects = append(m.RelatedObjects, WorkloadScanRelatedObject{}) + if err := m.RelatedObjects[len(m.RelatedObjects)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *WorkloadConfigurationScanSummary) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: WorkloadConfigurationScanSummary: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WorkloadConfigurationScanSummary: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *WorkloadConfigurationScanSummaryIdentifier) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: WorkloadConfigurationScanSummaryIdentifier: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WorkloadConfigurationScanSummaryIdentifier: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Namespace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Kind = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *WorkloadConfigurationScanSummaryList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: WorkloadConfigurationScanSummaryList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WorkloadConfigurationScanSummaryList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, WorkloadConfigurationScanSummary{}) + if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *WorkloadConfigurationScanSummarySpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: WorkloadConfigurationScanSummarySpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WorkloadConfigurationScanSummarySpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Severities", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Severities.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Controls", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Controls == nil { + m.Controls = make(map[string]ScannedControlSummary) + } + var mapkey string + mapvalue := &ScannedControlSummary{} + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLengthGenerated + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthGenerated + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return ErrInvalidLengthGenerated + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return ErrInvalidLengthGenerated + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &ScannedControlSummary{} + if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.Controls[mapkey] = *mapvalue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *WorkloadScanRelatedObject) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: WorkloadScanRelatedObject: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WorkloadScanRelatedObject: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Namespace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field APIGroup", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.APIGroup = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field APIVersion", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.APIVersion = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Kind = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipGenerated(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenerated + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenerated + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenerated + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthGenerated + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupGenerated + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthGenerated + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") +) diff --git a/pkg/apis/softwarecomposition/v1beta1/generated.proto b/pkg/apis/softwarecomposition/v1beta1/generated.proto new file mode 100644 index 000000000..cf83e2b6e --- /dev/null +++ b/pkg/apis/softwarecomposition/v1beta1/generated.proto @@ -0,0 +1,1671 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + + +// This file was autogenerated by go-to-protobuf. Do not edit it manually! + +syntax = "proto2"; + +package github.com.kubescape.storage.pkg.apis.softwarecomposition.v1beta1; + +import "k8s.io/api/core/v1/generated.proto"; +import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; +import "k8s.io/apimachinery/pkg/runtime/generated.proto"; +import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; + +// Package-wide variables from generator "generated". +option go_package = "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1"; + +message Advisory { + optional string id = 1; + + optional string link = 2; +} + +message ApplicationActivity { + optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + + optional ApplicationActivitySpec spec = 2; + + optional ApplicationActivityStatus status = 3; +} + +message ApplicationActivityList { + optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + + repeated ApplicationActivity items = 2; +} + +message ApplicationActivitySpec { + repeated string syscalls = 1; +} + +message ApplicationActivityStatus { +} + +message ApplicationProfile { + optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + + optional ApplicationProfileSpec spec = 2; + + optional ApplicationProfileStatus status = 3; +} + +message ApplicationProfileContainer { + optional string name = 1; + + repeated string capabilities = 2; + + // +patchMergeKey=path + // +patchStrategy=merge + repeated ExecCalls execs = 3; + + // +patchMergeKey=path + // +patchStrategy=merge + repeated OpenCalls opens = 4; + + repeated string syscalls = 5; + + optional SingleSeccompProfile seccompProfile = 6; +} + +message ApplicationProfileList { + optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + + repeated ApplicationProfile items = 2; +} + +message ApplicationProfileSpec { + repeated string architectures = 1; + + // +patchMergeKey=name + // +patchStrategy=merge + repeated ApplicationProfileContainer containers = 2; + + // +patchMergeKey=name + // +patchStrategy=merge + repeated ApplicationProfileContainer initContainers = 3; + + // +patchMergeKey=name + // +patchStrategy=merge + repeated ApplicationProfileContainer ephemeralContainers = 4; +} + +message ApplicationProfileStatus { +} + +// Arg defines the specific syscall in seccomp. +message Arg { + // the index for syscall arguments in seccomp + optional uint64 index = 1; + + // the value for syscall arguments in seccomp + optional uint64 value = 2; + + // the value for syscall arguments in seccomp + optional uint64 valueTwo = 3; + + // the operator for syscall arguments in seccomp + optional string op = 4; +} + +message CPE { + optional string cpe = 1; + + optional string source = 2; +} + +message Component { + // ID is an IRI identifying the component. It is optional as the component + // can also be identified using hashes or software identifiers. + optional string id = 1; + + // Hashes is a map of hashes to identify the component using cryptographic + // hashes. + map hashes = 2; + + // Identifiers is a list of software identifiers that describe the component. + map identifiers = 3; + + // Supplier is an optional machine-readable identifier for the supplier of + // the component. Valid examples include email address or IRIs. + optional string supplier = 4; +} + +message Condition { + // Type of this condition. At most one of each condition type may apply to + // a resource at any point in time. + optional string type = 1; + + // Status of this condition; is it currently True, False, or Unknown? + optional string status = 2; + + // LastTransitionTime is the last time this condition transitioned from one + // status to another. + optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; + + // A Reason for this condition's last transition from one status to another. + optional string reason = 4; + + // A Message containing details about this condition's last transition from + // one status to another, if any. + // +optional + optional string message = 5; +} + +message ConditionedStatus { + // Conditions of the resource. + // +optional + repeated Condition conditions = 1; +} + +// ConfigurationScanSummary is a summary for a group of WorkloadConfigurationScanSummary objects for a given scope (ex. namespace). +message ConfigurationScanSummary { + optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + + optional ConfigurationScanSummarySpec spec = 2; +} + +// ConfigurationScanSummaryList is a list of ConfigurationScanSummary summaries. +message ConfigurationScanSummaryList { + optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + + repeated ConfigurationScanSummary items = 2; +} + +message ConfigurationScanSummarySpec { + optional WorkloadConfigurationScanSeveritiesSummary severities = 1; + + repeated WorkloadConfigurationScanSummaryIdentifier summaryRef = 2; +} + +message ControlSeverity { + optional string severity = 1; + + optional float scoreFactor = 2; +} + +// Coordinates contains the minimal information needed to describe how to find a file within any possible source object (e.g. image and directory sources) +message Coordinates { + optional string path = 1; + + // The path where all path ancestors have no hardlinks / symlinks + optional string layerID = 2; +} + +message Cvss { + optional string version = 1; + + optional string vector = 2; + + optional CvssMetrics metrics = 3; + + optional bytes vendorMetadata = 4; +} + +message CvssMetrics { + optional double baseScore = 1; + + optional double exploitabilityScore = 2; + + optional double impactScore = 3; +} + +message Descriptor { + optional string name = 1; + + optional string version = 2; + + optional bytes configuration = 3; + + optional bytes db = 4; +} + +message Digest { + optional string algorithm = 1; + + optional string value = 2; +} + +message Distribution { + optional string name = 1; + + optional string version = 2; + + repeated string idLike = 3; +} + +message ELFSecurityFeatures { + optional bool symbolTableStripped = 1; + + optional bool stackCanary = 2; + + optional bool nx = 3; + + optional string relRO = 4; + + optional bool pie = 5; + + optional bool dso = 6; + + // LlvmSafeStack represents a compiler-based security mechanism that separates the stack into a safe stack for storing return addresses and other critical data, and an unsafe stack for everything else, to mitigate stack-based memory corruption errors + // see https://clang.llvm.org/docs/SafeStack.html + optional bool safeStack = 7; + + // ControlFlowIntegrity represents runtime checks to ensure a program's control flow adheres to the legal paths determined at compile time, thus protecting against various types of control-flow hijacking attacks + // see https://clang.llvm.org/docs/ControlFlowIntegrity.html + optional bool cfi = 8; + + // ClangFortifySource is a broad suite of extensions to libc aimed at catching misuses of common library functions + // see https://android.googlesource.com/platform//bionic/+/d192dbecf0b2a371eb127c0871f77a9caf81c4d2/docs/clang_fortify_anatomy.md + optional bool fortify = 9; +} + +message ExecCalls { + optional string path = 1; + + repeated string args = 2; + + repeated string envs = 3; +} + +message Executable { + // Format denotes either ELF, Mach-O, or PE + optional string format = 1; + + optional bool hasExports = 2; + + optional bool hasEntrypoint = 3; + + repeated string importedLibraries = 4; + + optional ELFSecurityFeatures elfSecurityFeatures = 5; +} + +message FileLicense { + optional string value = 1; + + optional string spdxExpression = 2; + + optional string type = 3; + + optional FileLicenseEvidence evidence = 4; +} + +message FileLicenseEvidence { + optional int64 confidence = 1; + + optional int64 offset = 2; + + optional int64 extent = 3; +} + +message FileMetadataEntry { + optional int64 mode = 1; + + optional string type = 2; + + optional string linkDestination = 3; + + optional int64 userID = 4; + + optional int64 groupID = 5; + + optional string mimeType = 6; + + optional int64 size = 7; +} + +message Fix { + repeated string versions = 1; + + optional string state = 2; +} + +// GeneratedNetworkPolicy represents a generated NetworkPolicy. +message GeneratedNetworkPolicy { + optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + + optional NetworkPolicy spec = 2; + + repeated PolicyRef policyRef = 3; +} + +// GeneratedNetworkPolicyList is a list of GeneratedNetworkPolicies. +message GeneratedNetworkPolicyList { + optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + + repeated GeneratedNetworkPolicy items = 2; +} + +// GrypeDocument is the document that represents the vulnerability manifest in +// the Grype’s JSON format +message GrypeDocument { + repeated Match matches = 1; + + repeated IgnoredMatch ignoredMatches = 2; + + optional Source source = 3; + + optional Distribution distro = 4; + + optional Descriptor descriptor = 5; +} + +message GrypePackage { + optional string name = 1; + + optional string version = 2; + + optional string type = 3; + + repeated SyftCoordinates locations = 4; + + optional string language = 5; + + repeated string licenses = 6; + + repeated string cpes = 7; + + optional string purl = 8; + + repeated UpstreamPackage upstreams = 9; + + optional string metadataType = 10; + + optional bytes metadata = 11; +} + +// HTTPIngressPath associates a path with a backend. Incoming urls matching the +// path are forwarded to the backend. +message HTTPIngressPath { + optional string path = 1; + + // pathType determines the interpretation of the path matching. PathType can + // be one of the following values: + // * Exact: Matches the URL path exactly. + // * Prefix: Matches based on a URL path prefix split by '/'. Matching is + // done on a path element by element basis. A path element refers is the + // list of labels in the path split by the '/' separator. A request is a + // match for path p if every p is an element-wise prefix of p of the + // request path. Note that if the last element of the path is a substring + // of the last element in request path, it is not a match (e.g. /foo/bar + // matches /foo/bar/baz, but does not match /foo/barbaz). + // * ImplementationSpecific: Interpretation of the Path matching is up to + // the IngressClass. Implementations can treat this as a separate PathType + // or treat it identically to Prefix or Exact path types. + // Implementations are required to support all path types. + optional string pathType = 3; + + // backend defines the referenced service endpoint to which the traffic + // will be forwarded to. + optional IngressBackend backend = 2; +} + +// HTTPIngressRuleValue is a list of http selectors pointing to backends. +// In the example: http:///? -> backend where +// where parts of the url correspond to RFC 3986, this resource will be used +// to match against everything after the last '/' and before the first '?' +// or '#'. +message HTTPIngressRuleValue { + // paths is a collection of paths that map requests to backends. + // +listType=atomic + repeated HTTPIngressPath paths = 1; +} + +// IPBlock describes a particular CIDR (Ex. "192.168.1.0/24","2001:db8::/64") that is allowed +// to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs +// that should not be included within this rule. +message IPBlock { + // cidr is a string representing the IPBlock + // Valid examples are "192.168.1.0/24" or "2001:db8::/64" + optional string cidr = 1; + + repeated string except = 2; +} + +message IgnoreRule { + optional string vulnerability = 1; + + optional string fixstate = 2; + + optional IgnoreRulePackage package = 3; +} + +message IgnoreRulePackage { + optional string name = 1; + + optional string version = 2; + + optional string type = 3; + + optional string location = 4; + + optional string upstreamname = 5; +} + +message IgnoredMatch { + optional Match match = 1; + + repeated IgnoreRule appliedIgnoreRules = 2; +} + +// Ingress is a collection of rules that allow inbound connections to reach the +// endpoints defined by a backend. An Ingress can be configured to give services +// externally-reachable urls, load balance traffic, terminate SSL, offer name +// based virtual hosting etc. +message Ingress { + optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + + optional IngressSpec spec = 2; + + optional IngressStatus status = 3; +} + +// IngressBackend describes all endpoints for a given service and port. +message IngressBackend { + optional IngressServiceBackend service = 4; + + optional .k8s.io.api.core.v1.TypedLocalObjectReference resource = 3; +} + +// IngressClass represents the class of the Ingress, referenced by the Ingress +// Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be +// used to indicate that an IngressClass should be considered default. When a +// single IngressClass resource has this annotation set to true, new Ingress +// resources without a class specified will be assigned this default class. +message IngressClass { + optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + + optional IngressClassSpec spec = 2; +} + +// IngressClassList is a collection of IngressClasses. +message IngressClassList { + optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + + // items is the list of IngressClasses. + repeated IngressClass items = 2; +} + +// IngressClassParametersReference identifies an API object. This can be used +// to specify a cluster or namespace-scoped resource. +message IngressClassParametersReference { + optional string aPIGroup = 1; + + // kind is the type of resource being referenced. + optional string kind = 2; + + // name is the name of resource being referenced. + optional string name = 3; + + optional string scope = 4; + + optional string namespace = 5; +} + +// IngressClassSpec provides information about the class of an Ingress. +message IngressClassSpec { + // controller refers to the name of the controller that should handle this + // class. This allows for different "flavors" that are controlled by the + // same controller. For example, you may have different parameters for the + // same implementing controller. This should be specified as a + // domain-prefixed path no more than 250 characters in length, e.g. + // "acme.io/ingress-controller". This field is immutable. + optional string controller = 1; + + optional IngressClassParametersReference parameters = 2; +} + +// IngressList is a collection of Ingress. +message IngressList { + optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + + // items is the list of Ingress. + repeated Ingress items = 2; +} + +// IngressLoadBalancerIngress represents the status of a load-balancer ingress point. +message IngressLoadBalancerIngress { + optional string ip = 1; + + optional string hostname = 2; + + repeated IngressPortStatus ports = 4; +} + +// IngressLoadBalancerStatus represents the status of a load-balancer. +message IngressLoadBalancerStatus { + repeated IngressLoadBalancerIngress ingress = 1; +} + +// IngressPortStatus represents the error condition of a service port +message IngressPortStatus { + // port is the port number of the ingress port. + optional int32 port = 1; + + // protocol is the protocol of the ingress port. + // The supported values are: "TCP", "UDP", "SCTP" + optional string protocol = 2; + + // +kubebuilder:validation:Required + // +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$` + // +kubebuilder:validation:MaxLength=316 + optional string error = 3; +} + +// IngressRule represents the rules mapping the paths under a specified host to +// the related backend services. Incoming requests are first evaluated for a host +// match, then routed to the backend associated with the matching IngressRuleValue. +message IngressRule { + optional string host = 1; + + optional IngressRuleValue ingressRuleValue = 2; +} + +// IngressRuleValue represents a rule to apply against incoming requests. If the +// rule is satisfied, the request is routed to the specified backend. Currently +// mixing different types of rules in a single Ingress is disallowed, so exactly +// one of the following must be set. +message IngressRuleValue { + optional HTTPIngressRuleValue http = 1; +} + +// IngressServiceBackend references a Kubernetes Service as a Backend. +message IngressServiceBackend { + // name is the referenced service. The service must exist in + // the same namespace as the Ingress object. + optional string name = 1; + + // port of the referenced service. A port name or port number + // is required for a IngressServiceBackend. + optional ServiceBackendPort port = 2; +} + +// IngressSpec describes the Ingress the user wishes to exist. +message IngressSpec { + optional string ingressClassName = 4; + + optional IngressBackend defaultBackend = 1; + + repeated IngressTLS tls = 2; + + repeated IngressRule rules = 3; +} + +// IngressStatus describe the current state of the Ingress. +message IngressStatus { + optional IngressLoadBalancerStatus loadBalancer = 1; +} + +// IngressTLS describes the transport layer security associated with an ingress. +message IngressTLS { + repeated string hosts = 1; + + optional string secretName = 2; +} + +// KnownServer represents a known server, containing information about its IP addresses and servers. The purpose is to enrich the GeneratedNetworkPolicy CRD +message KnownServer { + optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + + repeated KnownServerEntry spec = 2; +} + +message KnownServerEntry { + optional string ipBlock = 1; + + optional string server = 2; + + optional string name = 3; +} + +// KnownServerList is a list of KnownServer. +message KnownServerList { + optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + + repeated KnownServer items = 2; +} + +message License { + optional string value = 1; + + optional string spdxExpression = 2; + + optional string type = 3; + + repeated string urls = 4; + + repeated Location locations = 5; +} + +message LinuxRelease { + optional string prettyName = 1; + + optional string name = 2; + + optional string id = 3; + + repeated string idLike = 4; + + optional string version = 5; + + optional string versionID = 6; + + optional string versionCodename = 7; + + optional string buildID = 8; + + optional string imageID = 9; + + optional string imageVersion = 10; + + optional string variant = 11; + + optional string variantID = 12; + + optional string homeURL = 13; + + optional string supportURL = 14; + + optional string bugReportURL = 15; + + optional string privacyPolicyURL = 16; + + optional string cpeName = 17; + + optional string supportEnd = 18; +} + +// Location represents a path relative to a particular filesystem resolved to a specific file.Reference. This struct is used as a key +// in content fetching to uniquely identify a file relative to a request (the VirtualPath). +message Location { + optional LocationData locationData = 1; + + optional LocationMetadata locationMetadata = 2; +} + +message LocationData { + optional Coordinates coordinates = 1; + + // note: it is IMPORTANT to ignore anything but the coordinates for a Location when considering the ID (hash value) + // since the coordinates are the minimally correct ID for a location (symlinks should not come into play) + optional string accessPath = 2; +} + +message LocationMetadata { + map annotations = 1; +} + +message Match { + optional Vulnerability vulnerability = 1; + + repeated VulnerabilityMetadata relatedVulnerabilities = 2; + + repeated MatchDetails matchDetails = 3; + + optional GrypePackage artifact = 4; +} + +message MatchDetails { + optional string type = 1; + + optional string matcher = 2; + + optional bytes searchedBy = 3; + + optional bytes found = 4; +} + +message Metadata { + // Context is the URL pointing to the jsonld context definition + optional string context = 1; + + // ID is the identifying string for the VEX document. This should be unique per + // document. + optional string id = 2; + + // Author is the identifier for the author of the VEX statement, ideally a common + // name, may be a URI. [author] is an individual or organization. [author] + // identity SHOULD be cryptographically associated with the signature of the VEX + // statement or document or transport. + optional string author = 3; + + // AuthorRole describes the role of the document Author. + optional string role = 4; + + // Timestamp defines the time at which the document was issued. + optional string timestamp = 5; + + // LastUpdated marks the time when the document had its last update. When the + // document changes both version and this field should be updated. + optional string last_updated = 6; + + // Version is the document version. It must be incremented when any content + // within the VEX document changes, including any VEX statements included within + // the VEX document. + optional int64 version = 7; + + // Tooling expresses how the VEX document and contained VEX statements were + // generated. It's optional. It may specify tools or automated processes used in + // the document or statement generation. + optional string tooling = 8; + + // Supplier is an optional field. + optional string supplier = 9; +} + +// NetworkNeighbor represents a single network communication made by this resource. +message NetworkNeighbor { + optional string identifier = 1; + + // A unique identifier for this entry + optional string type = 2; + + optional string dns = 3; + + // DEPRECATED - use DNSNames instead. + repeated string dnsNames = 4; + + // +patchMergeKey=name + // +patchStrategy=merge + repeated NetworkPort ports = 5; + + optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 6; + + optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 7; + + optional string ipAddress = 8; +} + +// NetworkNeighborhood represents a list of network communications for a specific workload. +message NetworkNeighborhood { + optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + + optional NetworkNeighborhoodSpec spec = 2; +} + +message NetworkNeighborhoodContainer { + optional string name = 1; + + repeated NetworkNeighbor ingress = 2; + + repeated NetworkNeighbor egress = 3; +} + +// NetworkNeighborhoodList is a list of NetworkNeighborhoods. +message NetworkNeighborhoodList { + optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + + repeated NetworkNeighborhood items = 2; +} + +message NetworkNeighborhoodSpec { + optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 3; + + repeated NetworkNeighborhoodContainer containers = 4; + + repeated NetworkNeighborhoodContainer initContainers = 5; + + repeated NetworkNeighborhoodContainer ephemeralContainers = 6; +} + +// NetworkNeighbors represents a list of network communications for a specific workload. +// DEPRECATED - use NetworkNeighborhood instead. +message NetworkNeighbors { + optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + + optional NetworkNeighborsSpec spec = 2; +} + +// NetworkNeighborsList is a list of NetworkNeighbors. +// DEPRECATED - use NetworkNeighborhoodList instead. +message NetworkNeighborsList { + optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + + repeated NetworkNeighbors items = 2; +} + +message NetworkNeighborsSpec { + optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 3; + + // +patchMergeKey=identifier + // +patchStrategy=merge + repeated NetworkNeighbor ingress = 4; + + // +patchMergeKey=identifier + // +patchStrategy=merge + repeated NetworkNeighbor egress = 5; +} + +message NetworkPolicy { + optional string kind = 1; + + optional string apiVersion = 2; + + optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 3; + + optional NetworkPolicySpec spec = 4; +} + +// NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods +// matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. +// This type is beta-level in 1.8 +message NetworkPolicyEgressRule { + repeated NetworkPolicyPort ports = 1; + + repeated NetworkPolicyPeer to = 2; +} + +// NetworkPolicyIngressRule describes a particular set of traffic that is allowed to the pods +// matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and from. +message NetworkPolicyIngressRule { + repeated NetworkPolicyPort ports = 1; + + repeated NetworkPolicyPeer from = 2; +} + +// NetworkPolicyList is a list of NetworkPolicy objects. +message NetworkPolicyList { + optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + + // items is a list of schema objects. + repeated NetworkPolicy items = 2; +} + +// NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of +// fields are allowed +message NetworkPolicyPeer { + optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1; + + optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 2; + + optional IPBlock ipBlock = 3; +} + +// NetworkPolicyPort describes a port to allow traffic on +message NetworkPolicyPort { + optional string protocol = 1; + + optional int32 port = 2; + + optional int32 endPort = 3; +} + +// NetworkPolicySpec provides the specification of a NetworkPolicy +message NetworkPolicySpec { + // podSelector selects the pods to which this NetworkPolicy object applies. + // The array of ingress rules is applied to any pods selected by this field. + // Multiple network policies can select the same set of pods. In this case, + // the ingress rules for each are combined additively. + // This field is NOT optional and follows standard label selector semantics. + // An empty podSelector matches all pods in this namespace. + optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1; + + repeated NetworkPolicyIngressRule ingress = 2; + + repeated NetworkPolicyEgressRule egress = 3; + + repeated string policyTypes = 4; +} + +// NetworkPolicyStatus describes the current state of the NetworkPolicy. +message NetworkPolicyStatus { + // +patchMergeKey=type + // +patchStrategy=merge + // +listType=map + // +listMapKey=type + repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; +} + +message NetworkPort { + optional string name = 1; + + // protocol-port + optional string protocol = 2; + + optional int32 port = 3; +} + +message OpenCalls { + optional string path = 1; + + repeated string flags = 2; +} + +message OpenVulnerabilityExchangeContainer { + optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + + optional VEX spec = 2; +} + +message OpenVulnerabilityExchangeContainerList { + optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + + repeated OpenVulnerabilityExchangeContainer items = 2; +} + +// PackageBasicData contains non-ambiguous values (type-wise) from pkg.SyftPackage. +message PackageBasicData { + optional string id = 1; + + optional string name = 2; + + optional string version = 3; + + optional string type = 4; + + optional string foundBy = 5; + + repeated Location locations = 6; + + repeated License licenses = 7; + + optional string language = 8; + + repeated CPE cpes = 9; + + optional string purl = 10; +} + +// PackageBasicDataV01011 is the previous version of PackageBasicData used in schema v0.101.1. +message PackageBasicDataV01011 { + optional string id = 1; + + optional string name = 2; + + optional string version = 3; + + optional string type = 4; + + optional string foundBy = 5; + + repeated Location locations = 6; + + repeated License licenses = 7; + + optional string language = 8; + + repeated string cpes = 9; + + optional string purl = 10; +} + +// PackageCustomData contains ambiguous values (type-wise) from pkg.SyftPackage. +message PackageCustomData { + optional string metadataType = 1; + + optional bytes metadata = 2; +} + +message PolicyRef { + optional string ipBlock = 1; + + optional string originalIP = 2; + + optional string dns = 3; + + optional string name = 4; + + optional string server = 5; +} + +message Product { + optional Component component = 1; + + repeated Subcomponent subcomponents = 2; +} + +// ReportMeta describes metadata about a report +message ReportMeta { + optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time createdAt = 1; +} + +message RulePath { + optional string failedPath = 1; + + optional string fixPath = 2; + + optional string fixPathValue = 3; + + optional string fixCommand = 4; +} + +message RuleStatus { + optional string status = 1; + + optional string subStatus = 2; +} + +// SBOMSyft is a custom resource that describes an SBOM in the Syft format. +message SBOMSyft { + optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + + optional SBOMSyftSpec spec = 2; + + optional SBOMSyftStatus status = 3; +} + +// SBOMSyftFiltered is a custom resource that describes a filtered SBOM in the Syft format. +// +// Being filtered means that the SBOM contains only the relevant vulnerable materials. +message SBOMSyftFiltered { + optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + + optional SBOMSyftSpec spec = 2; + + optional SBOMSyftStatus status = 3; +} + +// SBOMSyftFilteredList is a list of SBOMSyftFiltered objects. +message SBOMSyftFilteredList { + optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + + repeated SBOMSyftFiltered items = 2; +} + +// SBOMSyftList is a list of SBOMSyft objects. +message SBOMSyftList { + optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + + repeated SBOMSyft items = 2; +} + +// SBOMSyftSpec is the specification of a Syft SBOM +message SBOMSyftSpec { + optional SPDXMeta metadata = 1; + + optional SyftDocument syft = 2; +} + +// SBOMSyftStatus is the status of a Syft SBOM. +message SBOMSyftStatus { +} + +// SPDXMeta describes metadata about an SPDX-formatted SBOM +message SPDXMeta { + optional ToolMeta tool = 1; + + optional ReportMeta report = 2; +} + +message ScannedControl { + optional string controlID = 1; + + optional string name = 2; + + optional ControlSeverity severity = 3; + + optional ScannedControlStatus status = 4; + + repeated ScannedControlRule rules = 5; +} + +message ScannedControlRule { + optional string name = 1; + + optional RuleStatus status = 2; + + map controlConfigurations = 3; + + repeated RulePath paths = 4; + + repeated string appliedIgnoreRules = 5; + + repeated string relatedResourcesIDs = 6; +} + +message ScannedControlStatus { + optional string status = 1; + + optional string subStatus = 2; + + optional string info = 3; +} + +message ScannedControlSummary { + optional string controlID = 1; + + optional ControlSeverity severity = 2; + + optional ScannedControlStatus status = 3; +} + +message Schema { + optional string version = 1; + + optional string url = 2; +} + +message SeccompProfile { + optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + + optional SeccompProfileSpec spec = 2; + + optional SeccompProfileStatus status = 3; +} + +message SeccompProfileList { + optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + + repeated SeccompProfile items = 2; +} + +message SeccompProfileSpec { + repeated SingleSeccompProfile containers = 1; + + repeated SingleSeccompProfile initContainers = 2; + + repeated SingleSeccompProfile ephemeralContainers = 3; +} + +message SeccompProfileStatus { + map containers = 1; +} + +// ServiceBackendPort is the service port being referenced. +message ServiceBackendPort { + optional string name = 1; + + optional int32 number = 2; +} + +// SeveritySummary is a summary of all vulnerabilities included in vulnerability manifest +message SeveritySummary { + optional VulnerabilityCounters critical = 1; + + optional VulnerabilityCounters high = 2; + + optional VulnerabilityCounters medium = 3; + + optional VulnerabilityCounters low = 4; + + optional VulnerabilityCounters negligible = 5; + + optional VulnerabilityCounters unknown = 6; +} + +message SingleSeccompProfile { + optional string name = 1; + + optional string path = 2; + + optional SingleSeccompProfileSpec spec = 3; +} + +message SingleSeccompProfileSpec { + // Common spec fields for all profiles. + optional SpecBase specBase = 1; + + // BaseProfileName is the name of base profile (in the same namespace) that + // will be unioned into this profile. Base profiles can be references as + // remote OCI artifacts as well when prefixed with `oci://`. + optional string baseProfileName = 2; + + // the default action for seccomp + optional string defaultAction = 3; + + // the architecture used for system calls + repeated string architectures = 4; + + // path of UNIX domain socket to contact a seccomp agent for SCMP_ACT_NOTIFY + optional string listenerPath = 5; + + // opaque data to pass to the seccomp agent + optional string listenerMetadata = 6; + + // match a syscall in seccomp. While this property is OPTIONAL, some values + // of defaultAction are not useful without syscalls entries. For example, + // if defaultAction is SCMP_ACT_KILL and syscalls is empty or unset, the + // kernel will kill the container process on its first syscall + repeated Syscall syscalls = 7; + + // list of flags to use with seccomp(2) + repeated string flags = 8; +} + +message SingleSeccompProfileStatus { + optional StatusBase statusBase = 1; + + optional string path = 2; + + repeated string activeWorkloads = 3; + + // The path that should be provided to the `securityContext.seccompProfile.localhostProfile` + // field of a Pod or container spec + optional string localhostProfile = 4; +} + +message Source { + optional string type = 1; + + optional bytes target = 2; +} + +message SpecBase { + optional bool disabled = 1; +} + +message Statement { + // ID is an optional identifier for the statement. It takes an IRI and must + // be unique for each statement in the document. + optional string id = 1; + + // [vul_id] SHOULD use existing and well known identifiers, for example: + // CVE, the Global Security Database (GSD), or a supplier’s vulnerability + // tracking system. It is expected that vulnerability identification systems + // are external to and maintained separately from VEX. + // + // [vul_id] MAY be URIs or URLs. + // [vul_id] MAY be arbitrary and MAY be created by the VEX statement [author]. + optional VexVulnerability vulnerability = 2; + + // Timestamp is the time at which the information expressed in the Statement + // was known to be true. + optional string timestamp = 3; + + // LastUpdated records the time when the statement last had a modification + optional string last_updated = 4; + + // Product + // Product details MUST specify what Status applies to. + // Product details MUST include [product_id] and MAY include [subcomponent_id]. + repeated Product products = 5; + + // A VEX statement MUST provide Status of the vulnerabilities with respect to the + // products and components listed in the statement. Status MUST be one of the + // Status const values, some of which have further options and requirements. + optional string status = 6; + + // [status_notes] MAY convey information about how [status] was determined + // and MAY reference other VEX information. + optional string status_notes = 7; + + // For ”not_affected” status, a VEX statement MUST include a status Justification + // that further explains the status. + optional string justification = 8; + + // For ”not_affected” status, a VEX statement MAY include an ImpactStatement + // that contains a description why the vulnerability cannot be exploited. + optional string impact_statement = 9; + + // For "affected" status, a VEX statement MUST include an ActionStatement that + // SHOULD describe actions to remediate or mitigate [vul_id]. + optional string action_statement = 10; + + optional string action_statement_timestamp = 11; +} + +message StatusBase { + optional ConditionedStatus conditionedStatus = 1; + + optional string status = 2; +} + +message Subcomponent { + optional Component component = 1; +} + +message SyftCoordinates { + optional string path = 1; + + optional string layerID = 2; +} + +// SyftDescriptor describes what created the document as well as surrounding metadata +message SyftDescriptor { + optional string name = 1; + + optional string version = 2; + + optional bytes configuration = 3; +} + +// SyftDocument represents the syft cataloging findings as a JSON document +message SyftDocument { + repeated SyftPackage artifacts = 1; + + // Artifacts is the list of packages discovered and placed into the catalog + repeated SyftRelationship artifactRelationships = 2; + + repeated SyftFile files = 3; + + // note: must have omitempty + optional SyftSource source = 4; + + // SyftSource represents the original object that was cataloged + optional LinuxRelease distro = 5; + + // Distro represents the Linux distribution that was detected from the source + optional SyftDescriptor descriptor = 6; + + // SyftDescriptor is a block containing self-describing information about syft + optional Schema schema = 7; +} + +message SyftFile { + optional string id = 1; + + optional Coordinates location = 2; + + optional FileMetadataEntry metadata = 3; + + optional string contents = 4; + + repeated Digest digests = 5; + + repeated FileLicense licenses = 6; + + optional Executable executable = 7; +} + +// SyftPackage represents a pkg.SyftPackage object specialized for JSON marshaling and unmarshalling. +message SyftPackage { + optional PackageBasicData packageBasicData = 1; + + optional PackageCustomData packageCustomData = 2; +} + +message SyftRelationship { + optional string parent = 1; + + optional string child = 2; + + optional string type = 3; + + optional bytes metadata = 4; +} + +// SyftSource object represents the thing that was cataloged +message SyftSource { + optional string id = 1; + + optional string name = 2; + + optional string version = 3; + + optional string type = 4; + + optional bytes metadata = 5; +} + +// Syscall defines a syscall in seccomp. +message Syscall { + // the names of the syscalls + repeated string names = 1; + + // the action for seccomp rules + optional string action = 2; + + // the errno return code to use. Some actions like SCMP_ACT_ERRNO and + // SCMP_ACT_TRACE allow to specify the errno code to return + optional uint64 errnoRet = 3; + + // the specific syscall in seccomp + repeated Arg args = 4; +} + +// ToolMeta describes metadata about a tool that generated an artifact +message ToolMeta { + optional string name = 1; + + optional string version = 2; +} + +message UpstreamPackage { + optional string name = 1; + + optional string version = 2; +} + +message VEX { + optional Metadata metadata = 1; + + repeated Statement statements = 2; +} + +message VexVulnerability { + // ID is an IRI to reference the vulnerability in the statement. + optional string id = 1; + + // Name is the main vulnerability identifier. + optional string name = 2; + + // Description is a short free form text description of the vulnerability. + optional string description = 3; + + // Aliases is a list of other vulnerability identifier strings that + // locate the vulnerability in other tracking systems. + repeated string aliases = 4; +} + +message VulnerabilitiesComponents { + optional VulnerabilitiesObjScope all = 1; + + optional VulnerabilitiesObjScope relevant = 2; +} + +message VulnerabilitiesObjScope { + optional string namespace = 1; + + optional string name = 2; + + optional string kind = 3; +} + +message Vulnerability { + optional VulnerabilityMetadata vulnerabilityMetadata = 8; + + optional Fix fix = 9; + + repeated Advisory advisories = 10; +} + +// VulnerabilityCounters describes a counter of vulnerabilities. +// +// Intended to store relevant and total vulnerabilities in the future. +message VulnerabilityCounters { + optional int64 all = 1; + + optional int64 relevant = 2; +} + +// VulnerabilityManifest is a custom resource that describes a manifest of found vulnerabilities. +message VulnerabilityManifest { + optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + + optional VulnerabilityManifestSpec spec = 2; + + optional VulnerabilityManifestStatus status = 3; +} + +// VulnerabilityManifestList is a list of Vulnerability manifests. +message VulnerabilityManifestList { + optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + + repeated VulnerabilityManifest items = 2; +} + +// VulnerabilityManifestMeta holds metadata about a vulnerability manifest +message VulnerabilityManifestMeta { + optional bool withRelevancy = 1; + + optional VulnerabilityManifestToolMeta tool = 2; + + optional VulnerabilityManifestReportMeta report = 3; +} + +// VulnerabilityManifestReportMeta holds metadata about the specific report +// tied to a vulnerability manifest +message VulnerabilityManifestReportMeta { + optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time createdAt = 1; +} + +message VulnerabilityManifestSpec { + optional VulnerabilityManifestMeta metadata = 1; + + optional GrypeDocument payload = 2; +} + +message VulnerabilityManifestStatus { +} + +// VulnerabilityManifestSummary is a summary of a VulnerabilityManifest. +message VulnerabilityManifestSummary { + optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + + optional VulnerabilityManifestSummarySpec spec = 2; + + optional VulnerabilityManifestStatus status = 3; +} + +// VulnerabilityManifestSummaryList is a list of VulnerabilityManifest summaries. +message VulnerabilityManifestSummaryList { + optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + + repeated VulnerabilityManifestSummary items = 2; +} + +message VulnerabilityManifestSummarySpec { + optional SeveritySummary severities = 1; + + optional VulnerabilitiesComponents vulnerabilitiesRef = 2; +} + +// VulnerabilityManifestToolMeta describes data about the tool used to generate +// the vulnerability manifest’s report +message VulnerabilityManifestToolMeta { + optional string name = 1; + + optional string version = 2; + + optional string databaseVersion = 3; +} + +message VulnerabilityMetadata { + optional string id = 1; + + optional string dataSource = 2; + + optional string namespace = 3; + + optional string severity = 4; + + repeated string urls = 5; + + optional string description = 6; + + repeated Cvss cvss = 7; +} + +// VulnerabilitySummary is a summary of a vulnerabilities for a given scope. +message VulnerabilitySummary { + optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + + optional VulnerabilitySummarySpec spec = 2; + + optional VulnerabilitySummaryStatus status = 3; +} + +// VulnerabilitySummaryList is a list of VulnerabilitySummaries. +message VulnerabilitySummaryList { + optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + + repeated VulnerabilitySummary items = 2; +} + +message VulnerabilitySummarySpec { + optional SeveritySummary severities = 1; + + repeated VulnerabilitiesObjScope vulnerabilitiesRef = 2; +} + +message VulnerabilitySummaryStatus { +} + +// WorkloadConfigurationScan is a custom resource that describes a configuration scan result of a workload. +message WorkloadConfigurationScan { + optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + + optional WorkloadConfigurationScanSpec spec = 2; +} + +// WorkloadConfigurationScanList is a list of workload configuration scan results. +message WorkloadConfigurationScanList { + optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + + repeated WorkloadConfigurationScan items = 2; +} + +message WorkloadConfigurationScanSeveritiesSummary { + optional int64 critical = 1; + + optional int64 high = 2; + + optional int64 medium = 3; + + optional int64 low = 4; + + optional int64 unknown = 5; +} + +message WorkloadConfigurationScanSpec { + map controls = 2; + + repeated WorkloadScanRelatedObject relatedObjects = 3; +} + +// WorkloadConfigurationScanSummary is a summary of a WorkloadConfigurationScan +message WorkloadConfigurationScanSummary { + optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + + optional WorkloadConfigurationScanSummarySpec spec = 2; +} + +// WorkloadConfigurationScanSummaryIdentifier includes information needed to identify a WorkloadConfigurationScanSummary object +message WorkloadConfigurationScanSummaryIdentifier { + optional string namespace = 1; + + optional string kind = 2; + + optional string name = 3; +} + +// WorkloadConfigurationScanSummaryList is a list of WorkloadConfigurationScan summaries. +message WorkloadConfigurationScanSummaryList { + optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + + repeated WorkloadConfigurationScanSummary items = 2; +} + +message WorkloadConfigurationScanSummarySpec { + optional WorkloadConfigurationScanSeveritiesSummary severities = 1; + + map controls = 2; +} + +message WorkloadScanRelatedObject { + optional string namespace = 1; + + optional string apiGroup = 2; + + optional string apiVersion = 3; + + optional string kind = 4; + + optional string name = 5; +} + diff --git a/pkg/apis/softwarecomposition/v1beta1/grype_types.go b/pkg/apis/softwarecomposition/v1beta1/grype_types.go index 8f3933e18..3c5307826 100644 --- a/pkg/apis/softwarecomposition/v1beta1/grype_types.go +++ b/pkg/apis/softwarecomposition/v1beta1/grype_types.go @@ -5,42 +5,42 @@ import ( ) type Cvss struct { - Version string `json:"version"` - Vector string `json:"vector"` - Metrics CvssMetrics `json:"metrics"` - VendorMetadata json.RawMessage `json:"vendorMetadata,omitempty"` + Version string `json:"version" protobuf:"bytes,1,req,name=version"` + Vector string `json:"vector" protobuf:"bytes,2,req,name=vector"` + Metrics CvssMetrics `json:"metrics" protobuf:"bytes,3,req,name=metrics"` + VendorMetadata json.RawMessage `json:"vendorMetadata,omitempty" protobuf:"bytes,4,opt,name=vendorMetadata"` } type CvssMetrics struct { - BaseScore float64 `json:"baseScore"` - ExploitabilityScore *float64 `json:"exploitabilityScore,omitempty"` - ImpactScore *float64 `json:"impactScore,omitempty"` + BaseScore float64 `json:"baseScore" protobuf:"bytes,1,req,name=baseScore"` + ExploitabilityScore *float64 `json:"exploitabilityScore,omitempty" protobuf:"bytes,2,opt,name=exploitabilityScore"` + ImpactScore *float64 `json:"impactScore,omitempty" protobuf:"bytes,3,opt,name=impactScore"` } type VulnerabilityMetadata struct { - ID string `json:"id"` - DataSource string `json:"dataSource"` - Namespace string `json:"namespace,omitempty"` - Severity string `json:"severity,omitempty"` - URLs []string `json:"urls"` - Description string `json:"description,omitempty"` - Cvss []Cvss `json:"cvss"` + ID string `json:"id" protobuf:"bytes,1,req,name=id"` + DataSource string `json:"dataSource" protobuf:"bytes,2,req,name=dataSource"` + Namespace string `json:"namespace,omitempty" protobuf:"bytes,3,opt,name=namespace"` + Severity string `json:"severity,omitempty" protobuf:"bytes,4,opt,name=severity"` + URLs []string `json:"urls" protobuf:"bytes,5,rep,name=urls"` + Description string `json:"description,omitempty" protobuf:"bytes,6,opt,name=description"` + Cvss []Cvss `json:"cvss" protobuf:"bytes,7,rep,name=cvss"` } type Vulnerability struct { - VulnerabilityMetadata - Fix Fix `json:"fix"` - Advisories []Advisory `json:"advisories"` + VulnerabilityMetadata `protobuf:"bytes,8,opt,name=vulnerabilityMetadata"` + Fix Fix `json:"fix" protobuf:"bytes,9,req,name=fix"` + Advisories []Advisory `json:"advisories" protobuf:"bytes,10,rep,name=advisories"` } type Fix struct { - Versions []string `json:"versions"` - State string `json:"state"` + Versions []string `json:"versions" protobuf:"bytes,1,rep,name=versions"` + State string `json:"state" protobuf:"bytes,2,req,name=state"` } type Advisory struct { - ID string `json:"id"` - Link string `json:"link"` + ID string `json:"id" protobuf:"bytes,1,req,name=id"` + Link string `json:"link" protobuf:"bytes,2,req,name=link"` } type SyftType string @@ -48,86 +48,86 @@ type SyftLanguage string type MetadataType string type SyftCoordinates struct { - RealPath string `json:"path"` - FileSystemID string `json:"layerID,omitempty"` + RealPath string `json:"path" protobuf:"bytes,1,req,name=path"` + FileSystemID string `json:"layerID,omitempty" protobuf:"bytes,2,opt,name=layerID"` } type GrypePackage struct { - Name string `json:"name"` - Version string `json:"version"` - Type SyftType `json:"type"` - Locations []SyftCoordinates `json:"locations"` - Language SyftLanguage `json:"language"` - Licenses []string `json:"licenses"` - CPEs []string `json:"cpes"` - PURL string `json:"purl"` - Upstreams []UpstreamPackage `json:"upstreams"` - MetadataType MetadataType `json:"metadataType,omitempty"` - Metadata json.RawMessage `json:"metadata,omitempty"` + Name string `json:"name" protobuf:"bytes,1,req,name=name"` + Version string `json:"version" protobuf:"bytes,2,req,name=version"` + Type SyftType `json:"type" protobuf:"bytes,3,req,name=type"` + Locations []SyftCoordinates `json:"locations" protobuf:"bytes,4,rep,name=locations"` + Language SyftLanguage `json:"language" protobuf:"bytes,5,req,name=language"` + Licenses []string `json:"licenses" protobuf:"bytes,6,rep,name=licenses"` + CPEs []string `json:"cpes" protobuf:"bytes,7,rep,name=cpes"` + PURL string `json:"purl" protobuf:"bytes,8,req,name=purl"` + Upstreams []UpstreamPackage `json:"upstreams" protobuf:"bytes,9,rep,name=upstreams"` + MetadataType MetadataType `json:"metadataType,omitempty" protobuf:"bytes,10,opt,name=metadataType"` + Metadata json.RawMessage `json:"metadata,omitempty" protobuf:"bytes,11,opt,name=metadata"` } type UpstreamPackage struct { - Name string `json:"name"` - Version string `json:"version,omitempty"` + Name string `json:"name" protobuf:"bytes,1,req,name=name"` + Version string `json:"version,omitempty" protobuf:"bytes,2,opt,name=version"` } type Match struct { - Vulnerability Vulnerability `json:"vulnerability"` - RelatedVulnerabilities []VulnerabilityMetadata `json:"relatedVulnerabilities"` - MatchDetails []MatchDetails `json:"matchDetails"` - Artifact GrypePackage `json:"artifact"` + Vulnerability Vulnerability `json:"vulnerability" protobuf:"bytes,1,req,name=vulnerability"` + RelatedVulnerabilities []VulnerabilityMetadata `json:"relatedVulnerabilities" protobuf:"bytes,2,rep,name=relatedVulnerabilities"` + MatchDetails []MatchDetails `json:"matchDetails" protobuf:"bytes,3,rep,name=matchDetails"` + Artifact GrypePackage `json:"artifact" protobuf:"bytes,4,req,name=artifact"` } type MatchDetails struct { - Type string `json:"type"` - Matcher string `json:"matcher"` - SearchedBy json.RawMessage `json:"searchedBy,omitempty"` - Found json.RawMessage `json:"found,omitempty"` + Type string `json:"type" protobuf:"bytes,1,req,name=type"` + Matcher string `json:"matcher" protobuf:"bytes,2,req,name=matcher"` + SearchedBy json.RawMessage `json:"searchedBy,omitempty" protobuf:"bytes,3,opt,name=searchedBy"` + Found json.RawMessage `json:"found,omitempty" protobuf:"bytes,4,opt,name=found"` } type IgnoredMatch struct { - Match - AppliedIgnoreRules []IgnoreRule `json:"appliedIgnoreRules"` + Match `protobuf:"bytes,1,opt,name=match"` + AppliedIgnoreRules []IgnoreRule `json:"appliedIgnoreRules" protobuf:"bytes,2,rep,name=appliedIgnoreRules"` } type IgnoreRule struct { - Vulnerability string `json:"vulnerability,omitempty"` - FixState string `json:"fix-state,omitempty"` - Package *IgnoreRulePackage `json:"package,omitempty"` + Vulnerability string `json:"vulnerability,omitempty" protobuf:"bytes,1,opt,name=vulnerability"` + FixState string `json:"fix-state,omitempty" protobuf:"bytes,2,opt,name=fixstate"` + Package *IgnoreRulePackage `json:"package,omitempty" protobuf:"bytes,3,opt,name=package"` } type IgnoreRulePackage struct { - Name string `json:"name,omitempty"` - Version string `json:"version,omitempty"` - Type string `json:"type,omitempty"` - Location string `json:"location,omitempty"` - UpstreamName string `json:"upstream-name,omitempty"` + Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"` + Version string `json:"version,omitempty" protobuf:"bytes,2,opt,name=version"` + Type string `json:"type,omitempty" protobuf:"bytes,3,opt,name=type"` + Location string `json:"location,omitempty" protobuf:"bytes,4,opt,name=location"` + UpstreamName string `json:"upstream-name,omitempty" protobuf:"bytes,5,opt,name=upstreamname"` } type Distribution struct { - Name string `json:"name"` - Version string `json:"version"` - IDLike []string `json:"idLike"` + Name string `json:"name" protobuf:"bytes,1,req,name=name"` + Version string `json:"version" protobuf:"bytes,2,req,name=version"` + IDLike []string `json:"idLike" protobuf:"bytes,3,rep,name=idLike"` } type Descriptor struct { - Name string `json:"name"` - Version string `json:"version"` - Configuration json.RawMessage `json:"configuration,omitempty"` - VulnerabilityDBStatus json.RawMessage `json:"db,omitempty"` + Name string `json:"name" protobuf:"bytes,1,req,name=name"` + Version string `json:"version" protobuf:"bytes,2,req,name=version"` + Configuration json.RawMessage `json:"configuration,omitempty" protobuf:"bytes,3,opt,name=configuration"` + VulnerabilityDBStatus json.RawMessage `json:"db,omitempty" protobuf:"bytes,4,opt,name=db"` } type Source struct { - Type string `json:"type"` - Target json.RawMessage `json:"target,omitempty"` + Type string `json:"type" protobuf:"bytes,1,req,name=type"` + Target json.RawMessage `json:"target,omitempty" protobuf:"bytes,2,opt,name=target"` } // GrypeDocument is the document that represents the vulnerability manifest in // the Grype’s JSON format type GrypeDocument struct { - Matches []Match `json:"matches"` - IgnoredMatches []IgnoredMatch `json:"ignoredMatches,omitempty"` - Source *Source `json:"source"` - Distro Distribution `json:"distro"` - Descriptor Descriptor `json:"descriptor"` + Matches []Match `json:"matches" protobuf:"bytes,1,rep,name=matches"` + IgnoredMatches []IgnoredMatch `json:"ignoredMatches,omitempty" protobuf:"bytes,2,rep,name=ignoredMatches"` + Source *Source `json:"source" protobuf:"bytes,3,req,name=source"` + Distro Distribution `json:"distro" protobuf:"bytes,4,req,name=distro"` + Descriptor_ Descriptor `json:"descriptor" protobuf:"bytes,5,req,name=descriptor"` } diff --git a/pkg/apis/softwarecomposition/v1beta1/network_types.go b/pkg/apis/softwarecomposition/v1beta1/network_types.go index 32071a691..5e34ad46d 100644 --- a/pkg/apis/softwarecomposition/v1beta1/network_types.go +++ b/pkg/apis/softwarecomposition/v1beta1/network_types.go @@ -24,7 +24,7 @@ type NetworkNeighborsList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - Items []NetworkNeighbors `json:"items"` + Items []NetworkNeighbors `json:"items" protobuf:"bytes,2,rep,name=items"` } // +genclient @@ -36,17 +36,17 @@ type NetworkNeighbors struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - Spec NetworkNeighborsSpec `json:"spec"` + Spec NetworkNeighborsSpec `json:"spec" protobuf:"bytes,2,req,name=spec"` } type NetworkNeighborsSpec struct { - metav1.LabelSelector `json:",inline"` + metav1.LabelSelector `json:",inline" protobuf:"bytes,3,opt,name=labelSelector"` // +patchMergeKey=identifier // +patchStrategy=merge - Ingress []NetworkNeighbor `json:"ingress" patchStrategy:"merge" patchMergeKey:"identifier"` + Ingress []NetworkNeighbor `json:"ingress" patchStrategy:"merge" patchMergeKey:"identifier" protobuf:"bytes,4,rep,name=ingress"` // +patchMergeKey=identifier // +patchStrategy=merge - Egress []NetworkNeighbor `json:"egress" patchStrategy:"merge" patchMergeKey:"identifier"` + Egress []NetworkNeighbor `json:"egress" patchStrategy:"merge" patchMergeKey:"identifier" protobuf:"bytes,5,rep,name=egress"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -56,7 +56,7 @@ type NetworkNeighborhoodList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - Items []NetworkNeighborhood `json:"items"` + Items []NetworkNeighborhood `json:"items" protobuf:"bytes,2,rep,name=items"` } // +genclient @@ -67,40 +67,40 @@ type NetworkNeighborhood struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - Spec NetworkNeighborhoodSpec `json:"spec"` + Spec NetworkNeighborhoodSpec `json:"spec" protobuf:"bytes,2,req,name=spec"` } type NetworkNeighborhoodSpec struct { - metav1.LabelSelector `json:",inline"` - Containers []NetworkNeighborhoodContainer `json:"containers"` - InitContainers []NetworkNeighborhoodContainer `json:"initContainers"` - EphemeralContainers []NetworkNeighborhoodContainer `json:"ephemeralContainers"` + metav1.LabelSelector `json:",inline" protobuf:"bytes,3,opt,name=labelSelector"` + Containers []NetworkNeighborhoodContainer `json:"containers" protobuf:"bytes,4,rep,name=containers"` + InitContainers []NetworkNeighborhoodContainer `json:"initContainers" protobuf:"bytes,5,rep,name=initContainers"` + EphemeralContainers []NetworkNeighborhoodContainer `json:"ephemeralContainers" protobuf:"bytes,6,rep,name=ephemeralContainers"` } type NetworkNeighborhoodContainer struct { - Name string `json:"name"` - Ingress []NetworkNeighbor `json:"ingress"` - Egress []NetworkNeighbor `json:"egress"` + Name string `json:"name" protobuf:"bytes,1,req,name=name"` + Ingress []NetworkNeighbor `json:"ingress" protobuf:"bytes,2,rep,name=ingress"` + Egress []NetworkNeighbor `json:"egress" protobuf:"bytes,3,rep,name=egress"` } // NetworkNeighbor represents a single network communication made by this resource. type NetworkNeighbor struct { - Identifier string `json:"identifier"` // A unique identifier for this entry - Type CommunicationType `json:"type"` - DNS string `json:"dns"` // DEPRECATED - use DNSNames instead. - DNSNames []string `json:"dnsNames"` + Identifier string `json:"identifier" protobuf:"bytes,1,req,name=identifier"` // A unique identifier for this entry + Type CommunicationType `json:"type" protobuf:"bytes,2,req,name=type"` + DNS string `json:"dns" protobuf:"bytes,3,req,name=dns"` // DEPRECATED - use DNSNames instead. + DNSNames []string `json:"dnsNames" protobuf:"bytes,4,rep,name=dnsNames"` // +patchMergeKey=name // +patchStrategy=merge - Ports []NetworkPort `json:"ports" patchStrategy:"merge" patchMergeKey:"name"` - PodSelector *metav1.LabelSelector `json:"podSelector"` - NamespaceSelector *metav1.LabelSelector `json:"namespaceSelector"` - IPAddress string `json:"ipAddress"` + Ports []NetworkPort `json:"ports" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,5,rep,name=ports"` + PodSelector *metav1.LabelSelector `json:"podSelector" protobuf:"bytes,6,req,name=podSelector"` + NamespaceSelector *metav1.LabelSelector `json:"namespaceSelector" protobuf:"bytes,7,req,name=namespaceSelector"` + IPAddress string `json:"ipAddress" protobuf:"bytes,8,req,name=ipAddress"` } type NetworkPort struct { - Name string `json:"name"` // protocol-port - Protocol Protocol `json:"protocol"` - Port *int32 `json:"port"` + Name string `json:"name" protobuf:"bytes,1,req,name=name"` // protocol-port + Protocol Protocol `json:"protocol" protobuf:"bytes,2,req,name=protocol"` + Port *int32 `json:"port" protobuf:"bytes,3,req,name=port"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -110,7 +110,7 @@ type GeneratedNetworkPolicyList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - Items []GeneratedNetworkPolicy `json:"items"` + Items []GeneratedNetworkPolicy `json:"items" protobuf:"bytes,2,rep,name=items"` } // +genclient @@ -121,16 +121,16 @@ type GeneratedNetworkPolicy struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - Spec NetworkPolicy `json:"spec"` - PoliciesRef []PolicyRef `json:"policyRef,omitempty"` + Spec NetworkPolicy `json:"spec" protobuf:"bytes,2,req,name=spec"` + PoliciesRef []PolicyRef `json:"policyRef,omitempty" protobuf:"bytes,3,rep,name=policyRef"` } type PolicyRef struct { - IPBlock string `json:"ipBlock"` - OriginalIP string `json:"originalIP"` - DNS string `json:"dns"` - Name string `json:"name"` - Server string `json:"server"` + IPBlock string `json:"ipBlock" protobuf:"bytes,1,req,name=ipBlock"` + OriginalIP string `json:"originalIP" protobuf:"bytes,2,req,name=originalIP"` + DNS string `json:"dns" protobuf:"bytes,3,req,name=dns"` + Name string `json:"name" protobuf:"bytes,4,req,name=name"` + Server string `json:"server" protobuf:"bytes,5,req,name=server"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -140,7 +140,7 @@ type KnownServerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - Items []KnownServer `json:"items"` + Items []KnownServer `json:"items" protobuf:"bytes,2,rep,name=items"` } // +genclient @@ -151,13 +151,13 @@ type KnownServer struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - Spec KnownServerSpec `json:"spec"` + Spec KnownServerSpec `json:"spec" protobuf:"bytes,2,req,name=spec"` } type KnownServerSpec []KnownServerEntry type KnownServerEntry struct { - IPBlock string `json:"ipBlock"` - Server string `json:"server"` - Name string `json:"name"` + IPBlock string `json:"ipBlock" protobuf:"bytes,1,req,name=ipBlock"` + Server string `json:"server" protobuf:"bytes,2,req,name=server"` + Name string `json:"name" protobuf:"bytes,3,req,name=name"` } diff --git a/pkg/apis/softwarecomposition/v1beta1/networkpolicy.go b/pkg/apis/softwarecomposition/v1beta1/networkpolicy.go index b103cb195..e3929c23c 100644 --- a/pkg/apis/softwarecomposition/v1beta1/networkpolicy.go +++ b/pkg/apis/softwarecomposition/v1beta1/networkpolicy.go @@ -9,11 +9,11 @@ type NetworkPolicy struct { Kind string `json:"kind,omitempty" protobuf:"bytes,1,opt,name=kind"` APIVersion string `json:"apiVersion,omitempty" protobuf:"bytes,2,opt,name=apiVersion"` - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,3,opt,name=metadata"` // spec represents the specification of the desired behavior for this NetworkPolicy. - Spec NetworkPolicySpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` + Spec NetworkPolicySpec `json:"spec,omitempty" protobuf:"bytes,4,opt,name=spec"` } type PolicyType string @@ -33,7 +33,7 @@ type NetworkPolicySpec struct { // the ingress rules for each are combined additively. // This field is NOT optional and follows standard label selector semantics. // An empty podSelector matches all pods in this namespace. - PodSelector metav1.LabelSelector `json:"podSelector" protobuf:"bytes,1,opt,name=podSelector"` + PodSelector metav1.LabelSelector `json:"podSelector" protobuf:"bytes,1,req,name=podSelector"` // ingress is a list of ingress rules to be applied to the selected pods. // Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod @@ -174,7 +174,7 @@ type NetworkPolicyPeer struct { // ipBlock defines policy on a particular IPBlock. If this field is set then // neither of the other fields can be. - IPBlock *IPBlock `json:"ipBlock,omitempty" protobuf:"bytes,3,rep,name=ipBlock"` + IPBlock *IPBlock `json:"ipBlock,omitempty" protobuf:"bytes,3,opt,name=ipBlock"` } // NetworkPolicyConditionType is the type for status conditions on @@ -358,11 +358,11 @@ type IngressLoadBalancerIngress struct { // IngressPortStatus represents the error condition of a service port type IngressPortStatus struct { // port is the port number of the ingress port. - Port int32 `json:"port" protobuf:"varint,1,opt,name=port"` + Port int32 `json:"port" protobuf:"varint,1,req,name=port"` // protocol is the protocol of the ingress port. // The supported values are: "TCP", "UDP", "SCTP" - Protocol v1.Protocol `json:"protocol" protobuf:"bytes,2,opt,name=protocol,casttype=Protocol"` + Protocol v1.Protocol `json:"protocol" protobuf:"bytes,2,req,name=protocol,casttype=Protocol"` // error is to record the problem with the service port // The format of the error shall comply with the following rules: @@ -490,11 +490,11 @@ type HTTPIngressPath struct { // the IngressClass. Implementations can treat this as a separate PathType // or treat it identically to Prefix or Exact path types. // Implementations are required to support all path types. - PathType *PathType `json:"pathType" protobuf:"bytes,3,opt,name=pathType"` + PathType *PathType `json:"pathType" protobuf:"bytes,3,req,name=pathType"` // backend defines the referenced service endpoint to which the traffic // will be forwarded to. - Backend IngressBackend `json:"backend" protobuf:"bytes,2,opt,name=backend"` + Backend IngressBackend `json:"backend" protobuf:"bytes,2,req,name=backend"` } // IngressBackend describes all endpoints for a given service and port. @@ -516,7 +516,7 @@ type IngressBackend struct { type IngressServiceBackend struct { // name is the referenced service. The service must exist in // the same namespace as the Ingress object. - Name string `json:"name" protobuf:"bytes,1,opt,name=name"` + Name string `json:"name" protobuf:"bytes,1,req,name=name"` // port of the referenced service. A port name or port number // is required for a IngressServiceBackend. @@ -591,15 +591,15 @@ type IngressClassParametersReference struct { APIGroup *string `json:"apiGroup,omitempty" protobuf:"bytes,1,opt,name=aPIGroup"` // kind is the type of resource being referenced. - Kind string `json:"kind" protobuf:"bytes,2,opt,name=kind"` + Kind string `json:"kind" protobuf:"bytes,2,req,name=kind"` // name is the name of resource being referenced. - Name string `json:"name" protobuf:"bytes,3,opt,name=name"` + Name string `json:"name" protobuf:"bytes,3,req,name=name"` // scope represents if this refers to a cluster or namespace scoped resource. // This may be set to "Cluster" (default) or "Namespace". - Scope *string `json:"scope" protobuf:"bytes,4,opt,name=scope"` + Scope *string `json:"scope" protobuf:"bytes,4,req,name=scope"` // namespace is the namespace of the resource being referenced. This field is // required when scope is set to "Namespace" and must be unset when scope is set to diff --git a/pkg/apis/softwarecomposition/v1beta1/register.go b/pkg/apis/softwarecomposition/v1beta1/register.go index 44838123b..cc76d6f91 100644 --- a/pkg/apis/softwarecomposition/v1beta1/register.go +++ b/pkg/apis/softwarecomposition/v1beta1/register.go @@ -49,10 +49,6 @@ func init() { // Adds the list of known types to the given scheme. func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, - &SBOMSPDXv2p3{}, - &SBOMSPDXv2p3List{}, - &SBOMSPDXv2p3Filtered{}, - &SBOMSPDXv2p3FilteredList{}, &VulnerabilityManifest{}, &VulnerabilityManifestList{}, &VulnerabilityManifestSummary{}, diff --git a/pkg/apis/softwarecomposition/v1beta1/scan_types.go b/pkg/apis/softwarecomposition/v1beta1/scan_types.go index 7c81344dd..be1167d70 100644 --- a/pkg/apis/softwarecomposition/v1beta1/scan_types.go +++ b/pkg/apis/softwarecomposition/v1beta1/scan_types.go @@ -11,7 +11,7 @@ type WorkloadConfigurationScanList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - Items []WorkloadConfigurationScan `json:"items"` + Items []WorkloadConfigurationScan `json:"items" protobuf:"bytes,2,rep,name=items"` } // +genclient @@ -22,60 +22,60 @@ type WorkloadConfigurationScan struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - Spec WorkloadConfigurationScanSpec `json:"spec"` + Spec WorkloadConfigurationScanSpec `json:"spec" protobuf:"bytes,2,req,name=spec"` } type WorkloadConfigurationScanSpec struct { - Controls map[string]ScannedControl `json:"controls"` - RelatedObjects []WorkloadScanRelatedObject `json:"relatedObjects"` + Controls map[string]ScannedControl `json:"controls" protobuf:"bytes,2,rep,name=controls"` + RelatedObjects []WorkloadScanRelatedObject `json:"relatedObjects" protobuf:"bytes,3,rep,name=relatedObjects"` } type ScannedControl struct { - ControlID string `json:"controlID"` - Name string `json:"name"` - Severity ControlSeverity `json:"severity"` - Status ScannedControlStatus `json:"status"` - Rules []ScannedControlRule `json:"rules"` + ControlID string `json:"controlID" protobuf:"bytes,1,req,name=controlID"` + Name string `json:"name" protobuf:"bytes,2,req,name=name"` + Severity ControlSeverity `json:"severity" protobuf:"bytes,3,req,name=severity"` + Status ScannedControlStatus `json:"status" protobuf:"bytes,4,req,name=status"` + Rules []ScannedControlRule `json:"rules" protobuf:"bytes,5,rep,name=rules"` } type ControlSeverity struct { - Severity string `json:"severity"` - ScoreFactor float32 `json:"scoreFactor"` + Severity string `json:"severity" protobuf:"bytes,1,req,name=severity"` + ScoreFactor float32 `json:"scoreFactor" protobuf:"bytes,2,req,name=scoreFactor"` } type ScannedControlStatus struct { - Status string `json:"status"` - SubStatus string `json:"subStatus"` - Info string `json:"info"` + Status string `json:"status" protobuf:"bytes,1,req,name=status"` + SubStatus string `json:"subStatus" protobuf:"bytes,2,req,name=subStatus"` + Info string `json:"info" protobuf:"bytes,3,req,name=info"` } type ScannedControlRule struct { - Name string `json:"name"` - Status RuleStatus `json:"status"` - ControlConfigurations map[string][]string `json:"controlConfigurations"` - Paths []RulePath `json:"paths"` - AppliedIgnoreRules []string `json:"appliedIgnoreRules"` - RelatedResourcesIDs []string `json:"relatedResourcesIDs"` // ? + Name string `json:"name" protobuf:"bytes,1,req,name=name"` + Status RuleStatus `json:"status" protobuf:"bytes,2,req,name=status"` + ControlConfigurations map[string]string `json:"controlConfigurations" protobuf:"bytes,3,rep,name=controlConfigurations"` + Paths []RulePath `json:"paths" protobuf:"bytes,4,rep,name=paths"` + AppliedIgnoreRules []string `json:"appliedIgnoreRules" protobuf:"bytes,5,rep,name=appliedIgnoreRules"` + RelatedResourcesIDs []string `json:"relatedResourcesIDs" protobuf:"bytes,6,rep,name=relatedResourcesIDs"` } type RuleStatus struct { - Status string `json:"status"` - SubStatus string `json:"subStatus"` + Status string `json:"status" protobuf:"bytes,1,req,name=status"` + SubStatus string `json:"subStatus" protobuf:"bytes,2,req,name=subStatus"` } type RulePath struct { - FailedPath string `json:"failedPath"` - FixPath string `json:"fixPath"` - FixPathValue string `json:"fixPathValue"` - FixCommand string `json:"fixCommand"` + FailedPath string `json:"failedPath" protobuf:"bytes,1,req,name=failedPath"` + FixPath string `json:"fixPath" protobuf:"bytes,2,req,name=fixPath"` + FixPathValue string `json:"fixPathValue" protobuf:"bytes,3,req,name=fixPathValue"` + FixCommand string `json:"fixCommand" protobuf:"bytes,4,req,name=fixCommand"` } type WorkloadScanRelatedObject struct { - Namespace string `json:"namespace"` - APIGroup string `json:"apiGroup"` - APIVersion string `json:"apiVersion"` - Kind string `json:"kind"` - Name string `json:"name"` + Namespace string `json:"namespace" protobuf:"bytes,1,req,name=namespace"` + APIGroup string `json:"apiGroup" protobuf:"bytes,2,req,name=apiGroup"` + APIVersion string `json:"apiVersion" protobuf:"bytes,3,req,name=apiVersion"` + Kind string `json:"kind" protobuf:"bytes,4,req,name=kind"` + Name string `json:"name" protobuf:"bytes,5,req,name=name"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -85,7 +85,7 @@ type WorkloadConfigurationScanSummaryList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - Items []WorkloadConfigurationScanSummary `json:"items"` + Items []WorkloadConfigurationScanSummary `json:"items" protobuf:"bytes,2,rep,name=items"` } // +genclient @@ -96,12 +96,12 @@ type WorkloadConfigurationScanSummary struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - Spec WorkloadConfigurationScanSummarySpec `json:"spec"` + Spec WorkloadConfigurationScanSummarySpec `json:"spec" protobuf:"bytes,2,req,name=spec"` } type WorkloadConfigurationScanSummarySpec struct { - Severities WorkloadConfigurationScanSeveritiesSummary `json:"severities"` - Controls map[string]ScannedControlSummary `json:"controls"` + Severities WorkloadConfigurationScanSeveritiesSummary `json:"severities" protobuf:"bytes,1,req,name=severities"` + Controls map[string]ScannedControlSummary `json:"controls" protobuf:"bytes,2,rep,name=controls"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -111,7 +111,7 @@ type ConfigurationScanSummaryList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - Items []ConfigurationScanSummary `json:"items"` + Items []ConfigurationScanSummary `json:"items" protobuf:"bytes,2,rep,name=items"` } // +genclient @@ -122,31 +122,31 @@ type ConfigurationScanSummary struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - Spec ConfigurationScanSummarySpec `json:"spec"` + Spec ConfigurationScanSummarySpec `json:"spec" protobuf:"bytes,2,req,name=spec"` } type ConfigurationScanSummarySpec struct { - Severities WorkloadConfigurationScanSeveritiesSummary `json:"severities"` - WorkloadConfigurationScanSummaryIdentifiers []WorkloadConfigurationScanSummaryIdentifier `json:"summaryRef"` + Severities WorkloadConfigurationScanSeveritiesSummary `json:"severities" protobuf:"bytes,1,req,name=severities"` + WorkloadConfigurationScanSummaryIdentifiers []WorkloadConfigurationScanSummaryIdentifier `json:"summaryRef" protobuf:"bytes,2,rep,name=summaryRef"` } type WorkloadConfigurationScanSeveritiesSummary struct { - Critical int `json:"critical"` - High int `json:"high"` - Medium int `json:"medium"` - Low int `json:"low"` - Unknown int `json:"unknown"` + Critical int64 `json:"critical" protobuf:"bytes,1,req,name=critical"` + High int64 `json:"high" protobuf:"bytes,2,req,name=high"` + Medium int64 `json:"medium" protobuf:"bytes,3,req,name=medium"` + Low int64 `json:"low" protobuf:"bytes,4,req,name=low"` + Unknown int64 `json:"unknown" protobuf:"bytes,5,req,name=unknown"` } type ScannedControlSummary struct { - ControlID string `json:"controlID"` - Severity ControlSeverity `json:"severity"` - Status ScannedControlStatus `json:"status"` + ControlID string `json:"controlID" protobuf:"bytes,1,req,name=controlID"` + Severity ControlSeverity `json:"severity" protobuf:"bytes,2,req,name=severity"` + Status ScannedControlStatus `json:"status" protobuf:"bytes,3,req,name=status"` } // WorkloadConfigurationScanSummaryIdentifier includes information needed to identify a WorkloadConfigurationScanSummary object type WorkloadConfigurationScanSummaryIdentifier struct { - Namespace string `json:"namespace"` - Kind string `json:"kind"` - Name string `json:"name"` + Namespace string `json:"namespace" protobuf:"bytes,1,req,name=namespace"` + Kind string `json:"kind" protobuf:"bytes,2,req,name=kind"` + Name string `json:"name" protobuf:"bytes,3,req,name=name"` } diff --git a/pkg/apis/softwarecomposition/v1beta1/spdx_types.go b/pkg/apis/softwarecomposition/v1beta1/spdx_types.go deleted file mode 100644 index 643d845da..000000000 --- a/pkg/apis/softwarecomposition/v1beta1/spdx_types.go +++ /dev/null @@ -1,900 +0,0 @@ -package v1beta1 - -import ( - "encoding/json" - "fmt" - "strings" -) - -type Annotator struct { - Annotator string - // including AnnotatorType: one of "Person", "Organization" or "Tool" - AnnotatorType string -} - -// kvJSONLine parses a key-value pair from JSON. -// i.e. "\"\""" -> k = "foo", v = "bar". -func kvJSONLine(data []byte) (k, v string, err error) { - var ( - s string - ok bool - ) - if err = json.Unmarshal(data, &s); err != nil { - return k, v, err - } - if k, v, ok = strings.Cut(s, ": "); !ok { - err = fmt.Errorf("failed to parse %q", s) - } - return k, v, err -} - -// UnmarshalJSON takes an annotator in the typical one-line format and parses it into an Annotator struct. -// This function is also used when unmarshalling YAML -func (a *Annotator) UnmarshalJSON(data []byte) error { - // annotator will simply be a string. - var err error - if a.AnnotatorType, a.Annotator, err = kvJSONLine(data); err != nil { - return fmt.Errorf("failed to parse Annotator: %w", err) - } - return nil -} - -// MarshalJSON converts the receiver into a slice of bytes representing an Annotator in string form. -// This function is also used when marshalling to YAML -func (a Annotator) MarshalJSON() ([]byte, error) { - if a.Annotator != "" { - return json.Marshal(fmt.Sprintf("%s: %s", a.AnnotatorType, a.Annotator)) - } - - return []byte{}, nil -} - -// ChecksumAlgorithm represents the algorithm used to generate the file checksum in the Checksum struct. -type ChecksumAlgorithm string - -// The checksum algorithms mentioned in the spdxv2.2.0 https://spdx.github.io/spdx-spec/4-file-information/#44-file-checksum -const ( - SHA224 ChecksumAlgorithm = "SHA224" - SHA1 ChecksumAlgorithm = "SHA1" - SHA256 ChecksumAlgorithm = "SHA256" - SHA384 ChecksumAlgorithm = "SHA384" - SHA512 ChecksumAlgorithm = "SHA512" - MD2 ChecksumAlgorithm = "MD2" - MD4 ChecksumAlgorithm = "MD4" - MD5 ChecksumAlgorithm = "MD5" - MD6 ChecksumAlgorithm = "MD6" - SHA3_256 ChecksumAlgorithm = "SHA3-256" - SHA3_384 ChecksumAlgorithm = "SHA3-384" - SHA3_512 ChecksumAlgorithm = "SHA3-512" - BLAKE2b_256 ChecksumAlgorithm = "BLAKE2b-256" - BLAKE2b_384 ChecksumAlgorithm = "BLAKE2b-384" - BLAKE2b_512 ChecksumAlgorithm = "BLAKE2b-512" - BLAKE3 ChecksumAlgorithm = "BLAKE3" - ADLER32 ChecksumAlgorithm = "ADLER32" -) - -// Checksum provides a unique identifier to match analysis information on each specific file in a package. -// The Algorithm field describes the ChecksumAlgorithm used and the Value represents the file checksum -type Checksum struct { - Algorithm ChecksumAlgorithm `json:"algorithm"` - Value string `json:"checksumValue"` -} - -// Creator is a wrapper around the Creator SPDX field. The SPDX field contains two values, which requires special -// handling in order to marshal/unmarshal it to/from Go data types. -type Creator struct { - Creator string - // CreatorType should be one of "Person", "Organization", or "Tool" - CreatorType string -} - -// UnmarshalJSON takes an annotator in the typical one-line format and parses it into a Creator struct. -// This function is also used when unmarshalling YAML -func (c *Creator) UnmarshalJSON(data []byte) error { - var err error - if c.CreatorType, c.Creator, err = kvJSONLine(data); err != nil { - return fmt.Errorf("failed to parse Creator: %w", err) - } - return nil -} - -// MarshalJSON converts the receiver into a slice of bytes representing a Creator in string form. -// This function is also used with marshalling to YAML -func (c Creator) MarshalJSON() ([]byte, error) { - if c.Creator != "" { - return json.Marshal(fmt.Sprintf("%s: %s", c.CreatorType, c.Creator)) - } - - return []byte{}, nil -} - -// Constants for various string types -const ( - // F.2 Security types - TypeSecurityCPE23Type string = "cpe23Type" - TypeSecurityCPE22Type string = "cpe22Type" - TypeSecurityAdvisory string = "advisory" - TypeSecurityFix string = "fix" - TypeSecurityUrl string = "url" - TypeSecuritySwid string = "swid" - - // F.3 Package-Manager types - TypePackageManagerMavenCentral string = "maven-central" - TypePackageManagerNpm string = "npm" - TypePackageManagerNuGet string = "nuget" - TypePackageManagerBower string = "bower" - TypePackageManagerPURL string = "purl" - - // 11.1 Relationship field types - TypeRelationshipDescribe string = "DESCRIBES" - TypeRelationshipDescribeBy string = "DESCRIBED_BY" - TypeRelationshipContains string = "CONTAINS" - TypeRelationshipContainedBy string = "CONTAINED_BY" - TypeRelationshipDependsOn string = "DEPENDS_ON" - TypeRelationshipDependencyOf string = "DEPENDENCY_OF" - TypeRelationshipBuildDependencyOf string = "BUILD_DEPENDENCY_OF" - TypeRelationshipDevDependencyOf string = "DEV_DEPENDENCY_OF" - TypeRelationshipOptionalDependencyOf string = "OPTIONAL_DEPENDENCY_OF" - TypeRelationshipProvidedDependencyOf string = "PROVIDED_DEPENDENCY_OF" - TypeRelationshipTestDependencyOf string = "TEST_DEPENDENCY_OF" - TypeRelationshipRuntimeDependencyOf string = "RUNTIME_DEPENDENCY_OF" - TypeRelationshipExampleOf string = "EXAMPLE_OF" - TypeRelationshipGenerates string = "GENERATES" - TypeRelationshipGeneratedFrom string = "GENERATED_FROM" - TypeRelationshipAncestorOf string = "ANCESTOR_OF" - TypeRelationshipDescendantOf string = "DESCENDANT_OF" - TypeRelationshipVariantOf string = "VARIANT_OF" - TypeRelationshipDistributionArtifact string = "DISTRIBUTION_ARTIFACT" - TypeRelationshipPatchFor string = "PATCH_FOR" - TypeRelationshipPatchApplied string = "PATCH_APPLIED" - TypeRelationshipCopyOf string = "COPY_OF" - TypeRelationshipFileAdded string = "FILE_ADDED" - TypeRelationshipFileDeleted string = "FILE_DELETED" - TypeRelationshipFileModified string = "FILE_MODIFIED" - TypeRelationshipExpandedFromArchive string = "EXPANDED_FROM_ARCHIVE" - TypeRelationshipDynamicLink string = "DYNAMIC_LINK" - TypeRelationshipStaticLink string = "STATIC_LINK" - TypeRelationshipDataFileOf string = "DATA_FILE_OF" - TypeRelationshipTestCaseOf string = "TEST_CASE_OF" - TypeRelationshipBuildToolOf string = "BUILD_TOOL_OF" - TypeRelationshipDevToolOf string = "DEV_TOOL_OF" - TypeRelationshipTestOf string = "TEST_OF" - TypeRelationshipTestToolOf string = "TEST_TOOL_OF" - TypeRelationshipDocumentationOf string = "DOCUMENTATION_OF" - TypeRelationshipOptionalComponentOf string = "OPTIONAL_COMPONENT_OF" - TypeRelationshipMetafileOf string = "METAFILE_OF" - TypeRelationshipPackageOf string = "PACKAGE_OF" - TypeRelationshipAmends string = "AMENDS" - TypeRelationshipPrerequisiteFor string = "PREREQUISITE_FOR" - TypeRelationshipHasPrerequisite string = "HAS_PREREQUISITE" - TypeRelationshipRequirementDescriptionFor string = "REQUIREMENT_DESCRIPTION_FOR" - TypeRelationshipSpecificationFor string = "SPECIFICATION_FOR" - TypeRelationshipOther string = "OTHER" -) - -const ( - spdxRefPrefix = "SPDXRef-" - documentRefPrefix = "DocumentRef-" -) - -// ElementID represents the identifier string portion of an SPDX element -// identifier. DocElementID should be used for any attributes which can -// contain identifiers defined in a different SPDX document. -// ElementIDs should NOT contain the mandatory 'SPDXRef-' portion. -type ElementID string - -// MarshalJSON returns an SPDXRef- prefixed JSON string -func (d ElementID) MarshalJSON() ([]byte, error) { - return json.Marshal(prefixElementId(d)) -} - -// UnmarshalJSON validates SPDXRef- prefixes and removes them when processing ElementIDs -func (d *ElementID) UnmarshalJSON(data []byte) error { - // SPDX identifier will simply be a string - var idStr string - err := json.Unmarshal(data, &idStr) - if err != nil { - return err - } - - e, err := trimElementIdPrefix(idStr) - if err != nil { - return err - } - *d = e - return nil -} - -// prefixElementId adds the SPDXRef- prefix to an element ID if it does not have one -func prefixElementId(id ElementID) string { - val := string(id) - if !strings.HasPrefix(val, spdxRefPrefix) { - return spdxRefPrefix + val - } - return val -} - -// trimElementIdPrefix removes the SPDXRef- prefix from an element ID string or returns an error if it -// does not start with SPDXRef- -func trimElementIdPrefix(id string) (ElementID, error) { - // handle SPDXRef- - idFields := strings.SplitN(id, spdxRefPrefix, 2) - if len(idFields) != 2 { - return "", fmt.Errorf("failed to parse SPDX identifier '%s'", id) - } - - e := ElementID(idFields[1]) - return e, nil -} - -// DocElementID represents an SPDX element identifier that could be defined -// in a different SPDX document, and therefore could have a "DocumentRef-" -// portion, such as Relationships and Annotations. -// ElementID is used for attributes in which a "DocumentRef-" portion cannot -// appear, such as a Package or File definition (since it is necessarily -// being defined in the present document). -// DocumentRefID will be the empty string for elements defined in the -// present document. -// DocElementIDs should NOT contain the mandatory 'DocumentRef-' or -// 'SPDXRef-' portions. -// SpecialID is used ONLY if the DocElementID matches a defined set of -// permitted special values for a particular field, e.g. "NONE" or -// "NOASSERTION" for the right-hand side of Relationships. If SpecialID -// is set, DocumentRefID and ElementRefID should be empty (and vice versa). -type DocElementID struct { - DocumentRefID string - ElementRefID ElementID - SpecialID string -} - -// MarshalJSON converts the receiver into a slice of bytes representing a DocElementID in string form. -// This function is also used when marshalling to YAML -func (d DocElementID) MarshalJSON() ([]byte, error) { - if d.DocumentRefID != "" && d.ElementRefID != "" { - idStr := prefixElementId(d.ElementRefID) - return json.Marshal(fmt.Sprintf("%s%s:%s", documentRefPrefix, d.DocumentRefID, idStr)) - } else if d.ElementRefID != "" { - return json.Marshal(prefixElementId(d.ElementRefID)) - } else if d.SpecialID != "" { - return json.Marshal(d.SpecialID) - } - - return []byte{}, fmt.Errorf("failed to marshal empty DocElementID") -} - -// UnmarshalJSON takes a SPDX Identifier string parses it into a DocElementID struct. -// This function is also used when unmarshalling YAML -func (d *DocElementID) UnmarshalJSON(data []byte) (err error) { - // SPDX identifier will simply be a string - idStr := string(data) - idStr = strings.Trim(idStr, "\"") - - // handle special cases - if idStr == "NONE" || idStr == "NOASSERTION" { - d.SpecialID = idStr - return nil - } - - var idFields []string - // handle DocumentRef- if present - if strings.HasPrefix(idStr, documentRefPrefix) { - // strip out the "DocumentRef-" so we can get the value - idFields = strings.SplitN(idStr, documentRefPrefix, 2) - idStr = idFields[1] - - // an SPDXRef can appear after a DocumentRef, separated by a colon - idFields = strings.SplitN(idStr, ":", 2) - d.DocumentRefID = idFields[0] - - if len(idFields) == 2 { - idStr = idFields[1] - } else { - return nil - } - } - - d.ElementRefID, err = trimElementIdPrefix(idStr) - return err -} - -// TODO: add equivalents for LicenseRef- identifiers - -// MakeDocElementID takes strings (without prefixes) for the DocumentRef- -// and SPDXRef- identifiers, and returns a DocElementID. An empty string -// should be used for the DocumentRef- portion if it is referring to the -// present document. -func MakeDocElementID(docRef string, eltRef string) DocElementID { - return DocElementID{ - DocumentRefID: docRef, - ElementRefID: ElementID(eltRef), - } -} - -// MakeDocElementSpecial takes a "special" string (e.g. "NONE" or -// "NOASSERTION" for the right side of a Relationship), nd returns -// a DocElementID with it in the SpecialID field. Other fields will -// be empty. -func MakeDocElementSpecial(specialID string) DocElementID { - return DocElementID{SpecialID: specialID} -} - -// RenderElementID takes an ElementID and returns the string equivalent, -// with the SPDXRef- prefix reinserted. -func RenderElementID(eID ElementID) string { - return spdxRefPrefix + string(eID) -} - -// RenderDocElementID takes a DocElementID and returns the string equivalent, -// with the SPDXRef- prefix (and, if applicable, the DocumentRef- prefix) -// reinserted. If a SpecialID is present, it will be rendered verbatim and -// DocumentRefID and ElementRefID will be ignored. -func RenderDocElementID(deID DocElementID) string { - if deID.SpecialID != "" { - return deID.SpecialID - } - prefix := "" - if deID.DocumentRefID != "" { - prefix = documentRefPrefix + deID.DocumentRefID + ":" - } - return prefix + spdxRefPrefix + string(deID.ElementRefID) -} - -type Supplier struct { - // can be "NOASSERTION" - Supplier string - // SupplierType can be one of "Person", "Organization", or empty if Supplier is "NOASSERTION" - SupplierType string -} - -// UnmarshalJSON takes a supplier in the typical one-line format and parses it into a Supplier struct. -// This function is also used when unmarshalling YAML -func (s *Supplier) UnmarshalJSON(data []byte) error { - // the value is just a string presented as a slice of bytes - switch k, v, err := kvJSONLine(data); { - case k == "NOASSERTION": - s.Supplier = k - case err != nil: - return fmt.Errorf("failed to parse Supplier '%w'", err) - default: - s.SupplierType, s.Supplier = k, v - } - return nil -} - -// MarshalJSON converts the receiver into a slice of bytes representing a Supplier in string form. -// This function is also used when marshalling to YAML -func (s Supplier) MarshalJSON() ([]byte, error) { - if s.Supplier == "NOASSERTION" { - return json.Marshal(s.Supplier) - } else if s.SupplierType != "" && s.Supplier != "" { - return json.Marshal(fmt.Sprintf("%s: %s", s.SupplierType, s.Supplier)) - } - - return []byte{}, fmt.Errorf("failed to marshal invalid Supplier: %+v", s) -} - -type Originator struct { - // can be "NOASSERTION" - Originator string - // OriginatorType can be one of "Person", "Organization", or empty if Originator is "NOASSERTION" - OriginatorType string -} - -// UnmarshalJSON takes an originator in the typical one-line format and parses it into an Originator struct. -// This function is also used when unmarshalling YAML -func (o *Originator) UnmarshalJSON(data []byte) error { - // the value is just a string presented as a slice of bytes - switch k, v, err := kvJSONLine(data); { - case k == "NOASSERTION": - o.Originator = k - case err != nil: - return fmt.Errorf("failed to parse Originator '%w'", err) - default: - o.OriginatorType, o.Originator = k, v - } - return nil -} - -// MarshalJSON converts the receiver into a slice of bytes representing an Originator in string form. -// This function is also used when marshalling to YAML -func (o Originator) MarshalJSON() ([]byte, error) { - if o.Originator == "NOASSERTION" { - return json.Marshal(o.Originator) - } else if o.Originator != "" { - return json.Marshal(fmt.Sprintf("%s: %s", o.OriginatorType, o.Originator)) - } - - return []byte{}, nil -} - -type PackageVerificationCode struct { - // Cardinality: mandatory, one if filesAnalyzed is true / omitted; - // zero (must be omitted) if filesAnalyzed is false - Value string `json:"packageVerificationCodeValue"` - // Spec also allows specifying files to exclude from the - // verification code algorithm; intended to enable exclusion of - // the SPDX document file itself. - ExcludedFiles []string `json:"packageVerificationCodeExcludedFiles"` -} - -type SnippetRangePointer struct { - // 5.3: Snippet Byte Range: [start byte]:[end byte] - // Cardinality: mandatory, one - Offset int `json:"offset"` - - // 5.4: Snippet Line Range: [start line]:[end line] - // Cardinality: optional, one - LineNumber int `json:"lineNumber"` - - FileSPDXIdentifier ElementID `json:"reference"` -} - -type SnippetRange struct { - StartPointer SnippetRangePointer `json:"startPointer"` - EndPointer SnippetRangePointer `json:"endPointer"` -} - -// Annotation is an Annotation section of an SPDX Document for version 2.3 of the spec. -type Annotation struct { - // 12.1: Annotator - // Cardinality: conditional (mandatory, one) if there is an Annotation - Annotator Annotator `json:"annotator"` - - // 12.2: Annotation Date: YYYY-MM-DDThh:mm:ssZ - // Cardinality: conditional (mandatory, one) if there is an Annotation - AnnotationDate string `json:"annotationDate"` - - // 12.3: Annotation Type: "REVIEW" or "OTHER" - // Cardinality: conditional (mandatory, one) if there is an Annotation - AnnotationType string `json:"annotationType"` - - // 12.4: SPDX Identifier Reference - // Cardinality: conditional (mandatory, one) if there is an Annotation - // This field is not used in hierarchical data formats where the referenced element is clear, such as JSON or YAML. - AnnotationSPDXIdentifier DocElementID `json:"-" yaml:"-"` - - // 12.5: Annotation Comment - // Cardinality: conditional (mandatory, one) if there is an Annotation - AnnotationComment string `json:"comment"` -} - -// CreationInfo is a Document Creation Information section of an -// SPDX Document for version 2.3 of the spec. -type CreationInfo struct { - // 6.7: License List Version - // Cardinality: optional, one - LicenseListVersion string `json:"licenseListVersion"` - - // 6.8: Creators: may have multiple keys for Person, Organization - // and/or Tool - // Cardinality: mandatory, one or many - Creators []Creator `json:"creators"` - - // 6.9: Created: data format YYYY-MM-DDThh:mm:ssZ - // Cardinality: mandatory, one - Created string `json:"created"` - - // 6.10: Creator Comment - // Cardinality: optional, one - CreatorComment string `json:"comment"` -} - -// ExternalDocumentRef is a reference to an external SPDX document -// as defined in section 6.6 for version 2.3 of the spec. -type ExternalDocumentRef struct { - // DocumentRefID is the ID string defined in the start of the - // reference. It should _not_ contain the "DocumentRef-" part - // of the mandatory ID string. - DocumentRefID string `json:"externalDocumentId"` - - // URI is the URI defined for the external document - URI string `json:"spdxDocument"` - - // Checksum is the actual hash data - Checksum Checksum `json:"checksum"` -} - -// Document is an SPDX Document for version 2.3 of the spec. -// See https://spdx.github.io/spdx-spec/v2.3/document-creation-information -type Document struct { - // Added - DocumentDescribes []string `json:"documentDescribes"` - - // 6.1: SPDX Version; should be in the format "SPDX-2.3" - // Cardinality: mandatory, one - SPDXVersion string `json:"spdxVersion"` - - // 6.2: Data License; should be "CC0-1.0" - // Cardinality: mandatory, one - DataLicense string `json:"dataLicense"` - - // 6.3: SPDX Identifier; should be "DOCUMENT" to represent - // mandatory identifier of SPDXRef-DOCUMENT - // Cardinality: mandatory, one - SPDXIdentifier ElementID `json:"SPDXID"` - - // 6.4: Document Name - // Cardinality: mandatory, one - DocumentName string `json:"name"` - - // 6.5: Document Namespace - // Cardinality: mandatory, one - DocumentNamespace string `json:"documentNamespace"` - - // 6.6: External Document References - // Cardinality: optional, one or many - ExternalDocumentReferences []ExternalDocumentRef `json:"externalDocumentRefs"` - - // 6.11: Document Comment - // Cardinality: optional, one - DocumentComment string `json:"comment"` - - CreationInfo *CreationInfo `json:"creationInfo"` - // +patchMergeKey=name - // +patchStrategy=merge - Packages []*Package `json:"packages" patchStrategy:"merge" patchMergeKey:"name"` - // +patchMergeKey=fileName - // +patchStrategy=merge - Files []*File `json:"files" patchStrategy:"merge" patchMergeKey:"fileName"` - OtherLicenses []*OtherLicense `json:"hasExtractedLicensingInfos"` - // +patchMergeKey=spdxElementId - // +patchStrategy=merge - Relationships []*Relationship `json:"relationships" patchStrategy:"merge" patchMergeKey:"spdxElementId"` - Annotations []Annotation `json:"annotations"` - Snippets []Snippet `json:"snippets"` - - // DEPRECATED in version 2.0 of spec - Reviews []*Review `json:"-" yaml:"-"` -} - -// File is a File section of an SPDX Document for version 2.3 of the spec. -type File struct { - // 8.1: File Name - // Cardinality: mandatory, one - FileName string `json:"fileName"` - - // 8.2: File SPDX Identifier: "SPDXRef-[idstring]" - // Cardinality: mandatory, one - FileSPDXIdentifier ElementID `json:"SPDXID"` - - // 8.3: File Types - // Cardinality: optional, multiple - FileTypes []string `json:"fileTypes"` - - // 8.4: File Checksum: may have keys for SHA1, SHA256, MD5, SHA3-256, SHA3-384, SHA3-512, BLAKE2b-256, BLAKE2b-384, BLAKE2b-512, BLAKE3, ADLER32 - // Cardinality: mandatory, one SHA1, others may be optionally provided - Checksums []Checksum `json:"checksums"` - - // 8.5: Concluded License: SPDX License Expression, "NONE" or "NOASSERTION" - // Cardinality: optional, one - LicenseConcluded string `json:"licenseConcluded"` - - // 8.6: License Information in File: SPDX License Expression, "NONE" or "NOASSERTION" - // Cardinality: optional, one or many - LicenseInfoInFiles []string `json:"licenseInfoInFiles"` - - // 8.7: Comments on License - // Cardinality: optional, one - LicenseComments string `json:"licenseComments"` - - // 8.8: Copyright Text: copyright notice(s) text, "NONE" or "NOASSERTION" - // Cardinality: mandatory, one - FileCopyrightText string `json:"copyrightText"` - - // DEPRECATED in version 2.1 of spec - // 8.9-8.11: Artifact of Project variables (defined below) - // Cardinality: optional, one or many - ArtifactOfProjects []*ArtifactOfProject `json:"artifactOfs"` - - // 8.12: File Comment - // Cardinality: optional, one - FileComment string `json:"comment"` - - // 8.13: File Notice - // Cardinality: optional, one - FileNotice string `json:"noticeText"` - - // 8.14: File Contributor - // Cardinality: optional, one or many - FileContributors []string `json:"fileContributors"` - - // 8.15: File Attribution Text - // Cardinality: optional, one or many - FileAttributionTexts []string `json:"attributionTexts"` - - // DEPRECATED in version 2.0 of spec - // 8.16: File Dependencies - // Cardinality: optional, one or many - FileDependencies []string `json:"fileDependencies"` - - // Snippets contained in this File - // Note that Snippets could be defined in a different Document! However, - // the only ones that _THIS_ document can contain are this ones that are - // defined here -- so this should just be an ElementID. - Snippets map[ElementID]*Snippet `json:"-" yaml:"-"` - - Annotations []Annotation `json:"annotations"` -} - -// ArtifactOfProject is a DEPRECATED collection of data regarding -// a Package, as defined in sections 8.9-8.11 in version 2.3 of the spec. -// NOTE: the JSON schema does not define the structure of this object: -// https://github.com/spdx/spdx-spec/blob/development/v2.3.1/schemas/spdx-schema.json#L480 -type ArtifactOfProject struct { - - // DEPRECATED in version 2.1 of spec - // 8.9: Artifact of Project Name - // Cardinality: conditional, required if present, one per AOP - Name string `json:"name"` - - // DEPRECATED in version 2.1 of spec - // 8.10: Artifact of Project Homepage: URL or "UNKNOWN" - // Cardinality: optional, one per AOP - HomePage string `json:"homePage"` - - // DEPRECATED in version 2.1 of spec - // 8.11: Artifact of Project Uniform Resource Identifier - // Cardinality: optional, one per AOP - URI string `json:"URI"` -} - -// OtherLicense is an Other License Information section of an -// SPDX Document for version 2.3 of the spec. -type OtherLicense struct { - // 10.1: License Identifier: "LicenseRef-[idstring]" - // Cardinality: conditional (mandatory, one) if license is not - // on SPDX License List - LicenseIdentifier string `json:"licenseId"` - - // 10.2: Extracted Text - // Cardinality: conditional (mandatory, one) if there is a - // License Identifier assigned - ExtractedText string `json:"extractedText"` - - // 10.3: License Name: single line of text or "NOASSERTION" - // Cardinality: conditional (mandatory, one) if license is not - // on SPDX License List - LicenseName string `json:"name"` - - // 10.4: License Cross Reference - // Cardinality: conditional (optional, one or many) if license - // is not on SPDX License List - LicenseCrossReferences []string `json:"seeAlsos"` - - // 10.5: License Comment - // Cardinality: optional, one - LicenseComment string `json:"comment"` -} - -// Package is a Package section of an SPDX Document for version 2.3 of the spec. -type Package struct { - - // Added - HasFiles []string `json:"hasFiles"` - - // NOT PART OF SPEC - // flag: does this "package" contain files that were in fact "unpackaged", - // e.g. included directly in the Document without being in a Package? - IsUnpackaged bool `json:"-" yaml:"-"` - - // 7.1: Package Name - // Cardinality: mandatory, one - PackageName string `json:"name"` - - // 7.2: Package SPDX Identifier: "SPDXRef-[idstring]" - // Cardinality: mandatory, one - PackageSPDXIdentifier ElementID `json:"SPDXID"` - - // 7.3: Package Version - // Cardinality: optional, one - PackageVersion string `json:"versionInfo"` - - // 7.4: Package File Name - // Cardinality: optional, one - PackageFileName string `json:"packageFileName"` - - // 7.5: Package Supplier: may have single result for either Person or Organization, - // or NOASSERTION - // Cardinality: optional, one - PackageSupplier *Supplier `json:"supplier"` - - // 7.6: Package Originator: may have single result for either Person or Organization, - // or NOASSERTION - // Cardinality: optional, one - PackageOriginator *Originator `json:"originator"` - - // 7.7: Package Download Location - // Cardinality: mandatory, one - PackageDownloadLocation string `json:"downloadLocation"` - - // 7.8: FilesAnalyzed - // Cardinality: optional, one; default value is "true" if omitted - FilesAnalyzed bool `json:"filesAnalyzed"` - // NOT PART OF SPEC: did FilesAnalyzed tag appear? - IsFilesAnalyzedTagPresent bool `json:"-" yaml:"-"` - - // 7.9: Package Verification Code - // Cardinality: if FilesAnalyzed == true must be present, if FilesAnalyzed == false must be omitted - PackageVerificationCode *PackageVerificationCode `json:"packageVerificationCode"` - - // 7.10: Package Checksum: may have keys for SHA1, SHA256, SHA512, MD5, SHA3-256, SHA3-384, SHA3-512, BLAKE2b-256, BLAKE2b-384, BLAKE2b-512, BLAKE3, ADLER32 - // Cardinality: optional, one or many - PackageChecksums []Checksum `json:"checksums"` - - // 7.11: Package Home Page - // Cardinality: optional, one - PackageHomePage string `json:"homepage"` - - // 7.12: Source Information - // Cardinality: optional, one - PackageSourceInfo string `json:"sourceInfo"` - - // 7.13: Concluded License: SPDX License Expression, "NONE" or "NOASSERTION" - // Cardinality: optional, one - PackageLicenseConcluded string `json:"licenseConcluded"` - - // 7.14: All Licenses Info from Files: SPDX License Expression, "NONE" or "NOASSERTION" - // Cardinality: optional, one or many if filesAnalyzed is true / omitted; - // zero (must be omitted) if filesAnalyzed is false - PackageLicenseInfoFromFiles []string `json:"licenseInfoFromFiles"` - - // 7.15: Declared License: SPDX License Expression, "NONE" or "NOASSERTION" - // Cardinality: optional, one - PackageLicenseDeclared string `json:"licenseDeclared"` - - // 7.16: Comments on License - // Cardinality: optional, one - PackageLicenseComments string `json:"licenseComments"` - - // 7.17: Copyright Text: copyright notice(s) text, "NONE" or "NOASSERTION" - // Cardinality: mandatory, one - PackageCopyrightText string `json:"copyrightText"` - - // 7.18: Package Summary Description - // Cardinality: optional, one - PackageSummary string `json:"summary"` - - // 7.19: Package Detailed Description - // Cardinality: optional, one - PackageDescription string `json:"description"` - - // 7.20: Package Comment - // Cardinality: optional, one - PackageComment string `json:"comment"` - - // 7.21: Package External Reference - // Cardinality: optional, one or many - PackageExternalReferences []*PackageExternalReference `json:"externalRefs"` - - // 7.22: Package External Reference Comment - // Cardinality: conditional (optional, one) for each External Reference - // contained within PackageExternalReference2_1 struct, if present - - // 7.23: Package Attribution Text - // Cardinality: optional, one or many - PackageAttributionTexts []string `json:"attributionTexts"` - - // 7.24: Primary Package Purpose - // Cardinality: optional, one or many - // Allowed values: APPLICATION, FRAMEWORK, LIBRARY, CONTAINER, OPERATING-SYSTEM, DEVICE, FIRMWARE, SOURCE, ARCHIVE, FILE, INSTALL, OTHER - PrimaryPackagePurpose string `json:"primaryPackagePurpose"` - - // 7.25: Release Date: YYYY-MM-DDThh:mm:ssZ - // Cardinality: optional, one - ReleaseDate string `json:"releaseDate"` - - // 7.26: Build Date: YYYY-MM-DDThh:mm:ssZ - // Cardinality: optional, one - BuiltDate string `json:"builtDate"` - - // 7.27: Valid Until Date: YYYY-MM-DDThh:mm:ssZ - // Cardinality: optional, one - ValidUntilDate string `json:"validUntilDate"` - - // Files contained in this Package - Files []*File `json:"files"` - - Annotations []Annotation `json:"annotations"` -} - -// PackageExternalReference is an External Reference to additional info -// about a Package, as defined in section 7.21 in version 2.3 of the spec. -type PackageExternalReference struct { - // category is "SECURITY", "PACKAGE-MANAGER" or "OTHER" - Category string `json:"referenceCategory"` - - // type is an [idstring] as defined in Appendix VI; - // called RefType here due to "type" being a Golang keyword - RefType string `json:"referenceType"` - - // locator is a unique string to access the package-specific - // info, metadata or content within the target location - Locator string `json:"referenceLocator"` - - // 7.22: Package External Reference Comment - // Cardinality: conditional (optional, one) for each External Reference - ExternalRefComment string `json:"comment"` -} - -// Relationship is a Relationship section of an SPDX Document for -// version 2.3 of the spec. -type Relationship struct { - - // 11.1: Relationship - // Cardinality: optional, one or more; one per Relationship - // one mandatory for SPDX Document with multiple packages - // RefA and RefB are first and second item - // Relationship is type from 11.1.1 - RefA DocElementID `json:"spdxElementId"` - RefB DocElementID `json:"relatedSpdxElement"` - Relationship string `json:"relationshipType"` - - // 11.2: Relationship Comment - // Cardinality: optional, one - RelationshipComment string `json:"comment"` -} - -// Review is a Review section of an SPDX Document for version 2.3 of the spec. -// DEPRECATED in version 2.0 of spec; retained here for compatibility. -type Review struct { - - // DEPRECATED in version 2.0 of spec - // 13.1: Reviewer - // Cardinality: optional, one - Reviewer string - // including AnnotatorType: one of "Person", "Organization" or "Tool" - ReviewerType string - - // DEPRECATED in version 2.0 of spec - // 13.2: Review Date: YYYY-MM-DDThh:mm:ssZ - // Cardinality: conditional (mandatory, one) if there is a Reviewer - ReviewDate string - - // DEPRECATED in version 2.0 of spec - // 13.3: Review Comment - // Cardinality: optional, one - ReviewComment string -} - -// Snippet is a Snippet section of an SPDX Document for version 2.3 of the spec. -type Snippet struct { - - // 9.1: Snippet SPDX Identifier: "SPDXRef-[idstring]" - // Cardinality: mandatory, one - SnippetSPDXIdentifier ElementID `json:"SPDXID"` - - // 9.2: Snippet from File SPDX Identifier - // Cardinality: mandatory, one - SnippetFromFileSPDXIdentifier ElementID `json:"snippetFromFile"` - - // Ranges denotes the start/end byte offsets or line numbers that the snippet is relevant to - Ranges []SnippetRange `json:"ranges"` - - // 9.5: Snippet Concluded License: SPDX License Expression, "NONE" or "NOASSERTION" - // Cardinality: optional, one - SnippetLicenseConcluded string `json:"licenseConcluded"` - - // 9.6: License Information in Snippet: SPDX License Expression, "NONE" or "NOASSERTION" - // Cardinality: optional, one or many - LicenseInfoInSnippet []string `json:"licenseInfoInSnippets"` - - // 9.7: Snippet Comments on License - // Cardinality: optional, one - SnippetLicenseComments string `json:"licenseComments"` - - // 9.8: Snippet Copyright Text: copyright notice(s) text, "NONE" or "NOASSERTION" - // Cardinality: mandatory, one - SnippetCopyrightText string `json:"copyrightText"` - - // 9.9: Snippet Comment - // Cardinality: optional, one - SnippetComment string `json:"comment"` - - // 9.10: Snippet Name - // Cardinality: optional, one - SnippetName string `json:"name"` - - // 9.11: Snippet Attribution Text - // Cardinality: optional, one or many - SnippetAttributionTexts []string `json:"-" yaml:"-"` -} diff --git a/pkg/apis/softwarecomposition/v1beta1/syfttypes.go b/pkg/apis/softwarecomposition/v1beta1/syfttypes.go index 4e5b17325..50c088823 100644 --- a/pkg/apis/softwarecomposition/v1beta1/syfttypes.go +++ b/pkg/apis/softwarecomposition/v1beta1/syfttypes.go @@ -18,51 +18,51 @@ import ( ) type Digest struct { - Algorithm string `json:"algorithm"` - Value string `json:"value"` + Algorithm string `json:"algorithm" protobuf:"bytes,1,req,name=algorithm"` + Value string `json:"value" protobuf:"bytes,2,req,name=value"` } type LocationMetadata struct { - Annotations map[string]string `json:"annotations,omitempty"` // Arbitrary key-value pairs that can be used to annotate a location + Annotations map[string]string `json:"annotations,omitempty" protobuf:"bytes,1,opt,name=annotations"` // Arbitrary key-value pairs that can be used to annotate a location } // Coordinates contains the minimal information needed to describe how to find a file within any possible source object (e.g. image and directory sources) type Coordinates struct { - RealPath string `json:"path" cyclonedx:"path"` // The path where all path ancestors have no hardlinks / symlinks - FileSystemID string `json:"layerID,omitempty" cyclonedx:"layerID"` // An ID representing the filesystem. For container images, this is a layer digest. For directories or a root filesystem, this is blank. + RealPath string `json:"path" cyclonedx:"path" protobuf:"bytes,1,req,name=path"` // The path where all path ancestors have no hardlinks / symlinks + FileSystemID string `json:"layerID,omitempty" cyclonedx:"layerID" protobuf:"bytes,2,opt,name=layerID"` // An ID representing the filesystem. For container images, this is a layer digest. For directories or a root filesystem, this is blank. } // Location represents a path relative to a particular filesystem resolved to a specific file.Reference. This struct is used as a key // in content fetching to uniquely identify a file relative to a request (the VirtualPath). type Location struct { - LocationData `cyclonedx:""` - LocationMetadata `cyclonedx:""` + LocationData `cyclonedx:"" protobuf:"bytes,1,opt,name=locationData"` + LocationMetadata `cyclonedx:"" protobuf:"bytes,2,opt,name=locationMetadata"` } type LocationData struct { - Coordinates `cyclonedx:""` // Empty string here means there is no intermediate property name, e.g. syft:locations:0:path without "coordinates" + Coordinates `cyclonedx:"" protobuf:"bytes,1,opt,name=coordinates"` // Empty string here means there is no intermediate property name, e.g. syft:locations:0:path without "coordinates" // note: it is IMPORTANT to ignore anything but the coordinates for a Location when considering the ID (hash value) // since the coordinates are the minimally correct ID for a location (symlinks should not come into play) - VirtualPath string `hash:"ignore" json:"accessPath"` // The path to the file which may or may not have hardlinks / symlinks + VirtualPath string `hash:"ignore" json:"accessPath" protobuf:"bytes,2,req,name=accessPath"` // The path to the file which may or may not have hardlinks / symlinks } // SyftSource object represents the thing that was cataloged type SyftSource struct { - ID string `json:"id"` - Name string `json:"name"` - Version string `json:"version"` - Type string `json:"type"` - Metadata json.RawMessage `json:"metadata"` + ID string `json:"id" protobuf:"bytes,1,req,name=id"` + Name string `json:"name" protobuf:"bytes,2,req,name=name"` + Version string `json:"version" protobuf:"bytes,3,req,name=version"` + Type string `json:"type" protobuf:"bytes,4,req,name=type"` + Metadata json.RawMessage `json:"metadata" protobuf:"bytes,5,req,name=metadata"` } // sourceUnpacker is used to unmarshal SyftSource objects type sourceUnpacker struct { - ID string `json:"id,omitempty"` - Name string `json:"name"` - Version string `json:"version"` - Type string `json:"type"` - Metadata json.RawMessage `json:"metadata"` - Target json.RawMessage `json:"target"` // pre-v9 schema support + ID string `json:"id,omitempty" protobuf:"bytes,1,opt,name=id"` + Name string `json:"name" protobuf:"bytes,2,req,name=name"` + Version string `json:"version" protobuf:"bytes,3,req,name=version"` + Type string `json:"type" protobuf:"bytes,4,req,name=type"` + Metadata json.RawMessage `json:"metadata" protobuf:"bytes,5,req,name=metadata"` + Target json.RawMessage `json:"target" protobuf:"bytes,6,req,name=target"` // pre-v9 schema support } // UnmarshalJSON populates a source object from JSON bytes. @@ -171,44 +171,44 @@ func extractPreSchemaV9Metadata(t string, target []byte) (interface{}, error) { var errUnknownMetadataType = errors.New("unknown metadata type") type SyftRelationship struct { - Parent string `json:"parent"` - Child string `json:"child"` - Type string `json:"type"` - Metadata json.RawMessage `json:"metadata,omitempty"` + Parent string `json:"parent" protobuf:"bytes,1,req,name=parent"` + Child string `json:"child" protobuf:"bytes,2,req,name=child"` + Type string `json:"type" protobuf:"bytes,3,req,name=type"` + Metadata json.RawMessage `json:"metadata,omitempty" protobuf:"bytes,4,opt,name=metadata"` } // SyftPackage represents a pkg.SyftPackage object specialized for JSON marshaling and unmarshalling. type SyftPackage struct { - PackageBasicData - PackageCustomData + PackageBasicData `protobuf:"bytes,1,opt,name=packageBasicData"` + PackageCustomData `protobuf:"bytes,2,opt,name=packageCustomData"` } // PackageBasicData contains non-ambiguous values (type-wise) from pkg.SyftPackage. type PackageBasicData struct { - ID string `json:"id"` - Name string `json:"name"` - Version string `json:"version"` - Type string `json:"type"` - FoundBy string `json:"foundBy"` - Locations []Location `json:"locations"` - Licenses Licenses `json:"licenses"` - Language string `json:"language"` - CPEs CPEs `json:"cpes"` - PURL string `json:"purl"` + ID string `json:"id" protobuf:"bytes,1,req,name=id"` + Name string `json:"name" protobuf:"bytes,2,req,name=name"` + Version string `json:"version" protobuf:"bytes,3,req,name=version"` + Type string `json:"type" protobuf:"bytes,4,req,name=type"` + FoundBy string `json:"foundBy" protobuf:"bytes,5,req,name=foundBy"` + Locations []Location `json:"locations" protobuf:"bytes,6,rep,name=locations"` + Licenses Licenses `json:"licenses" protobuf:"bytes,7,rep,name=licenses"` + Language string `json:"language" protobuf:"bytes,8,req,name=language"` + CPEs CPEs `json:"cpes" protobuf:"bytes,9,rep,name=cpes"` + PURL string `json:"purl" protobuf:"bytes,10,req,name=purl"` } // PackageBasicDataV01011 is the previous version of PackageBasicData used in schema v0.101.1. type PackageBasicDataV01011 struct { - ID string `json:"id"` - Name string `json:"name"` - Version string `json:"version"` - Type string `json:"type"` - FoundBy string `json:"foundBy"` - Locations []Location `json:"locations"` - Licenses Licenses `json:"licenses"` - Language string `json:"language"` - CPEs []string `json:"cpes"` - PURL string `json:"purl"` + ID string `json:"id" protobuf:"bytes,1,req,name=id"` + Name string `json:"name" protobuf:"bytes,2,req,name=name"` + Version string `json:"version" protobuf:"bytes,3,req,name=version"` + Type string `json:"type" protobuf:"bytes,4,req,name=type"` + FoundBy string `json:"foundBy" protobuf:"bytes,5,req,name=foundBy"` + Locations []Location `json:"locations" protobuf:"bytes,6,rep,name=locations"` + Licenses Licenses `json:"licenses" protobuf:"bytes,7,rep,name=licenses"` + Language string `json:"language" protobuf:"bytes,8,req,name=language"` + CPEs []string `json:"cpes" protobuf:"bytes,9,rep,name=cpes"` + PURL string `json:"purl" protobuf:"bytes,10,req,name=purl"` } func PackageBasicDataFromV01011(in PackageBasicDataV01011) PackageBasicData { @@ -236,8 +236,8 @@ func PackageBasicDataFromV01011(in PackageBasicDataV01011) PackageBasicData { type CPEs []CPE type CPE struct { - Value string `json:"cpe"` - Source string `json:"source,omitempty"` + Value string `json:"cpe" protobuf:"bytes,1,req,name=cpe"` + Source string `json:"source,omitempty" protobuf:"bytes,2,opt,name=source"` } type LicenseType string @@ -245,11 +245,11 @@ type LicenseType string type Licenses []License type License struct { - Value string `json:"value"` - SPDXExpression string `json:"spdxExpression"` - Type LicenseType `json:"type"` - URLs []string `json:"urls"` - Locations []Location `json:"locations"` + Value string `json:"value" protobuf:"bytes,1,req,name=value"` + SPDXExpression string `json:"spdxExpression" protobuf:"bytes,2,req,name=spdxExpression"` + Type LicenseType `json:"type" protobuf:"bytes,3,req,name=type"` + URLs []string `json:"urls" protobuf:"bytes,4,rep,name=urls"` + Locations []Location `json:"locations" protobuf:"bytes,5,rep,name=locations"` } func newModelLicensesFromValues(licenses []string) (ml []License) { @@ -287,14 +287,14 @@ func (f *Licenses) UnmarshalJSON(b []byte) error { // PackageCustomData contains ambiguous values (type-wise) from pkg.SyftPackage. type PackageCustomData struct { - MetadataType string `json:"metadataType,omitempty"` - Metadata json.RawMessage `json:"metadata,omitempty"` + MetadataType string `json:"metadataType,omitempty" protobuf:"bytes,1,opt,name=metadataType"` + Metadata json.RawMessage `json:"metadata,omitempty" protobuf:"bytes,2,opt,name=metadata"` } // packageMetadataUnpacker is all values needed from SyftPackage to disambiguate ambiguous fields during json unmarshaling. type packageMetadataUnpacker struct { - MetadataType string `json:"metadataType"` - Metadata json.RawMessage `json:"metadata"` + MetadataType string `json:"metadataType" protobuf:"bytes,1,req,name=metadataType"` + Metadata json.RawMessage `json:"metadata" protobuf:"bytes,2,req,name=metadata"` } func (p *packageMetadataUnpacker) String() string { @@ -408,24 +408,24 @@ func unpackPkgMetadata(p *SyftPackage, unpacker packageMetadataUnpacker) error { type IDLikes []string type LinuxRelease struct { - PrettyName string `json:"prettyName,omitempty"` - Name string `json:"name,omitempty"` - ID string `json:"id,omitempty"` - IDLike IDLikes `json:"idLike,omitempty"` - Version string `json:"version,omitempty"` - VersionID string `json:"versionID,omitempty"` - VersionCodename string `json:"versionCodename,omitempty"` - BuildID string `json:"buildID,omitempty"` - ImageID string `json:"imageID,omitempty"` - ImageVersion string `json:"imageVersion,omitempty"` - Variant string `json:"variant,omitempty"` - VariantID string `json:"variantID,omitempty"` - HomeURL string `json:"homeURL,omitempty"` - SupportURL string `json:"supportURL,omitempty"` - BugReportURL string `json:"bugReportURL,omitempty"` - PrivacyPolicyURL string `json:"privacyPolicyURL,omitempty"` - CPEName string `json:"cpeName,omitempty"` - SupportEnd string `json:"supportEnd,omitempty"` + PrettyName string `json:"prettyName,omitempty" protobuf:"bytes,1,opt,name=prettyName"` + Name string `json:"name,omitempty" protobuf:"bytes,2,opt,name=name"` + ID string `json:"id,omitempty" protobuf:"bytes,3,opt,name=id"` + IDLike IDLikes `json:"idLike,omitempty" protobuf:"bytes,4,opt,name=idLike"` + Version string `json:"version,omitempty" protobuf:"bytes,5,opt,name=version"` + VersionID string `json:"versionID,omitempty" protobuf:"bytes,6,opt,name=versionID"` + VersionCodename string `json:"versionCodename,omitempty" protobuf:"bytes,7,opt,name=versionCodename"` + BuildID string `json:"buildID,omitempty" protobuf:"bytes,8,opt,name=buildID"` + ImageID string `json:"imageID,omitempty" protobuf:"bytes,9,opt,name=imageID"` + ImageVersion string `json:"imageVersion,omitempty" protobuf:"bytes,10,opt,name=imageVersion"` + Variant string `json:"variant,omitempty" protobuf:"bytes,11,opt,name=variant"` + VariantID string `json:"variantID,omitempty" protobuf:"bytes,12,opt,name=variantID"` + HomeURL string `json:"homeURL,omitempty" protobuf:"bytes,13,opt,name=homeURL"` + SupportURL string `json:"supportURL,omitempty" protobuf:"bytes,14,opt,name=supportURL"` + BugReportURL string `json:"bugReportURL,omitempty" protobuf:"bytes,15,opt,name=bugReportURL"` + PrivacyPolicyURL string `json:"privacyPolicyURL,omitempty" protobuf:"bytes,16,opt,name=privacyPolicyURL"` + CPEName string `json:"cpeName,omitempty" protobuf:"bytes,17,opt,name=cpeName"` + SupportEnd string `json:"supportEnd,omitempty" protobuf:"bytes,18,opt,name=supportEnd"` } func (s *IDLikes) UnmarshalJSON(data []byte) error { @@ -444,64 +444,64 @@ func (s *IDLikes) UnmarshalJSON(data []byte) error { } type SyftFile struct { - ID string `json:"id"` - Location Coordinates `json:"location"` - Metadata *FileMetadataEntry `json:"metadata,omitempty"` - Contents string `json:"contents,omitempty"` - Digests []Digest `json:"digests,omitempty"` - Licenses []FileLicense `json:"licenses,omitempty"` - Executable *Executable `json:"executable,omitempty"` + ID string `json:"id" protobuf:"bytes,1,req,name=id"` + Location Coordinates `json:"location" protobuf:"bytes,2,req,name=location"` + Metadata *FileMetadataEntry `json:"metadata,omitempty" protobuf:"bytes,3,opt,name=metadata"` + Contents string `json:"contents,omitempty" protobuf:"bytes,4,opt,name=contents"` + Digests []Digest `json:"digests,omitempty" protobuf:"bytes,5,rep,name=digests"` + Licenses []FileLicense `json:"licenses,omitempty" protobuf:"bytes,6,rep,name=licenses"` + Executable *Executable `json:"executable,omitempty" protobuf:"bytes,7,opt,name=executable"` } type FileMetadataEntry struct { - Mode int `json:"mode"` - Type string `json:"type"` - LinkDestination string `json:"linkDestination,omitempty"` - UserID int `json:"userID"` - GroupID int `json:"groupID"` - MIMEType string `json:"mimeType"` - Size int64 `json:"size"` + Mode int64 `json:"mode" protobuf:"bytes,1,req,name=mode"` + Type string `json:"type" protobuf:"bytes,2,req,name=type"` + LinkDestination string `json:"linkDestination,omitempty" protobuf:"bytes,3,opt,name=linkDestination"` + UserID int64 `json:"userID" protobuf:"bytes,4,req,name=userID"` + GroupID int64 `json:"groupID" protobuf:"bytes,5,req,name=groupID"` + MIMEType string `json:"mimeType" protobuf:"bytes,6,req,name=mimeType"` + Size_ int64 `json:"size" protobuf:"bytes,7,req,name=size"` } type FileLicense struct { - Value string `json:"value"` - SPDXExpression string `json:"spdxExpression"` - Type LicenseType `json:"type"` - Evidence *FileLicenseEvidence `json:"evidence,omitempty"` + Value string `json:"value" protobuf:"bytes,1,req,name=value"` + SPDXExpression string `json:"spdxExpression" protobuf:"bytes,2,req,name=spdxExpression"` + Type LicenseType `json:"type" protobuf:"bytes,3,req,name=type"` + Evidence *FileLicenseEvidence `json:"evidence,omitempty" protobuf:"bytes,4,opt,name=evidence"` } type Executable struct { // Format denotes either ELF, Mach-O, or PE - Format ExecutableFormat `json:"format" yaml:"format" mapstructure:"format"` + Format ExecutableFormat `json:"format" yaml:"format" mapstructure:"format" protobuf:"bytes,1,req,name=format"` - HasExports bool `json:"hasExports" yaml:"hasExports" mapstructure:"hasExports"` - HasEntrypoint bool `json:"hasEntrypoint" yaml:"hasEntrypoint" mapstructure:"hasEntrypoint"` - ImportedLibraries []string `json:"importedLibraries" yaml:"importedLibraries" mapstructure:"importedLibraries"` - ELFSecurityFeatures *ELFSecurityFeatures `json:"elfSecurityFeatures,omitempty" yaml:"elfSecurityFeatures" mapstructure:"elfSecurityFeatures"` + HasExports bool `json:"hasExports" yaml:"hasExports" mapstructure:"hasExports" protobuf:"bytes,2,req,name=hasExports"` + HasEntrypoint bool `json:"hasEntrypoint" yaml:"hasEntrypoint" mapstructure:"hasEntrypoint" protobuf:"bytes,3,req,name=hasEntrypoint"` + ImportedLibraries []string `json:"importedLibraries" yaml:"importedLibraries" mapstructure:"importedLibraries" protobuf:"bytes,4,rep,name=importedLibraries"` + ELFSecurityFeatures *ELFSecurityFeatures `json:"elfSecurityFeatures,omitempty" yaml:"elfSecurityFeatures" mapstructure:"elfSecurityFeatures" protobuf:"bytes,5,opt,name=elfSecurityFeatures"` } type ELFSecurityFeatures struct { - SymbolTableStripped bool `json:"symbolTableStripped" yaml:"symbolTableStripped" mapstructure:"symbolTableStripped"` + SymbolTableStripped bool `json:"symbolTableStripped" yaml:"symbolTableStripped" mapstructure:"symbolTableStripped" protobuf:"bytes,1,req,name=symbolTableStripped"` // classic protections - StackCanary *bool `json:"stackCanary,omitempty" yaml:"stackCanary" mapstructure:"stackCanary"` - NoExecutable bool `json:"nx" yaml:"nx" mapstructure:"nx"` - RelocationReadOnly RelocationReadOnly `json:"relRO" yaml:"relRO" mapstructure:"relRO"` - PositionIndependentExecutable bool `json:"pie" yaml:"pie" mapstructure:"pie"` - DynamicSharedObject bool `json:"dso" yaml:"dso" mapstructure:"dso"` + StackCanary *bool `json:"stackCanary,omitempty" yaml:"stackCanary" mapstructure:"stackCanary" protobuf:"bytes,2,opt,name=stackCanary"` + NoExecutable bool `json:"nx" yaml:"nx" mapstructure:"nx" protobuf:"bytes,3,req,name=nx"` + RelocationReadOnly RelocationReadOnly `json:"relRO" yaml:"relRO" mapstructure:"relRO" protobuf:"bytes,4,req,name=relRO"` + PositionIndependentExecutable bool `json:"pie" yaml:"pie" mapstructure:"pie" protobuf:"bytes,5,req,name=pie"` + DynamicSharedObject bool `json:"dso" yaml:"dso" mapstructure:"dso" protobuf:"bytes,6,req,name=dso"` // LlvmSafeStack represents a compiler-based security mechanism that separates the stack into a safe stack for storing return addresses and other critical data, and an unsafe stack for everything else, to mitigate stack-based memory corruption errors // see https://clang.llvm.org/docs/SafeStack.html - LlvmSafeStack *bool `json:"safeStack,omitempty" yaml:"safeStack" mapstructure:"safeStack"` + LlvmSafeStack *bool `json:"safeStack,omitempty" yaml:"safeStack" mapstructure:"safeStack" protobuf:"bytes,7,opt,name=safeStack"` // ControlFlowIntegrity represents runtime checks to ensure a program's control flow adheres to the legal paths determined at compile time, thus protecting against various types of control-flow hijacking attacks // see https://clang.llvm.org/docs/ControlFlowIntegrity.html - LlvmControlFlowIntegrity *bool `json:"cfi,omitempty" yaml:"cfi" mapstructure:"cfi"` + LlvmControlFlowIntegrity *bool `json:"cfi,omitempty" yaml:"cfi" mapstructure:"cfi" protobuf:"bytes,8,opt,name=cfi"` // ClangFortifySource is a broad suite of extensions to libc aimed at catching misuses of common library functions // see https://android.googlesource.com/platform//bionic/+/d192dbecf0b2a371eb127c0871f77a9caf81c4d2/docs/clang_fortify_anatomy.md - ClangFortifySource *bool `json:"fortify,omitempty" yaml:"fortify" mapstructure:"fortify"` + ClangFortifySource *bool `json:"fortify,omitempty" yaml:"fortify" mapstructure:"fortify" protobuf:"bytes,9,opt,name=fortify"` //// Selfrando provides function order shuffling to defend against ROP and other types of code reuse //// see https://github.com/runsafesecurity/selfrando @@ -514,30 +514,30 @@ type ( ) type FileLicenseEvidence struct { - Confidence int `json:"confidence"` - Offset int `json:"offset"` - Extent int `json:"extent"` + Confidence int64 `json:"confidence" protobuf:"bytes,1,req,name=confidence"` + Offset int64 `json:"offset" protobuf:"bytes,2,req,name=offset"` + Extent int64 `json:"extent" protobuf:"bytes,3,req,name=extent"` } // SyftDescriptor describes what created the document as well as surrounding metadata type SyftDescriptor struct { - Name string `json:"name"` - Version string `json:"version"` - Configuration json.RawMessage `json:"configuration,omitempty"` + Name string `json:"name" protobuf:"bytes,1,req,name=name"` + Version string `json:"version" protobuf:"bytes,2,req,name=version"` + Configuration json.RawMessage `json:"configuration,omitempty" protobuf:"bytes,3,opt,name=configuration"` } type Schema struct { - Version string `json:"version"` - URL string `json:"url"` + Version string `json:"version" protobuf:"bytes,1,req,name=version"` + URL string `json:"url" protobuf:"bytes,2,req,name=url"` } -// Document represents the syft cataloging findings as a JSON document +// SyftDocument represents the syft cataloging findings as a JSON document type SyftDocument struct { - Artifacts []SyftPackage `json:"artifacts"` // Artifacts is the list of packages discovered and placed into the catalog - ArtifactRelationships []SyftRelationship `json:"artifactRelationships"` - Files []SyftFile `json:"files,omitempty"` // note: must have omitempty - SyftSource SyftSource `json:"source"` // SyftSource represents the original object that was cataloged - Distro LinuxRelease `json:"distro"` // Distro represents the Linux distribution that was detected from the source - SyftDescriptor SyftDescriptor `json:"descriptor"` // SyftDescriptor is a block containing self-describing information about syft - Schema Schema `json:"schema"` // Schema is a block reserved for defining the version for the shape of this JSON document and where to find the schema document to validate the shape + Artifacts []SyftPackage `json:"artifacts" protobuf:"bytes,1,rep,name=artifacts"` // Artifacts is the list of packages discovered and placed into the catalog + ArtifactRelationships []SyftRelationship `json:"artifactRelationships" protobuf:"bytes,2,rep,name=artifactRelationships"` + Files []SyftFile `json:"files,omitempty" protobuf:"bytes,3,rep,name=files"` // note: must have omitempty + SyftSource SyftSource `json:"source" protobuf:"bytes,4,req,name=source"` // SyftSource represents the original object that was cataloged + Distro LinuxRelease `json:"distro" protobuf:"bytes,5,req,name=distro"` // Distro represents the Linux distribution that was detected from the source + SyftDescriptor SyftDescriptor `json:"descriptor" protobuf:"bytes,6,req,name=descriptor"` // SyftDescriptor is a block containing self-describing information about syft + Schema Schema `json:"schema" protobuf:"bytes,7,req,name=schema"` // Schema is a block reserved for defining the version for the shape of this JSON document and where to find the schema document to validate the shape } diff --git a/pkg/apis/softwarecomposition/v1beta1/types.go b/pkg/apis/softwarecomposition/v1beta1/types.go index e1dd64704..cc8071de1 100644 --- a/pkg/apis/softwarecomposition/v1beta1/types.go +++ b/pkg/apis/softwarecomposition/v1beta1/types.go @@ -22,103 +22,47 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// SBOMSPDXv2p3List is a list of Flunder objects. -type SBOMSPDXv2p3List struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - Items []SBOMSPDXv2p3 `json:"items" protobuf:"bytes,2,rep,name=items"` -} - // ToolMeta describes metadata about a tool that generated an artifact type ToolMeta struct { - Name string `json:"name"` - Version string `json:"version"` + Name string `json:"name" protobuf:"bytes,1,req,name=name"` + Version string `json:"version" protobuf:"bytes,2,req,name=version"` } // ReportMeta describes metadata about a report type ReportMeta struct { - CreatedAt metav1.Time `json:"createdAt"` + CreatedAt metav1.Time `json:"createdAt" protobuf:"bytes,1,req,name=createdAt"` } // SPDXMeta describes metadata about an SPDX-formatted SBOM type SPDXMeta struct { - Tool ToolMeta `json:"tool"` - Report ReportMeta `json:"report"` -} - -// SBOMSPDXv2p3Spec is the specification of an SPDX SBOM. -type SBOMSPDXv2p3Spec struct { - Metadata SPDXMeta `json:"metadata"` - SPDX Document `json:"spdx,omitempty"` -} - -// SBOMSPDXv2p3Status is the status of an SPDX SBOM. -type SBOMSPDXv2p3Status struct { -} - -// +genclient -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// SBOMSPDXv2p3 is a custom resource that describes an SBOM in the SPDX 2.3 format. -type SBOMSPDXv2p3 struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - Spec SBOMSPDXv2p3Spec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` - Status SBOMSPDXv2p3Status `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// +genclient -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// SBOMSPDXv2p3Filtered is a custom resource that describes a filtered SBOM in the SPDX 2.3 format. -// -// Being filtered means that the SBOM contains only the relevant vulnerable materials. -type SBOMSPDXv2p3Filtered struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - Spec SBOMSPDXv2p3Spec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` - Status SBOMSPDXv2p3Status `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// SBOMSPDXv2p3FilteredList is a list of SBOMSPDXv2p3Filtered objects. -type SBOMSPDXv2p3FilteredList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - Items []SBOMSPDXv2p3Filtered `json:"items" protobuf:"bytes,2,rep,name=items"` + Tool ToolMeta `json:"tool" protobuf:"bytes,1,req,name=tool"` + Report ReportMeta `json:"report" protobuf:"bytes,2,req,name=report"` } // VulnerabilityManifestReportMeta holds metadata about the specific report // tied to a vulnerability manifest type VulnerabilityManifestReportMeta struct { - CreatedAt metav1.Time `json:"createdAt"` + CreatedAt metav1.Time `json:"createdAt" protobuf:"bytes,1,req,name=createdAt"` } // VulnerabilityManifestToolMeta describes data about the tool used to generate // the vulnerability manifest’s report type VulnerabilityManifestToolMeta struct { - Name string `json:"name"` - Version string `json:"version"` - DatabaseVersion string `json:"databaseVersion"` + Name string `json:"name" protobuf:"bytes,1,req,name=name"` + Version string `json:"version" protobuf:"bytes,2,req,name=version"` + DatabaseVersion string `json:"databaseVersion" protobuf:"bytes,3,req,name=databaseVersion"` } // VulnerabilityManifestMeta holds metadata about a vulnerability manifest type VulnerabilityManifestMeta struct { - WithRelevancy bool `json:"withRelevancy"` - Tool VulnerabilityManifestToolMeta `json:"tool"` - Report VulnerabilityManifestReportMeta `json:"report"` + WithRelevancy bool `json:"withRelevancy" protobuf:"bytes,1,req,name=withRelevancy"` + Tool VulnerabilityManifestToolMeta `json:"tool" protobuf:"bytes,2,req,name=tool"` + Report VulnerabilityManifestReportMeta `json:"report" protobuf:"bytes,3,req,name=report"` } type VulnerabilityManifestSpec struct { - Metadata VulnerabilityManifestMeta `json:"metadata,omitempty"` - Payload GrypeDocument `json:"payload,omitempty"` + Metadata VulnerabilityManifestMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + Payload GrypeDocument `json:"payload,omitempty" protobuf:"bytes,2,opt,name=payload"` } type VulnerabilityManifestStatus struct { @@ -150,34 +94,34 @@ type VulnerabilityManifestList struct { // // Intended to store relevant and total vulnerabilities in the future. type VulnerabilityCounters struct { - All int `json:"all"` - Relevant int `json:"relevant,omitempty"` + All int64 `json:"all" protobuf:"bytes,1,req,name=all"` + Relevant int64 `json:"relevant,omitempty" protobuf:"bytes,2,opt,name=relevant"` } // SeveritySummary is a summary of all vulnerabilities included in vulnerability manifest type SeveritySummary struct { - Critical VulnerabilityCounters `json:"critical,omitempty"` - High VulnerabilityCounters `json:"high,omitempty"` - Medium VulnerabilityCounters `json:"medium,omitempty"` - Low VulnerabilityCounters `json:"low,omitempty"` - Negligible VulnerabilityCounters `json:"negligible,omitempty"` - Unknown VulnerabilityCounters `json:"unknown,omitempty"` + Critical VulnerabilityCounters `json:"critical,omitempty" protobuf:"bytes,1,opt,name=critical"` + High VulnerabilityCounters `json:"high,omitempty" protobuf:"bytes,2,opt,name=high"` + Medium VulnerabilityCounters `json:"medium,omitempty" protobuf:"bytes,3,opt,name=medium"` + Low VulnerabilityCounters `json:"low,omitempty" protobuf:"bytes,4,opt,name=low"` + Negligible VulnerabilityCounters `json:"negligible,omitempty" protobuf:"bytes,5,opt,name=negligible"` + Unknown VulnerabilityCounters `json:"unknown,omitempty" protobuf:"bytes,6,opt,name=unknown"` } type VulnerabilitiesObjScope struct { - Namespace string `json:"namespace"` - Name string `json:"name"` - Kind string `json:"kind"` + Namespace string `json:"namespace" protobuf:"bytes,1,req,name=namespace"` + Name string `json:"name" protobuf:"bytes,2,req,name=name"` + Kind string `json:"kind" protobuf:"bytes,3,req,name=kind"` } type VulnerabilitiesComponents struct { - ImageVulnerabilitiesObj VulnerabilitiesObjScope `json:"all"` - WorkloadVulnerabilitiesObj VulnerabilitiesObjScope `json:"relevant,omitempty"` + ImageVulnerabilitiesObj VulnerabilitiesObjScope `json:"all" protobuf:"bytes,1,req,name=all"` + WorkloadVulnerabilitiesObj VulnerabilitiesObjScope `json:"relevant,omitempty" protobuf:"bytes,2,opt,name=relevant"` } type VulnerabilityManifestSummarySpec struct { - Severities SeveritySummary `json:"severities"` - Vulnerabilities VulnerabilitiesComponents `json:"vulnerabilitiesRef"` + Severities SeveritySummary `json:"severities" protobuf:"bytes,1,req,name=severities"` + Vulnerabilities VulnerabilitiesComponents `json:"vulnerabilitiesRef" protobuf:"bytes,2,req,name=vulnerabilitiesRef"` } // +genclient @@ -203,8 +147,8 @@ type VulnerabilityManifestSummaryList struct { } type VulnerabilitySummarySpec struct { - Severities SeveritySummary `json:"severities"` - WorkloadVulnerabilitiesObj []VulnerabilitiesObjScope `json:"vulnerabilitiesRef"` + Severities SeveritySummary `json:"severities" protobuf:"bytes,1,req,name=severities"` + WorkloadVulnerabilitiesObj []VulnerabilitiesObjScope `json:"vulnerabilitiesRef" protobuf:"bytes,2,rep,name=vulnerabilitiesRef"` } type VulnerabilitySummaryStatus struct { @@ -244,40 +188,40 @@ type ApplicationProfile struct { } type ApplicationProfileSpec struct { - Architectures []string `json:"architectures"` + Architectures []string `json:"architectures" protobuf:"bytes,1,rep,name=architectures"` // +patchMergeKey=name // +patchStrategy=merge - Containers []ApplicationProfileContainer `json:"containers,omitempty" patchStrategy:"merge" patchMergeKey:"name"` + Containers []ApplicationProfileContainer `json:"containers,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,2,rep,name=containers"` // +patchMergeKey=name // +patchStrategy=merge - InitContainers []ApplicationProfileContainer `json:"initContainers,omitempty" patchStrategy:"merge" patchMergeKey:"name"` + InitContainers []ApplicationProfileContainer `json:"initContainers,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,3,rep,name=initContainers"` // +patchMergeKey=name // +patchStrategy=merge - EphemeralContainers []ApplicationProfileContainer `json:"ephemeralContainers,omitempty" patchStrategy:"merge" patchMergeKey:"name"` + EphemeralContainers []ApplicationProfileContainer `json:"ephemeralContainers,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,4,rep,name=ephemeralContainers"` } type ApplicationProfileContainer struct { - Name string `json:"name,omitempty"` - Capabilities []string `json:"capabilities"` + Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"` + Capabilities []string `json:"capabilities" protobuf:"bytes,2,rep,name=capabilities"` // +patchMergeKey=path // +patchStrategy=merge - Execs []ExecCalls `json:"execs" patchStrategy:"merge" patchMergeKey:"path"` + Execs []ExecCalls `json:"execs" patchStrategy:"merge" patchMergeKey:"path" protobuf:"bytes,3,rep,name=execs"` // +patchMergeKey=path // +patchStrategy=merge - Opens []OpenCalls `json:"opens" patchStrategy:"merge" patchMergeKey:"path"` - Syscalls []string `json:"syscalls"` - SeccompProfile SingleSeccompProfile `json:"seccompProfile,omitempty"` + Opens []OpenCalls `json:"opens" patchStrategy:"merge" patchMergeKey:"path" protobuf:"bytes,4,rep,name=opens"` + Syscalls []string `json:"syscalls" protobuf:"bytes,5,rep,name=syscalls"` + SeccompProfile SingleSeccompProfile `json:"seccompProfile,omitempty" protobuf:"bytes,6,opt,name=seccompProfile"` } type ExecCalls struct { - Path string `json:"path,omitempty"` - Args []string `json:"args,omitempty"` - Envs []string `json:"envs,omitempty"` + Path string `json:"path,omitempty" protobuf:"bytes,1,opt,name=path"` + Args []string `json:"args,omitempty" protobuf:"bytes,2,opt,name=args"` + Envs []string `json:"envs,omitempty" protobuf:"bytes,3,opt,name=envs"` } type OpenCalls struct { - Path string `json:"path" yaml:"path"` - Flags []string `json:"flags" yaml:"flags"` + Path string `json:"path" yaml:"path" protobuf:"bytes,1,req,name=path"` + Flags []string `json:"flags" yaml:"flags" protobuf:"bytes,2,rep,name=flags"` } type ApplicationProfileStatus struct { @@ -304,7 +248,7 @@ type ApplicationActivity struct { } type ApplicationActivitySpec struct { - Syscalls []string `json:"syscalls,omitempty"` + Syscalls []string `json:"syscalls,omitempty" protobuf:"bytes,1,rep,name=syscalls"` } type ApplicationActivityStatus struct { @@ -336,48 +280,48 @@ type Justification string type Component struct { // ID is an IRI identifying the component. It is optional as the component // can also be identified using hashes or software identifiers. - ID string `json:"@id,omitempty"` + ID string `json:"@id,omitempty" protobuf:"bytes,1,opt,name=id"` // Hashes is a map of hashes to identify the component using cryptographic // hashes. - Hashes map[Algorithm]Hash `json:"hashes,omitempty"` + Hashes map[Algorithm]Hash `json:"hashes,omitempty" protobuf:"bytes,2,opt,name=hashes"` // Identifiers is a list of software identifiers that describe the component. - Identifiers map[IdentifierType]string `json:"identifiers,omitempty"` + Identifiers map[IdentifierType]string `json:"identifiers,omitempty" protobuf:"bytes,3,opt,name=identifiers"` // Supplier is an optional machine-readable identifier for the supplier of // the component. Valid examples include email address or IRIs. - Supplier string `json:"supplier,omitempty"` + Supplier string `json:"supplier,omitempty" protobuf:"bytes,4,opt,name=supplier"` } type Product struct { - Component - Subcomponents []Subcomponent `json:"subcomponents,omitempty"` + Component `protobuf:"bytes,1,opt,name=component"` + Subcomponents []Subcomponent `json:"subcomponents,omitempty" protobuf:"bytes,2,opt,name=subcomponents"` } type Subcomponent struct { - Component + Component `protobuf:"bytes,1,opt,name=component"` } type VexVulnerability struct { // ID is an IRI to reference the vulnerability in the statement. - ID string `json:"@id,omitempty"` + ID string `json:"@id,omitempty" protobuf:"bytes,1,opt,name=id"` // Name is the main vulnerability identifier. - Name string `json:"name,omitempty"` + Name string `json:"name,omitempty" protobuf:"bytes,2,opt,name=name"` // Description is a short free form text description of the vulnerability. - Description string `json:"description,omitempty"` + Description string `json:"description,omitempty" protobuf:"bytes,3,opt,name=description"` // Aliases is a list of other vulnerability identifier strings that // locate the vulnerability in other tracking systems. - Aliases []string `json:"aliases,omitempty"` + Aliases []string `json:"aliases,omitempty" protobuf:"bytes,4,opt,name=aliases"` } type Statement struct { // ID is an optional identifier for the statement. It takes an IRI and must // be unique for each statement in the document. - ID string `json:"@id,omitempty"` + ID string `json:"@id,omitempty" protobuf:"bytes,1,opt,name=id"` // [vul_id] SHOULD use existing and well known identifiers, for example: // CVE, the Global Security Database (GSD), or a supplier’s vulnerability @@ -386,84 +330,84 @@ type Statement struct { // // [vul_id] MAY be URIs or URLs. // [vul_id] MAY be arbitrary and MAY be created by the VEX statement [author]. - Vulnerability VexVulnerability `json:"vulnerability,omitempty"` + Vulnerability VexVulnerability `json:"vulnerability,omitempty" protobuf:"bytes,2,opt,name=vulnerability"` // Timestamp is the time at which the information expressed in the Statement // was known to be true. - Timestamp string `json:"timestamp,omitempty"` + Timestamp string `json:"timestamp,omitempty" protobuf:"bytes,3,opt,name=timestamp"` // LastUpdated records the time when the statement last had a modification - LastUpdated string `json:"last_updated,omitempty"` + LastUpdated string `json:"last_updated,omitempty" protobuf:"bytes,4,opt,name=last_updated"` // Product // Product details MUST specify what Status applies to. // Product details MUST include [product_id] and MAY include [subcomponent_id]. - Products []Product `json:"products,omitempty"` + Products []Product `json:"products,omitempty" protobuf:"bytes,5,opt,name=products"` // A VEX statement MUST provide Status of the vulnerabilities with respect to the // products and components listed in the statement. Status MUST be one of the // Status const values, some of which have further options and requirements. - Status Status `json:"status"` + Status Status `json:"status" protobuf:"bytes,6,req,name=status"` // [status_notes] MAY convey information about how [status] was determined // and MAY reference other VEX information. - StatusNotes string `json:"status_notes,omitempty"` + StatusNotes string `json:"status_notes,omitempty" protobuf:"bytes,7,opt,name=status_notes"` // For ”not_affected” status, a VEX statement MUST include a status Justification // that further explains the status. - Justification Justification `json:"justification,omitempty"` + Justification Justification `json:"justification,omitempty" protobuf:"bytes,8,opt,name=justification"` // For ”not_affected” status, a VEX statement MAY include an ImpactStatement // that contains a description why the vulnerability cannot be exploited. - ImpactStatement string `json:"impact_statement,omitempty"` + ImpactStatement string `json:"impact_statement,omitempty" protobuf:"bytes,9,opt,name=impact_statement"` // For "affected" status, a VEX statement MUST include an ActionStatement that // SHOULD describe actions to remediate or mitigate [vul_id]. - ActionStatement string `json:"action_statement,omitempty"` - ActionStatementTimestamp string `json:"action_statement_timestamp,omitempty"` + ActionStatement string `json:"action_statement,omitempty" protobuf:"bytes,10,opt,name=action_statement"` + ActionStatementTimestamp string `json:"action_statement_timestamp,omitempty" protobuf:"bytes,11,opt,name=action_statement_timestamp"` } type VEX struct { - Metadata - Statements []Statement `json:"statements"` + Metadata `protobuf:"bytes,1,opt,name=metadata"` + Statements []Statement `json:"statements" protobuf:"bytes,2,rep,name=statements"` } type Metadata struct { // Context is the URL pointing to the jsonld context definition - Context string `json:"@context"` + Context string `json:"@context" protobuf:"bytes,1,req,name=context"` // ID is the identifying string for the VEX document. This should be unique per // document. - ID string `json:"@id"` + ID string `json:"@id" protobuf:"bytes,2,req,name=id"` // Author is the identifier for the author of the VEX statement, ideally a common // name, may be a URI. [author] is an individual or organization. [author] // identity SHOULD be cryptographically associated with the signature of the VEX // statement or document or transport. - Author string `json:"author"` + Author string `json:"author" protobuf:"bytes,3,req,name=author"` // AuthorRole describes the role of the document Author. - AuthorRole string `json:"role,omitempty"` + AuthorRole string `json:"role,omitempty" protobuf:"bytes,4,opt,name=role"` // Timestamp defines the time at which the document was issued. - Timestamp string `json:"timestamp"` + Timestamp string `json:"timestamp" protobuf:"bytes,5,req,name=timestamp"` // LastUpdated marks the time when the document had its last update. When the // document changes both version and this field should be updated. - LastUpdated string `json:"last_updated,omitempty"` + LastUpdated string `json:"last_updated,omitempty" protobuf:"bytes,6,opt,name=last_updated"` // Version is the document version. It must be incremented when any content // within the VEX document changes, including any VEX statements included within // the VEX document. - Version int `json:"version"` + Version int64 `json:"version" protobuf:"bytes,7,req,name=version"` // Tooling expresses how the VEX document and contained VEX statements were // generated. It's optional. It may specify tools or automated processes used in // the document or statement generation. - Tooling string `json:"tooling,omitempty"` + Tooling string `json:"tooling,omitempty" protobuf:"bytes,8,opt,name=tooling"` // Supplier is an optional field. - Supplier string `json:"supplier,omitempty"` + Supplier string `json:"supplier,omitempty" protobuf:"bytes,9,opt,name=supplier"` } // +genclient @@ -491,8 +435,8 @@ type SBOMSyftStatus struct { // SBOMSyftSpec is the specification of a Syft SBOM type SBOMSyftSpec struct { - Metadata SPDXMeta `json:"metadata"` - Syft SyftDocument `json:"syft,omitempty"` + Metadata SPDXMeta `json:"metadata" protobuf:"bytes,1,req,name=metadata"` + Syft SyftDocument `json:"syft,omitempty" protobuf:"bytes,2,opt,name=syft"` } // +genclient @@ -520,7 +464,7 @@ type SBOMSyftList struct { // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// SBOMSyftFiltered is a custom resource that describes a filtered SBOM in the Syft 2.3 format. +// SBOMSyftFiltered is a custom resource that describes a filtered SBOM in the Syft format. // // Being filtered means that the SBOM contains only the relevant vulnerable materials. type SBOMSyftFiltered struct { @@ -546,57 +490,57 @@ type SBOMSyftFilteredList struct { type SeccompProfile struct { metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` + metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - Spec SeccompProfileSpec `json:"spec,omitempty"` - Status SeccompProfileStatus `json:"status,omitempty"` + Spec SeccompProfileSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` + Status SeccompProfileStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } type SeccompProfileSpec struct { - Containers []SingleSeccompProfile `json:"containers,omitempty"` - InitContainers []SingleSeccompProfile `json:"initContainers,omitempty"` - EphemeralContainers []SingleSeccompProfile `json:"ephemeralContainers,omitempty"` + Containers []SingleSeccompProfile `json:"containers,omitempty" protobuf:"bytes,1,rep,name=containers"` + InitContainers []SingleSeccompProfile `json:"initContainers,omitempty" protobuf:"bytes,2,rep,name=initContainers"` + EphemeralContainers []SingleSeccompProfile `json:"ephemeralContainers,omitempty" protobuf:"bytes,3,rep,name=ephemeralContainers"` } type SingleSeccompProfile struct { - Name string `json:"name,omitempty"` - Path string `json:"path,omitempty"` - Spec SingleSeccompProfileSpec `json:"spec,omitempty"` + Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"` + Path string `json:"path,omitempty" protobuf:"bytes,2,opt,name=path"` + Spec SingleSeccompProfileSpec `json:"spec,omitempty" protobuf:"bytes,3,opt,name=spec"` } type SeccompProfileStatus struct { - Containers map[string]SingleSeccompProfileStatus `json:"containers,omitempty"` + Containers map[string]SingleSeccompProfileStatus `json:"containers,omitempty" protobuf:"bytes,1,rep,name=containers"` } type SingleSeccompProfileSpec struct { // Common spec fields for all profiles. - SpecBase `json:",inline"` + SpecBase `json:",inline" protobuf:"bytes,1,opt,name=specBase"` // BaseProfileName is the name of base profile (in the same namespace) that // will be unioned into this profile. Base profiles can be references as // remote OCI artifacts as well when prefixed with `oci://`. - BaseProfileName string `json:"baseProfileName,omitempty"` + BaseProfileName string `json:"baseProfileName,omitempty" protobuf:"bytes,2,opt,name=baseProfileName"` // Properties from containers/common/pkg/seccomp.Seccomp type // the default action for seccomp - DefaultAction seccomp.Action `json:"defaultAction"` + DefaultAction seccomp.Action `json:"defaultAction" protobuf:"bytes,3,opt,name=defaultAction"` // the architecture used for system calls - Architectures []Arch `json:"architectures,omitempty"` + Architectures []Arch `json:"architectures,omitempty" protobuf:"bytes,4,rep,name=architectures"` // path of UNIX domain socket to contact a seccomp agent for SCMP_ACT_NOTIFY - ListenerPath string `json:"listenerPath,omitempty"` + ListenerPath string `json:"listenerPath,omitempty" protobuf:"bytes,5,opt,name=listenerPath"` // opaque data to pass to the seccomp agent - ListenerMetadata string `json:"listenerMetadata,omitempty"` + ListenerMetadata string `json:"listenerMetadata,omitempty" protobuf:"bytes,6,opt,name=listenerMetadata"` // match a syscall in seccomp. While this property is OPTIONAL, some values // of defaultAction are not useful without syscalls entries. For example, // if defaultAction is SCMP_ACT_KILL and syscalls is empty or unset, the // kernel will kill the container process on its first syscall - Syscalls []*Syscall `json:"syscalls,omitempty"` + Syscalls []*Syscall `json:"syscalls,omitempty" protobuf:"bytes,7,rep,name=syscalls"` // Additional properties from OCI runtime spec // list of flags to use with seccomp(2) - Flags []*Flag `json:"flags,omitempty"` + Flags []Flag `json:"flags,omitempty" protobuf:"bytes,8,rep,name=flags"` } type Arch string @@ -606,71 +550,71 @@ type Flag string // Syscall defines a syscall in seccomp. type Syscall struct { // the names of the syscalls - Names []string `json:"names"` + Names []string `json:"names" protobuf:"bytes,1,rep,name=names"` // the action for seccomp rules - Action seccomp.Action `json:"action"` + Action seccomp.Action `json:"action" protobuf:"bytes,2,opt,name=action"` // the errno return code to use. Some actions like SCMP_ACT_ERRNO and // SCMP_ACT_TRACE allow to specify the errno code to return - ErrnoRet uint `json:"errnoRet,omitempty"` + ErrnoRet uint64 `json:"errnoRet,omitempty" protobuf:"bytes,3,opt,name=errnoRet"` // the specific syscall in seccomp - Args []*Arg `json:"args,omitempty"` + Args []*Arg `json:"args,omitempty" protobuf:"bytes,4,rep,name=args"` } // Arg defines the specific syscall in seccomp. type Arg struct { // the index for syscall arguments in seccomp - Index uint `json:"index"` + Index uint64 `json:"index" protobuf:"bytes,1,opt,name=index"` // the value for syscall arguments in seccomp - Value uint64 `json:"value,omitempty"` + Value uint64 `json:"value,omitempty" protobuf:"bytes,2,opt,name=value"` // the value for syscall arguments in seccomp - ValueTwo uint64 `json:"valueTwo,omitempty"` + ValueTwo uint64 `json:"valueTwo,omitempty" protobuf:"bytes,3,opt,name=valueTwo"` // the operator for syscall arguments in seccomp - Op seccomp.Operator `json:"op"` + Op seccomp.Operator `json:"op" protobuf:"bytes,4,opt,name=op"` } type SpecBase struct { - Disabled bool `json:"disabled,omitempty"` + Disabled bool `json:"disabled,omitempty" protobuf:"bytes,1,opt,name=disabled"` } type SingleSeccompProfileStatus struct { - StatusBase `json:",inline"` - Path string `json:"path,omitempty"` - ActiveWorkloads []string `json:"activeWorkloads,omitempty"` + StatusBase `json:",inline" protobuf:"bytes,1,opt,name=statusBase"` + Path string `json:"path,omitempty" protobuf:"bytes,2,opt,name=path"` + ActiveWorkloads []string `json:"activeWorkloads,omitempty" protobuf:"bytes,3,opt,name=activeWorkloads"` // The path that should be provided to the `securityContext.seccompProfile.localhostProfile` // field of a Pod or container spec - LocalhostProfile string `json:"localhostProfile,omitempty"` + LocalhostProfile string `json:"localhostProfile,omitempty" protobuf:"bytes,4,opt,name=localhostProfile"` } type StatusBase struct { - ConditionedStatus `json:",inline"` - Status ProfileState `json:"status,omitempty"` + ConditionedStatus `json:",inline" protobuf:"bytes,1,opt,name=conditionedStatus"` + Status ProfileState `json:"status,omitempty" protobuf:"bytes,2,opt,name=status"` } type ConditionedStatus struct { // Conditions of the resource. // +optional - Conditions []Condition `json:"conditions,omitempty"` + Conditions []Condition `json:"conditions,omitempty" protobuf:"bytes,1,rep,name=conditions"` } type Condition struct { // Type of this condition. At most one of each condition type may apply to // a resource at any point in time. - Type ConditionType `json:"type"` + Type ConditionType `json:"type" protobuf:"bytes,1,req,name=type"` // Status of this condition; is it currently True, False, or Unknown? - Status corev1.ConditionStatus `json:"status"` + Status corev1.ConditionStatus `json:"status" protobuf:"bytes,2,req,name=status"` // LastTransitionTime is the last time this condition transitioned from one // status to another. - LastTransitionTime metav1.Time `json:"lastTransitionTime"` + LastTransitionTime metav1.Time `json:"lastTransitionTime" protobuf:"bytes,3,req,name=lastTransitionTime"` // A Reason for this condition's last transition from one status to another. - Reason ConditionReason `json:"reason"` + Reason ConditionReason `json:"reason" protobuf:"bytes,4,req,name=reason"` // A Message containing details about this condition's last transition from // one status to another, if any. // +optional - Message string `json:"message,omitempty"` + Message string `json:"message,omitempty" protobuf:"bytes,5,opt,name=message"` } type ConditionType string @@ -683,7 +627,7 @@ type ProfileState string type SeccompProfileList struct { metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` + metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - Items []SeccompProfile `json:"items"` + Items []SeccompProfile `json:"items" protobuf:"bytes,2,rep,name=items"` } diff --git a/pkg/apis/softwarecomposition/v1beta1/zz_generated.conversion.go b/pkg/apis/softwarecomposition/v1beta1/zz_generated.conversion.go index 76567ab6c..a1dfdf4f0 100644 --- a/pkg/apis/softwarecomposition/v1beta1/zz_generated.conversion.go +++ b/pkg/apis/softwarecomposition/v1beta1/zz_generated.conversion.go @@ -50,26 +50,6 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*Annotation)(nil), (*softwarecomposition.Annotation)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_Annotation_To_softwarecomposition_Annotation(a.(*Annotation), b.(*softwarecomposition.Annotation), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*softwarecomposition.Annotation)(nil), (*Annotation)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_softwarecomposition_Annotation_To_v1beta1_Annotation(a.(*softwarecomposition.Annotation), b.(*Annotation), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*Annotator)(nil), (*softwarecomposition.Annotator)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_Annotator_To_softwarecomposition_Annotator(a.(*Annotator), b.(*softwarecomposition.Annotator), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*softwarecomposition.Annotator)(nil), (*Annotator)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_softwarecomposition_Annotator_To_v1beta1_Annotator(a.(*softwarecomposition.Annotator), b.(*Annotator), scope) - }); err != nil { - return err - } if err := s.AddGeneratedConversionFunc((*ApplicationActivity)(nil), (*softwarecomposition.ApplicationActivity)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1beta1_ApplicationActivity_To_softwarecomposition_ApplicationActivity(a.(*ApplicationActivity), b.(*softwarecomposition.ApplicationActivity), scope) }); err != nil { @@ -170,16 +150,6 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*ArtifactOfProject)(nil), (*softwarecomposition.ArtifactOfProject)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_ArtifactOfProject_To_softwarecomposition_ArtifactOfProject(a.(*ArtifactOfProject), b.(*softwarecomposition.ArtifactOfProject), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*softwarecomposition.ArtifactOfProject)(nil), (*ArtifactOfProject)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_softwarecomposition_ArtifactOfProject_To_v1beta1_ArtifactOfProject(a.(*softwarecomposition.ArtifactOfProject), b.(*ArtifactOfProject), scope) - }); err != nil { - return err - } if err := s.AddGeneratedConversionFunc((*CPE)(nil), (*softwarecomposition.CPE)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1beta1_CPE_To_softwarecomposition_CPE(a.(*CPE), b.(*softwarecomposition.CPE), scope) }); err != nil { @@ -190,16 +160,6 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*Checksum)(nil), (*softwarecomposition.Checksum)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_Checksum_To_softwarecomposition_Checksum(a.(*Checksum), b.(*softwarecomposition.Checksum), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*softwarecomposition.Checksum)(nil), (*Checksum)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_softwarecomposition_Checksum_To_v1beta1_Checksum(a.(*softwarecomposition.Checksum), b.(*Checksum), scope) - }); err != nil { - return err - } if err := s.AddGeneratedConversionFunc((*Component)(nil), (*softwarecomposition.Component)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1beta1_Component_To_softwarecomposition_Component(a.(*Component), b.(*softwarecomposition.Component), scope) }); err != nil { @@ -280,26 +240,6 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*CreationInfo)(nil), (*softwarecomposition.CreationInfo)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_CreationInfo_To_softwarecomposition_CreationInfo(a.(*CreationInfo), b.(*softwarecomposition.CreationInfo), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*softwarecomposition.CreationInfo)(nil), (*CreationInfo)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_softwarecomposition_CreationInfo_To_v1beta1_CreationInfo(a.(*softwarecomposition.CreationInfo), b.(*CreationInfo), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*Creator)(nil), (*softwarecomposition.Creator)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_Creator_To_softwarecomposition_Creator(a.(*Creator), b.(*softwarecomposition.Creator), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*softwarecomposition.Creator)(nil), (*Creator)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_softwarecomposition_Creator_To_v1beta1_Creator(a.(*softwarecomposition.Creator), b.(*Creator), scope) - }); err != nil { - return err - } if err := s.AddGeneratedConversionFunc((*Cvss)(nil), (*softwarecomposition.Cvss)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1beta1_Cvss_To_softwarecomposition_Cvss(a.(*Cvss), b.(*softwarecomposition.Cvss), scope) }); err != nil { @@ -350,26 +290,6 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DocElementID)(nil), (*softwarecomposition.DocElementID)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_DocElementID_To_softwarecomposition_DocElementID(a.(*DocElementID), b.(*softwarecomposition.DocElementID), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*softwarecomposition.DocElementID)(nil), (*DocElementID)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_softwarecomposition_DocElementID_To_v1beta1_DocElementID(a.(*softwarecomposition.DocElementID), b.(*DocElementID), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*Document)(nil), (*softwarecomposition.Document)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_Document_To_softwarecomposition_Document(a.(*Document), b.(*softwarecomposition.Document), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*softwarecomposition.Document)(nil), (*Document)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_softwarecomposition_Document_To_v1beta1_Document(a.(*softwarecomposition.Document), b.(*Document), scope) - }); err != nil { - return err - } if err := s.AddGeneratedConversionFunc((*ELFSecurityFeatures)(nil), (*softwarecomposition.ELFSecurityFeatures)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1beta1_ELFSecurityFeatures_To_softwarecomposition_ELFSecurityFeatures(a.(*ELFSecurityFeatures), b.(*softwarecomposition.ELFSecurityFeatures), scope) }); err != nil { @@ -400,26 +320,6 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*ExternalDocumentRef)(nil), (*softwarecomposition.ExternalDocumentRef)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_ExternalDocumentRef_To_softwarecomposition_ExternalDocumentRef(a.(*ExternalDocumentRef), b.(*softwarecomposition.ExternalDocumentRef), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*softwarecomposition.ExternalDocumentRef)(nil), (*ExternalDocumentRef)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_softwarecomposition_ExternalDocumentRef_To_v1beta1_ExternalDocumentRef(a.(*softwarecomposition.ExternalDocumentRef), b.(*ExternalDocumentRef), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*File)(nil), (*softwarecomposition.File)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_File_To_softwarecomposition_File(a.(*File), b.(*softwarecomposition.File), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*softwarecomposition.File)(nil), (*File)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_softwarecomposition_File_To_v1beta1_File(a.(*softwarecomposition.File), b.(*File), scope) - }); err != nil { - return err - } if err := s.AddGeneratedConversionFunc((*FileLicense)(nil), (*softwarecomposition.FileLicense)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1beta1_FileLicense_To_softwarecomposition_FileLicense(a.(*FileLicense), b.(*softwarecomposition.FileLicense), scope) }); err != nil { @@ -1030,36 +930,6 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*Originator)(nil), (*softwarecomposition.Originator)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_Originator_To_softwarecomposition_Originator(a.(*Originator), b.(*softwarecomposition.Originator), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*softwarecomposition.Originator)(nil), (*Originator)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_softwarecomposition_Originator_To_v1beta1_Originator(a.(*softwarecomposition.Originator), b.(*Originator), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*OtherLicense)(nil), (*softwarecomposition.OtherLicense)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_OtherLicense_To_softwarecomposition_OtherLicense(a.(*OtherLicense), b.(*softwarecomposition.OtherLicense), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*softwarecomposition.OtherLicense)(nil), (*OtherLicense)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_softwarecomposition_OtherLicense_To_v1beta1_OtherLicense(a.(*softwarecomposition.OtherLicense), b.(*OtherLicense), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*Package)(nil), (*softwarecomposition.Package)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_Package_To_softwarecomposition_Package(a.(*Package), b.(*softwarecomposition.Package), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*softwarecomposition.Package)(nil), (*Package)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_softwarecomposition_Package_To_v1beta1_Package(a.(*softwarecomposition.Package), b.(*Package), scope) - }); err != nil { - return err - } if err := s.AddGeneratedConversionFunc((*PackageBasicData)(nil), (*softwarecomposition.PackageBasicData)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1beta1_PackageBasicData_To_softwarecomposition_PackageBasicData(a.(*PackageBasicData), b.(*softwarecomposition.PackageBasicData), scope) }); err != nil { @@ -1090,26 +960,6 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*PackageExternalReference)(nil), (*softwarecomposition.PackageExternalReference)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_PackageExternalReference_To_softwarecomposition_PackageExternalReference(a.(*PackageExternalReference), b.(*softwarecomposition.PackageExternalReference), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*softwarecomposition.PackageExternalReference)(nil), (*PackageExternalReference)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_softwarecomposition_PackageExternalReference_To_v1beta1_PackageExternalReference(a.(*softwarecomposition.PackageExternalReference), b.(*PackageExternalReference), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*PackageVerificationCode)(nil), (*softwarecomposition.PackageVerificationCode)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_PackageVerificationCode_To_softwarecomposition_PackageVerificationCode(a.(*PackageVerificationCode), b.(*softwarecomposition.PackageVerificationCode), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*softwarecomposition.PackageVerificationCode)(nil), (*PackageVerificationCode)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_softwarecomposition_PackageVerificationCode_To_v1beta1_PackageVerificationCode(a.(*softwarecomposition.PackageVerificationCode), b.(*PackageVerificationCode), scope) - }); err != nil { - return err - } if err := s.AddGeneratedConversionFunc((*PolicyRef)(nil), (*softwarecomposition.PolicyRef)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1beta1_PolicyRef_To_softwarecomposition_PolicyRef(a.(*PolicyRef), b.(*softwarecomposition.PolicyRef), scope) }); err != nil { @@ -1130,16 +980,6 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*Relationship)(nil), (*softwarecomposition.Relationship)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_Relationship_To_softwarecomposition_Relationship(a.(*Relationship), b.(*softwarecomposition.Relationship), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*softwarecomposition.Relationship)(nil), (*Relationship)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_softwarecomposition_Relationship_To_v1beta1_Relationship(a.(*softwarecomposition.Relationship), b.(*Relationship), scope) - }); err != nil { - return err - } if err := s.AddGeneratedConversionFunc((*ReportMeta)(nil), (*softwarecomposition.ReportMeta)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1beta1_ReportMeta_To_softwarecomposition_ReportMeta(a.(*ReportMeta), b.(*softwarecomposition.ReportMeta), scope) }); err != nil { @@ -1150,16 +990,6 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*Review)(nil), (*softwarecomposition.Review)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_Review_To_softwarecomposition_Review(a.(*Review), b.(*softwarecomposition.Review), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*softwarecomposition.Review)(nil), (*Review)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_softwarecomposition_Review_To_v1beta1_Review(a.(*softwarecomposition.Review), b.(*Review), scope) - }); err != nil { - return err - } if err := s.AddGeneratedConversionFunc((*RulePath)(nil), (*softwarecomposition.RulePath)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1beta1_RulePath_To_softwarecomposition_RulePath(a.(*RulePath), b.(*softwarecomposition.RulePath), scope) }); err != nil { @@ -1180,66 +1010,6 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*SBOMSPDXv2p3)(nil), (*softwarecomposition.SBOMSPDXv2p3)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_SBOMSPDXv2p3_To_softwarecomposition_SBOMSPDXv2p3(a.(*SBOMSPDXv2p3), b.(*softwarecomposition.SBOMSPDXv2p3), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*softwarecomposition.SBOMSPDXv2p3)(nil), (*SBOMSPDXv2p3)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_softwarecomposition_SBOMSPDXv2p3_To_v1beta1_SBOMSPDXv2p3(a.(*softwarecomposition.SBOMSPDXv2p3), b.(*SBOMSPDXv2p3), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*SBOMSPDXv2p3Filtered)(nil), (*softwarecomposition.SBOMSPDXv2p3Filtered)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_SBOMSPDXv2p3Filtered_To_softwarecomposition_SBOMSPDXv2p3Filtered(a.(*SBOMSPDXv2p3Filtered), b.(*softwarecomposition.SBOMSPDXv2p3Filtered), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*softwarecomposition.SBOMSPDXv2p3Filtered)(nil), (*SBOMSPDXv2p3Filtered)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_softwarecomposition_SBOMSPDXv2p3Filtered_To_v1beta1_SBOMSPDXv2p3Filtered(a.(*softwarecomposition.SBOMSPDXv2p3Filtered), b.(*SBOMSPDXv2p3Filtered), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*SBOMSPDXv2p3FilteredList)(nil), (*softwarecomposition.SBOMSPDXv2p3FilteredList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_SBOMSPDXv2p3FilteredList_To_softwarecomposition_SBOMSPDXv2p3FilteredList(a.(*SBOMSPDXv2p3FilteredList), b.(*softwarecomposition.SBOMSPDXv2p3FilteredList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*softwarecomposition.SBOMSPDXv2p3FilteredList)(nil), (*SBOMSPDXv2p3FilteredList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_softwarecomposition_SBOMSPDXv2p3FilteredList_To_v1beta1_SBOMSPDXv2p3FilteredList(a.(*softwarecomposition.SBOMSPDXv2p3FilteredList), b.(*SBOMSPDXv2p3FilteredList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*SBOMSPDXv2p3List)(nil), (*softwarecomposition.SBOMSPDXv2p3List)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_SBOMSPDXv2p3List_To_softwarecomposition_SBOMSPDXv2p3List(a.(*SBOMSPDXv2p3List), b.(*softwarecomposition.SBOMSPDXv2p3List), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*softwarecomposition.SBOMSPDXv2p3List)(nil), (*SBOMSPDXv2p3List)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_softwarecomposition_SBOMSPDXv2p3List_To_v1beta1_SBOMSPDXv2p3List(a.(*softwarecomposition.SBOMSPDXv2p3List), b.(*SBOMSPDXv2p3List), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*SBOMSPDXv2p3Spec)(nil), (*softwarecomposition.SBOMSPDXv2p3Spec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_SBOMSPDXv2p3Spec_To_softwarecomposition_SBOMSPDXv2p3Spec(a.(*SBOMSPDXv2p3Spec), b.(*softwarecomposition.SBOMSPDXv2p3Spec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*softwarecomposition.SBOMSPDXv2p3Spec)(nil), (*SBOMSPDXv2p3Spec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_softwarecomposition_SBOMSPDXv2p3Spec_To_v1beta1_SBOMSPDXv2p3Spec(a.(*softwarecomposition.SBOMSPDXv2p3Spec), b.(*SBOMSPDXv2p3Spec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*SBOMSPDXv2p3Status)(nil), (*softwarecomposition.SBOMSPDXv2p3Status)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_SBOMSPDXv2p3Status_To_softwarecomposition_SBOMSPDXv2p3Status(a.(*SBOMSPDXv2p3Status), b.(*softwarecomposition.SBOMSPDXv2p3Status), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*softwarecomposition.SBOMSPDXv2p3Status)(nil), (*SBOMSPDXv2p3Status)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_softwarecomposition_SBOMSPDXv2p3Status_To_v1beta1_SBOMSPDXv2p3Status(a.(*softwarecomposition.SBOMSPDXv2p3Status), b.(*SBOMSPDXv2p3Status), scope) - }); err != nil { - return err - } if err := s.AddGeneratedConversionFunc((*SBOMSyft)(nil), (*softwarecomposition.SBOMSyft)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1beta1_SBOMSyft_To_softwarecomposition_SBOMSyft(a.(*SBOMSyft), b.(*softwarecomposition.SBOMSyft), scope) }); err != nil { @@ -1450,36 +1220,6 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*Snippet)(nil), (*softwarecomposition.Snippet)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_Snippet_To_softwarecomposition_Snippet(a.(*Snippet), b.(*softwarecomposition.Snippet), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*softwarecomposition.Snippet)(nil), (*Snippet)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_softwarecomposition_Snippet_To_v1beta1_Snippet(a.(*softwarecomposition.Snippet), b.(*Snippet), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*SnippetRange)(nil), (*softwarecomposition.SnippetRange)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_SnippetRange_To_softwarecomposition_SnippetRange(a.(*SnippetRange), b.(*softwarecomposition.SnippetRange), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*softwarecomposition.SnippetRange)(nil), (*SnippetRange)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_softwarecomposition_SnippetRange_To_v1beta1_SnippetRange(a.(*softwarecomposition.SnippetRange), b.(*SnippetRange), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*SnippetRangePointer)(nil), (*softwarecomposition.SnippetRangePointer)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_SnippetRangePointer_To_softwarecomposition_SnippetRangePointer(a.(*SnippetRangePointer), b.(*softwarecomposition.SnippetRangePointer), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*softwarecomposition.SnippetRangePointer)(nil), (*SnippetRangePointer)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_softwarecomposition_SnippetRangePointer_To_v1beta1_SnippetRangePointer(a.(*softwarecomposition.SnippetRangePointer), b.(*SnippetRangePointer), scope) - }); err != nil { - return err - } if err := s.AddGeneratedConversionFunc((*Source)(nil), (*softwarecomposition.Source)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1beta1_Source_To_softwarecomposition_Source(a.(*Source), b.(*softwarecomposition.Source), scope) }); err != nil { @@ -1530,16 +1270,6 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*Supplier)(nil), (*softwarecomposition.Supplier)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_Supplier_To_softwarecomposition_Supplier(a.(*Supplier), b.(*softwarecomposition.Supplier), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*softwarecomposition.Supplier)(nil), (*Supplier)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_softwarecomposition_Supplier_To_v1beta1_Supplier(a.(*softwarecomposition.Supplier), b.(*Supplier), scope) - }); err != nil { - return err - } if err := s.AddGeneratedConversionFunc((*SyftCoordinates)(nil), (*softwarecomposition.SyftCoordinates)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1beta1_SyftCoordinates_To_softwarecomposition_SyftCoordinates(a.(*SyftCoordinates), b.(*softwarecomposition.SyftCoordinates), scope) }); err != nil { @@ -1965,64 +1695,6 @@ func Convert_softwarecomposition_Advisory_To_v1beta1_Advisory(in *softwarecompos return autoConvert_softwarecomposition_Advisory_To_v1beta1_Advisory(in, out, s) } -func autoConvert_v1beta1_Annotation_To_softwarecomposition_Annotation(in *Annotation, out *softwarecomposition.Annotation, s conversion.Scope) error { - if err := Convert_v1beta1_Annotator_To_softwarecomposition_Annotator(&in.Annotator, &out.Annotator, s); err != nil { - return err - } - out.AnnotationDate = in.AnnotationDate - out.AnnotationType = in.AnnotationType - if err := Convert_v1beta1_DocElementID_To_softwarecomposition_DocElementID(&in.AnnotationSPDXIdentifier, &out.AnnotationSPDXIdentifier, s); err != nil { - return err - } - out.AnnotationComment = in.AnnotationComment - return nil -} - -// Convert_v1beta1_Annotation_To_softwarecomposition_Annotation is an autogenerated conversion function. -func Convert_v1beta1_Annotation_To_softwarecomposition_Annotation(in *Annotation, out *softwarecomposition.Annotation, s conversion.Scope) error { - return autoConvert_v1beta1_Annotation_To_softwarecomposition_Annotation(in, out, s) -} - -func autoConvert_softwarecomposition_Annotation_To_v1beta1_Annotation(in *softwarecomposition.Annotation, out *Annotation, s conversion.Scope) error { - if err := Convert_softwarecomposition_Annotator_To_v1beta1_Annotator(&in.Annotator, &out.Annotator, s); err != nil { - return err - } - out.AnnotationDate = in.AnnotationDate - out.AnnotationType = in.AnnotationType - if err := Convert_softwarecomposition_DocElementID_To_v1beta1_DocElementID(&in.AnnotationSPDXIdentifier, &out.AnnotationSPDXIdentifier, s); err != nil { - return err - } - out.AnnotationComment = in.AnnotationComment - return nil -} - -// Convert_softwarecomposition_Annotation_To_v1beta1_Annotation is an autogenerated conversion function. -func Convert_softwarecomposition_Annotation_To_v1beta1_Annotation(in *softwarecomposition.Annotation, out *Annotation, s conversion.Scope) error { - return autoConvert_softwarecomposition_Annotation_To_v1beta1_Annotation(in, out, s) -} - -func autoConvert_v1beta1_Annotator_To_softwarecomposition_Annotator(in *Annotator, out *softwarecomposition.Annotator, s conversion.Scope) error { - out.Annotator = in.Annotator - out.AnnotatorType = in.AnnotatorType - return nil -} - -// Convert_v1beta1_Annotator_To_softwarecomposition_Annotator is an autogenerated conversion function. -func Convert_v1beta1_Annotator_To_softwarecomposition_Annotator(in *Annotator, out *softwarecomposition.Annotator, s conversion.Scope) error { - return autoConvert_v1beta1_Annotator_To_softwarecomposition_Annotator(in, out, s) -} - -func autoConvert_softwarecomposition_Annotator_To_v1beta1_Annotator(in *softwarecomposition.Annotator, out *Annotator, s conversion.Scope) error { - out.Annotator = in.Annotator - out.AnnotatorType = in.AnnotatorType - return nil -} - -// Convert_softwarecomposition_Annotator_To_v1beta1_Annotator is an autogenerated conversion function. -func Convert_softwarecomposition_Annotator_To_v1beta1_Annotator(in *softwarecomposition.Annotator, out *Annotator, s conversion.Scope) error { - return autoConvert_softwarecomposition_Annotator_To_v1beta1_Annotator(in, out, s) -} - func autoConvert_v1beta1_ApplicationActivity_To_softwarecomposition_ApplicationActivity(in *ApplicationActivity, out *softwarecomposition.ApplicationActivity, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta if err := Convert_v1beta1_ApplicationActivitySpec_To_softwarecomposition_ApplicationActivitySpec(&in.Spec, &out.Spec, s); err != nil { @@ -2273,30 +1945,6 @@ func Convert_softwarecomposition_Arg_To_v1beta1_Arg(in *softwarecomposition.Arg, return autoConvert_softwarecomposition_Arg_To_v1beta1_Arg(in, out, s) } -func autoConvert_v1beta1_ArtifactOfProject_To_softwarecomposition_ArtifactOfProject(in *ArtifactOfProject, out *softwarecomposition.ArtifactOfProject, s conversion.Scope) error { - out.Name = in.Name - out.HomePage = in.HomePage - out.URI = in.URI - return nil -} - -// Convert_v1beta1_ArtifactOfProject_To_softwarecomposition_ArtifactOfProject is an autogenerated conversion function. -func Convert_v1beta1_ArtifactOfProject_To_softwarecomposition_ArtifactOfProject(in *ArtifactOfProject, out *softwarecomposition.ArtifactOfProject, s conversion.Scope) error { - return autoConvert_v1beta1_ArtifactOfProject_To_softwarecomposition_ArtifactOfProject(in, out, s) -} - -func autoConvert_softwarecomposition_ArtifactOfProject_To_v1beta1_ArtifactOfProject(in *softwarecomposition.ArtifactOfProject, out *ArtifactOfProject, s conversion.Scope) error { - out.Name = in.Name - out.HomePage = in.HomePage - out.URI = in.URI - return nil -} - -// Convert_softwarecomposition_ArtifactOfProject_To_v1beta1_ArtifactOfProject is an autogenerated conversion function. -func Convert_softwarecomposition_ArtifactOfProject_To_v1beta1_ArtifactOfProject(in *softwarecomposition.ArtifactOfProject, out *ArtifactOfProject, s conversion.Scope) error { - return autoConvert_softwarecomposition_ArtifactOfProject_To_v1beta1_ArtifactOfProject(in, out, s) -} - func autoConvert_v1beta1_CPE_To_softwarecomposition_CPE(in *CPE, out *softwarecomposition.CPE, s conversion.Scope) error { out.Value = in.Value out.Source = in.Source @@ -2319,28 +1967,6 @@ func Convert_softwarecomposition_CPE_To_v1beta1_CPE(in *softwarecomposition.CPE, return autoConvert_softwarecomposition_CPE_To_v1beta1_CPE(in, out, s) } -func autoConvert_v1beta1_Checksum_To_softwarecomposition_Checksum(in *Checksum, out *softwarecomposition.Checksum, s conversion.Scope) error { - out.Algorithm = softwarecomposition.ChecksumAlgorithm(in.Algorithm) - out.Value = in.Value - return nil -} - -// Convert_v1beta1_Checksum_To_softwarecomposition_Checksum is an autogenerated conversion function. -func Convert_v1beta1_Checksum_To_softwarecomposition_Checksum(in *Checksum, out *softwarecomposition.Checksum, s conversion.Scope) error { - return autoConvert_v1beta1_Checksum_To_softwarecomposition_Checksum(in, out, s) -} - -func autoConvert_softwarecomposition_Checksum_To_v1beta1_Checksum(in *softwarecomposition.Checksum, out *Checksum, s conversion.Scope) error { - out.Algorithm = ChecksumAlgorithm(in.Algorithm) - out.Value = in.Value - return nil -} - -// Convert_softwarecomposition_Checksum_To_v1beta1_Checksum is an autogenerated conversion function. -func Convert_softwarecomposition_Checksum_To_v1beta1_Checksum(in *softwarecomposition.Checksum, out *Checksum, s conversion.Scope) error { - return autoConvert_softwarecomposition_Checksum_To_v1beta1_Checksum(in, out, s) -} - func autoConvert_v1beta1_Component_To_softwarecomposition_Component(in *Component, out *softwarecomposition.Component, s conversion.Scope) error { out.ID = in.ID out.Hashes = *(*map[softwarecomposition.Algorithm]softwarecomposition.Hash)(unsafe.Pointer(&in.Hashes)) @@ -2533,54 +2159,6 @@ func Convert_softwarecomposition_Coordinates_To_v1beta1_Coordinates(in *software return autoConvert_softwarecomposition_Coordinates_To_v1beta1_Coordinates(in, out, s) } -func autoConvert_v1beta1_CreationInfo_To_softwarecomposition_CreationInfo(in *CreationInfo, out *softwarecomposition.CreationInfo, s conversion.Scope) error { - out.LicenseListVersion = in.LicenseListVersion - out.Creators = *(*[]softwarecomposition.Creator)(unsafe.Pointer(&in.Creators)) - out.Created = in.Created - out.CreatorComment = in.CreatorComment - return nil -} - -// Convert_v1beta1_CreationInfo_To_softwarecomposition_CreationInfo is an autogenerated conversion function. -func Convert_v1beta1_CreationInfo_To_softwarecomposition_CreationInfo(in *CreationInfo, out *softwarecomposition.CreationInfo, s conversion.Scope) error { - return autoConvert_v1beta1_CreationInfo_To_softwarecomposition_CreationInfo(in, out, s) -} - -func autoConvert_softwarecomposition_CreationInfo_To_v1beta1_CreationInfo(in *softwarecomposition.CreationInfo, out *CreationInfo, s conversion.Scope) error { - out.LicenseListVersion = in.LicenseListVersion - out.Creators = *(*[]Creator)(unsafe.Pointer(&in.Creators)) - out.Created = in.Created - out.CreatorComment = in.CreatorComment - return nil -} - -// Convert_softwarecomposition_CreationInfo_To_v1beta1_CreationInfo is an autogenerated conversion function. -func Convert_softwarecomposition_CreationInfo_To_v1beta1_CreationInfo(in *softwarecomposition.CreationInfo, out *CreationInfo, s conversion.Scope) error { - return autoConvert_softwarecomposition_CreationInfo_To_v1beta1_CreationInfo(in, out, s) -} - -func autoConvert_v1beta1_Creator_To_softwarecomposition_Creator(in *Creator, out *softwarecomposition.Creator, s conversion.Scope) error { - out.Creator = in.Creator - out.CreatorType = in.CreatorType - return nil -} - -// Convert_v1beta1_Creator_To_softwarecomposition_Creator is an autogenerated conversion function. -func Convert_v1beta1_Creator_To_softwarecomposition_Creator(in *Creator, out *softwarecomposition.Creator, s conversion.Scope) error { - return autoConvert_v1beta1_Creator_To_softwarecomposition_Creator(in, out, s) -} - -func autoConvert_softwarecomposition_Creator_To_v1beta1_Creator(in *softwarecomposition.Creator, out *Creator, s conversion.Scope) error { - out.Creator = in.Creator - out.CreatorType = in.CreatorType - return nil -} - -// Convert_softwarecomposition_Creator_To_v1beta1_Creator is an autogenerated conversion function. -func Convert_softwarecomposition_Creator_To_v1beta1_Creator(in *softwarecomposition.Creator, out *Creator, s conversion.Scope) error { - return autoConvert_softwarecomposition_Creator_To_v1beta1_Creator(in, out, s) -} - func autoConvert_v1beta1_Cvss_To_softwarecomposition_Cvss(in *Cvss, out *softwarecomposition.Cvss, s conversion.Scope) error { out.Version = in.Version out.Vector = in.Vector @@ -2707,80 +2285,6 @@ func Convert_softwarecomposition_Distribution_To_v1beta1_Distribution(in *softwa return autoConvert_softwarecomposition_Distribution_To_v1beta1_Distribution(in, out, s) } -func autoConvert_v1beta1_DocElementID_To_softwarecomposition_DocElementID(in *DocElementID, out *softwarecomposition.DocElementID, s conversion.Scope) error { - out.DocumentRefID = in.DocumentRefID - out.ElementRefID = softwarecomposition.ElementID(in.ElementRefID) - out.SpecialID = in.SpecialID - return nil -} - -// Convert_v1beta1_DocElementID_To_softwarecomposition_DocElementID is an autogenerated conversion function. -func Convert_v1beta1_DocElementID_To_softwarecomposition_DocElementID(in *DocElementID, out *softwarecomposition.DocElementID, s conversion.Scope) error { - return autoConvert_v1beta1_DocElementID_To_softwarecomposition_DocElementID(in, out, s) -} - -func autoConvert_softwarecomposition_DocElementID_To_v1beta1_DocElementID(in *softwarecomposition.DocElementID, out *DocElementID, s conversion.Scope) error { - out.DocumentRefID = in.DocumentRefID - out.ElementRefID = ElementID(in.ElementRefID) - out.SpecialID = in.SpecialID - return nil -} - -// Convert_softwarecomposition_DocElementID_To_v1beta1_DocElementID is an autogenerated conversion function. -func Convert_softwarecomposition_DocElementID_To_v1beta1_DocElementID(in *softwarecomposition.DocElementID, out *DocElementID, s conversion.Scope) error { - return autoConvert_softwarecomposition_DocElementID_To_v1beta1_DocElementID(in, out, s) -} - -func autoConvert_v1beta1_Document_To_softwarecomposition_Document(in *Document, out *softwarecomposition.Document, s conversion.Scope) error { - out.DocumentDescribes = *(*[]string)(unsafe.Pointer(&in.DocumentDescribes)) - out.SPDXVersion = in.SPDXVersion - out.DataLicense = in.DataLicense - out.SPDXIdentifier = softwarecomposition.ElementID(in.SPDXIdentifier) - out.DocumentName = in.DocumentName - out.DocumentNamespace = in.DocumentNamespace - out.ExternalDocumentReferences = *(*[]softwarecomposition.ExternalDocumentRef)(unsafe.Pointer(&in.ExternalDocumentReferences)) - out.DocumentComment = in.DocumentComment - out.CreationInfo = (*softwarecomposition.CreationInfo)(unsafe.Pointer(in.CreationInfo)) - out.Packages = *(*[]*softwarecomposition.Package)(unsafe.Pointer(&in.Packages)) - out.Files = *(*[]*softwarecomposition.File)(unsafe.Pointer(&in.Files)) - out.OtherLicenses = *(*[]*softwarecomposition.OtherLicense)(unsafe.Pointer(&in.OtherLicenses)) - out.Relationships = *(*[]*softwarecomposition.Relationship)(unsafe.Pointer(&in.Relationships)) - out.Annotations = *(*[]softwarecomposition.Annotation)(unsafe.Pointer(&in.Annotations)) - out.Snippets = *(*[]softwarecomposition.Snippet)(unsafe.Pointer(&in.Snippets)) - out.Reviews = *(*[]*softwarecomposition.Review)(unsafe.Pointer(&in.Reviews)) - return nil -} - -// Convert_v1beta1_Document_To_softwarecomposition_Document is an autogenerated conversion function. -func Convert_v1beta1_Document_To_softwarecomposition_Document(in *Document, out *softwarecomposition.Document, s conversion.Scope) error { - return autoConvert_v1beta1_Document_To_softwarecomposition_Document(in, out, s) -} - -func autoConvert_softwarecomposition_Document_To_v1beta1_Document(in *softwarecomposition.Document, out *Document, s conversion.Scope) error { - out.DocumentDescribes = *(*[]string)(unsafe.Pointer(&in.DocumentDescribes)) - out.SPDXVersion = in.SPDXVersion - out.DataLicense = in.DataLicense - out.SPDXIdentifier = ElementID(in.SPDXIdentifier) - out.DocumentName = in.DocumentName - out.DocumentNamespace = in.DocumentNamespace - out.ExternalDocumentReferences = *(*[]ExternalDocumentRef)(unsafe.Pointer(&in.ExternalDocumentReferences)) - out.DocumentComment = in.DocumentComment - out.CreationInfo = (*CreationInfo)(unsafe.Pointer(in.CreationInfo)) - out.Packages = *(*[]*Package)(unsafe.Pointer(&in.Packages)) - out.Files = *(*[]*File)(unsafe.Pointer(&in.Files)) - out.OtherLicenses = *(*[]*OtherLicense)(unsafe.Pointer(&in.OtherLicenses)) - out.Relationships = *(*[]*Relationship)(unsafe.Pointer(&in.Relationships)) - out.Annotations = *(*[]Annotation)(unsafe.Pointer(&in.Annotations)) - out.Snippets = *(*[]Snippet)(unsafe.Pointer(&in.Snippets)) - out.Reviews = *(*[]*Review)(unsafe.Pointer(&in.Reviews)) - return nil -} - -// Convert_softwarecomposition_Document_To_v1beta1_Document is an autogenerated conversion function. -func Convert_softwarecomposition_Document_To_v1beta1_Document(in *softwarecomposition.Document, out *Document, s conversion.Scope) error { - return autoConvert_softwarecomposition_Document_To_v1beta1_Document(in, out, s) -} - func autoConvert_v1beta1_ELFSecurityFeatures_To_softwarecomposition_ELFSecurityFeatures(in *ELFSecurityFeatures, out *softwarecomposition.ELFSecurityFeatures, s conversion.Scope) error { out.SymbolTableStripped = in.SymbolTableStripped out.StackCanary = (*bool)(unsafe.Pointer(in.StackCanary)) @@ -2869,84 +2373,6 @@ func Convert_softwarecomposition_Executable_To_v1beta1_Executable(in *softwareco return autoConvert_softwarecomposition_Executable_To_v1beta1_Executable(in, out, s) } -func autoConvert_v1beta1_ExternalDocumentRef_To_softwarecomposition_ExternalDocumentRef(in *ExternalDocumentRef, out *softwarecomposition.ExternalDocumentRef, s conversion.Scope) error { - out.DocumentRefID = in.DocumentRefID - out.URI = in.URI - if err := Convert_v1beta1_Checksum_To_softwarecomposition_Checksum(&in.Checksum, &out.Checksum, s); err != nil { - return err - } - return nil -} - -// Convert_v1beta1_ExternalDocumentRef_To_softwarecomposition_ExternalDocumentRef is an autogenerated conversion function. -func Convert_v1beta1_ExternalDocumentRef_To_softwarecomposition_ExternalDocumentRef(in *ExternalDocumentRef, out *softwarecomposition.ExternalDocumentRef, s conversion.Scope) error { - return autoConvert_v1beta1_ExternalDocumentRef_To_softwarecomposition_ExternalDocumentRef(in, out, s) -} - -func autoConvert_softwarecomposition_ExternalDocumentRef_To_v1beta1_ExternalDocumentRef(in *softwarecomposition.ExternalDocumentRef, out *ExternalDocumentRef, s conversion.Scope) error { - out.DocumentRefID = in.DocumentRefID - out.URI = in.URI - if err := Convert_softwarecomposition_Checksum_To_v1beta1_Checksum(&in.Checksum, &out.Checksum, s); err != nil { - return err - } - return nil -} - -// Convert_softwarecomposition_ExternalDocumentRef_To_v1beta1_ExternalDocumentRef is an autogenerated conversion function. -func Convert_softwarecomposition_ExternalDocumentRef_To_v1beta1_ExternalDocumentRef(in *softwarecomposition.ExternalDocumentRef, out *ExternalDocumentRef, s conversion.Scope) error { - return autoConvert_softwarecomposition_ExternalDocumentRef_To_v1beta1_ExternalDocumentRef(in, out, s) -} - -func autoConvert_v1beta1_File_To_softwarecomposition_File(in *File, out *softwarecomposition.File, s conversion.Scope) error { - out.FileName = in.FileName - out.FileSPDXIdentifier = softwarecomposition.ElementID(in.FileSPDXIdentifier) - out.FileTypes = *(*[]string)(unsafe.Pointer(&in.FileTypes)) - out.Checksums = *(*[]softwarecomposition.Checksum)(unsafe.Pointer(&in.Checksums)) - out.LicenseConcluded = in.LicenseConcluded - out.LicenseInfoInFiles = *(*[]string)(unsafe.Pointer(&in.LicenseInfoInFiles)) - out.LicenseComments = in.LicenseComments - out.FileCopyrightText = in.FileCopyrightText - out.ArtifactOfProjects = *(*[]*softwarecomposition.ArtifactOfProject)(unsafe.Pointer(&in.ArtifactOfProjects)) - out.FileComment = in.FileComment - out.FileNotice = in.FileNotice - out.FileContributors = *(*[]string)(unsafe.Pointer(&in.FileContributors)) - out.FileAttributionTexts = *(*[]string)(unsafe.Pointer(&in.FileAttributionTexts)) - out.FileDependencies = *(*[]string)(unsafe.Pointer(&in.FileDependencies)) - out.Snippets = *(*map[softwarecomposition.ElementID]*softwarecomposition.Snippet)(unsafe.Pointer(&in.Snippets)) - out.Annotations = *(*[]softwarecomposition.Annotation)(unsafe.Pointer(&in.Annotations)) - return nil -} - -// Convert_v1beta1_File_To_softwarecomposition_File is an autogenerated conversion function. -func Convert_v1beta1_File_To_softwarecomposition_File(in *File, out *softwarecomposition.File, s conversion.Scope) error { - return autoConvert_v1beta1_File_To_softwarecomposition_File(in, out, s) -} - -func autoConvert_softwarecomposition_File_To_v1beta1_File(in *softwarecomposition.File, out *File, s conversion.Scope) error { - out.FileName = in.FileName - out.FileSPDXIdentifier = ElementID(in.FileSPDXIdentifier) - out.FileTypes = *(*[]string)(unsafe.Pointer(&in.FileTypes)) - out.Checksums = *(*[]Checksum)(unsafe.Pointer(&in.Checksums)) - out.LicenseConcluded = in.LicenseConcluded - out.LicenseInfoInFiles = *(*[]string)(unsafe.Pointer(&in.LicenseInfoInFiles)) - out.LicenseComments = in.LicenseComments - out.FileCopyrightText = in.FileCopyrightText - out.ArtifactOfProjects = *(*[]*ArtifactOfProject)(unsafe.Pointer(&in.ArtifactOfProjects)) - out.FileComment = in.FileComment - out.FileNotice = in.FileNotice - out.FileContributors = *(*[]string)(unsafe.Pointer(&in.FileContributors)) - out.FileAttributionTexts = *(*[]string)(unsafe.Pointer(&in.FileAttributionTexts)) - out.FileDependencies = *(*[]string)(unsafe.Pointer(&in.FileDependencies)) - out.Snippets = *(*map[ElementID]*Snippet)(unsafe.Pointer(&in.Snippets)) - out.Annotations = *(*[]Annotation)(unsafe.Pointer(&in.Annotations)) - return nil -} - -// Convert_softwarecomposition_File_To_v1beta1_File is an autogenerated conversion function. -func Convert_softwarecomposition_File_To_v1beta1_File(in *softwarecomposition.File, out *File, s conversion.Scope) error { - return autoConvert_softwarecomposition_File_To_v1beta1_File(in, out, s) -} - func autoConvert_v1beta1_FileLicense_To_softwarecomposition_FileLicense(in *FileLicense, out *softwarecomposition.FileLicense, s conversion.Scope) error { out.Value = in.Value out.SPDXExpression = in.SPDXExpression @@ -3004,7 +2430,7 @@ func autoConvert_v1beta1_FileMetadataEntry_To_softwarecomposition_FileMetadataEn out.UserID = in.UserID out.GroupID = in.GroupID out.MIMEType = in.MIMEType - out.Size = in.Size + out.Size_ = in.Size_ return nil } @@ -3020,7 +2446,7 @@ func autoConvert_softwarecomposition_FileMetadataEntry_To_v1beta1_FileMetadataEn out.UserID = in.UserID out.GroupID = in.GroupID out.MIMEType = in.MIMEType - out.Size = in.Size + out.Size_ = in.Size_ return nil } @@ -3108,7 +2534,7 @@ func autoConvert_v1beta1_GrypeDocument_To_softwarecomposition_GrypeDocument(in * if err := Convert_v1beta1_Distribution_To_softwarecomposition_Distribution(&in.Distro, &out.Distro, s); err != nil { return err } - if err := Convert_v1beta1_Descriptor_To_softwarecomposition_Descriptor(&in.Descriptor, &out.Descriptor, s); err != nil { + if err := Convert_v1beta1_Descriptor_To_softwarecomposition_Descriptor(&in.Descriptor_, &out.Descriptor_, s); err != nil { return err } return nil @@ -3126,7 +2552,7 @@ func autoConvert_softwarecomposition_GrypeDocument_To_v1beta1_GrypeDocument(in * if err := Convert_softwarecomposition_Distribution_To_v1beta1_Distribution(&in.Distro, &out.Distro, s); err != nil { return err } - if err := Convert_softwarecomposition_Descriptor_To_v1beta1_Descriptor(&in.Descriptor, &out.Descriptor, s); err != nil { + if err := Convert_softwarecomposition_Descriptor_To_v1beta1_Descriptor(&in.Descriptor_, &out.Descriptor_, s); err != nil { return err } return nil @@ -4521,136 +3947,6 @@ func Convert_softwarecomposition_OpenVulnerabilityExchangeContainerList_To_v1bet return autoConvert_softwarecomposition_OpenVulnerabilityExchangeContainerList_To_v1beta1_OpenVulnerabilityExchangeContainerList(in, out, s) } -func autoConvert_v1beta1_Originator_To_softwarecomposition_Originator(in *Originator, out *softwarecomposition.Originator, s conversion.Scope) error { - out.Originator = in.Originator - out.OriginatorType = in.OriginatorType - return nil -} - -// Convert_v1beta1_Originator_To_softwarecomposition_Originator is an autogenerated conversion function. -func Convert_v1beta1_Originator_To_softwarecomposition_Originator(in *Originator, out *softwarecomposition.Originator, s conversion.Scope) error { - return autoConvert_v1beta1_Originator_To_softwarecomposition_Originator(in, out, s) -} - -func autoConvert_softwarecomposition_Originator_To_v1beta1_Originator(in *softwarecomposition.Originator, out *Originator, s conversion.Scope) error { - out.Originator = in.Originator - out.OriginatorType = in.OriginatorType - return nil -} - -// Convert_softwarecomposition_Originator_To_v1beta1_Originator is an autogenerated conversion function. -func Convert_softwarecomposition_Originator_To_v1beta1_Originator(in *softwarecomposition.Originator, out *Originator, s conversion.Scope) error { - return autoConvert_softwarecomposition_Originator_To_v1beta1_Originator(in, out, s) -} - -func autoConvert_v1beta1_OtherLicense_To_softwarecomposition_OtherLicense(in *OtherLicense, out *softwarecomposition.OtherLicense, s conversion.Scope) error { - out.LicenseIdentifier = in.LicenseIdentifier - out.ExtractedText = in.ExtractedText - out.LicenseName = in.LicenseName - out.LicenseCrossReferences = *(*[]string)(unsafe.Pointer(&in.LicenseCrossReferences)) - out.LicenseComment = in.LicenseComment - return nil -} - -// Convert_v1beta1_OtherLicense_To_softwarecomposition_OtherLicense is an autogenerated conversion function. -func Convert_v1beta1_OtherLicense_To_softwarecomposition_OtherLicense(in *OtherLicense, out *softwarecomposition.OtherLicense, s conversion.Scope) error { - return autoConvert_v1beta1_OtherLicense_To_softwarecomposition_OtherLicense(in, out, s) -} - -func autoConvert_softwarecomposition_OtherLicense_To_v1beta1_OtherLicense(in *softwarecomposition.OtherLicense, out *OtherLicense, s conversion.Scope) error { - out.LicenseIdentifier = in.LicenseIdentifier - out.ExtractedText = in.ExtractedText - out.LicenseName = in.LicenseName - out.LicenseCrossReferences = *(*[]string)(unsafe.Pointer(&in.LicenseCrossReferences)) - out.LicenseComment = in.LicenseComment - return nil -} - -// Convert_softwarecomposition_OtherLicense_To_v1beta1_OtherLicense is an autogenerated conversion function. -func Convert_softwarecomposition_OtherLicense_To_v1beta1_OtherLicense(in *softwarecomposition.OtherLicense, out *OtherLicense, s conversion.Scope) error { - return autoConvert_softwarecomposition_OtherLicense_To_v1beta1_OtherLicense(in, out, s) -} - -func autoConvert_v1beta1_Package_To_softwarecomposition_Package(in *Package, out *softwarecomposition.Package, s conversion.Scope) error { - out.HasFiles = *(*[]string)(unsafe.Pointer(&in.HasFiles)) - out.IsUnpackaged = in.IsUnpackaged - out.PackageName = in.PackageName - out.PackageSPDXIdentifier = softwarecomposition.ElementID(in.PackageSPDXIdentifier) - out.PackageVersion = in.PackageVersion - out.PackageFileName = in.PackageFileName - out.PackageSupplier = (*softwarecomposition.Supplier)(unsafe.Pointer(in.PackageSupplier)) - out.PackageOriginator = (*softwarecomposition.Originator)(unsafe.Pointer(in.PackageOriginator)) - out.PackageDownloadLocation = in.PackageDownloadLocation - out.FilesAnalyzed = in.FilesAnalyzed - out.IsFilesAnalyzedTagPresent = in.IsFilesAnalyzedTagPresent - out.PackageVerificationCode = (*softwarecomposition.PackageVerificationCode)(unsafe.Pointer(in.PackageVerificationCode)) - out.PackageChecksums = *(*[]softwarecomposition.Checksum)(unsafe.Pointer(&in.PackageChecksums)) - out.PackageHomePage = in.PackageHomePage - out.PackageSourceInfo = in.PackageSourceInfo - out.PackageLicenseConcluded = in.PackageLicenseConcluded - out.PackageLicenseInfoFromFiles = *(*[]string)(unsafe.Pointer(&in.PackageLicenseInfoFromFiles)) - out.PackageLicenseDeclared = in.PackageLicenseDeclared - out.PackageLicenseComments = in.PackageLicenseComments - out.PackageCopyrightText = in.PackageCopyrightText - out.PackageSummary = in.PackageSummary - out.PackageDescription = in.PackageDescription - out.PackageComment = in.PackageComment - out.PackageExternalReferences = *(*[]*softwarecomposition.PackageExternalReference)(unsafe.Pointer(&in.PackageExternalReferences)) - out.PackageAttributionTexts = *(*[]string)(unsafe.Pointer(&in.PackageAttributionTexts)) - out.PrimaryPackagePurpose = in.PrimaryPackagePurpose - out.ReleaseDate = in.ReleaseDate - out.BuiltDate = in.BuiltDate - out.ValidUntilDate = in.ValidUntilDate - out.Files = *(*[]*softwarecomposition.File)(unsafe.Pointer(&in.Files)) - out.Annotations = *(*[]softwarecomposition.Annotation)(unsafe.Pointer(&in.Annotations)) - return nil -} - -// Convert_v1beta1_Package_To_softwarecomposition_Package is an autogenerated conversion function. -func Convert_v1beta1_Package_To_softwarecomposition_Package(in *Package, out *softwarecomposition.Package, s conversion.Scope) error { - return autoConvert_v1beta1_Package_To_softwarecomposition_Package(in, out, s) -} - -func autoConvert_softwarecomposition_Package_To_v1beta1_Package(in *softwarecomposition.Package, out *Package, s conversion.Scope) error { - out.HasFiles = *(*[]string)(unsafe.Pointer(&in.HasFiles)) - out.IsUnpackaged = in.IsUnpackaged - out.PackageName = in.PackageName - out.PackageSPDXIdentifier = ElementID(in.PackageSPDXIdentifier) - out.PackageVersion = in.PackageVersion - out.PackageFileName = in.PackageFileName - out.PackageSupplier = (*Supplier)(unsafe.Pointer(in.PackageSupplier)) - out.PackageOriginator = (*Originator)(unsafe.Pointer(in.PackageOriginator)) - out.PackageDownloadLocation = in.PackageDownloadLocation - out.FilesAnalyzed = in.FilesAnalyzed - out.IsFilesAnalyzedTagPresent = in.IsFilesAnalyzedTagPresent - out.PackageVerificationCode = (*PackageVerificationCode)(unsafe.Pointer(in.PackageVerificationCode)) - out.PackageChecksums = *(*[]Checksum)(unsafe.Pointer(&in.PackageChecksums)) - out.PackageHomePage = in.PackageHomePage - out.PackageSourceInfo = in.PackageSourceInfo - out.PackageLicenseConcluded = in.PackageLicenseConcluded - out.PackageLicenseInfoFromFiles = *(*[]string)(unsafe.Pointer(&in.PackageLicenseInfoFromFiles)) - out.PackageLicenseDeclared = in.PackageLicenseDeclared - out.PackageLicenseComments = in.PackageLicenseComments - out.PackageCopyrightText = in.PackageCopyrightText - out.PackageSummary = in.PackageSummary - out.PackageDescription = in.PackageDescription - out.PackageComment = in.PackageComment - out.PackageExternalReferences = *(*[]*PackageExternalReference)(unsafe.Pointer(&in.PackageExternalReferences)) - out.PackageAttributionTexts = *(*[]string)(unsafe.Pointer(&in.PackageAttributionTexts)) - out.PrimaryPackagePurpose = in.PrimaryPackagePurpose - out.ReleaseDate = in.ReleaseDate - out.BuiltDate = in.BuiltDate - out.ValidUntilDate = in.ValidUntilDate - out.Files = *(*[]*File)(unsafe.Pointer(&in.Files)) - out.Annotations = *(*[]Annotation)(unsafe.Pointer(&in.Annotations)) - return nil -} - -// Convert_softwarecomposition_Package_To_v1beta1_Package is an autogenerated conversion function. -func Convert_softwarecomposition_Package_To_v1beta1_Package(in *softwarecomposition.Package, out *Package, s conversion.Scope) error { - return autoConvert_softwarecomposition_Package_To_v1beta1_Package(in, out, s) -} - func autoConvert_v1beta1_PackageBasicData_To_softwarecomposition_PackageBasicData(in *PackageBasicData, out *softwarecomposition.PackageBasicData, s conversion.Scope) error { out.ID = in.ID out.Name = in.Name @@ -4749,54 +4045,6 @@ func Convert_softwarecomposition_PackageCustomData_To_v1beta1_PackageCustomData( return autoConvert_softwarecomposition_PackageCustomData_To_v1beta1_PackageCustomData(in, out, s) } -func autoConvert_v1beta1_PackageExternalReference_To_softwarecomposition_PackageExternalReference(in *PackageExternalReference, out *softwarecomposition.PackageExternalReference, s conversion.Scope) error { - out.Category = in.Category - out.RefType = in.RefType - out.Locator = in.Locator - out.ExternalRefComment = in.ExternalRefComment - return nil -} - -// Convert_v1beta1_PackageExternalReference_To_softwarecomposition_PackageExternalReference is an autogenerated conversion function. -func Convert_v1beta1_PackageExternalReference_To_softwarecomposition_PackageExternalReference(in *PackageExternalReference, out *softwarecomposition.PackageExternalReference, s conversion.Scope) error { - return autoConvert_v1beta1_PackageExternalReference_To_softwarecomposition_PackageExternalReference(in, out, s) -} - -func autoConvert_softwarecomposition_PackageExternalReference_To_v1beta1_PackageExternalReference(in *softwarecomposition.PackageExternalReference, out *PackageExternalReference, s conversion.Scope) error { - out.Category = in.Category - out.RefType = in.RefType - out.Locator = in.Locator - out.ExternalRefComment = in.ExternalRefComment - return nil -} - -// Convert_softwarecomposition_PackageExternalReference_To_v1beta1_PackageExternalReference is an autogenerated conversion function. -func Convert_softwarecomposition_PackageExternalReference_To_v1beta1_PackageExternalReference(in *softwarecomposition.PackageExternalReference, out *PackageExternalReference, s conversion.Scope) error { - return autoConvert_softwarecomposition_PackageExternalReference_To_v1beta1_PackageExternalReference(in, out, s) -} - -func autoConvert_v1beta1_PackageVerificationCode_To_softwarecomposition_PackageVerificationCode(in *PackageVerificationCode, out *softwarecomposition.PackageVerificationCode, s conversion.Scope) error { - out.Value = in.Value - out.ExcludedFiles = *(*[]string)(unsafe.Pointer(&in.ExcludedFiles)) - return nil -} - -// Convert_v1beta1_PackageVerificationCode_To_softwarecomposition_PackageVerificationCode is an autogenerated conversion function. -func Convert_v1beta1_PackageVerificationCode_To_softwarecomposition_PackageVerificationCode(in *PackageVerificationCode, out *softwarecomposition.PackageVerificationCode, s conversion.Scope) error { - return autoConvert_v1beta1_PackageVerificationCode_To_softwarecomposition_PackageVerificationCode(in, out, s) -} - -func autoConvert_softwarecomposition_PackageVerificationCode_To_v1beta1_PackageVerificationCode(in *softwarecomposition.PackageVerificationCode, out *PackageVerificationCode, s conversion.Scope) error { - out.Value = in.Value - out.ExcludedFiles = *(*[]string)(unsafe.Pointer(&in.ExcludedFiles)) - return nil -} - -// Convert_softwarecomposition_PackageVerificationCode_To_v1beta1_PackageVerificationCode is an autogenerated conversion function. -func Convert_softwarecomposition_PackageVerificationCode_To_v1beta1_PackageVerificationCode(in *softwarecomposition.PackageVerificationCode, out *PackageVerificationCode, s conversion.Scope) error { - return autoConvert_softwarecomposition_PackageVerificationCode_To_v1beta1_PackageVerificationCode(in, out, s) -} - func autoConvert_v1beta1_PolicyRef_To_softwarecomposition_PolicyRef(in *PolicyRef, out *softwarecomposition.PolicyRef, s conversion.Scope) error { out.IPBlock = in.IPBlock out.OriginalIP = in.OriginalIP @@ -4851,40 +4099,6 @@ func Convert_softwarecomposition_Product_To_v1beta1_Product(in *softwarecomposit return autoConvert_softwarecomposition_Product_To_v1beta1_Product(in, out, s) } -func autoConvert_v1beta1_Relationship_To_softwarecomposition_Relationship(in *Relationship, out *softwarecomposition.Relationship, s conversion.Scope) error { - if err := Convert_v1beta1_DocElementID_To_softwarecomposition_DocElementID(&in.RefA, &out.RefA, s); err != nil { - return err - } - if err := Convert_v1beta1_DocElementID_To_softwarecomposition_DocElementID(&in.RefB, &out.RefB, s); err != nil { - return err - } - out.Relationship = in.Relationship - out.RelationshipComment = in.RelationshipComment - return nil -} - -// Convert_v1beta1_Relationship_To_softwarecomposition_Relationship is an autogenerated conversion function. -func Convert_v1beta1_Relationship_To_softwarecomposition_Relationship(in *Relationship, out *softwarecomposition.Relationship, s conversion.Scope) error { - return autoConvert_v1beta1_Relationship_To_softwarecomposition_Relationship(in, out, s) -} - -func autoConvert_softwarecomposition_Relationship_To_v1beta1_Relationship(in *softwarecomposition.Relationship, out *Relationship, s conversion.Scope) error { - if err := Convert_softwarecomposition_DocElementID_To_v1beta1_DocElementID(&in.RefA, &out.RefA, s); err != nil { - return err - } - if err := Convert_softwarecomposition_DocElementID_To_v1beta1_DocElementID(&in.RefB, &out.RefB, s); err != nil { - return err - } - out.Relationship = in.Relationship - out.RelationshipComment = in.RelationshipComment - return nil -} - -// Convert_softwarecomposition_Relationship_To_v1beta1_Relationship is an autogenerated conversion function. -func Convert_softwarecomposition_Relationship_To_v1beta1_Relationship(in *softwarecomposition.Relationship, out *Relationship, s conversion.Scope) error { - return autoConvert_softwarecomposition_Relationship_To_v1beta1_Relationship(in, out, s) -} - func autoConvert_v1beta1_ReportMeta_To_softwarecomposition_ReportMeta(in *ReportMeta, out *softwarecomposition.ReportMeta, s conversion.Scope) error { out.CreatedAt = in.CreatedAt return nil @@ -4905,32 +4119,6 @@ func Convert_softwarecomposition_ReportMeta_To_v1beta1_ReportMeta(in *softwareco return autoConvert_softwarecomposition_ReportMeta_To_v1beta1_ReportMeta(in, out, s) } -func autoConvert_v1beta1_Review_To_softwarecomposition_Review(in *Review, out *softwarecomposition.Review, s conversion.Scope) error { - out.Reviewer = in.Reviewer - out.ReviewerType = in.ReviewerType - out.ReviewDate = in.ReviewDate - out.ReviewComment = in.ReviewComment - return nil -} - -// Convert_v1beta1_Review_To_softwarecomposition_Review is an autogenerated conversion function. -func Convert_v1beta1_Review_To_softwarecomposition_Review(in *Review, out *softwarecomposition.Review, s conversion.Scope) error { - return autoConvert_v1beta1_Review_To_softwarecomposition_Review(in, out, s) -} - -func autoConvert_softwarecomposition_Review_To_v1beta1_Review(in *softwarecomposition.Review, out *Review, s conversion.Scope) error { - out.Reviewer = in.Reviewer - out.ReviewerType = in.ReviewerType - out.ReviewDate = in.ReviewDate - out.ReviewComment = in.ReviewComment - return nil -} - -// Convert_softwarecomposition_Review_To_v1beta1_Review is an autogenerated conversion function. -func Convert_softwarecomposition_Review_To_v1beta1_Review(in *softwarecomposition.Review, out *Review, s conversion.Scope) error { - return autoConvert_softwarecomposition_Review_To_v1beta1_Review(in, out, s) -} - func autoConvert_v1beta1_RulePath_To_softwarecomposition_RulePath(in *RulePath, out *softwarecomposition.RulePath, s conversion.Scope) error { out.FailedPath = in.FailedPath out.FixPath = in.FixPath @@ -4979,162 +4167,6 @@ func Convert_softwarecomposition_RuleStatus_To_v1beta1_RuleStatus(in *softwareco return autoConvert_softwarecomposition_RuleStatus_To_v1beta1_RuleStatus(in, out, s) } -func autoConvert_v1beta1_SBOMSPDXv2p3_To_softwarecomposition_SBOMSPDXv2p3(in *SBOMSPDXv2p3, out *softwarecomposition.SBOMSPDXv2p3, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_v1beta1_SBOMSPDXv2p3Spec_To_softwarecomposition_SBOMSPDXv2p3Spec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_v1beta1_SBOMSPDXv2p3Status_To_softwarecomposition_SBOMSPDXv2p3Status(&in.Status, &out.Status, s); err != nil { - return err - } - return nil -} - -// Convert_v1beta1_SBOMSPDXv2p3_To_softwarecomposition_SBOMSPDXv2p3 is an autogenerated conversion function. -func Convert_v1beta1_SBOMSPDXv2p3_To_softwarecomposition_SBOMSPDXv2p3(in *SBOMSPDXv2p3, out *softwarecomposition.SBOMSPDXv2p3, s conversion.Scope) error { - return autoConvert_v1beta1_SBOMSPDXv2p3_To_softwarecomposition_SBOMSPDXv2p3(in, out, s) -} - -func autoConvert_softwarecomposition_SBOMSPDXv2p3_To_v1beta1_SBOMSPDXv2p3(in *softwarecomposition.SBOMSPDXv2p3, out *SBOMSPDXv2p3, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_softwarecomposition_SBOMSPDXv2p3Spec_To_v1beta1_SBOMSPDXv2p3Spec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_softwarecomposition_SBOMSPDXv2p3Status_To_v1beta1_SBOMSPDXv2p3Status(&in.Status, &out.Status, s); err != nil { - return err - } - return nil -} - -// Convert_softwarecomposition_SBOMSPDXv2p3_To_v1beta1_SBOMSPDXv2p3 is an autogenerated conversion function. -func Convert_softwarecomposition_SBOMSPDXv2p3_To_v1beta1_SBOMSPDXv2p3(in *softwarecomposition.SBOMSPDXv2p3, out *SBOMSPDXv2p3, s conversion.Scope) error { - return autoConvert_softwarecomposition_SBOMSPDXv2p3_To_v1beta1_SBOMSPDXv2p3(in, out, s) -} - -func autoConvert_v1beta1_SBOMSPDXv2p3Filtered_To_softwarecomposition_SBOMSPDXv2p3Filtered(in *SBOMSPDXv2p3Filtered, out *softwarecomposition.SBOMSPDXv2p3Filtered, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_v1beta1_SBOMSPDXv2p3Spec_To_softwarecomposition_SBOMSPDXv2p3Spec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_v1beta1_SBOMSPDXv2p3Status_To_softwarecomposition_SBOMSPDXv2p3Status(&in.Status, &out.Status, s); err != nil { - return err - } - return nil -} - -// Convert_v1beta1_SBOMSPDXv2p3Filtered_To_softwarecomposition_SBOMSPDXv2p3Filtered is an autogenerated conversion function. -func Convert_v1beta1_SBOMSPDXv2p3Filtered_To_softwarecomposition_SBOMSPDXv2p3Filtered(in *SBOMSPDXv2p3Filtered, out *softwarecomposition.SBOMSPDXv2p3Filtered, s conversion.Scope) error { - return autoConvert_v1beta1_SBOMSPDXv2p3Filtered_To_softwarecomposition_SBOMSPDXv2p3Filtered(in, out, s) -} - -func autoConvert_softwarecomposition_SBOMSPDXv2p3Filtered_To_v1beta1_SBOMSPDXv2p3Filtered(in *softwarecomposition.SBOMSPDXv2p3Filtered, out *SBOMSPDXv2p3Filtered, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_softwarecomposition_SBOMSPDXv2p3Spec_To_v1beta1_SBOMSPDXv2p3Spec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_softwarecomposition_SBOMSPDXv2p3Status_To_v1beta1_SBOMSPDXv2p3Status(&in.Status, &out.Status, s); err != nil { - return err - } - return nil -} - -// Convert_softwarecomposition_SBOMSPDXv2p3Filtered_To_v1beta1_SBOMSPDXv2p3Filtered is an autogenerated conversion function. -func Convert_softwarecomposition_SBOMSPDXv2p3Filtered_To_v1beta1_SBOMSPDXv2p3Filtered(in *softwarecomposition.SBOMSPDXv2p3Filtered, out *SBOMSPDXv2p3Filtered, s conversion.Scope) error { - return autoConvert_softwarecomposition_SBOMSPDXv2p3Filtered_To_v1beta1_SBOMSPDXv2p3Filtered(in, out, s) -} - -func autoConvert_v1beta1_SBOMSPDXv2p3FilteredList_To_softwarecomposition_SBOMSPDXv2p3FilteredList(in *SBOMSPDXv2p3FilteredList, out *softwarecomposition.SBOMSPDXv2p3FilteredList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]softwarecomposition.SBOMSPDXv2p3Filtered)(unsafe.Pointer(&in.Items)) - return nil -} - -// Convert_v1beta1_SBOMSPDXv2p3FilteredList_To_softwarecomposition_SBOMSPDXv2p3FilteredList is an autogenerated conversion function. -func Convert_v1beta1_SBOMSPDXv2p3FilteredList_To_softwarecomposition_SBOMSPDXv2p3FilteredList(in *SBOMSPDXv2p3FilteredList, out *softwarecomposition.SBOMSPDXv2p3FilteredList, s conversion.Scope) error { - return autoConvert_v1beta1_SBOMSPDXv2p3FilteredList_To_softwarecomposition_SBOMSPDXv2p3FilteredList(in, out, s) -} - -func autoConvert_softwarecomposition_SBOMSPDXv2p3FilteredList_To_v1beta1_SBOMSPDXv2p3FilteredList(in *softwarecomposition.SBOMSPDXv2p3FilteredList, out *SBOMSPDXv2p3FilteredList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]SBOMSPDXv2p3Filtered)(unsafe.Pointer(&in.Items)) - return nil -} - -// Convert_softwarecomposition_SBOMSPDXv2p3FilteredList_To_v1beta1_SBOMSPDXv2p3FilteredList is an autogenerated conversion function. -func Convert_softwarecomposition_SBOMSPDXv2p3FilteredList_To_v1beta1_SBOMSPDXv2p3FilteredList(in *softwarecomposition.SBOMSPDXv2p3FilteredList, out *SBOMSPDXv2p3FilteredList, s conversion.Scope) error { - return autoConvert_softwarecomposition_SBOMSPDXv2p3FilteredList_To_v1beta1_SBOMSPDXv2p3FilteredList(in, out, s) -} - -func autoConvert_v1beta1_SBOMSPDXv2p3List_To_softwarecomposition_SBOMSPDXv2p3List(in *SBOMSPDXv2p3List, out *softwarecomposition.SBOMSPDXv2p3List, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]softwarecomposition.SBOMSPDXv2p3)(unsafe.Pointer(&in.Items)) - return nil -} - -// Convert_v1beta1_SBOMSPDXv2p3List_To_softwarecomposition_SBOMSPDXv2p3List is an autogenerated conversion function. -func Convert_v1beta1_SBOMSPDXv2p3List_To_softwarecomposition_SBOMSPDXv2p3List(in *SBOMSPDXv2p3List, out *softwarecomposition.SBOMSPDXv2p3List, s conversion.Scope) error { - return autoConvert_v1beta1_SBOMSPDXv2p3List_To_softwarecomposition_SBOMSPDXv2p3List(in, out, s) -} - -func autoConvert_softwarecomposition_SBOMSPDXv2p3List_To_v1beta1_SBOMSPDXv2p3List(in *softwarecomposition.SBOMSPDXv2p3List, out *SBOMSPDXv2p3List, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]SBOMSPDXv2p3)(unsafe.Pointer(&in.Items)) - return nil -} - -// Convert_softwarecomposition_SBOMSPDXv2p3List_To_v1beta1_SBOMSPDXv2p3List is an autogenerated conversion function. -func Convert_softwarecomposition_SBOMSPDXv2p3List_To_v1beta1_SBOMSPDXv2p3List(in *softwarecomposition.SBOMSPDXv2p3List, out *SBOMSPDXv2p3List, s conversion.Scope) error { - return autoConvert_softwarecomposition_SBOMSPDXv2p3List_To_v1beta1_SBOMSPDXv2p3List(in, out, s) -} - -func autoConvert_v1beta1_SBOMSPDXv2p3Spec_To_softwarecomposition_SBOMSPDXv2p3Spec(in *SBOMSPDXv2p3Spec, out *softwarecomposition.SBOMSPDXv2p3Spec, s conversion.Scope) error { - if err := Convert_v1beta1_SPDXMeta_To_softwarecomposition_SPDXMeta(&in.Metadata, &out.Metadata, s); err != nil { - return err - } - if err := Convert_v1beta1_Document_To_softwarecomposition_Document(&in.SPDX, &out.SPDX, s); err != nil { - return err - } - return nil -} - -// Convert_v1beta1_SBOMSPDXv2p3Spec_To_softwarecomposition_SBOMSPDXv2p3Spec is an autogenerated conversion function. -func Convert_v1beta1_SBOMSPDXv2p3Spec_To_softwarecomposition_SBOMSPDXv2p3Spec(in *SBOMSPDXv2p3Spec, out *softwarecomposition.SBOMSPDXv2p3Spec, s conversion.Scope) error { - return autoConvert_v1beta1_SBOMSPDXv2p3Spec_To_softwarecomposition_SBOMSPDXv2p3Spec(in, out, s) -} - -func autoConvert_softwarecomposition_SBOMSPDXv2p3Spec_To_v1beta1_SBOMSPDXv2p3Spec(in *softwarecomposition.SBOMSPDXv2p3Spec, out *SBOMSPDXv2p3Spec, s conversion.Scope) error { - if err := Convert_softwarecomposition_SPDXMeta_To_v1beta1_SPDXMeta(&in.Metadata, &out.Metadata, s); err != nil { - return err - } - if err := Convert_softwarecomposition_Document_To_v1beta1_Document(&in.SPDX, &out.SPDX, s); err != nil { - return err - } - return nil -} - -// Convert_softwarecomposition_SBOMSPDXv2p3Spec_To_v1beta1_SBOMSPDXv2p3Spec is an autogenerated conversion function. -func Convert_softwarecomposition_SBOMSPDXv2p3Spec_To_v1beta1_SBOMSPDXv2p3Spec(in *softwarecomposition.SBOMSPDXv2p3Spec, out *SBOMSPDXv2p3Spec, s conversion.Scope) error { - return autoConvert_softwarecomposition_SBOMSPDXv2p3Spec_To_v1beta1_SBOMSPDXv2p3Spec(in, out, s) -} - -func autoConvert_v1beta1_SBOMSPDXv2p3Status_To_softwarecomposition_SBOMSPDXv2p3Status(in *SBOMSPDXv2p3Status, out *softwarecomposition.SBOMSPDXv2p3Status, s conversion.Scope) error { - return nil -} - -// Convert_v1beta1_SBOMSPDXv2p3Status_To_softwarecomposition_SBOMSPDXv2p3Status is an autogenerated conversion function. -func Convert_v1beta1_SBOMSPDXv2p3Status_To_softwarecomposition_SBOMSPDXv2p3Status(in *SBOMSPDXv2p3Status, out *softwarecomposition.SBOMSPDXv2p3Status, s conversion.Scope) error { - return autoConvert_v1beta1_SBOMSPDXv2p3Status_To_softwarecomposition_SBOMSPDXv2p3Status(in, out, s) -} - -func autoConvert_softwarecomposition_SBOMSPDXv2p3Status_To_v1beta1_SBOMSPDXv2p3Status(in *softwarecomposition.SBOMSPDXv2p3Status, out *SBOMSPDXv2p3Status, s conversion.Scope) error { - return nil -} - -// Convert_softwarecomposition_SBOMSPDXv2p3Status_To_v1beta1_SBOMSPDXv2p3Status is an autogenerated conversion function. -func Convert_softwarecomposition_SBOMSPDXv2p3Status_To_v1beta1_SBOMSPDXv2p3Status(in *softwarecomposition.SBOMSPDXv2p3Status, out *SBOMSPDXv2p3Status, s conversion.Scope) error { - return autoConvert_softwarecomposition_SBOMSPDXv2p3Status_To_v1beta1_SBOMSPDXv2p3Status(in, out, s) -} - func autoConvert_v1beta1_SBOMSyft_To_softwarecomposition_SBOMSyft(in *SBOMSyft, out *softwarecomposition.SBOMSyft, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta if err := Convert_v1beta1_SBOMSyftSpec_To_softwarecomposition_SBOMSyftSpec(&in.Spec, &out.Spec, s); err != nil { @@ -5362,7 +4394,7 @@ func autoConvert_v1beta1_ScannedControlRule_To_softwarecomposition_ScannedContro if err := Convert_v1beta1_RuleStatus_To_softwarecomposition_RuleStatus(&in.Status, &out.Status, s); err != nil { return err } - out.ControlConfigurations = *(*map[string][]string)(unsafe.Pointer(&in.ControlConfigurations)) + out.ControlConfigurations = *(*map[string]string)(unsafe.Pointer(&in.ControlConfigurations)) out.Paths = *(*[]softwarecomposition.RulePath)(unsafe.Pointer(&in.Paths)) out.AppliedIgnoreRules = *(*[]string)(unsafe.Pointer(&in.AppliedIgnoreRules)) out.RelatedResourcesIDs = *(*[]string)(unsafe.Pointer(&in.RelatedResourcesIDs)) @@ -5379,7 +4411,7 @@ func autoConvert_softwarecomposition_ScannedControlRule_To_v1beta1_ScannedContro if err := Convert_softwarecomposition_RuleStatus_To_v1beta1_RuleStatus(&in.Status, &out.Status, s); err != nil { return err } - out.ControlConfigurations = *(*map[string][]string)(unsafe.Pointer(&in.ControlConfigurations)) + out.ControlConfigurations = *(*map[string]string)(unsafe.Pointer(&in.ControlConfigurations)) out.Paths = *(*[]RulePath)(unsafe.Pointer(&in.Paths)) out.AppliedIgnoreRules = *(*[]string)(unsafe.Pointer(&in.AppliedIgnoreRules)) out.RelatedResourcesIDs = *(*[]string)(unsafe.Pointer(&in.RelatedResourcesIDs)) @@ -5681,7 +4713,7 @@ func autoConvert_v1beta1_SingleSeccompProfileSpec_To_softwarecomposition_SingleS out.ListenerPath = in.ListenerPath out.ListenerMetadata = in.ListenerMetadata out.Syscalls = *(*[]*softwarecomposition.Syscall)(unsafe.Pointer(&in.Syscalls)) - out.Flags = *(*[]*softwarecomposition.Flag)(unsafe.Pointer(&in.Flags)) + out.Flags = *(*[]softwarecomposition.Flag)(unsafe.Pointer(&in.Flags)) return nil } @@ -5700,7 +4732,7 @@ func autoConvert_softwarecomposition_SingleSeccompProfileSpec_To_v1beta1_SingleS out.ListenerPath = in.ListenerPath out.ListenerMetadata = in.ListenerMetadata out.Syscalls = *(*[]*Syscall)(unsafe.Pointer(&in.Syscalls)) - out.Flags = *(*[]*Flag)(unsafe.Pointer(&in.Flags)) + out.Flags = *(*[]Flag)(unsafe.Pointer(&in.Flags)) return nil } @@ -5739,98 +4771,6 @@ func Convert_softwarecomposition_SingleSeccompProfileStatus_To_v1beta1_SingleSec return autoConvert_softwarecomposition_SingleSeccompProfileStatus_To_v1beta1_SingleSeccompProfileStatus(in, out, s) } -func autoConvert_v1beta1_Snippet_To_softwarecomposition_Snippet(in *Snippet, out *softwarecomposition.Snippet, s conversion.Scope) error { - out.SnippetSPDXIdentifier = softwarecomposition.ElementID(in.SnippetSPDXIdentifier) - out.SnippetFromFileSPDXIdentifier = softwarecomposition.ElementID(in.SnippetFromFileSPDXIdentifier) - out.Ranges = *(*[]softwarecomposition.SnippetRange)(unsafe.Pointer(&in.Ranges)) - out.SnippetLicenseConcluded = in.SnippetLicenseConcluded - out.LicenseInfoInSnippet = *(*[]string)(unsafe.Pointer(&in.LicenseInfoInSnippet)) - out.SnippetLicenseComments = in.SnippetLicenseComments - out.SnippetCopyrightText = in.SnippetCopyrightText - out.SnippetComment = in.SnippetComment - out.SnippetName = in.SnippetName - out.SnippetAttributionTexts = *(*[]string)(unsafe.Pointer(&in.SnippetAttributionTexts)) - return nil -} - -// Convert_v1beta1_Snippet_To_softwarecomposition_Snippet is an autogenerated conversion function. -func Convert_v1beta1_Snippet_To_softwarecomposition_Snippet(in *Snippet, out *softwarecomposition.Snippet, s conversion.Scope) error { - return autoConvert_v1beta1_Snippet_To_softwarecomposition_Snippet(in, out, s) -} - -func autoConvert_softwarecomposition_Snippet_To_v1beta1_Snippet(in *softwarecomposition.Snippet, out *Snippet, s conversion.Scope) error { - out.SnippetSPDXIdentifier = ElementID(in.SnippetSPDXIdentifier) - out.SnippetFromFileSPDXIdentifier = ElementID(in.SnippetFromFileSPDXIdentifier) - out.Ranges = *(*[]SnippetRange)(unsafe.Pointer(&in.Ranges)) - out.SnippetLicenseConcluded = in.SnippetLicenseConcluded - out.LicenseInfoInSnippet = *(*[]string)(unsafe.Pointer(&in.LicenseInfoInSnippet)) - out.SnippetLicenseComments = in.SnippetLicenseComments - out.SnippetCopyrightText = in.SnippetCopyrightText - out.SnippetComment = in.SnippetComment - out.SnippetName = in.SnippetName - out.SnippetAttributionTexts = *(*[]string)(unsafe.Pointer(&in.SnippetAttributionTexts)) - return nil -} - -// Convert_softwarecomposition_Snippet_To_v1beta1_Snippet is an autogenerated conversion function. -func Convert_softwarecomposition_Snippet_To_v1beta1_Snippet(in *softwarecomposition.Snippet, out *Snippet, s conversion.Scope) error { - return autoConvert_softwarecomposition_Snippet_To_v1beta1_Snippet(in, out, s) -} - -func autoConvert_v1beta1_SnippetRange_To_softwarecomposition_SnippetRange(in *SnippetRange, out *softwarecomposition.SnippetRange, s conversion.Scope) error { - if err := Convert_v1beta1_SnippetRangePointer_To_softwarecomposition_SnippetRangePointer(&in.StartPointer, &out.StartPointer, s); err != nil { - return err - } - if err := Convert_v1beta1_SnippetRangePointer_To_softwarecomposition_SnippetRangePointer(&in.EndPointer, &out.EndPointer, s); err != nil { - return err - } - return nil -} - -// Convert_v1beta1_SnippetRange_To_softwarecomposition_SnippetRange is an autogenerated conversion function. -func Convert_v1beta1_SnippetRange_To_softwarecomposition_SnippetRange(in *SnippetRange, out *softwarecomposition.SnippetRange, s conversion.Scope) error { - return autoConvert_v1beta1_SnippetRange_To_softwarecomposition_SnippetRange(in, out, s) -} - -func autoConvert_softwarecomposition_SnippetRange_To_v1beta1_SnippetRange(in *softwarecomposition.SnippetRange, out *SnippetRange, s conversion.Scope) error { - if err := Convert_softwarecomposition_SnippetRangePointer_To_v1beta1_SnippetRangePointer(&in.StartPointer, &out.StartPointer, s); err != nil { - return err - } - if err := Convert_softwarecomposition_SnippetRangePointer_To_v1beta1_SnippetRangePointer(&in.EndPointer, &out.EndPointer, s); err != nil { - return err - } - return nil -} - -// Convert_softwarecomposition_SnippetRange_To_v1beta1_SnippetRange is an autogenerated conversion function. -func Convert_softwarecomposition_SnippetRange_To_v1beta1_SnippetRange(in *softwarecomposition.SnippetRange, out *SnippetRange, s conversion.Scope) error { - return autoConvert_softwarecomposition_SnippetRange_To_v1beta1_SnippetRange(in, out, s) -} - -func autoConvert_v1beta1_SnippetRangePointer_To_softwarecomposition_SnippetRangePointer(in *SnippetRangePointer, out *softwarecomposition.SnippetRangePointer, s conversion.Scope) error { - out.Offset = in.Offset - out.LineNumber = in.LineNumber - out.FileSPDXIdentifier = softwarecomposition.ElementID(in.FileSPDXIdentifier) - return nil -} - -// Convert_v1beta1_SnippetRangePointer_To_softwarecomposition_SnippetRangePointer is an autogenerated conversion function. -func Convert_v1beta1_SnippetRangePointer_To_softwarecomposition_SnippetRangePointer(in *SnippetRangePointer, out *softwarecomposition.SnippetRangePointer, s conversion.Scope) error { - return autoConvert_v1beta1_SnippetRangePointer_To_softwarecomposition_SnippetRangePointer(in, out, s) -} - -func autoConvert_softwarecomposition_SnippetRangePointer_To_v1beta1_SnippetRangePointer(in *softwarecomposition.SnippetRangePointer, out *SnippetRangePointer, s conversion.Scope) error { - out.Offset = in.Offset - out.LineNumber = in.LineNumber - out.FileSPDXIdentifier = ElementID(in.FileSPDXIdentifier) - return nil -} - -// Convert_softwarecomposition_SnippetRangePointer_To_v1beta1_SnippetRangePointer is an autogenerated conversion function. -func Convert_softwarecomposition_SnippetRangePointer_To_v1beta1_SnippetRangePointer(in *softwarecomposition.SnippetRangePointer, out *SnippetRangePointer, s conversion.Scope) error { - return autoConvert_softwarecomposition_SnippetRangePointer_To_v1beta1_SnippetRangePointer(in, out, s) -} - func autoConvert_v1beta1_Source_To_softwarecomposition_Source(in *Source, out *softwarecomposition.Source, s conversion.Scope) error { out.Type = in.Type out.Target = *(*json.RawMessage)(unsafe.Pointer(&in.Target)) @@ -5967,28 +4907,6 @@ func Convert_softwarecomposition_Subcomponent_To_v1beta1_Subcomponent(in *softwa return autoConvert_softwarecomposition_Subcomponent_To_v1beta1_Subcomponent(in, out, s) } -func autoConvert_v1beta1_Supplier_To_softwarecomposition_Supplier(in *Supplier, out *softwarecomposition.Supplier, s conversion.Scope) error { - out.Supplier = in.Supplier - out.SupplierType = in.SupplierType - return nil -} - -// Convert_v1beta1_Supplier_To_softwarecomposition_Supplier is an autogenerated conversion function. -func Convert_v1beta1_Supplier_To_softwarecomposition_Supplier(in *Supplier, out *softwarecomposition.Supplier, s conversion.Scope) error { - return autoConvert_v1beta1_Supplier_To_softwarecomposition_Supplier(in, out, s) -} - -func autoConvert_softwarecomposition_Supplier_To_v1beta1_Supplier(in *softwarecomposition.Supplier, out *Supplier, s conversion.Scope) error { - out.Supplier = in.Supplier - out.SupplierType = in.SupplierType - return nil -} - -// Convert_softwarecomposition_Supplier_To_v1beta1_Supplier is an autogenerated conversion function. -func Convert_softwarecomposition_Supplier_To_v1beta1_Supplier(in *softwarecomposition.Supplier, out *Supplier, s conversion.Scope) error { - return autoConvert_softwarecomposition_Supplier_To_v1beta1_Supplier(in, out, s) -} - func autoConvert_v1beta1_SyftCoordinates_To_softwarecomposition_SyftCoordinates(in *SyftCoordinates, out *softwarecomposition.SyftCoordinates, s conversion.Scope) error { out.RealPath = in.RealPath out.FileSystemID = in.FileSystemID diff --git a/pkg/apis/softwarecomposition/v1beta1/zz_generated.deepcopy.go b/pkg/apis/softwarecomposition/v1beta1/zz_generated.deepcopy.go index e60a7620c..e83e43870 100644 --- a/pkg/apis/softwarecomposition/v1beta1/zz_generated.deepcopy.go +++ b/pkg/apis/softwarecomposition/v1beta1/zz_generated.deepcopy.go @@ -45,40 +45,6 @@ func (in *Advisory) DeepCopy() *Advisory { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Annotation) DeepCopyInto(out *Annotation) { - *out = *in - out.Annotator = in.Annotator - out.AnnotationSPDXIdentifier = in.AnnotationSPDXIdentifier - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Annotation. -func (in *Annotation) DeepCopy() *Annotation { - if in == nil { - return nil - } - out := new(Annotation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Annotator) DeepCopyInto(out *Annotator) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Annotator. -func (in *Annotator) DeepCopy() *Annotator { - if in == nil { - return nil - } - out := new(Annotator) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ApplicationActivity) DeepCopyInto(out *ApplicationActivity) { *out = *in @@ -353,22 +319,6 @@ func (in *Arg) DeepCopy() *Arg { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ArtifactOfProject) DeepCopyInto(out *ArtifactOfProject) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArtifactOfProject. -func (in *ArtifactOfProject) DeepCopy() *ArtifactOfProject { - if in == nil { - return nil - } - out := new(ArtifactOfProject) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *CPE) DeepCopyInto(out *CPE) { *out = *in @@ -405,22 +355,6 @@ func (in CPEs) DeepCopy() CPEs { return *out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Checksum) DeepCopyInto(out *Checksum) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Checksum. -func (in *Checksum) DeepCopy() *Checksum { - if in == nil { - return nil - } - out := new(Checksum) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Component) DeepCopyInto(out *Component) { *out = *in @@ -605,43 +539,6 @@ func (in *Coordinates) DeepCopy() *Coordinates { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CreationInfo) DeepCopyInto(out *CreationInfo) { - *out = *in - if in.Creators != nil { - in, out := &in.Creators, &out.Creators - *out = make([]Creator, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CreationInfo. -func (in *CreationInfo) DeepCopy() *CreationInfo { - if in == nil { - return nil - } - out := new(CreationInfo) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Creator) DeepCopyInto(out *Creator) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Creator. -func (in *Creator) DeepCopy() *Creator { - if in == nil { - return nil - } - out := new(Creator) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Cvss) DeepCopyInto(out *Cvss) { *out = *in @@ -753,120 +650,6 @@ func (in *Distribution) DeepCopy() *Distribution { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DocElementID) DeepCopyInto(out *DocElementID) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DocElementID. -func (in *DocElementID) DeepCopy() *DocElementID { - if in == nil { - return nil - } - out := new(DocElementID) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Document) DeepCopyInto(out *Document) { - *out = *in - if in.DocumentDescribes != nil { - in, out := &in.DocumentDescribes, &out.DocumentDescribes - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.ExternalDocumentReferences != nil { - in, out := &in.ExternalDocumentReferences, &out.ExternalDocumentReferences - *out = make([]ExternalDocumentRef, len(*in)) - copy(*out, *in) - } - if in.CreationInfo != nil { - in, out := &in.CreationInfo, &out.CreationInfo - *out = new(CreationInfo) - (*in).DeepCopyInto(*out) - } - if in.Packages != nil { - in, out := &in.Packages, &out.Packages - *out = make([]*Package, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(Package) - (*in).DeepCopyInto(*out) - } - } - } - if in.Files != nil { - in, out := &in.Files, &out.Files - *out = make([]*File, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(File) - (*in).DeepCopyInto(*out) - } - } - } - if in.OtherLicenses != nil { - in, out := &in.OtherLicenses, &out.OtherLicenses - *out = make([]*OtherLicense, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(OtherLicense) - (*in).DeepCopyInto(*out) - } - } - } - if in.Relationships != nil { - in, out := &in.Relationships, &out.Relationships - *out = make([]*Relationship, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(Relationship) - **out = **in - } - } - } - if in.Annotations != nil { - in, out := &in.Annotations, &out.Annotations - *out = make([]Annotation, len(*in)) - copy(*out, *in) - } - if in.Snippets != nil { - in, out := &in.Snippets, &out.Snippets - *out = make([]Snippet, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Reviews != nil { - in, out := &in.Reviews, &out.Reviews - *out = make([]*Review, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(Review) - **out = **in - } - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Document. -func (in *Document) DeepCopy() *Document { - if in == nil { - return nil - } - out := new(Document) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ELFSecurityFeatures) DeepCopyInto(out *ELFSecurityFeatures) { *out = *in @@ -955,100 +738,6 @@ func (in *Executable) DeepCopy() *Executable { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ExternalDocumentRef) DeepCopyInto(out *ExternalDocumentRef) { - *out = *in - out.Checksum = in.Checksum - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalDocumentRef. -func (in *ExternalDocumentRef) DeepCopy() *ExternalDocumentRef { - if in == nil { - return nil - } - out := new(ExternalDocumentRef) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *File) DeepCopyInto(out *File) { - *out = *in - if in.FileTypes != nil { - in, out := &in.FileTypes, &out.FileTypes - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Checksums != nil { - in, out := &in.Checksums, &out.Checksums - *out = make([]Checksum, len(*in)) - copy(*out, *in) - } - if in.LicenseInfoInFiles != nil { - in, out := &in.LicenseInfoInFiles, &out.LicenseInfoInFiles - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.ArtifactOfProjects != nil { - in, out := &in.ArtifactOfProjects, &out.ArtifactOfProjects - *out = make([]*ArtifactOfProject, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(ArtifactOfProject) - **out = **in - } - } - } - if in.FileContributors != nil { - in, out := &in.FileContributors, &out.FileContributors - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.FileAttributionTexts != nil { - in, out := &in.FileAttributionTexts, &out.FileAttributionTexts - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.FileDependencies != nil { - in, out := &in.FileDependencies, &out.FileDependencies - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Snippets != nil { - in, out := &in.Snippets, &out.Snippets - *out = make(map[ElementID]*Snippet, len(*in)) - for key, val := range *in { - var outVal *Snippet - if val == nil { - (*out)[key] = nil - } else { - in, out := &val, &outVal - *out = new(Snippet) - (*in).DeepCopyInto(*out) - } - (*out)[key] = outVal - } - } - if in.Annotations != nil { - in, out := &in.Annotations, &out.Annotations - *out = make([]Annotation, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new File. -func (in *File) DeepCopy() *File { - if in == nil { - return nil - } - out := new(File) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FileLicense) DeepCopyInto(out *FileLicense) { *out = *in @@ -1211,7 +900,7 @@ func (in *GrypeDocument) DeepCopyInto(out *GrypeDocument) { (*in).DeepCopyInto(*out) } in.Distro.DeepCopyInto(&out.Distro) - in.Descriptor.DeepCopyInto(&out.Descriptor) + in.Descriptor_.DeepCopyInto(&out.Descriptor_) return } @@ -2667,196 +2356,81 @@ func (in *OpenVulnerabilityExchangeContainerList) DeepCopyObject() runtime.Objec } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Originator) DeepCopyInto(out *Originator) { +func (in *PackageBasicData) DeepCopyInto(out *PackageBasicData) { *out = *in + if in.Locations != nil { + in, out := &in.Locations, &out.Locations + *out = make([]Location, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Licenses != nil { + in, out := &in.Licenses, &out.Licenses + *out = make(Licenses, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.CPEs != nil { + in, out := &in.CPEs, &out.CPEs + *out = make(CPEs, len(*in)) + copy(*out, *in) + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Originator. -func (in *Originator) DeepCopy() *Originator { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PackageBasicData. +func (in *PackageBasicData) DeepCopy() *PackageBasicData { if in == nil { return nil } - out := new(Originator) + out := new(PackageBasicData) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *OtherLicense) DeepCopyInto(out *OtherLicense) { +func (in *PackageBasicDataV01011) DeepCopyInto(out *PackageBasicDataV01011) { *out = *in - if in.LicenseCrossReferences != nil { - in, out := &in.LicenseCrossReferences, &out.LicenseCrossReferences + if in.Locations != nil { + in, out := &in.Locations, &out.Locations + *out = make([]Location, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Licenses != nil { + in, out := &in.Licenses, &out.Licenses + *out = make(Licenses, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.CPEs != nil { + in, out := &in.CPEs, &out.CPEs *out = make([]string, len(*in)) copy(*out, *in) } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OtherLicense. -func (in *OtherLicense) DeepCopy() *OtherLicense { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PackageBasicDataV01011. +func (in *PackageBasicDataV01011) DeepCopy() *PackageBasicDataV01011 { if in == nil { return nil } - out := new(OtherLicense) + out := new(PackageBasicDataV01011) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Package) DeepCopyInto(out *Package) { +func (in *PackageCustomData) DeepCopyInto(out *PackageCustomData) { *out = *in - if in.HasFiles != nil { - in, out := &in.HasFiles, &out.HasFiles - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.PackageSupplier != nil { - in, out := &in.PackageSupplier, &out.PackageSupplier - *out = new(Supplier) - **out = **in - } - if in.PackageOriginator != nil { - in, out := &in.PackageOriginator, &out.PackageOriginator - *out = new(Originator) - **out = **in - } - if in.PackageVerificationCode != nil { - in, out := &in.PackageVerificationCode, &out.PackageVerificationCode - *out = new(PackageVerificationCode) - (*in).DeepCopyInto(*out) - } - if in.PackageChecksums != nil { - in, out := &in.PackageChecksums, &out.PackageChecksums - *out = make([]Checksum, len(*in)) - copy(*out, *in) - } - if in.PackageLicenseInfoFromFiles != nil { - in, out := &in.PackageLicenseInfoFromFiles, &out.PackageLicenseInfoFromFiles - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.PackageExternalReferences != nil { - in, out := &in.PackageExternalReferences, &out.PackageExternalReferences - *out = make([]*PackageExternalReference, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(PackageExternalReference) - **out = **in - } - } - } - if in.PackageAttributionTexts != nil { - in, out := &in.PackageAttributionTexts, &out.PackageAttributionTexts - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Files != nil { - in, out := &in.Files, &out.Files - *out = make([]*File, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(File) - (*in).DeepCopyInto(*out) - } - } - } - if in.Annotations != nil { - in, out := &in.Annotations, &out.Annotations - *out = make([]Annotation, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Package. -func (in *Package) DeepCopy() *Package { - if in == nil { - return nil - } - out := new(Package) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PackageBasicData) DeepCopyInto(out *PackageBasicData) { - *out = *in - if in.Locations != nil { - in, out := &in.Locations, &out.Locations - *out = make([]Location, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Licenses != nil { - in, out := &in.Licenses, &out.Licenses - *out = make(Licenses, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.CPEs != nil { - in, out := &in.CPEs, &out.CPEs - *out = make(CPEs, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PackageBasicData. -func (in *PackageBasicData) DeepCopy() *PackageBasicData { - if in == nil { - return nil - } - out := new(PackageBasicData) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PackageBasicDataV01011) DeepCopyInto(out *PackageBasicDataV01011) { - *out = *in - if in.Locations != nil { - in, out := &in.Locations, &out.Locations - *out = make([]Location, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Licenses != nil { - in, out := &in.Licenses, &out.Licenses - *out = make(Licenses, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.CPEs != nil { - in, out := &in.CPEs, &out.CPEs - *out = make([]string, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PackageBasicDataV01011. -func (in *PackageBasicDataV01011) DeepCopy() *PackageBasicDataV01011 { - if in == nil { - return nil - } - out := new(PackageBasicDataV01011) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PackageCustomData) DeepCopyInto(out *PackageCustomData) { - *out = *in - if in.Metadata != nil { - in, out := &in.Metadata, &out.Metadata - *out = make(json.RawMessage, len(*in)) + if in.Metadata != nil { + in, out := &in.Metadata, &out.Metadata + *out = make(json.RawMessage, len(*in)) copy(*out, *in) } return @@ -2872,43 +2446,6 @@ func (in *PackageCustomData) DeepCopy() *PackageCustomData { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PackageExternalReference) DeepCopyInto(out *PackageExternalReference) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PackageExternalReference. -func (in *PackageExternalReference) DeepCopy() *PackageExternalReference { - if in == nil { - return nil - } - out := new(PackageExternalReference) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PackageVerificationCode) DeepCopyInto(out *PackageVerificationCode) { - *out = *in - if in.ExcludedFiles != nil { - in, out := &in.ExcludedFiles, &out.ExcludedFiles - *out = make([]string, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PackageVerificationCode. -func (in *PackageVerificationCode) DeepCopy() *PackageVerificationCode { - if in == nil { - return nil - } - out := new(PackageVerificationCode) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PolicyRef) DeepCopyInto(out *PolicyRef) { *out = *in @@ -2949,24 +2486,6 @@ func (in *Product) DeepCopy() *Product { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Relationship) DeepCopyInto(out *Relationship) { - *out = *in - out.RefA = in.RefA - out.RefB = in.RefB - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Relationship. -func (in *Relationship) DeepCopy() *Relationship { - if in == nil { - return nil - } - out := new(Relationship) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ReportMeta) DeepCopyInto(out *ReportMeta) { *out = *in @@ -2984,22 +2503,6 @@ func (in *ReportMeta) DeepCopy() *ReportMeta { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Review) DeepCopyInto(out *Review) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Review. -func (in *Review) DeepCopy() *Review { - if in == nil { - return nil - } - out := new(Review) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *RulePath) DeepCopyInto(out *RulePath) { *out = *in @@ -3032,162 +2535,6 @@ func (in *RuleStatus) DeepCopy() *RuleStatus { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SBOMSPDXv2p3) DeepCopyInto(out *SBOMSPDXv2p3) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - out.Status = in.Status - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SBOMSPDXv2p3. -func (in *SBOMSPDXv2p3) DeepCopy() *SBOMSPDXv2p3 { - if in == nil { - return nil - } - out := new(SBOMSPDXv2p3) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SBOMSPDXv2p3) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SBOMSPDXv2p3Filtered) DeepCopyInto(out *SBOMSPDXv2p3Filtered) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - out.Status = in.Status - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SBOMSPDXv2p3Filtered. -func (in *SBOMSPDXv2p3Filtered) DeepCopy() *SBOMSPDXv2p3Filtered { - if in == nil { - return nil - } - out := new(SBOMSPDXv2p3Filtered) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SBOMSPDXv2p3Filtered) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SBOMSPDXv2p3FilteredList) DeepCopyInto(out *SBOMSPDXv2p3FilteredList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]SBOMSPDXv2p3Filtered, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SBOMSPDXv2p3FilteredList. -func (in *SBOMSPDXv2p3FilteredList) DeepCopy() *SBOMSPDXv2p3FilteredList { - if in == nil { - return nil - } - out := new(SBOMSPDXv2p3FilteredList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SBOMSPDXv2p3FilteredList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SBOMSPDXv2p3List) DeepCopyInto(out *SBOMSPDXv2p3List) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]SBOMSPDXv2p3, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SBOMSPDXv2p3List. -func (in *SBOMSPDXv2p3List) DeepCopy() *SBOMSPDXv2p3List { - if in == nil { - return nil - } - out := new(SBOMSPDXv2p3List) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SBOMSPDXv2p3List) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SBOMSPDXv2p3Spec) DeepCopyInto(out *SBOMSPDXv2p3Spec) { - *out = *in - in.Metadata.DeepCopyInto(&out.Metadata) - in.SPDX.DeepCopyInto(&out.SPDX) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SBOMSPDXv2p3Spec. -func (in *SBOMSPDXv2p3Spec) DeepCopy() *SBOMSPDXv2p3Spec { - if in == nil { - return nil - } - out := new(SBOMSPDXv2p3Spec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SBOMSPDXv2p3Status) DeepCopyInto(out *SBOMSPDXv2p3Status) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SBOMSPDXv2p3Status. -func (in *SBOMSPDXv2p3Status) DeepCopy() *SBOMSPDXv2p3Status { - if in == nil { - return nil - } - out := new(SBOMSPDXv2p3Status) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *SBOMSyft) DeepCopyInto(out *SBOMSyft) { *out = *in @@ -3393,17 +2740,9 @@ func (in *ScannedControlRule) DeepCopyInto(out *ScannedControlRule) { out.Status = in.Status if in.ControlConfigurations != nil { in, out := &in.ControlConfigurations, &out.ControlConfigurations - *out = make(map[string][]string, len(*in)) + *out = make(map[string]string, len(*in)) for key, val := range *in { - var outVal []string - if val == nil { - (*out)[key] = nil - } else { - in, out := &val, &outVal - *out = make([]string, len(*in)) - copy(*out, *in) - } - (*out)[key] = outVal + (*out)[key] = val } } if in.Paths != nil { @@ -3682,14 +3021,8 @@ func (in *SingleSeccompProfileSpec) DeepCopyInto(out *SingleSeccompProfileSpec) } if in.Flags != nil { in, out := &in.Flags, &out.Flags - *out = make([]*Flag, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(Flag) - **out = **in - } - } + *out = make([]Flag, len(*in)) + copy(*out, *in) } return } @@ -3726,71 +3059,6 @@ func (in *SingleSeccompProfileStatus) DeepCopy() *SingleSeccompProfileStatus { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Snippet) DeepCopyInto(out *Snippet) { - *out = *in - if in.Ranges != nil { - in, out := &in.Ranges, &out.Ranges - *out = make([]SnippetRange, len(*in)) - copy(*out, *in) - } - if in.LicenseInfoInSnippet != nil { - in, out := &in.LicenseInfoInSnippet, &out.LicenseInfoInSnippet - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.SnippetAttributionTexts != nil { - in, out := &in.SnippetAttributionTexts, &out.SnippetAttributionTexts - *out = make([]string, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Snippet. -func (in *Snippet) DeepCopy() *Snippet { - if in == nil { - return nil - } - out := new(Snippet) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SnippetRange) DeepCopyInto(out *SnippetRange) { - *out = *in - out.StartPointer = in.StartPointer - out.EndPointer = in.EndPointer - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnippetRange. -func (in *SnippetRange) DeepCopy() *SnippetRange { - if in == nil { - return nil - } - out := new(SnippetRange) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SnippetRangePointer) DeepCopyInto(out *SnippetRangePointer) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnippetRangePointer. -func (in *SnippetRangePointer) DeepCopy() *SnippetRangePointer { - if in == nil { - return nil - } - out := new(SnippetRangePointer) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Source) DeepCopyInto(out *Source) { *out = *in @@ -3886,22 +3154,6 @@ func (in *Subcomponent) DeepCopy() *Subcomponent { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Supplier) DeepCopyInto(out *Supplier) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Supplier. -func (in *Supplier) DeepCopy() *Supplier { - if in == nil { - return nil - } - out := new(Supplier) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *SyftCoordinates) DeepCopyInto(out *SyftCoordinates) { *out = *in diff --git a/pkg/apis/softwarecomposition/zz_generated.deepcopy.go b/pkg/apis/softwarecomposition/zz_generated.deepcopy.go index a38560193..7864c1715 100644 --- a/pkg/apis/softwarecomposition/zz_generated.deepcopy.go +++ b/pkg/apis/softwarecomposition/zz_generated.deepcopy.go @@ -45,40 +45,6 @@ func (in *Advisory) DeepCopy() *Advisory { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Annotation) DeepCopyInto(out *Annotation) { - *out = *in - out.Annotator = in.Annotator - out.AnnotationSPDXIdentifier = in.AnnotationSPDXIdentifier - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Annotation. -func (in *Annotation) DeepCopy() *Annotation { - if in == nil { - return nil - } - out := new(Annotation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Annotator) DeepCopyInto(out *Annotator) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Annotator. -func (in *Annotator) DeepCopy() *Annotator { - if in == nil { - return nil - } - out := new(Annotator) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ApplicationActivity) DeepCopyInto(out *ApplicationActivity) { *out = *in @@ -353,22 +319,6 @@ func (in *Arg) DeepCopy() *Arg { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ArtifactOfProject) DeepCopyInto(out *ArtifactOfProject) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArtifactOfProject. -func (in *ArtifactOfProject) DeepCopy() *ArtifactOfProject { - if in == nil { - return nil - } - out := new(ArtifactOfProject) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *CPE) DeepCopyInto(out *CPE) { *out = *in @@ -405,22 +355,6 @@ func (in CPEs) DeepCopy() CPEs { return *out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Checksum) DeepCopyInto(out *Checksum) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Checksum. -func (in *Checksum) DeepCopy() *Checksum { - if in == nil { - return nil - } - out := new(Checksum) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Component) DeepCopyInto(out *Component) { *out = *in @@ -605,43 +539,6 @@ func (in *Coordinates) DeepCopy() *Coordinates { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CreationInfo) DeepCopyInto(out *CreationInfo) { - *out = *in - if in.Creators != nil { - in, out := &in.Creators, &out.Creators - *out = make([]Creator, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CreationInfo. -func (in *CreationInfo) DeepCopy() *CreationInfo { - if in == nil { - return nil - } - out := new(CreationInfo) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Creator) DeepCopyInto(out *Creator) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Creator. -func (in *Creator) DeepCopy() *Creator { - if in == nil { - return nil - } - out := new(Creator) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Cvss) DeepCopyInto(out *Cvss) { *out = *in @@ -753,120 +650,6 @@ func (in *Distribution) DeepCopy() *Distribution { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DocElementID) DeepCopyInto(out *DocElementID) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DocElementID. -func (in *DocElementID) DeepCopy() *DocElementID { - if in == nil { - return nil - } - out := new(DocElementID) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Document) DeepCopyInto(out *Document) { - *out = *in - if in.DocumentDescribes != nil { - in, out := &in.DocumentDescribes, &out.DocumentDescribes - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.ExternalDocumentReferences != nil { - in, out := &in.ExternalDocumentReferences, &out.ExternalDocumentReferences - *out = make([]ExternalDocumentRef, len(*in)) - copy(*out, *in) - } - if in.CreationInfo != nil { - in, out := &in.CreationInfo, &out.CreationInfo - *out = new(CreationInfo) - (*in).DeepCopyInto(*out) - } - if in.Packages != nil { - in, out := &in.Packages, &out.Packages - *out = make([]*Package, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(Package) - (*in).DeepCopyInto(*out) - } - } - } - if in.Files != nil { - in, out := &in.Files, &out.Files - *out = make([]*File, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(File) - (*in).DeepCopyInto(*out) - } - } - } - if in.OtherLicenses != nil { - in, out := &in.OtherLicenses, &out.OtherLicenses - *out = make([]*OtherLicense, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(OtherLicense) - (*in).DeepCopyInto(*out) - } - } - } - if in.Relationships != nil { - in, out := &in.Relationships, &out.Relationships - *out = make([]*Relationship, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(Relationship) - **out = **in - } - } - } - if in.Annotations != nil { - in, out := &in.Annotations, &out.Annotations - *out = make([]Annotation, len(*in)) - copy(*out, *in) - } - if in.Snippets != nil { - in, out := &in.Snippets, &out.Snippets - *out = make([]Snippet, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Reviews != nil { - in, out := &in.Reviews, &out.Reviews - *out = make([]*Review, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(Review) - **out = **in - } - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Document. -func (in *Document) DeepCopy() *Document { - if in == nil { - return nil - } - out := new(Document) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ELFSecurityFeatures) DeepCopyInto(out *ELFSecurityFeatures) { *out = *in @@ -955,100 +738,6 @@ func (in *Executable) DeepCopy() *Executable { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ExternalDocumentRef) DeepCopyInto(out *ExternalDocumentRef) { - *out = *in - out.Checksum = in.Checksum - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalDocumentRef. -func (in *ExternalDocumentRef) DeepCopy() *ExternalDocumentRef { - if in == nil { - return nil - } - out := new(ExternalDocumentRef) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *File) DeepCopyInto(out *File) { - *out = *in - if in.FileTypes != nil { - in, out := &in.FileTypes, &out.FileTypes - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Checksums != nil { - in, out := &in.Checksums, &out.Checksums - *out = make([]Checksum, len(*in)) - copy(*out, *in) - } - if in.LicenseInfoInFiles != nil { - in, out := &in.LicenseInfoInFiles, &out.LicenseInfoInFiles - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.ArtifactOfProjects != nil { - in, out := &in.ArtifactOfProjects, &out.ArtifactOfProjects - *out = make([]*ArtifactOfProject, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(ArtifactOfProject) - **out = **in - } - } - } - if in.FileContributors != nil { - in, out := &in.FileContributors, &out.FileContributors - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.FileAttributionTexts != nil { - in, out := &in.FileAttributionTexts, &out.FileAttributionTexts - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.FileDependencies != nil { - in, out := &in.FileDependencies, &out.FileDependencies - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Snippets != nil { - in, out := &in.Snippets, &out.Snippets - *out = make(map[ElementID]*Snippet, len(*in)) - for key, val := range *in { - var outVal *Snippet - if val == nil { - (*out)[key] = nil - } else { - in, out := &val, &outVal - *out = new(Snippet) - (*in).DeepCopyInto(*out) - } - (*out)[key] = outVal - } - } - if in.Annotations != nil { - in, out := &in.Annotations, &out.Annotations - *out = make([]Annotation, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new File. -func (in *File) DeepCopy() *File { - if in == nil { - return nil - } - out := new(File) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FileLicense) DeepCopyInto(out *FileLicense) { *out = *in @@ -1211,7 +900,7 @@ func (in *GrypeDocument) DeepCopyInto(out *GrypeDocument) { (*in).DeepCopyInto(*out) } in.Distro.DeepCopyInto(&out.Distro) - in.Descriptor.DeepCopyInto(&out.Descriptor) + in.Descriptor_.DeepCopyInto(&out.Descriptor_) return } @@ -2667,196 +2356,81 @@ func (in *OpenVulnerabilityExchangeContainerList) DeepCopyObject() runtime.Objec } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Originator) DeepCopyInto(out *Originator) { +func (in *PackageBasicData) DeepCopyInto(out *PackageBasicData) { *out = *in + if in.Locations != nil { + in, out := &in.Locations, &out.Locations + *out = make([]Location, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Licenses != nil { + in, out := &in.Licenses, &out.Licenses + *out = make(Licenses, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.CPEs != nil { + in, out := &in.CPEs, &out.CPEs + *out = make(CPEs, len(*in)) + copy(*out, *in) + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Originator. -func (in *Originator) DeepCopy() *Originator { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PackageBasicData. +func (in *PackageBasicData) DeepCopy() *PackageBasicData { if in == nil { return nil } - out := new(Originator) + out := new(PackageBasicData) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *OtherLicense) DeepCopyInto(out *OtherLicense) { +func (in *PackageBasicDataV01011) DeepCopyInto(out *PackageBasicDataV01011) { *out = *in - if in.LicenseCrossReferences != nil { - in, out := &in.LicenseCrossReferences, &out.LicenseCrossReferences + if in.Locations != nil { + in, out := &in.Locations, &out.Locations + *out = make([]Location, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Licenses != nil { + in, out := &in.Licenses, &out.Licenses + *out = make(Licenses, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.CPEs != nil { + in, out := &in.CPEs, &out.CPEs *out = make([]string, len(*in)) copy(*out, *in) } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OtherLicense. -func (in *OtherLicense) DeepCopy() *OtherLicense { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PackageBasicDataV01011. +func (in *PackageBasicDataV01011) DeepCopy() *PackageBasicDataV01011 { if in == nil { return nil } - out := new(OtherLicense) + out := new(PackageBasicDataV01011) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Package) DeepCopyInto(out *Package) { +func (in *PackageCustomData) DeepCopyInto(out *PackageCustomData) { *out = *in - if in.HasFiles != nil { - in, out := &in.HasFiles, &out.HasFiles - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.PackageSupplier != nil { - in, out := &in.PackageSupplier, &out.PackageSupplier - *out = new(Supplier) - **out = **in - } - if in.PackageOriginator != nil { - in, out := &in.PackageOriginator, &out.PackageOriginator - *out = new(Originator) - **out = **in - } - if in.PackageVerificationCode != nil { - in, out := &in.PackageVerificationCode, &out.PackageVerificationCode - *out = new(PackageVerificationCode) - (*in).DeepCopyInto(*out) - } - if in.PackageChecksums != nil { - in, out := &in.PackageChecksums, &out.PackageChecksums - *out = make([]Checksum, len(*in)) - copy(*out, *in) - } - if in.PackageLicenseInfoFromFiles != nil { - in, out := &in.PackageLicenseInfoFromFiles, &out.PackageLicenseInfoFromFiles - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.PackageExternalReferences != nil { - in, out := &in.PackageExternalReferences, &out.PackageExternalReferences - *out = make([]*PackageExternalReference, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(PackageExternalReference) - **out = **in - } - } - } - if in.PackageAttributionTexts != nil { - in, out := &in.PackageAttributionTexts, &out.PackageAttributionTexts - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Files != nil { - in, out := &in.Files, &out.Files - *out = make([]*File, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(File) - (*in).DeepCopyInto(*out) - } - } - } - if in.Annotations != nil { - in, out := &in.Annotations, &out.Annotations - *out = make([]Annotation, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Package. -func (in *Package) DeepCopy() *Package { - if in == nil { - return nil - } - out := new(Package) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PackageBasicData) DeepCopyInto(out *PackageBasicData) { - *out = *in - if in.Locations != nil { - in, out := &in.Locations, &out.Locations - *out = make([]Location, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Licenses != nil { - in, out := &in.Licenses, &out.Licenses - *out = make(Licenses, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.CPEs != nil { - in, out := &in.CPEs, &out.CPEs - *out = make(CPEs, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PackageBasicData. -func (in *PackageBasicData) DeepCopy() *PackageBasicData { - if in == nil { - return nil - } - out := new(PackageBasicData) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PackageBasicDataV01011) DeepCopyInto(out *PackageBasicDataV01011) { - *out = *in - if in.Locations != nil { - in, out := &in.Locations, &out.Locations - *out = make([]Location, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Licenses != nil { - in, out := &in.Licenses, &out.Licenses - *out = make(Licenses, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.CPEs != nil { - in, out := &in.CPEs, &out.CPEs - *out = make([]string, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PackageBasicDataV01011. -func (in *PackageBasicDataV01011) DeepCopy() *PackageBasicDataV01011 { - if in == nil { - return nil - } - out := new(PackageBasicDataV01011) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PackageCustomData) DeepCopyInto(out *PackageCustomData) { - *out = *in - if in.Metadata != nil { - in, out := &in.Metadata, &out.Metadata - *out = make(json.RawMessage, len(*in)) + if in.Metadata != nil { + in, out := &in.Metadata, &out.Metadata + *out = make(json.RawMessage, len(*in)) copy(*out, *in) } return @@ -2872,43 +2446,6 @@ func (in *PackageCustomData) DeepCopy() *PackageCustomData { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PackageExternalReference) DeepCopyInto(out *PackageExternalReference) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PackageExternalReference. -func (in *PackageExternalReference) DeepCopy() *PackageExternalReference { - if in == nil { - return nil - } - out := new(PackageExternalReference) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PackageVerificationCode) DeepCopyInto(out *PackageVerificationCode) { - *out = *in - if in.ExcludedFiles != nil { - in, out := &in.ExcludedFiles, &out.ExcludedFiles - *out = make([]string, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PackageVerificationCode. -func (in *PackageVerificationCode) DeepCopy() *PackageVerificationCode { - if in == nil { - return nil - } - out := new(PackageVerificationCode) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PolicyRef) DeepCopyInto(out *PolicyRef) { *out = *in @@ -2949,24 +2486,6 @@ func (in *Product) DeepCopy() *Product { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Relationship) DeepCopyInto(out *Relationship) { - *out = *in - out.RefA = in.RefA - out.RefB = in.RefB - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Relationship. -func (in *Relationship) DeepCopy() *Relationship { - if in == nil { - return nil - } - out := new(Relationship) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ReportMeta) DeepCopyInto(out *ReportMeta) { *out = *in @@ -2984,22 +2503,6 @@ func (in *ReportMeta) DeepCopy() *ReportMeta { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Review) DeepCopyInto(out *Review) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Review. -func (in *Review) DeepCopy() *Review { - if in == nil { - return nil - } - out := new(Review) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *RulePath) DeepCopyInto(out *RulePath) { *out = *in @@ -3032,162 +2535,6 @@ func (in *RuleStatus) DeepCopy() *RuleStatus { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SBOMSPDXv2p3) DeepCopyInto(out *SBOMSPDXv2p3) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - out.Status = in.Status - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SBOMSPDXv2p3. -func (in *SBOMSPDXv2p3) DeepCopy() *SBOMSPDXv2p3 { - if in == nil { - return nil - } - out := new(SBOMSPDXv2p3) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SBOMSPDXv2p3) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SBOMSPDXv2p3Filtered) DeepCopyInto(out *SBOMSPDXv2p3Filtered) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - out.Status = in.Status - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SBOMSPDXv2p3Filtered. -func (in *SBOMSPDXv2p3Filtered) DeepCopy() *SBOMSPDXv2p3Filtered { - if in == nil { - return nil - } - out := new(SBOMSPDXv2p3Filtered) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SBOMSPDXv2p3Filtered) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SBOMSPDXv2p3FilteredList) DeepCopyInto(out *SBOMSPDXv2p3FilteredList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]SBOMSPDXv2p3Filtered, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SBOMSPDXv2p3FilteredList. -func (in *SBOMSPDXv2p3FilteredList) DeepCopy() *SBOMSPDXv2p3FilteredList { - if in == nil { - return nil - } - out := new(SBOMSPDXv2p3FilteredList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SBOMSPDXv2p3FilteredList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SBOMSPDXv2p3List) DeepCopyInto(out *SBOMSPDXv2p3List) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]SBOMSPDXv2p3, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SBOMSPDXv2p3List. -func (in *SBOMSPDXv2p3List) DeepCopy() *SBOMSPDXv2p3List { - if in == nil { - return nil - } - out := new(SBOMSPDXv2p3List) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SBOMSPDXv2p3List) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SBOMSPDXv2p3Spec) DeepCopyInto(out *SBOMSPDXv2p3Spec) { - *out = *in - in.Metadata.DeepCopyInto(&out.Metadata) - in.SPDX.DeepCopyInto(&out.SPDX) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SBOMSPDXv2p3Spec. -func (in *SBOMSPDXv2p3Spec) DeepCopy() *SBOMSPDXv2p3Spec { - if in == nil { - return nil - } - out := new(SBOMSPDXv2p3Spec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SBOMSPDXv2p3Status) DeepCopyInto(out *SBOMSPDXv2p3Status) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SBOMSPDXv2p3Status. -func (in *SBOMSPDXv2p3Status) DeepCopy() *SBOMSPDXv2p3Status { - if in == nil { - return nil - } - out := new(SBOMSPDXv2p3Status) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *SBOMSyft) DeepCopyInto(out *SBOMSyft) { *out = *in @@ -3393,17 +2740,9 @@ func (in *ScannedControlRule) DeepCopyInto(out *ScannedControlRule) { out.Status = in.Status if in.ControlConfigurations != nil { in, out := &in.ControlConfigurations, &out.ControlConfigurations - *out = make(map[string][]string, len(*in)) + *out = make(map[string]string, len(*in)) for key, val := range *in { - var outVal []string - if val == nil { - (*out)[key] = nil - } else { - in, out := &val, &outVal - *out = make([]string, len(*in)) - copy(*out, *in) - } - (*out)[key] = outVal + (*out)[key] = val } } if in.Paths != nil { @@ -3682,14 +3021,8 @@ func (in *SingleSeccompProfileSpec) DeepCopyInto(out *SingleSeccompProfileSpec) } if in.Flags != nil { in, out := &in.Flags, &out.Flags - *out = make([]*Flag, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(Flag) - **out = **in - } - } + *out = make([]Flag, len(*in)) + copy(*out, *in) } return } @@ -3726,71 +3059,6 @@ func (in *SingleSeccompProfileStatus) DeepCopy() *SingleSeccompProfileStatus { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Snippet) DeepCopyInto(out *Snippet) { - *out = *in - if in.Ranges != nil { - in, out := &in.Ranges, &out.Ranges - *out = make([]SnippetRange, len(*in)) - copy(*out, *in) - } - if in.LicenseInfoInSnippet != nil { - in, out := &in.LicenseInfoInSnippet, &out.LicenseInfoInSnippet - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.SnippetAttributionTexts != nil { - in, out := &in.SnippetAttributionTexts, &out.SnippetAttributionTexts - *out = make([]string, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Snippet. -func (in *Snippet) DeepCopy() *Snippet { - if in == nil { - return nil - } - out := new(Snippet) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SnippetRange) DeepCopyInto(out *SnippetRange) { - *out = *in - out.StartPointer = in.StartPointer - out.EndPointer = in.EndPointer - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnippetRange. -func (in *SnippetRange) DeepCopy() *SnippetRange { - if in == nil { - return nil - } - out := new(SnippetRange) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SnippetRangePointer) DeepCopyInto(out *SnippetRangePointer) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnippetRangePointer. -func (in *SnippetRangePointer) DeepCopy() *SnippetRangePointer { - if in == nil { - return nil - } - out := new(SnippetRangePointer) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Source) DeepCopyInto(out *Source) { *out = *in @@ -3886,22 +3154,6 @@ func (in *Subcomponent) DeepCopy() *Subcomponent { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Supplier) DeepCopyInto(out *Supplier) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Supplier. -func (in *Supplier) DeepCopy() *Supplier { - if in == nil { - return nil - } - out := new(Supplier) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *SyftCoordinates) DeepCopyInto(out *SyftCoordinates) { *out = *in diff --git a/pkg/apiserver/apiserver.go b/pkg/apiserver/apiserver.go index 32965c3a7..ea1098b99 100644 --- a/pkg/apiserver/apiserver.go +++ b/pkg/apiserver/apiserver.go @@ -44,8 +44,6 @@ import ( "github.com/kubescape/storage/pkg/apis/softwarecomposition/install" sbomregistry "github.com/kubescape/storage/pkg/registry" "github.com/kubescape/storage/pkg/registry/softwarecomposition/configurationscansummary" - sbomspdxv2p3storage "github.com/kubescape/storage/pkg/registry/softwarecomposition/sbomspdxv2p3" - sbomspdxv2p3filteredstorage "github.com/kubescape/storage/pkg/registry/softwarecomposition/sbomspdxv2p3filtered" vmstorage "github.com/kubescape/storage/pkg/registry/softwarecomposition/vulnerabilitymanifest" vmsumstorage "github.com/kubescape/storage/pkg/registry/softwarecomposition/vulnerabilitymanifestsummary" vsumstorage "github.com/kubescape/storage/pkg/registry/softwarecomposition/vulnerabilitysummary" @@ -141,12 +139,6 @@ func (c completedConfig) New() (*WardleServer, error) { } apiGroupInfo := genericapiserver.NewDefaultAPIGroupInfo(softwarecomposition.GroupName, Scheme, metav1.ParameterCodec, Codecs) - // Since our types don’t implement the Protobuf marshaling interface, - // but the default APIServer serializer advertizes it by default, a lot - // of unexpected things might fail. One example is that deleting an - // arbitrary namespace will fail while this APIServer is running (see - // https://github.com/kubernetes/kubernetes/issues/86666). - apiGroupInfo.NegotiatedSerializer = NewNoProtobufSerializer(Codecs) var ( osFs = afero.NewOsFs() @@ -176,8 +168,6 @@ func (c completedConfig) New() (*WardleServer, error) { "networkneighborhoods": ep(networkneighborhood.NewREST, networkNeighborhoodStorageImpl), "networkneighborses": ep(networkneighbors.NewREST), "openvulnerabilityexchangecontainers": ep(openvulnerabilityexchange.NewREST), - "sbomspdxv2p3filtereds": ep(sbomspdxv2p3filteredstorage.NewREST), - "sbomspdxv2p3s": ep(sbomspdxv2p3storage.NewREST), "sbomsyftfiltereds": ep(sbomsyftfiltereds.NewREST), "sbomsyfts": ep(sbomsyfts.NewREST), "seccompprofiles": ep(seccompprofiles.NewREST), diff --git a/pkg/apiserver/serializer.go b/pkg/apiserver/serializer.go deleted file mode 100644 index 9a404bb45..000000000 --- a/pkg/apiserver/serializer.go +++ /dev/null @@ -1,26 +0,0 @@ -package apiserver - -import ( - "k8s.io/apimachinery/pkg/runtime" -) - -// NewNoProtobufSerializer returns a decorated originalSerializer that will reject the Protobuf content type. -func NewNoProtobufSerializer(originalSerializer runtime.NegotiatedSerializer) runtime.NegotiatedSerializer { - return noProtobufNegotiatedSerializer{NegotiatedSerializer: originalSerializer} -} - -// noProtobufNegotiatedSerializer is a negotiated seriazlier that rejects the Protobuf content type -type noProtobufNegotiatedSerializer struct { - runtime.NegotiatedSerializer -} - -func (s noProtobufNegotiatedSerializer) SupportedMediaTypes() []runtime.SerializerInfo { - base := s.NegotiatedSerializer.SupportedMediaTypes() - filtered := []runtime.SerializerInfo{} - for _, info := range base { - if info.MediaType != runtime.ContentTypeProtobuf { - filtered = append(filtered, info) - } - } - return filtered -} diff --git a/pkg/apiserver/serializer_test.go b/pkg/apiserver/serializer_test.go deleted file mode 100644 index 9334b5900..000000000 --- a/pkg/apiserver/serializer_test.go +++ /dev/null @@ -1,89 +0,0 @@ -package apiserver - -import ( - "testing" - - "github.com/stretchr/testify/assert" - "k8s.io/apimachinery/pkg/runtime" -) - -type stubSerializer struct { - supportedTypes []runtime.SerializerInfo -} - -func newStubSerializer(supportedTypes []runtime.SerializerInfo) *stubSerializer { - return &stubSerializer{supportedTypes: supportedTypes} -} - -func (s *stubSerializer) SupportedMediaTypes() []runtime.SerializerInfo { - return s.supportedTypes -} - -func (s *stubSerializer) EncoderForVersion(serializer runtime.Encoder, gv runtime.GroupVersioner) runtime.Encoder { - return nil -} - -func (s *stubSerializer) DecoderToVersion(serializer runtime.Decoder, gv runtime.GroupVersioner) runtime.Decoder { - return nil -} - -func TestNoProtobufSerializerSupportedMediaTypes(t *testing.T) { - tt := []struct { - name string - originalContentTypes []runtime.SerializerInfo - wantContentTypes []runtime.SerializerInfo - wantStrictlyEqual bool - }{ - { - name: "Wrapping an original Protobuf-only serializer should return no supported types", - originalContentTypes: []runtime.SerializerInfo{ - {MediaType: runtime.ContentTypeProtobuf}, - }, - wantContentTypes: []runtime.SerializerInfo{}, - }, - { - name: "Wrapping an original serializer should return original types", - originalContentTypes: []runtime.SerializerInfo{ - {MediaType: runtime.ContentTypeProtobuf}, - {MediaType: runtime.ContentTypeJSON}, - {MediaType: runtime.ContentTypeYAML}, - }, - wantContentTypes: []runtime.SerializerInfo{ - {MediaType: runtime.ContentTypeJSON}, - {MediaType: runtime.ContentTypeYAML}, - }, - }, - { - name: "Wrapping an original serializer with no Protobuf returns a slice matching the original", - originalContentTypes: []runtime.SerializerInfo{ - {MediaType: runtime.ContentTypeJSON}, - {MediaType: runtime.ContentTypeYAML}, - }, - wantContentTypes: []runtime.SerializerInfo{ - {MediaType: runtime.ContentTypeJSON}, - {MediaType: runtime.ContentTypeYAML}, - }, - wantStrictlyEqual: false, - }, - { - name: "Wrapping an original serializer with no supported types returns an empty slice", - originalContentTypes: []runtime.SerializerInfo{}, - wantContentTypes: []runtime.SerializerInfo{}, - wantStrictlyEqual: true, - }, - } - - for _, tc := range tt { - t.Run(tc.name, func(t *testing.T) { - originalSerializer := newStubSerializer(tc.originalContentTypes) - s := NewNoProtobufSerializer(originalSerializer) - - got := s.SupportedMediaTypes() - - assert.ElementsMatch(t, tc.wantContentTypes, got) - if tc.wantStrictlyEqual { - assert.Equal(t, tc.wantContentTypes, got) - } - }) - } -} diff --git a/pkg/generated/clientset/versioned/typed/softwarecomposition/v1beta1/fake/fake_sbomspdxv2p3.go b/pkg/generated/clientset/versioned/typed/softwarecomposition/v1beta1/fake/fake_sbomspdxv2p3.go deleted file mode 100644 index 3ce3598f9..000000000 --- a/pkg/generated/clientset/versioned/typed/softwarecomposition/v1beta1/fake/fake_sbomspdxv2p3.go +++ /dev/null @@ -1,141 +0,0 @@ -/* -Copyright The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1beta1 "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeSBOMSPDXv2p3s implements SBOMSPDXv2p3Interface -type FakeSBOMSPDXv2p3s struct { - Fake *FakeSpdxV1beta1 - ns string -} - -var sbomspdxv2p3sResource = v1beta1.SchemeGroupVersion.WithResource("sbomspdxv2p3s") - -var sbomspdxv2p3sKind = v1beta1.SchemeGroupVersion.WithKind("SBOMSPDXv2p3") - -// Get takes name of the sBOMSPDXv2p3, and returns the corresponding sBOMSPDXv2p3 object, and an error if there is any. -func (c *FakeSBOMSPDXv2p3s) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.SBOMSPDXv2p3, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(sbomspdxv2p3sResource, c.ns, name), &v1beta1.SBOMSPDXv2p3{}) - - if obj == nil { - return nil, err - } - return obj.(*v1beta1.SBOMSPDXv2p3), err -} - -// List takes label and field selectors, and returns the list of SBOMSPDXv2p3s that match those selectors. -func (c *FakeSBOMSPDXv2p3s) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.SBOMSPDXv2p3List, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(sbomspdxv2p3sResource, sbomspdxv2p3sKind, c.ns, opts), &v1beta1.SBOMSPDXv2p3List{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1beta1.SBOMSPDXv2p3List{ListMeta: obj.(*v1beta1.SBOMSPDXv2p3List).ListMeta} - for _, item := range obj.(*v1beta1.SBOMSPDXv2p3List).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested sBOMSPDXv2p3s. -func (c *FakeSBOMSPDXv2p3s) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(sbomspdxv2p3sResource, c.ns, opts)) - -} - -// Create takes the representation of a sBOMSPDXv2p3 and creates it. Returns the server's representation of the sBOMSPDXv2p3, and an error, if there is any. -func (c *FakeSBOMSPDXv2p3s) Create(ctx context.Context, sBOMSPDXv2p3 *v1beta1.SBOMSPDXv2p3, opts v1.CreateOptions) (result *v1beta1.SBOMSPDXv2p3, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(sbomspdxv2p3sResource, c.ns, sBOMSPDXv2p3), &v1beta1.SBOMSPDXv2p3{}) - - if obj == nil { - return nil, err - } - return obj.(*v1beta1.SBOMSPDXv2p3), err -} - -// Update takes the representation of a sBOMSPDXv2p3 and updates it. Returns the server's representation of the sBOMSPDXv2p3, and an error, if there is any. -func (c *FakeSBOMSPDXv2p3s) Update(ctx context.Context, sBOMSPDXv2p3 *v1beta1.SBOMSPDXv2p3, opts v1.UpdateOptions) (result *v1beta1.SBOMSPDXv2p3, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(sbomspdxv2p3sResource, c.ns, sBOMSPDXv2p3), &v1beta1.SBOMSPDXv2p3{}) - - if obj == nil { - return nil, err - } - return obj.(*v1beta1.SBOMSPDXv2p3), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeSBOMSPDXv2p3s) UpdateStatus(ctx context.Context, sBOMSPDXv2p3 *v1beta1.SBOMSPDXv2p3, opts v1.UpdateOptions) (*v1beta1.SBOMSPDXv2p3, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(sbomspdxv2p3sResource, "status", c.ns, sBOMSPDXv2p3), &v1beta1.SBOMSPDXv2p3{}) - - if obj == nil { - return nil, err - } - return obj.(*v1beta1.SBOMSPDXv2p3), err -} - -// Delete takes name of the sBOMSPDXv2p3 and deletes it. Returns an error if one occurs. -func (c *FakeSBOMSPDXv2p3s) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(sbomspdxv2p3sResource, c.ns, name, opts), &v1beta1.SBOMSPDXv2p3{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeSBOMSPDXv2p3s) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(sbomspdxv2p3sResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1beta1.SBOMSPDXv2p3List{}) - return err -} - -// Patch applies the patch and returns the patched sBOMSPDXv2p3. -func (c *FakeSBOMSPDXv2p3s) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.SBOMSPDXv2p3, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(sbomspdxv2p3sResource, c.ns, name, pt, data, subresources...), &v1beta1.SBOMSPDXv2p3{}) - - if obj == nil { - return nil, err - } - return obj.(*v1beta1.SBOMSPDXv2p3), err -} diff --git a/pkg/generated/clientset/versioned/typed/softwarecomposition/v1beta1/fake/fake_sbomspdxv2p3filtered.go b/pkg/generated/clientset/versioned/typed/softwarecomposition/v1beta1/fake/fake_sbomspdxv2p3filtered.go deleted file mode 100644 index f44322a89..000000000 --- a/pkg/generated/clientset/versioned/typed/softwarecomposition/v1beta1/fake/fake_sbomspdxv2p3filtered.go +++ /dev/null @@ -1,141 +0,0 @@ -/* -Copyright The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1beta1 "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeSBOMSPDXv2p3Filtereds implements SBOMSPDXv2p3FilteredInterface -type FakeSBOMSPDXv2p3Filtereds struct { - Fake *FakeSpdxV1beta1 - ns string -} - -var sbomspdxv2p3filteredsResource = v1beta1.SchemeGroupVersion.WithResource("sbomspdxv2p3filtereds") - -var sbomspdxv2p3filteredsKind = v1beta1.SchemeGroupVersion.WithKind("SBOMSPDXv2p3Filtered") - -// Get takes name of the sBOMSPDXv2p3Filtered, and returns the corresponding sBOMSPDXv2p3Filtered object, and an error if there is any. -func (c *FakeSBOMSPDXv2p3Filtereds) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.SBOMSPDXv2p3Filtered, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(sbomspdxv2p3filteredsResource, c.ns, name), &v1beta1.SBOMSPDXv2p3Filtered{}) - - if obj == nil { - return nil, err - } - return obj.(*v1beta1.SBOMSPDXv2p3Filtered), err -} - -// List takes label and field selectors, and returns the list of SBOMSPDXv2p3Filtereds that match those selectors. -func (c *FakeSBOMSPDXv2p3Filtereds) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.SBOMSPDXv2p3FilteredList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(sbomspdxv2p3filteredsResource, sbomspdxv2p3filteredsKind, c.ns, opts), &v1beta1.SBOMSPDXv2p3FilteredList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1beta1.SBOMSPDXv2p3FilteredList{ListMeta: obj.(*v1beta1.SBOMSPDXv2p3FilteredList).ListMeta} - for _, item := range obj.(*v1beta1.SBOMSPDXv2p3FilteredList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested sBOMSPDXv2p3Filtereds. -func (c *FakeSBOMSPDXv2p3Filtereds) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(sbomspdxv2p3filteredsResource, c.ns, opts)) - -} - -// Create takes the representation of a sBOMSPDXv2p3Filtered and creates it. Returns the server's representation of the sBOMSPDXv2p3Filtered, and an error, if there is any. -func (c *FakeSBOMSPDXv2p3Filtereds) Create(ctx context.Context, sBOMSPDXv2p3Filtered *v1beta1.SBOMSPDXv2p3Filtered, opts v1.CreateOptions) (result *v1beta1.SBOMSPDXv2p3Filtered, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(sbomspdxv2p3filteredsResource, c.ns, sBOMSPDXv2p3Filtered), &v1beta1.SBOMSPDXv2p3Filtered{}) - - if obj == nil { - return nil, err - } - return obj.(*v1beta1.SBOMSPDXv2p3Filtered), err -} - -// Update takes the representation of a sBOMSPDXv2p3Filtered and updates it. Returns the server's representation of the sBOMSPDXv2p3Filtered, and an error, if there is any. -func (c *FakeSBOMSPDXv2p3Filtereds) Update(ctx context.Context, sBOMSPDXv2p3Filtered *v1beta1.SBOMSPDXv2p3Filtered, opts v1.UpdateOptions) (result *v1beta1.SBOMSPDXv2p3Filtered, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(sbomspdxv2p3filteredsResource, c.ns, sBOMSPDXv2p3Filtered), &v1beta1.SBOMSPDXv2p3Filtered{}) - - if obj == nil { - return nil, err - } - return obj.(*v1beta1.SBOMSPDXv2p3Filtered), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeSBOMSPDXv2p3Filtereds) UpdateStatus(ctx context.Context, sBOMSPDXv2p3Filtered *v1beta1.SBOMSPDXv2p3Filtered, opts v1.UpdateOptions) (*v1beta1.SBOMSPDXv2p3Filtered, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(sbomspdxv2p3filteredsResource, "status", c.ns, sBOMSPDXv2p3Filtered), &v1beta1.SBOMSPDXv2p3Filtered{}) - - if obj == nil { - return nil, err - } - return obj.(*v1beta1.SBOMSPDXv2p3Filtered), err -} - -// Delete takes name of the sBOMSPDXv2p3Filtered and deletes it. Returns an error if one occurs. -func (c *FakeSBOMSPDXv2p3Filtereds) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(sbomspdxv2p3filteredsResource, c.ns, name, opts), &v1beta1.SBOMSPDXv2p3Filtered{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeSBOMSPDXv2p3Filtereds) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(sbomspdxv2p3filteredsResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1beta1.SBOMSPDXv2p3FilteredList{}) - return err -} - -// Patch applies the patch and returns the patched sBOMSPDXv2p3Filtered. -func (c *FakeSBOMSPDXv2p3Filtereds) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.SBOMSPDXv2p3Filtered, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(sbomspdxv2p3filteredsResource, c.ns, name, pt, data, subresources...), &v1beta1.SBOMSPDXv2p3Filtered{}) - - if obj == nil { - return nil, err - } - return obj.(*v1beta1.SBOMSPDXv2p3Filtered), err -} diff --git a/pkg/generated/clientset/versioned/typed/softwarecomposition/v1beta1/fake/fake_softwarecomposition_client.go b/pkg/generated/clientset/versioned/typed/softwarecomposition/v1beta1/fake/fake_softwarecomposition_client.go index bcfd828a9..0c02ebb4d 100644 --- a/pkg/generated/clientset/versioned/typed/softwarecomposition/v1beta1/fake/fake_softwarecomposition_client.go +++ b/pkg/generated/clientset/versioned/typed/softwarecomposition/v1beta1/fake/fake_softwarecomposition_client.go @@ -60,14 +60,6 @@ func (c *FakeSpdxV1beta1) OpenVulnerabilityExchangeContainers(namespace string) return &FakeOpenVulnerabilityExchangeContainers{c, namespace} } -func (c *FakeSpdxV1beta1) SBOMSPDXv2p3s(namespace string) v1beta1.SBOMSPDXv2p3Interface { - return &FakeSBOMSPDXv2p3s{c, namespace} -} - -func (c *FakeSpdxV1beta1) SBOMSPDXv2p3Filtereds(namespace string) v1beta1.SBOMSPDXv2p3FilteredInterface { - return &FakeSBOMSPDXv2p3Filtereds{c, namespace} -} - func (c *FakeSpdxV1beta1) SBOMSyfts(namespace string) v1beta1.SBOMSyftInterface { return &FakeSBOMSyfts{c, namespace} } diff --git a/pkg/generated/clientset/versioned/typed/softwarecomposition/v1beta1/generated_expansion.go b/pkg/generated/clientset/versioned/typed/softwarecomposition/v1beta1/generated_expansion.go index 6246f76fc..130b7055e 100644 --- a/pkg/generated/clientset/versioned/typed/softwarecomposition/v1beta1/generated_expansion.go +++ b/pkg/generated/clientset/versioned/typed/softwarecomposition/v1beta1/generated_expansion.go @@ -34,10 +34,6 @@ type NetworkNeighborsExpansion interface{} type OpenVulnerabilityExchangeContainerExpansion interface{} -type SBOMSPDXv2p3Expansion interface{} - -type SBOMSPDXv2p3FilteredExpansion interface{} - type SBOMSyftExpansion interface{} type SBOMSyftFilteredExpansion interface{} diff --git a/pkg/generated/clientset/versioned/typed/softwarecomposition/v1beta1/sbomspdxv2p3.go b/pkg/generated/clientset/versioned/typed/softwarecomposition/v1beta1/sbomspdxv2p3.go deleted file mode 100644 index 25a13e7f8..000000000 --- a/pkg/generated/clientset/versioned/typed/softwarecomposition/v1beta1/sbomspdxv2p3.go +++ /dev/null @@ -1,195 +0,0 @@ -/* -Copyright The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1beta1 - -import ( - "context" - "time" - - v1beta1 "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1" - scheme "github.com/kubescape/storage/pkg/generated/clientset/versioned/scheme" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// SBOMSPDXv2p3sGetter has a method to return a SBOMSPDXv2p3Interface. -// A group's client should implement this interface. -type SBOMSPDXv2p3sGetter interface { - SBOMSPDXv2p3s(namespace string) SBOMSPDXv2p3Interface -} - -// SBOMSPDXv2p3Interface has methods to work with SBOMSPDXv2p3 resources. -type SBOMSPDXv2p3Interface interface { - Create(ctx context.Context, sBOMSPDXv2p3 *v1beta1.SBOMSPDXv2p3, opts v1.CreateOptions) (*v1beta1.SBOMSPDXv2p3, error) - Update(ctx context.Context, sBOMSPDXv2p3 *v1beta1.SBOMSPDXv2p3, opts v1.UpdateOptions) (*v1beta1.SBOMSPDXv2p3, error) - UpdateStatus(ctx context.Context, sBOMSPDXv2p3 *v1beta1.SBOMSPDXv2p3, opts v1.UpdateOptions) (*v1beta1.SBOMSPDXv2p3, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1beta1.SBOMSPDXv2p3, error) - List(ctx context.Context, opts v1.ListOptions) (*v1beta1.SBOMSPDXv2p3List, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.SBOMSPDXv2p3, err error) - SBOMSPDXv2p3Expansion -} - -// sBOMSPDXv2p3s implements SBOMSPDXv2p3Interface -type sBOMSPDXv2p3s struct { - client rest.Interface - ns string -} - -// newSBOMSPDXv2p3s returns a SBOMSPDXv2p3s -func newSBOMSPDXv2p3s(c *SpdxV1beta1Client, namespace string) *sBOMSPDXv2p3s { - return &sBOMSPDXv2p3s{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the sBOMSPDXv2p3, and returns the corresponding sBOMSPDXv2p3 object, and an error if there is any. -func (c *sBOMSPDXv2p3s) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.SBOMSPDXv2p3, err error) { - result = &v1beta1.SBOMSPDXv2p3{} - err = c.client.Get(). - Namespace(c.ns). - Resource("sbomspdxv2p3s"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of SBOMSPDXv2p3s that match those selectors. -func (c *sBOMSPDXv2p3s) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.SBOMSPDXv2p3List, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1beta1.SBOMSPDXv2p3List{} - err = c.client.Get(). - Namespace(c.ns). - Resource("sbomspdxv2p3s"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested sBOMSPDXv2p3s. -func (c *sBOMSPDXv2p3s) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("sbomspdxv2p3s"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a sBOMSPDXv2p3 and creates it. Returns the server's representation of the sBOMSPDXv2p3, and an error, if there is any. -func (c *sBOMSPDXv2p3s) Create(ctx context.Context, sBOMSPDXv2p3 *v1beta1.SBOMSPDXv2p3, opts v1.CreateOptions) (result *v1beta1.SBOMSPDXv2p3, err error) { - result = &v1beta1.SBOMSPDXv2p3{} - err = c.client.Post(). - Namespace(c.ns). - Resource("sbomspdxv2p3s"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(sBOMSPDXv2p3). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a sBOMSPDXv2p3 and updates it. Returns the server's representation of the sBOMSPDXv2p3, and an error, if there is any. -func (c *sBOMSPDXv2p3s) Update(ctx context.Context, sBOMSPDXv2p3 *v1beta1.SBOMSPDXv2p3, opts v1.UpdateOptions) (result *v1beta1.SBOMSPDXv2p3, err error) { - result = &v1beta1.SBOMSPDXv2p3{} - err = c.client.Put(). - Namespace(c.ns). - Resource("sbomspdxv2p3s"). - Name(sBOMSPDXv2p3.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(sBOMSPDXv2p3). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *sBOMSPDXv2p3s) UpdateStatus(ctx context.Context, sBOMSPDXv2p3 *v1beta1.SBOMSPDXv2p3, opts v1.UpdateOptions) (result *v1beta1.SBOMSPDXv2p3, err error) { - result = &v1beta1.SBOMSPDXv2p3{} - err = c.client.Put(). - Namespace(c.ns). - Resource("sbomspdxv2p3s"). - Name(sBOMSPDXv2p3.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(sBOMSPDXv2p3). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the sBOMSPDXv2p3 and deletes it. Returns an error if one occurs. -func (c *sBOMSPDXv2p3s) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("sbomspdxv2p3s"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *sBOMSPDXv2p3s) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("sbomspdxv2p3s"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched sBOMSPDXv2p3. -func (c *sBOMSPDXv2p3s) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.SBOMSPDXv2p3, err error) { - result = &v1beta1.SBOMSPDXv2p3{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("sbomspdxv2p3s"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/pkg/generated/clientset/versioned/typed/softwarecomposition/v1beta1/sbomspdxv2p3filtered.go b/pkg/generated/clientset/versioned/typed/softwarecomposition/v1beta1/sbomspdxv2p3filtered.go deleted file mode 100644 index c64199307..000000000 --- a/pkg/generated/clientset/versioned/typed/softwarecomposition/v1beta1/sbomspdxv2p3filtered.go +++ /dev/null @@ -1,195 +0,0 @@ -/* -Copyright The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1beta1 - -import ( - "context" - "time" - - v1beta1 "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1" - scheme "github.com/kubescape/storage/pkg/generated/clientset/versioned/scheme" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// SBOMSPDXv2p3FilteredsGetter has a method to return a SBOMSPDXv2p3FilteredInterface. -// A group's client should implement this interface. -type SBOMSPDXv2p3FilteredsGetter interface { - SBOMSPDXv2p3Filtereds(namespace string) SBOMSPDXv2p3FilteredInterface -} - -// SBOMSPDXv2p3FilteredInterface has methods to work with SBOMSPDXv2p3Filtered resources. -type SBOMSPDXv2p3FilteredInterface interface { - Create(ctx context.Context, sBOMSPDXv2p3Filtered *v1beta1.SBOMSPDXv2p3Filtered, opts v1.CreateOptions) (*v1beta1.SBOMSPDXv2p3Filtered, error) - Update(ctx context.Context, sBOMSPDXv2p3Filtered *v1beta1.SBOMSPDXv2p3Filtered, opts v1.UpdateOptions) (*v1beta1.SBOMSPDXv2p3Filtered, error) - UpdateStatus(ctx context.Context, sBOMSPDXv2p3Filtered *v1beta1.SBOMSPDXv2p3Filtered, opts v1.UpdateOptions) (*v1beta1.SBOMSPDXv2p3Filtered, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1beta1.SBOMSPDXv2p3Filtered, error) - List(ctx context.Context, opts v1.ListOptions) (*v1beta1.SBOMSPDXv2p3FilteredList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.SBOMSPDXv2p3Filtered, err error) - SBOMSPDXv2p3FilteredExpansion -} - -// sBOMSPDXv2p3Filtereds implements SBOMSPDXv2p3FilteredInterface -type sBOMSPDXv2p3Filtereds struct { - client rest.Interface - ns string -} - -// newSBOMSPDXv2p3Filtereds returns a SBOMSPDXv2p3Filtereds -func newSBOMSPDXv2p3Filtereds(c *SpdxV1beta1Client, namespace string) *sBOMSPDXv2p3Filtereds { - return &sBOMSPDXv2p3Filtereds{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the sBOMSPDXv2p3Filtered, and returns the corresponding sBOMSPDXv2p3Filtered object, and an error if there is any. -func (c *sBOMSPDXv2p3Filtereds) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.SBOMSPDXv2p3Filtered, err error) { - result = &v1beta1.SBOMSPDXv2p3Filtered{} - err = c.client.Get(). - Namespace(c.ns). - Resource("sbomspdxv2p3filtereds"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of SBOMSPDXv2p3Filtereds that match those selectors. -func (c *sBOMSPDXv2p3Filtereds) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.SBOMSPDXv2p3FilteredList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1beta1.SBOMSPDXv2p3FilteredList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("sbomspdxv2p3filtereds"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested sBOMSPDXv2p3Filtereds. -func (c *sBOMSPDXv2p3Filtereds) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("sbomspdxv2p3filtereds"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a sBOMSPDXv2p3Filtered and creates it. Returns the server's representation of the sBOMSPDXv2p3Filtered, and an error, if there is any. -func (c *sBOMSPDXv2p3Filtereds) Create(ctx context.Context, sBOMSPDXv2p3Filtered *v1beta1.SBOMSPDXv2p3Filtered, opts v1.CreateOptions) (result *v1beta1.SBOMSPDXv2p3Filtered, err error) { - result = &v1beta1.SBOMSPDXv2p3Filtered{} - err = c.client.Post(). - Namespace(c.ns). - Resource("sbomspdxv2p3filtereds"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(sBOMSPDXv2p3Filtered). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a sBOMSPDXv2p3Filtered and updates it. Returns the server's representation of the sBOMSPDXv2p3Filtered, and an error, if there is any. -func (c *sBOMSPDXv2p3Filtereds) Update(ctx context.Context, sBOMSPDXv2p3Filtered *v1beta1.SBOMSPDXv2p3Filtered, opts v1.UpdateOptions) (result *v1beta1.SBOMSPDXv2p3Filtered, err error) { - result = &v1beta1.SBOMSPDXv2p3Filtered{} - err = c.client.Put(). - Namespace(c.ns). - Resource("sbomspdxv2p3filtereds"). - Name(sBOMSPDXv2p3Filtered.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(sBOMSPDXv2p3Filtered). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *sBOMSPDXv2p3Filtereds) UpdateStatus(ctx context.Context, sBOMSPDXv2p3Filtered *v1beta1.SBOMSPDXv2p3Filtered, opts v1.UpdateOptions) (result *v1beta1.SBOMSPDXv2p3Filtered, err error) { - result = &v1beta1.SBOMSPDXv2p3Filtered{} - err = c.client.Put(). - Namespace(c.ns). - Resource("sbomspdxv2p3filtereds"). - Name(sBOMSPDXv2p3Filtered.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(sBOMSPDXv2p3Filtered). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the sBOMSPDXv2p3Filtered and deletes it. Returns an error if one occurs. -func (c *sBOMSPDXv2p3Filtereds) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("sbomspdxv2p3filtereds"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *sBOMSPDXv2p3Filtereds) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("sbomspdxv2p3filtereds"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched sBOMSPDXv2p3Filtered. -func (c *sBOMSPDXv2p3Filtereds) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.SBOMSPDXv2p3Filtered, err error) { - result = &v1beta1.SBOMSPDXv2p3Filtered{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("sbomspdxv2p3filtereds"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/pkg/generated/clientset/versioned/typed/softwarecomposition/v1beta1/softwarecomposition_client.go b/pkg/generated/clientset/versioned/typed/softwarecomposition/v1beta1/softwarecomposition_client.go index 17de7853f..c5002b879 100644 --- a/pkg/generated/clientset/versioned/typed/softwarecomposition/v1beta1/softwarecomposition_client.go +++ b/pkg/generated/clientset/versioned/typed/softwarecomposition/v1beta1/softwarecomposition_client.go @@ -36,8 +36,6 @@ type SpdxV1beta1Interface interface { NetworkNeighborhoodsGetter NetworkNeighborsesGetter OpenVulnerabilityExchangeContainersGetter - SBOMSPDXv2p3sGetter - SBOMSPDXv2p3FilteredsGetter SBOMSyftsGetter SBOMSyftFilteredsGetter SeccompProfilesGetter @@ -85,14 +83,6 @@ func (c *SpdxV1beta1Client) OpenVulnerabilityExchangeContainers(namespace string return newOpenVulnerabilityExchangeContainers(c, namespace) } -func (c *SpdxV1beta1Client) SBOMSPDXv2p3s(namespace string) SBOMSPDXv2p3Interface { - return newSBOMSPDXv2p3s(c, namespace) -} - -func (c *SpdxV1beta1Client) SBOMSPDXv2p3Filtereds(namespace string) SBOMSPDXv2p3FilteredInterface { - return newSBOMSPDXv2p3Filtereds(c, namespace) -} - func (c *SpdxV1beta1Client) SBOMSyfts(namespace string) SBOMSyftInterface { return newSBOMSyfts(c, namespace) } diff --git a/pkg/generated/informers/externalversions/generic.go b/pkg/generated/informers/externalversions/generic.go index 8f168204e..aa4077333 100644 --- a/pkg/generated/informers/externalversions/generic.go +++ b/pkg/generated/informers/externalversions/generic.go @@ -69,10 +69,6 @@ func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource return &genericInformer{resource: resource.GroupResource(), informer: f.Spdx().V1beta1().NetworkNeighborses().Informer()}, nil case v1beta1.SchemeGroupVersion.WithResource("openvulnerabilityexchangecontainers"): return &genericInformer{resource: resource.GroupResource(), informer: f.Spdx().V1beta1().OpenVulnerabilityExchangeContainers().Informer()}, nil - case v1beta1.SchemeGroupVersion.WithResource("sbomspdxv2p3s"): - return &genericInformer{resource: resource.GroupResource(), informer: f.Spdx().V1beta1().SBOMSPDXv2p3s().Informer()}, nil - case v1beta1.SchemeGroupVersion.WithResource("sbomspdxv2p3filtereds"): - return &genericInformer{resource: resource.GroupResource(), informer: f.Spdx().V1beta1().SBOMSPDXv2p3Filtereds().Informer()}, nil case v1beta1.SchemeGroupVersion.WithResource("sbomsyfts"): return &genericInformer{resource: resource.GroupResource(), informer: f.Spdx().V1beta1().SBOMSyfts().Informer()}, nil case v1beta1.SchemeGroupVersion.WithResource("sbomsyftfiltereds"): diff --git a/pkg/generated/informers/externalversions/softwarecomposition/v1beta1/interface.go b/pkg/generated/informers/externalversions/softwarecomposition/v1beta1/interface.go index 6f714574e..c1b6efab4 100644 --- a/pkg/generated/informers/externalversions/softwarecomposition/v1beta1/interface.go +++ b/pkg/generated/informers/externalversions/softwarecomposition/v1beta1/interface.go @@ -40,10 +40,6 @@ type Interface interface { NetworkNeighborses() NetworkNeighborsInformer // OpenVulnerabilityExchangeContainers returns a OpenVulnerabilityExchangeContainerInformer. OpenVulnerabilityExchangeContainers() OpenVulnerabilityExchangeContainerInformer - // SBOMSPDXv2p3s returns a SBOMSPDXv2p3Informer. - SBOMSPDXv2p3s() SBOMSPDXv2p3Informer - // SBOMSPDXv2p3Filtereds returns a SBOMSPDXv2p3FilteredInformer. - SBOMSPDXv2p3Filtereds() SBOMSPDXv2p3FilteredInformer // SBOMSyfts returns a SBOMSyftInformer. SBOMSyfts() SBOMSyftInformer // SBOMSyftFiltereds returns a SBOMSyftFilteredInformer. @@ -113,16 +109,6 @@ func (v *version) OpenVulnerabilityExchangeContainers() OpenVulnerabilityExchang return &openVulnerabilityExchangeContainerInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} } -// SBOMSPDXv2p3s returns a SBOMSPDXv2p3Informer. -func (v *version) SBOMSPDXv2p3s() SBOMSPDXv2p3Informer { - return &sBOMSPDXv2p3Informer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} -} - -// SBOMSPDXv2p3Filtereds returns a SBOMSPDXv2p3FilteredInformer. -func (v *version) SBOMSPDXv2p3Filtereds() SBOMSPDXv2p3FilteredInformer { - return &sBOMSPDXv2p3FilteredInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} -} - // SBOMSyfts returns a SBOMSyftInformer. func (v *version) SBOMSyfts() SBOMSyftInformer { return &sBOMSyftInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} diff --git a/pkg/generated/informers/externalversions/softwarecomposition/v1beta1/sbomspdxv2p3.go b/pkg/generated/informers/externalversions/softwarecomposition/v1beta1/sbomspdxv2p3.go deleted file mode 100644 index f62378d65..000000000 --- a/pkg/generated/informers/externalversions/softwarecomposition/v1beta1/sbomspdxv2p3.go +++ /dev/null @@ -1,90 +0,0 @@ -/* -Copyright The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by informer-gen. DO NOT EDIT. - -package v1beta1 - -import ( - "context" - time "time" - - softwarecompositionv1beta1 "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1" - versioned "github.com/kubescape/storage/pkg/generated/clientset/versioned" - internalinterfaces "github.com/kubescape/storage/pkg/generated/informers/externalversions/internalinterfaces" - v1beta1 "github.com/kubescape/storage/pkg/generated/listers/softwarecomposition/v1beta1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - runtime "k8s.io/apimachinery/pkg/runtime" - watch "k8s.io/apimachinery/pkg/watch" - cache "k8s.io/client-go/tools/cache" -) - -// SBOMSPDXv2p3Informer provides access to a shared informer and lister for -// SBOMSPDXv2p3s. -type SBOMSPDXv2p3Informer interface { - Informer() cache.SharedIndexInformer - Lister() v1beta1.SBOMSPDXv2p3Lister -} - -type sBOMSPDXv2p3Informer struct { - factory internalinterfaces.SharedInformerFactory - tweakListOptions internalinterfaces.TweakListOptionsFunc - namespace string -} - -// NewSBOMSPDXv2p3Informer constructs a new informer for SBOMSPDXv2p3 type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewSBOMSPDXv2p3Informer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredSBOMSPDXv2p3Informer(client, namespace, resyncPeriod, indexers, nil) -} - -// NewFilteredSBOMSPDXv2p3Informer constructs a new informer for SBOMSPDXv2p3 type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewFilteredSBOMSPDXv2p3Informer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( - &cache.ListWatch{ - ListFunc: func(options v1.ListOptions) (runtime.Object, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.SpdxV1beta1().SBOMSPDXv2p3s(namespace).List(context.TODO(), options) - }, - WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.SpdxV1beta1().SBOMSPDXv2p3s(namespace).Watch(context.TODO(), options) - }, - }, - &softwarecompositionv1beta1.SBOMSPDXv2p3{}, - resyncPeriod, - indexers, - ) -} - -func (f *sBOMSPDXv2p3Informer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredSBOMSPDXv2p3Informer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) -} - -func (f *sBOMSPDXv2p3Informer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&softwarecompositionv1beta1.SBOMSPDXv2p3{}, f.defaultInformer) -} - -func (f *sBOMSPDXv2p3Informer) Lister() v1beta1.SBOMSPDXv2p3Lister { - return v1beta1.NewSBOMSPDXv2p3Lister(f.Informer().GetIndexer()) -} diff --git a/pkg/generated/informers/externalversions/softwarecomposition/v1beta1/sbomspdxv2p3filtered.go b/pkg/generated/informers/externalversions/softwarecomposition/v1beta1/sbomspdxv2p3filtered.go deleted file mode 100644 index 8c12dc66c..000000000 --- a/pkg/generated/informers/externalversions/softwarecomposition/v1beta1/sbomspdxv2p3filtered.go +++ /dev/null @@ -1,90 +0,0 @@ -/* -Copyright The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by informer-gen. DO NOT EDIT. - -package v1beta1 - -import ( - "context" - time "time" - - softwarecompositionv1beta1 "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1" - versioned "github.com/kubescape/storage/pkg/generated/clientset/versioned" - internalinterfaces "github.com/kubescape/storage/pkg/generated/informers/externalversions/internalinterfaces" - v1beta1 "github.com/kubescape/storage/pkg/generated/listers/softwarecomposition/v1beta1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - runtime "k8s.io/apimachinery/pkg/runtime" - watch "k8s.io/apimachinery/pkg/watch" - cache "k8s.io/client-go/tools/cache" -) - -// SBOMSPDXv2p3FilteredInformer provides access to a shared informer and lister for -// SBOMSPDXv2p3Filtereds. -type SBOMSPDXv2p3FilteredInformer interface { - Informer() cache.SharedIndexInformer - Lister() v1beta1.SBOMSPDXv2p3FilteredLister -} - -type sBOMSPDXv2p3FilteredInformer struct { - factory internalinterfaces.SharedInformerFactory - tweakListOptions internalinterfaces.TweakListOptionsFunc - namespace string -} - -// NewSBOMSPDXv2p3FilteredInformer constructs a new informer for SBOMSPDXv2p3Filtered type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewSBOMSPDXv2p3FilteredInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredSBOMSPDXv2p3FilteredInformer(client, namespace, resyncPeriod, indexers, nil) -} - -// NewFilteredSBOMSPDXv2p3FilteredInformer constructs a new informer for SBOMSPDXv2p3Filtered type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewFilteredSBOMSPDXv2p3FilteredInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( - &cache.ListWatch{ - ListFunc: func(options v1.ListOptions) (runtime.Object, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.SpdxV1beta1().SBOMSPDXv2p3Filtereds(namespace).List(context.TODO(), options) - }, - WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.SpdxV1beta1().SBOMSPDXv2p3Filtereds(namespace).Watch(context.TODO(), options) - }, - }, - &softwarecompositionv1beta1.SBOMSPDXv2p3Filtered{}, - resyncPeriod, - indexers, - ) -} - -func (f *sBOMSPDXv2p3FilteredInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredSBOMSPDXv2p3FilteredInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) -} - -func (f *sBOMSPDXv2p3FilteredInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&softwarecompositionv1beta1.SBOMSPDXv2p3Filtered{}, f.defaultInformer) -} - -func (f *sBOMSPDXv2p3FilteredInformer) Lister() v1beta1.SBOMSPDXv2p3FilteredLister { - return v1beta1.NewSBOMSPDXv2p3FilteredLister(f.Informer().GetIndexer()) -} diff --git a/pkg/generated/listers/softwarecomposition/v1beta1/expansion_generated.go b/pkg/generated/listers/softwarecomposition/v1beta1/expansion_generated.go index 7241b89f8..f3492e5e0 100644 --- a/pkg/generated/listers/softwarecomposition/v1beta1/expansion_generated.go +++ b/pkg/generated/listers/softwarecomposition/v1beta1/expansion_generated.go @@ -82,22 +82,6 @@ type OpenVulnerabilityExchangeContainerListerExpansion interface{} // OpenVulnerabilityExchangeContainerNamespaceLister. type OpenVulnerabilityExchangeContainerNamespaceListerExpansion interface{} -// SBOMSPDXv2p3ListerExpansion allows custom methods to be added to -// SBOMSPDXv2p3Lister. -type SBOMSPDXv2p3ListerExpansion interface{} - -// SBOMSPDXv2p3NamespaceListerExpansion allows custom methods to be added to -// SBOMSPDXv2p3NamespaceLister. -type SBOMSPDXv2p3NamespaceListerExpansion interface{} - -// SBOMSPDXv2p3FilteredListerExpansion allows custom methods to be added to -// SBOMSPDXv2p3FilteredLister. -type SBOMSPDXv2p3FilteredListerExpansion interface{} - -// SBOMSPDXv2p3FilteredNamespaceListerExpansion allows custom methods to be added to -// SBOMSPDXv2p3FilteredNamespaceLister. -type SBOMSPDXv2p3FilteredNamespaceListerExpansion interface{} - // SBOMSyftListerExpansion allows custom methods to be added to // SBOMSyftLister. type SBOMSyftListerExpansion interface{} diff --git a/pkg/generated/listers/softwarecomposition/v1beta1/sbomspdxv2p3.go b/pkg/generated/listers/softwarecomposition/v1beta1/sbomspdxv2p3.go deleted file mode 100644 index 8c962ac48..000000000 --- a/pkg/generated/listers/softwarecomposition/v1beta1/sbomspdxv2p3.go +++ /dev/null @@ -1,99 +0,0 @@ -/* -Copyright The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by lister-gen. DO NOT EDIT. - -package v1beta1 - -import ( - v1beta1 "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1" - "k8s.io/apimachinery/pkg/api/errors" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/tools/cache" -) - -// SBOMSPDXv2p3Lister helps list SBOMSPDXv2p3s. -// All objects returned here must be treated as read-only. -type SBOMSPDXv2p3Lister interface { - // List lists all SBOMSPDXv2p3s in the indexer. - // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1beta1.SBOMSPDXv2p3, err error) - // SBOMSPDXv2p3s returns an object that can list and get SBOMSPDXv2p3s. - SBOMSPDXv2p3s(namespace string) SBOMSPDXv2p3NamespaceLister - SBOMSPDXv2p3ListerExpansion -} - -// sBOMSPDXv2p3Lister implements the SBOMSPDXv2p3Lister interface. -type sBOMSPDXv2p3Lister struct { - indexer cache.Indexer -} - -// NewSBOMSPDXv2p3Lister returns a new SBOMSPDXv2p3Lister. -func NewSBOMSPDXv2p3Lister(indexer cache.Indexer) SBOMSPDXv2p3Lister { - return &sBOMSPDXv2p3Lister{indexer: indexer} -} - -// List lists all SBOMSPDXv2p3s in the indexer. -func (s *sBOMSPDXv2p3Lister) List(selector labels.Selector) (ret []*v1beta1.SBOMSPDXv2p3, err error) { - err = cache.ListAll(s.indexer, selector, func(m interface{}) { - ret = append(ret, m.(*v1beta1.SBOMSPDXv2p3)) - }) - return ret, err -} - -// SBOMSPDXv2p3s returns an object that can list and get SBOMSPDXv2p3s. -func (s *sBOMSPDXv2p3Lister) SBOMSPDXv2p3s(namespace string) SBOMSPDXv2p3NamespaceLister { - return sBOMSPDXv2p3NamespaceLister{indexer: s.indexer, namespace: namespace} -} - -// SBOMSPDXv2p3NamespaceLister helps list and get SBOMSPDXv2p3s. -// All objects returned here must be treated as read-only. -type SBOMSPDXv2p3NamespaceLister interface { - // List lists all SBOMSPDXv2p3s in the indexer for a given namespace. - // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1beta1.SBOMSPDXv2p3, err error) - // Get retrieves the SBOMSPDXv2p3 from the indexer for a given namespace and name. - // Objects returned here must be treated as read-only. - Get(name string) (*v1beta1.SBOMSPDXv2p3, error) - SBOMSPDXv2p3NamespaceListerExpansion -} - -// sBOMSPDXv2p3NamespaceLister implements the SBOMSPDXv2p3NamespaceLister -// interface. -type sBOMSPDXv2p3NamespaceLister struct { - indexer cache.Indexer - namespace string -} - -// List lists all SBOMSPDXv2p3s in the indexer for a given namespace. -func (s sBOMSPDXv2p3NamespaceLister) List(selector labels.Selector) (ret []*v1beta1.SBOMSPDXv2p3, err error) { - err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) { - ret = append(ret, m.(*v1beta1.SBOMSPDXv2p3)) - }) - return ret, err -} - -// Get retrieves the SBOMSPDXv2p3 from the indexer for a given namespace and name. -func (s sBOMSPDXv2p3NamespaceLister) Get(name string) (*v1beta1.SBOMSPDXv2p3, error) { - obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name) - if err != nil { - return nil, err - } - if !exists { - return nil, errors.NewNotFound(v1beta1.Resource("sbomspdxv2p3"), name) - } - return obj.(*v1beta1.SBOMSPDXv2p3), nil -} diff --git a/pkg/generated/listers/softwarecomposition/v1beta1/sbomspdxv2p3filtered.go b/pkg/generated/listers/softwarecomposition/v1beta1/sbomspdxv2p3filtered.go deleted file mode 100644 index efbe57eeb..000000000 --- a/pkg/generated/listers/softwarecomposition/v1beta1/sbomspdxv2p3filtered.go +++ /dev/null @@ -1,99 +0,0 @@ -/* -Copyright The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by lister-gen. DO NOT EDIT. - -package v1beta1 - -import ( - v1beta1 "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1" - "k8s.io/apimachinery/pkg/api/errors" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/tools/cache" -) - -// SBOMSPDXv2p3FilteredLister helps list SBOMSPDXv2p3Filtereds. -// All objects returned here must be treated as read-only. -type SBOMSPDXv2p3FilteredLister interface { - // List lists all SBOMSPDXv2p3Filtereds in the indexer. - // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1beta1.SBOMSPDXv2p3Filtered, err error) - // SBOMSPDXv2p3Filtereds returns an object that can list and get SBOMSPDXv2p3Filtereds. - SBOMSPDXv2p3Filtereds(namespace string) SBOMSPDXv2p3FilteredNamespaceLister - SBOMSPDXv2p3FilteredListerExpansion -} - -// sBOMSPDXv2p3FilteredLister implements the SBOMSPDXv2p3FilteredLister interface. -type sBOMSPDXv2p3FilteredLister struct { - indexer cache.Indexer -} - -// NewSBOMSPDXv2p3FilteredLister returns a new SBOMSPDXv2p3FilteredLister. -func NewSBOMSPDXv2p3FilteredLister(indexer cache.Indexer) SBOMSPDXv2p3FilteredLister { - return &sBOMSPDXv2p3FilteredLister{indexer: indexer} -} - -// List lists all SBOMSPDXv2p3Filtereds in the indexer. -func (s *sBOMSPDXv2p3FilteredLister) List(selector labels.Selector) (ret []*v1beta1.SBOMSPDXv2p3Filtered, err error) { - err = cache.ListAll(s.indexer, selector, func(m interface{}) { - ret = append(ret, m.(*v1beta1.SBOMSPDXv2p3Filtered)) - }) - return ret, err -} - -// SBOMSPDXv2p3Filtereds returns an object that can list and get SBOMSPDXv2p3Filtereds. -func (s *sBOMSPDXv2p3FilteredLister) SBOMSPDXv2p3Filtereds(namespace string) SBOMSPDXv2p3FilteredNamespaceLister { - return sBOMSPDXv2p3FilteredNamespaceLister{indexer: s.indexer, namespace: namespace} -} - -// SBOMSPDXv2p3FilteredNamespaceLister helps list and get SBOMSPDXv2p3Filtereds. -// All objects returned here must be treated as read-only. -type SBOMSPDXv2p3FilteredNamespaceLister interface { - // List lists all SBOMSPDXv2p3Filtereds in the indexer for a given namespace. - // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1beta1.SBOMSPDXv2p3Filtered, err error) - // Get retrieves the SBOMSPDXv2p3Filtered from the indexer for a given namespace and name. - // Objects returned here must be treated as read-only. - Get(name string) (*v1beta1.SBOMSPDXv2p3Filtered, error) - SBOMSPDXv2p3FilteredNamespaceListerExpansion -} - -// sBOMSPDXv2p3FilteredNamespaceLister implements the SBOMSPDXv2p3FilteredNamespaceLister -// interface. -type sBOMSPDXv2p3FilteredNamespaceLister struct { - indexer cache.Indexer - namespace string -} - -// List lists all SBOMSPDXv2p3Filtereds in the indexer for a given namespace. -func (s sBOMSPDXv2p3FilteredNamespaceLister) List(selector labels.Selector) (ret []*v1beta1.SBOMSPDXv2p3Filtered, err error) { - err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) { - ret = append(ret, m.(*v1beta1.SBOMSPDXv2p3Filtered)) - }) - return ret, err -} - -// Get retrieves the SBOMSPDXv2p3Filtered from the indexer for a given namespace and name. -func (s sBOMSPDXv2p3FilteredNamespaceLister) Get(name string) (*v1beta1.SBOMSPDXv2p3Filtered, error) { - obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name) - if err != nil { - return nil, err - } - if !exists { - return nil, errors.NewNotFound(v1beta1.Resource("sbomspdxv2p3filtered"), name) - } - return obj.(*v1beta1.SBOMSPDXv2p3Filtered), nil -} diff --git a/pkg/generated/openapi/zz_generated.openapi.go b/pkg/generated/openapi/zz_generated.openapi.go index dbb77aef8..a13fdb3b8 100644 --- a/pkg/generated/openapi/zz_generated.openapi.go +++ b/pkg/generated/openapi/zz_generated.openapi.go @@ -30,8 +30,6 @@ import ( func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition { return map[string]common.OpenAPIDefinition{ "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Advisory": schema_pkg_apis_softwarecomposition_v1beta1_Advisory(ref), - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Annotation": schema_pkg_apis_softwarecomposition_v1beta1_Annotation(ref), - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Annotator": schema_pkg_apis_softwarecomposition_v1beta1_Annotator(ref), "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.ApplicationActivity": schema_pkg_apis_softwarecomposition_v1beta1_ApplicationActivity(ref), "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.ApplicationActivityList": schema_pkg_apis_softwarecomposition_v1beta1_ApplicationActivityList(ref), "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.ApplicationActivitySpec": schema_pkg_apis_softwarecomposition_v1beta1_ApplicationActivitySpec(ref), @@ -42,9 +40,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.ApplicationProfileSpec": schema_pkg_apis_softwarecomposition_v1beta1_ApplicationProfileSpec(ref), "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.ApplicationProfileStatus": schema_pkg_apis_softwarecomposition_v1beta1_ApplicationProfileStatus(ref), "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Arg": schema_pkg_apis_softwarecomposition_v1beta1_Arg(ref), - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.ArtifactOfProject": schema_pkg_apis_softwarecomposition_v1beta1_ArtifactOfProject(ref), "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.CPE": schema_pkg_apis_softwarecomposition_v1beta1_CPE(ref), - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Checksum": schema_pkg_apis_softwarecomposition_v1beta1_Checksum(ref), "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Component": schema_pkg_apis_softwarecomposition_v1beta1_Component(ref), "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Condition": schema_pkg_apis_softwarecomposition_v1beta1_Condition(ref), "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.ConditionedStatus": schema_pkg_apis_softwarecomposition_v1beta1_ConditionedStatus(ref), @@ -53,20 +49,14 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.ConfigurationScanSummarySpec": schema_pkg_apis_softwarecomposition_v1beta1_ConfigurationScanSummarySpec(ref), "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.ControlSeverity": schema_pkg_apis_softwarecomposition_v1beta1_ControlSeverity(ref), "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Coordinates": schema_pkg_apis_softwarecomposition_v1beta1_Coordinates(ref), - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.CreationInfo": schema_pkg_apis_softwarecomposition_v1beta1_CreationInfo(ref), - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Creator": schema_pkg_apis_softwarecomposition_v1beta1_Creator(ref), "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Cvss": schema_pkg_apis_softwarecomposition_v1beta1_Cvss(ref), "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.CvssMetrics": schema_pkg_apis_softwarecomposition_v1beta1_CvssMetrics(ref), "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Descriptor": schema_pkg_apis_softwarecomposition_v1beta1_Descriptor(ref), "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Digest": schema_pkg_apis_softwarecomposition_v1beta1_Digest(ref), "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Distribution": schema_pkg_apis_softwarecomposition_v1beta1_Distribution(ref), - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.DocElementID": schema_pkg_apis_softwarecomposition_v1beta1_DocElementID(ref), - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Document": schema_pkg_apis_softwarecomposition_v1beta1_Document(ref), "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.ELFSecurityFeatures": schema_pkg_apis_softwarecomposition_v1beta1_ELFSecurityFeatures(ref), "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.ExecCalls": schema_pkg_apis_softwarecomposition_v1beta1_ExecCalls(ref), "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Executable": schema_pkg_apis_softwarecomposition_v1beta1_Executable(ref), - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.ExternalDocumentRef": schema_pkg_apis_softwarecomposition_v1beta1_ExternalDocumentRef(ref), - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.File": schema_pkg_apis_softwarecomposition_v1beta1_File(ref), "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.FileLicense": schema_pkg_apis_softwarecomposition_v1beta1_FileLicense(ref), "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.FileLicenseEvidence": schema_pkg_apis_softwarecomposition_v1beta1_FileLicenseEvidence(ref), "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.FileMetadataEntry": schema_pkg_apis_softwarecomposition_v1beta1_FileMetadataEntry(ref), @@ -128,27 +118,14 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.OpenCalls": schema_pkg_apis_softwarecomposition_v1beta1_OpenCalls(ref), "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.OpenVulnerabilityExchangeContainer": schema_pkg_apis_softwarecomposition_v1beta1_OpenVulnerabilityExchangeContainer(ref), "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.OpenVulnerabilityExchangeContainerList": schema_pkg_apis_softwarecomposition_v1beta1_OpenVulnerabilityExchangeContainerList(ref), - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Originator": schema_pkg_apis_softwarecomposition_v1beta1_Originator(ref), - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.OtherLicense": schema_pkg_apis_softwarecomposition_v1beta1_OtherLicense(ref), - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Package": schema_pkg_apis_softwarecomposition_v1beta1_Package(ref), "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.PackageBasicData": schema_pkg_apis_softwarecomposition_v1beta1_PackageBasicData(ref), "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.PackageBasicDataV01011": schema_pkg_apis_softwarecomposition_v1beta1_PackageBasicDataV01011(ref), "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.PackageCustomData": schema_pkg_apis_softwarecomposition_v1beta1_PackageCustomData(ref), - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.PackageExternalReference": schema_pkg_apis_softwarecomposition_v1beta1_PackageExternalReference(ref), - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.PackageVerificationCode": schema_pkg_apis_softwarecomposition_v1beta1_PackageVerificationCode(ref), "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.PolicyRef": schema_pkg_apis_softwarecomposition_v1beta1_PolicyRef(ref), "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Product": schema_pkg_apis_softwarecomposition_v1beta1_Product(ref), - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Relationship": schema_pkg_apis_softwarecomposition_v1beta1_Relationship(ref), "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.ReportMeta": schema_pkg_apis_softwarecomposition_v1beta1_ReportMeta(ref), - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Review": schema_pkg_apis_softwarecomposition_v1beta1_Review(ref), "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.RulePath": schema_pkg_apis_softwarecomposition_v1beta1_RulePath(ref), "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.RuleStatus": schema_pkg_apis_softwarecomposition_v1beta1_RuleStatus(ref), - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.SBOMSPDXv2p3": schema_pkg_apis_softwarecomposition_v1beta1_SBOMSPDXv2p3(ref), - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.SBOMSPDXv2p3Filtered": schema_pkg_apis_softwarecomposition_v1beta1_SBOMSPDXv2p3Filtered(ref), - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.SBOMSPDXv2p3FilteredList": schema_pkg_apis_softwarecomposition_v1beta1_SBOMSPDXv2p3FilteredList(ref), - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.SBOMSPDXv2p3List": schema_pkg_apis_softwarecomposition_v1beta1_SBOMSPDXv2p3List(ref), - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.SBOMSPDXv2p3Spec": schema_pkg_apis_softwarecomposition_v1beta1_SBOMSPDXv2p3Spec(ref), - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.SBOMSPDXv2p3Status": schema_pkg_apis_softwarecomposition_v1beta1_SBOMSPDXv2p3Status(ref), "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.SBOMSyft": schema_pkg_apis_softwarecomposition_v1beta1_SBOMSyft(ref), "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.SBOMSyftFiltered": schema_pkg_apis_softwarecomposition_v1beta1_SBOMSyftFiltered(ref), "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.SBOMSyftFilteredList": schema_pkg_apis_softwarecomposition_v1beta1_SBOMSyftFilteredList(ref), @@ -170,15 +147,11 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.SingleSeccompProfile": schema_pkg_apis_softwarecomposition_v1beta1_SingleSeccompProfile(ref), "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.SingleSeccompProfileSpec": schema_pkg_apis_softwarecomposition_v1beta1_SingleSeccompProfileSpec(ref), "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.SingleSeccompProfileStatus": schema_pkg_apis_softwarecomposition_v1beta1_SingleSeccompProfileStatus(ref), - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Snippet": schema_pkg_apis_softwarecomposition_v1beta1_Snippet(ref), - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.SnippetRange": schema_pkg_apis_softwarecomposition_v1beta1_SnippetRange(ref), - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.SnippetRangePointer": schema_pkg_apis_softwarecomposition_v1beta1_SnippetRangePointer(ref), "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Source": schema_pkg_apis_softwarecomposition_v1beta1_Source(ref), "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.SpecBase": schema_pkg_apis_softwarecomposition_v1beta1_SpecBase(ref), "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Statement": schema_pkg_apis_softwarecomposition_v1beta1_Statement(ref), "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.StatusBase": schema_pkg_apis_softwarecomposition_v1beta1_StatusBase(ref), "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Subcomponent": schema_pkg_apis_softwarecomposition_v1beta1_Subcomponent(ref), - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Supplier": schema_pkg_apis_softwarecomposition_v1beta1_Supplier(ref), "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.SyftCoordinates": schema_pkg_apis_softwarecomposition_v1beta1_SyftCoordinates(ref), "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.SyftDescriptor": schema_pkg_apis_softwarecomposition_v1beta1_SyftDescriptor(ref), "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.SyftDocument": schema_pkg_apis_softwarecomposition_v1beta1_SyftDocument(ref), @@ -303,80 +276,6 @@ func schema_pkg_apis_softwarecomposition_v1beta1_Advisory(ref common.ReferenceCa } } -func schema_pkg_apis_softwarecomposition_v1beta1_Annotation(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "Annotation is an Annotation section of an SPDX Document for version 2.3 of the spec.", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "annotator": { - SchemaProps: spec.SchemaProps{ - Description: "12.1: Annotator Cardinality: conditional (mandatory, one) if there is an Annotation", - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Annotator"), - }, - }, - "annotationDate": { - SchemaProps: spec.SchemaProps{ - Description: "12.2: Annotation Date: YYYY-MM-DDThh:mm:ssZ Cardinality: conditional (mandatory, one) if there is an Annotation", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "annotationType": { - SchemaProps: spec.SchemaProps{ - Description: "12.3: Annotation Type: \"REVIEW\" or \"OTHER\" Cardinality: conditional (mandatory, one) if there is an Annotation", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "comment": { - SchemaProps: spec.SchemaProps{ - Description: "12.5: Annotation Comment Cardinality: conditional (mandatory, one) if there is an Annotation", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - Required: []string{"annotator", "annotationDate", "annotationType", "comment"}, - }, - }, - Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Annotator"}, - } -} - -func schema_pkg_apis_softwarecomposition_v1beta1_Annotator(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "Annotator": { - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "AnnotatorType": { - SchemaProps: spec.SchemaProps{ - Description: "including AnnotatorType: one of \"Person\", \"Organization\" or \"Tool\"", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - Required: []string{"Annotator", "AnnotatorType"}, - }, - }, - } -} - func schema_pkg_apis_softwarecomposition_v1beta1_ApplicationActivity(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -802,7 +701,7 @@ func schema_pkg_apis_softwarecomposition_v1beta1_Arg(ref common.ReferenceCallbac Description: "the index for syscall arguments in seccomp", Default: 0, Type: []string{"integer"}, - Format: "int32", + Format: "int64", }, }, "value": { @@ -834,44 +733,6 @@ func schema_pkg_apis_softwarecomposition_v1beta1_Arg(ref common.ReferenceCallbac } } -func schema_pkg_apis_softwarecomposition_v1beta1_ArtifactOfProject(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "ArtifactOfProject is a DEPRECATED collection of data regarding a Package, as defined in sections 8.9-8.11 in version 2.3 of the spec. NOTE: the JSON schema does not define the structure of this object: https://github.com/spdx/spdx-spec/blob/development/v2.3.1/schemas/spdx-schema.json#L480", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "name": { - SchemaProps: spec.SchemaProps{ - Description: "DEPRECATED in version 2.1 of spec 8.9: Artifact of Project Name Cardinality: conditional, required if present, one per AOP", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "homePage": { - SchemaProps: spec.SchemaProps{ - Description: "DEPRECATED in version 2.1 of spec 8.10: Artifact of Project Homepage: URL or \"UNKNOWN\" Cardinality: optional, one per AOP", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "URI": { - SchemaProps: spec.SchemaProps{ - Description: "DEPRECATED in version 2.1 of spec 8.11: Artifact of Project Uniform Resource Identifier Cardinality: optional, one per AOP", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - Required: []string{"name", "homePage", "URI"}, - }, - }, - } -} - func schema_pkg_apis_softwarecomposition_v1beta1_CPE(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -898,34 +759,6 @@ func schema_pkg_apis_softwarecomposition_v1beta1_CPE(ref common.ReferenceCallbac } } -func schema_pkg_apis_softwarecomposition_v1beta1_Checksum(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "Checksum provides a unique identifier to match analysis information on each specific file in a package. The Algorithm field describes the ChecksumAlgorithm used and the Value represents the file checksum", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "algorithm": { - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "checksumValue": { - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - Required: []string{"algorithm", "checksumValue"}, - }, - }, - } -} - func schema_pkg_apis_softwarecomposition_v1beta1_Component(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -1244,88 +1077,6 @@ func schema_pkg_apis_softwarecomposition_v1beta1_Coordinates(ref common.Referenc } } -func schema_pkg_apis_softwarecomposition_v1beta1_CreationInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "CreationInfo is a Document Creation Information section of an SPDX Document for version 2.3 of the spec.", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "licenseListVersion": { - SchemaProps: spec.SchemaProps{ - Description: "6.7: License List Version Cardinality: optional, one", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "creators": { - SchemaProps: spec.SchemaProps{ - Description: "6.8: Creators: may have multiple keys for Person, Organization\n and/or Tool\nCardinality: mandatory, one or many", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Creator"), - }, - }, - }, - }, - }, - "created": { - SchemaProps: spec.SchemaProps{ - Description: "6.9: Created: data format YYYY-MM-DDThh:mm:ssZ Cardinality: mandatory, one", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "comment": { - SchemaProps: spec.SchemaProps{ - Description: "6.10: Creator Comment Cardinality: optional, one", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - Required: []string{"licenseListVersion", "creators", "created", "comment"}, - }, - }, - Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Creator"}, - } -} - -func schema_pkg_apis_softwarecomposition_v1beta1_Creator(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "Creator is a wrapper around the Creator SPDX field. The SPDX field contains two values, which requires special handling in order to marshal/unmarshal it to/from Go data types.", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "Creator": { - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "CreatorType": { - SchemaProps: spec.SchemaProps{ - Description: "CreatorType should be one of \"Person\", \"Organization\", or \"Tool\"", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - Required: []string{"Creator", "CreatorType"}, - }, - }, - } -} - func schema_pkg_apis_softwarecomposition_v1beta1_Cvss(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -1506,52 +1257,96 @@ func schema_pkg_apis_softwarecomposition_v1beta1_Distribution(ref common.Referen } } -func schema_pkg_apis_softwarecomposition_v1beta1_DocElementID(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_ELFSecurityFeatures(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DocElementID represents an SPDX element identifier that could be defined in a different SPDX document, and therefore could have a \"DocumentRef-\" portion, such as Relationships and Annotations. ElementID is used for attributes in which a \"DocumentRef-\" portion cannot appear, such as a Package or File definition (since it is necessarily being defined in the present document). DocumentRefID will be the empty string for elements defined in the present document. DocElementIDs should NOT contain the mandatory 'DocumentRef-' or 'SPDXRef-' portions. SpecialID is used ONLY if the DocElementID matches a defined set of permitted special values for a particular field, e.g. \"NONE\" or \"NOASSERTION\" for the right-hand side of Relationships. If SpecialID is set, DocumentRefID and ElementRefID should be empty (and vice versa).", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "DocumentRefID": { + "symbolTableStripped": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, + Default: false, + Type: []string{"boolean"}, Format: "", }, }, - "ElementRefID": { + "stackCanary": { + SchemaProps: spec.SchemaProps{ + Type: []string{"boolean"}, + Format: "", + }, + }, + "nx": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, + Default: false, + Type: []string{"boolean"}, Format: "", }, }, - "SpecialID": { + "relRO": { SchemaProps: spec.SchemaProps{ Default: "", Type: []string{"string"}, Format: "", }, }, + "pie": { + SchemaProps: spec.SchemaProps{ + Default: false, + Type: []string{"boolean"}, + Format: "", + }, + }, + "dso": { + SchemaProps: spec.SchemaProps{ + Default: false, + Type: []string{"boolean"}, + Format: "", + }, + }, + "safeStack": { + SchemaProps: spec.SchemaProps{ + Description: "LlvmSafeStack represents a compiler-based security mechanism that separates the stack into a safe stack for storing return addresses and other critical data, and an unsafe stack for everything else, to mitigate stack-based memory corruption errors see https://clang.llvm.org/docs/SafeStack.html", + Type: []string{"boolean"}, + Format: "", + }, + }, + "cfi": { + SchemaProps: spec.SchemaProps{ + Description: "ControlFlowIntegrity represents runtime checks to ensure a program's control flow adheres to the legal paths determined at compile time, thus protecting against various types of control-flow hijacking attacks see https://clang.llvm.org/docs/ControlFlowIntegrity.html", + Type: []string{"boolean"}, + Format: "", + }, + }, + "fortify": { + SchemaProps: spec.SchemaProps{ + Description: "ClangFortifySource is a broad suite of extensions to libc aimed at catching misuses of common library functions see https://android.googlesource.com/platform//bionic/+/d192dbecf0b2a371eb127c0871f77a9caf81c4d2/docs/clang_fortify_anatomy.md", + Type: []string{"boolean"}, + Format: "", + }, + }, }, - Required: []string{"DocumentRefID", "ElementRefID", "SpecialID"}, + Required: []string{"symbolTableStripped", "nx", "relRO", "pie", "dso"}, }, }, } } -func schema_pkg_apis_softwarecomposition_v1beta1_Document(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_ExecCalls(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Document is an SPDX Document for version 2.3 of the spec. See https://spdx.github.io/spdx-spec/v2.3/document-creation-information", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "documentDescribes": { + "path": { SchemaProps: spec.SchemaProps{ - Description: "Added", - Type: []string{"array"}, + Type: []string{"string"}, + Format: "", + }, + }, + "args": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -1563,262 +1358,225 @@ func schema_pkg_apis_softwarecomposition_v1beta1_Document(ref common.ReferenceCa }, }, }, - "spdxVersion": { - SchemaProps: spec.SchemaProps{ - Description: "6.1: SPDX Version; should be in the format \"SPDX-2.3\" Cardinality: mandatory, one", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "dataLicense": { - SchemaProps: spec.SchemaProps{ - Description: "6.2: Data License; should be \"CC0-1.0\" Cardinality: mandatory, one", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "SPDXID": { + "envs": { SchemaProps: spec.SchemaProps{ - Description: "6.3: SPDX Identifier; should be \"DOCUMENT\" to represent\n mandatory identifier of SPDXRef-DOCUMENT\nCardinality: mandatory, one", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "name": { - SchemaProps: spec.SchemaProps{ - Description: "6.4: Document Name Cardinality: mandatory, one", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "documentNamespace": { - SchemaProps: spec.SchemaProps{ - Description: "6.5: Document Namespace Cardinality: mandatory, one", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "externalDocumentRefs": { - SchemaProps: spec.SchemaProps{ - Description: "6.6: External Document References Cardinality: optional, one or many", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.ExternalDocumentRef"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "comment": { + }, + }, + }, + } +} + +func schema_pkg_apis_softwarecomposition_v1beta1_Executable(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "format": { SchemaProps: spec.SchemaProps{ - Description: "6.11: Document Comment Cardinality: optional, one", + Description: "Format denotes either ELF, Mach-O, or PE", Default: "", Type: []string{"string"}, Format: "", }, }, - "creationInfo": { + "hasExports": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.CreationInfo"), + Default: false, + Type: []string{"boolean"}, + Format: "", }, }, - "packages": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-patch-merge-key": "name", - "x-kubernetes-patch-strategy": "merge", - }, - }, + "hasEntrypoint": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Package"), - }, - }, - }, + Default: false, + Type: []string{"boolean"}, + Format: "", }, }, - "files": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-patch-merge-key": "fileName", - "x-kubernetes-patch-strategy": "merge", - }, - }, + "importedLibraries": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.File"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "hasExtractedLicensingInfos": { + "elfSecurityFeatures": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.OtherLicense"), - }, - }, - }, + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.ELFSecurityFeatures"), }, }, - "relationships": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-patch-merge-key": "spdxElementId", - "x-kubernetes-patch-strategy": "merge", - }, + }, + Required: []string{"format", "hasExports", "hasEntrypoint", "importedLibraries"}, + }, + }, + Dependencies: []string{ + "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.ELFSecurityFeatures"}, + } +} + +func schema_pkg_apis_softwarecomposition_v1beta1_FileLicense(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "value": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", }, + }, + "spdxExpression": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Relationship"), - }, - }, - }, + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "annotations": { + "type": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Annotation"), - }, - }, - }, + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "snippets": { + "evidence": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Snippet"), - }, - }, - }, + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.FileLicenseEvidence"), }, }, }, - Required: []string{"documentDescribes", "spdxVersion", "dataLicense", "SPDXID", "name", "documentNamespace", "externalDocumentRefs", "comment", "creationInfo", "packages", "files", "hasExtractedLicensingInfos", "relationships", "annotations", "snippets"}, + Required: []string{"value", "spdxExpression", "type"}, }, }, Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Annotation", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.CreationInfo", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.ExternalDocumentRef", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.File", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.OtherLicense", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Package", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Relationship", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Snippet"}, + "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.FileLicenseEvidence"}, } } -func schema_pkg_apis_softwarecomposition_v1beta1_ELFSecurityFeatures(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_FileLicenseEvidence(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "symbolTableStripped": { + "confidence": { SchemaProps: spec.SchemaProps{ - Default: false, - Type: []string{"boolean"}, - Format: "", + Default: 0, + Type: []string{"integer"}, + Format: "int64", }, }, - "stackCanary": { + "offset": { SchemaProps: spec.SchemaProps{ - Type: []string{"boolean"}, - Format: "", + Default: 0, + Type: []string{"integer"}, + Format: "int64", }, }, - "nx": { + "extent": { SchemaProps: spec.SchemaProps{ - Default: false, - Type: []string{"boolean"}, - Format: "", + Default: 0, + Type: []string{"integer"}, + Format: "int64", }, }, - "relRO": { + }, + Required: []string{"confidence", "offset", "extent"}, + }, + }, + } +} + +func schema_pkg_apis_softwarecomposition_v1beta1_FileMetadataEntry(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "mode": { + SchemaProps: spec.SchemaProps{ + Default: 0, + Type: []string{"integer"}, + Format: "int64", + }, + }, + "type": { SchemaProps: spec.SchemaProps{ Default: "", Type: []string{"string"}, Format: "", }, }, - "pie": { + "linkDestination": { SchemaProps: spec.SchemaProps{ - Default: false, - Type: []string{"boolean"}, - Format: "", + Type: []string{"string"}, + Format: "", }, }, - "dso": { + "userID": { SchemaProps: spec.SchemaProps{ - Default: false, - Type: []string{"boolean"}, - Format: "", + Default: 0, + Type: []string{"integer"}, + Format: "int64", }, }, - "safeStack": { + "groupID": { SchemaProps: spec.SchemaProps{ - Description: "LlvmSafeStack represents a compiler-based security mechanism that separates the stack into a safe stack for storing return addresses and other critical data, and an unsafe stack for everything else, to mitigate stack-based memory corruption errors see https://clang.llvm.org/docs/SafeStack.html", - Type: []string{"boolean"}, - Format: "", + Default: 0, + Type: []string{"integer"}, + Format: "int64", }, }, - "cfi": { + "mimeType": { SchemaProps: spec.SchemaProps{ - Description: "ControlFlowIntegrity represents runtime checks to ensure a program's control flow adheres to the legal paths determined at compile time, thus protecting against various types of control-flow hijacking attacks see https://clang.llvm.org/docs/ControlFlowIntegrity.html", - Type: []string{"boolean"}, - Format: "", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "fortify": { + "size": { SchemaProps: spec.SchemaProps{ - Description: "ClangFortifySource is a broad suite of extensions to libc aimed at catching misuses of common library functions see https://android.googlesource.com/platform//bionic/+/d192dbecf0b2a371eb127c0871f77a9caf81c4d2/docs/clang_fortify_anatomy.md", - Type: []string{"boolean"}, - Format: "", + Default: 0, + Type: []string{"integer"}, + Format: "int64", }, }, }, - Required: []string{"symbolTableStripped", "nx", "relRO", "pie", "dso"}, + Required: []string{"mode", "type", "userID", "groupID", "mimeType", "size"}, }, }, } } -func schema_pkg_apis_softwarecomposition_v1beta1_ExecCalls(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_Fix(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "path": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "args": { + "versions": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ @@ -1832,260 +1590,233 @@ func schema_pkg_apis_softwarecomposition_v1beta1_ExecCalls(ref common.ReferenceC }, }, }, - "envs": { + "state": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, + Required: []string{"versions", "state"}, }, }, } } -func schema_pkg_apis_softwarecomposition_v1beta1_Executable(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_GeneratedNetworkPolicy(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "GeneratedNetworkPolicy represents a generated NetworkPolicy.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "format": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Format denotes either ELF, Mach-O, or PE", - Default: "", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "hasExports": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Default: false, - Type: []string{"boolean"}, - Format: "", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - "hasEntrypoint": { + "metadata": { SchemaProps: spec.SchemaProps{ - Default: false, - Type: []string{"boolean"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "importedLibraries": { + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkPolicy"), + }, + }, + "policyRef": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.PolicyRef"), }, }, }, }, }, - "elfSecurityFeatures": { - SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.ELFSecurityFeatures"), - }, - }, }, - Required: []string{"format", "hasExports", "hasEntrypoint", "importedLibraries"}, + Required: []string{"spec"}, }, }, Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.ELFSecurityFeatures"}, + "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkPolicy", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.PolicyRef", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_softwarecomposition_v1beta1_ExternalDocumentRef(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_GeneratedNetworkPolicyList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ExternalDocumentRef is a reference to an external SPDX document as defined in section 6.6 for version 2.3 of the spec.", + Description: "GeneratedNetworkPolicyList is a list of GeneratedNetworkPolicies.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "externalDocumentId": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "DocumentRefID is the ID string defined in the start of the reference. It should _not_ contain the \"DocumentRef-\" part of the mandatory ID string.", - Default: "", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "spdxDocument": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "URI is the URI defined for the external document", - Default: "", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "checksum": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Checksum is the actual hash data", - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Checksum"), + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.GeneratedNetworkPolicy"), + }, + }, + }, }, }, }, - Required: []string{"externalDocumentId", "spdxDocument", "checksum"}, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Checksum"}, + "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.GeneratedNetworkPolicy", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_softwarecomposition_v1beta1_File(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_GrypeDocument(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "File is a File section of an SPDX Document for version 2.3 of the spec.", + Description: "GrypeDocument is the document that represents the vulnerability manifest in the Grype’s JSON format", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "fileName": { - SchemaProps: spec.SchemaProps{ - Description: "8.1: File Name Cardinality: mandatory, one", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "SPDXID": { - SchemaProps: spec.SchemaProps{ - Description: "8.2: File SPDX Identifier: \"SPDXRef-[idstring]\" Cardinality: mandatory, one", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "fileTypes": { + "matches": { SchemaProps: spec.SchemaProps{ - Description: "8.3: File Types Cardinality: optional, multiple", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Match"), }, }, }, }, }, - "checksums": { + "ignoredMatches": { SchemaProps: spec.SchemaProps{ - Description: "8.4: File Checksum: may have keys for SHA1, SHA256, MD5, SHA3-256, SHA3-384, SHA3-512, BLAKE2b-256, BLAKE2b-384, BLAKE2b-512, BLAKE3, ADLER32 Cardinality: mandatory, one SHA1, others may be optionally provided", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Checksum"), + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IgnoredMatch"), }, }, }, }, }, - "licenseConcluded": { - SchemaProps: spec.SchemaProps{ - Description: "8.5: Concluded License: SPDX License Expression, \"NONE\" or \"NOASSERTION\" Cardinality: optional, one", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "licenseInfoInFiles": { + "source": { SchemaProps: spec.SchemaProps{ - Description: "8.6: License Information in File: SPDX License Expression, \"NONE\" or \"NOASSERTION\" Cardinality: optional, one or many", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Source"), }, }, - "licenseComments": { + "distro": { SchemaProps: spec.SchemaProps{ - Description: "8.7: Comments on License Cardinality: optional, one", - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Distribution"), }, }, - "copyrightText": { + "descriptor": { SchemaProps: spec.SchemaProps{ - Description: "8.8: Copyright Text: copyright notice(s) text, \"NONE\" or \"NOASSERTION\" Cardinality: mandatory, one", - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Descriptor"), }, }, - "artifactOfs": { + }, + Required: []string{"matches", "source", "distro", "descriptor"}, + }, + }, + Dependencies: []string{ + "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Descriptor", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Distribution", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IgnoredMatch", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Match", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Source"}, + } +} + +func schema_pkg_apis_softwarecomposition_v1beta1_GrypePackage(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { SchemaProps: spec.SchemaProps{ - Description: "DEPRECATED in version 2.1 of spec 8.9-8.11: Artifact of Project variables (defined below) Cardinality: optional, one or many", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.ArtifactOfProject"), - }, - }, - }, + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "comment": { + "version": { SchemaProps: spec.SchemaProps{ - Description: "8.12: File Comment Cardinality: optional, one", - Default: "", - Type: []string{"string"}, - Format: "", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "noticeText": { + "type": { SchemaProps: spec.SchemaProps{ - Description: "8.13: File Notice Cardinality: optional, one", - Default: "", - Type: []string{"string"}, - Format: "", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "fileContributors": { + "locations": { SchemaProps: spec.SchemaProps{ - Description: "8.14: File Contributor Cardinality: optional, one or many", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.SyftCoordinates"), }, }, }, }, }, - "attributionTexts": { + "language": { SchemaProps: spec.SchemaProps{ - Description: "8.15: File Attribution Text Cardinality: optional, one or many", - Type: []string{"array"}, + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "licenses": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -2097,10 +1828,9 @@ func schema_pkg_apis_softwarecomposition_v1beta1_File(ref common.ReferenceCallba }, }, }, - "fileDependencies": { + "cpes": { SchemaProps: spec.SchemaProps{ - Description: "DEPRECATED in version 2.0 of spec 8.16: File Dependencies Cardinality: optional, one or many", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -2112,203 +1842,267 @@ func schema_pkg_apis_softwarecomposition_v1beta1_File(ref common.ReferenceCallba }, }, }, - "annotations": { + "purl": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "upstreams": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Annotation"), + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.UpstreamPackage"), }, }, }, }, }, + "metadataType": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "byte", + }, + }, }, - Required: []string{"fileName", "SPDXID", "fileTypes", "checksums", "licenseConcluded", "licenseInfoInFiles", "licenseComments", "copyrightText", "artifactOfs", "comment", "noticeText", "fileContributors", "attributionTexts", "fileDependencies", "annotations"}, + Required: []string{"name", "version", "type", "locations", "language", "licenses", "cpes", "purl", "upstreams"}, }, }, Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Annotation", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.ArtifactOfProject", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Checksum"}, + "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.SyftCoordinates", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.UpstreamPackage"}, } } -func schema_pkg_apis_softwarecomposition_v1beta1_FileLicense(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_HTTPIngressPath(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "value": { - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "spdxExpression": { + "path": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Type: []string{"string"}, + Format: "", }, }, - "type": { + "pathType": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "pathType determines the interpretation of the path matching. PathType can be one of the following values: * Exact: Matches the URL path exactly. * Prefix: Matches based on a URL path prefix split by '/'. Matching is\n done on a path element by element basis. A path element refers is the\n list of labels in the path split by the '/' separator. A request is a\n match for path p if every p is an element-wise prefix of p of the\n request path. Note that if the last element of the path is a substring\n of the last element in request path, it is not a match (e.g. /foo/bar\n matches /foo/bar/baz, but does not match /foo/barbaz).\n* ImplementationSpecific: Interpretation of the Path matching is up to\n the IngressClass. Implementations can treat this as a separate PathType\n or treat it identically to Prefix or Exact path types.\nImplementations are required to support all path types.\n\nPossible enum values:\n - `\"Exact\"` matches the URL path exactly and with case sensitivity.\n - `\"ImplementationSpecific\"` matching is up to the IngressClass. Implementations can treat this as a separate PathType or treat it identically to Prefix or Exact path types.\n - `\"Prefix\"` matches based on a URL path prefix split by '/'. Matching is case sensitive and done on a path element by element basis. A path element refers to the list of labels in the path split by the '/' separator. A request is a match for path p if every p is an element-wise prefix of p of the request path. Note that if the last element of the path is a substring of the last element in request path, it is not a match (e.g. /foo/bar matches /foo/bar/baz, but does not match /foo/barbaz). If multiple matching paths exist in an Ingress spec, the longest matching path is given priority. Examples: - /foo/bar does not match requests to /foo/barbaz - /foo/bar matches request to /foo/bar and /foo/bar/baz - /foo and /foo/ both match requests to /foo and /foo/. If both paths are present in an Ingress spec, the longest matching path (/foo/) is given priority.", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"Exact", "ImplementationSpecific", "Prefix"}, }, }, - "evidence": { + "backend": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.FileLicenseEvidence"), + Description: "backend defines the referenced service endpoint to which the traffic will be forwarded to.", + Default: map[string]interface{}{}, + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressBackend"), }, }, }, - Required: []string{"value", "spdxExpression", "type"}, + Required: []string{"pathType", "backend"}, }, }, Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.FileLicenseEvidence"}, + "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressBackend"}, } } -func schema_pkg_apis_softwarecomposition_v1beta1_FileLicenseEvidence(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_HTTPIngressRuleValue(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http:///? -> backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "confidence": { + "paths": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ - Default: 0, - Type: []string{"integer"}, - Format: "int32", + Description: "paths is a collection of paths that map requests to backends.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.HTTPIngressPath"), + }, + }, + }, }, }, - "offset": { + }, + Required: []string{"paths"}, + }, + }, + Dependencies: []string{ + "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.HTTPIngressPath"}, + } +} + +func schema_pkg_apis_softwarecomposition_v1beta1_IPBlock(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "IPBlock describes a particular CIDR (Ex. \"192.168.1.0/24\",\"2001:db8::/64\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "cidr": { SchemaProps: spec.SchemaProps{ - Default: 0, - Type: []string{"integer"}, - Format: "int32", + Description: "cidr is a string representing the IPBlock Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\"", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "extent": { + "except": { SchemaProps: spec.SchemaProps{ - Default: 0, - Type: []string{"integer"}, - Format: "int32", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, }, - Required: []string{"confidence", "offset", "extent"}, + Required: []string{"cidr"}, }, }, } } -func schema_pkg_apis_softwarecomposition_v1beta1_FileMetadataEntry(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_IgnoreRule(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "mode": { + "vulnerability": { SchemaProps: spec.SchemaProps{ - Default: 0, - Type: []string{"integer"}, - Format: "int32", + Type: []string{"string"}, + Format: "", }, }, - "type": { + "fix-state": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Type: []string{"string"}, + Format: "", }, }, - "linkDestination": { + "package": { + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IgnoreRulePackage"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IgnoreRulePackage"}, + } +} + +func schema_pkg_apis_softwarecomposition_v1beta1_IgnoreRulePackage(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { SchemaProps: spec.SchemaProps{ Type: []string{"string"}, Format: "", }, }, - "userID": { + "version": { SchemaProps: spec.SchemaProps{ - Default: 0, - Type: []string{"integer"}, - Format: "int32", + Type: []string{"string"}, + Format: "", }, }, - "groupID": { + "type": { SchemaProps: spec.SchemaProps{ - Default: 0, - Type: []string{"integer"}, - Format: "int32", + Type: []string{"string"}, + Format: "", }, }, - "mimeType": { + "location": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Type: []string{"string"}, + Format: "", }, }, - "size": { + "upstream-name": { SchemaProps: spec.SchemaProps{ - Default: 0, - Type: []string{"integer"}, - Format: "int64", + Type: []string{"string"}, + Format: "", }, }, }, - Required: []string{"mode", "type", "userID", "groupID", "mimeType", "size"}, }, }, } } -func schema_pkg_apis_softwarecomposition_v1beta1_Fix(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_IgnoredMatch(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "versions": { + "Match": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Match"), + }, + }, + "appliedIgnoreRules": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IgnoreRule"), }, }, }, }, }, - "state": { - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, }, - Required: []string{"versions", "state"}, + Required: []string{"Match", "appliedIgnoreRules"}, }, }, + Dependencies: []string{ + "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IgnoreRule", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Match"}, } } -func schema_pkg_apis_softwarecomposition_v1beta1_GeneratedNetworkPolicy(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_Ingress(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "GeneratedNetworkPolicy represents a generated NetworkPolicy.", + Description: "Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -2334,36 +2128,53 @@ func schema_pkg_apis_softwarecomposition_v1beta1_GeneratedNetworkPolicy(ref comm "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkPolicy"), + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressSpec"), }, }, - "policyRef": { + "status": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.PolicyRef"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressStatus"), }, }, }, - Required: []string{"spec"}, }, }, Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkPolicy", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.PolicyRef", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressSpec", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_softwarecomposition_v1beta1_GeneratedNetworkPolicyList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_IngressBackend(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "GeneratedNetworkPolicyList is a list of GeneratedNetworkPolicies.", + Description: "IngressBackend describes all endpoints for a given service and port.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "service": { + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressServiceBackend"), + }, + }, + "resource": { + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/api/core/v1.TypedLocalObjectReference"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressServiceBackend", "k8s.io/api/core/v1.TypedLocalObjectReference"}, + } +} + +func schema_pkg_apis_softwarecomposition_v1beta1_IngressClass(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "IngressClass represents the class of the Ingress, referenced by the Ingress Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be used to indicate that an IngressClass should be considered default. When a single IngressClass resource has this annotation set to true, new Ingress resources without a class specified will be assigned this default class.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -2383,498 +2194,490 @@ func schema_pkg_apis_softwarecomposition_v1beta1_GeneratedNetworkPolicyList(ref "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "items": { + "spec": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.GeneratedNetworkPolicy"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressClassSpec"), }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.GeneratedNetworkPolicy", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressClassSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_softwarecomposition_v1beta1_GrypeDocument(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_IngressClassList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "GrypeDocument is the document that represents the vulnerability manifest in the Grype’s JSON format", + Description: "IngressClassList is a collection of IngressClasses.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "matches": { + "kind": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Match"), - }, - }, - }, + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "ignoredMatches": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Description: "items is the list of IngressClasses.", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IgnoredMatch"), + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressClass"), }, }, }, }, }, - "source": { - SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Source"), - }, - }, - "distro": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Distribution"), - }, - }, - "descriptor": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Descriptor"), - }, - }, }, - Required: []string{"matches", "source", "distro", "descriptor"}, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Descriptor", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Distribution", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IgnoredMatch", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Match", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Source"}, + "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressClass", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_softwarecomposition_v1beta1_GrypePackage(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_IngressClassParametersReference(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "IngressClassParametersReference identifies an API object. This can be used to specify a cluster or namespace-scoped resource.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "version": { - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "type": { - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "locations": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.SyftCoordinates"), - }, - }, - }, - }, - }, - "language": { - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "licenses": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - "cpes": { + "apiGroup": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Type: []string{"string"}, + Format: "", }, }, - "purl": { + "kind": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "kind is the type of resource being referenced.", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "upstreams": { + "name": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.UpstreamPackage"), - }, - }, - }, + Description: "name is the name of resource being referenced.", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "metadataType": { + "scope": { SchemaProps: spec.SchemaProps{ Type: []string{"string"}, Format: "", }, }, - "metadata": { + "namespace": { SchemaProps: spec.SchemaProps{ Type: []string{"string"}, - Format: "byte", + Format: "", }, }, }, - Required: []string{"name", "version", "type", "locations", "language", "licenses", "cpes", "purl", "upstreams"}, + Required: []string{"kind", "name", "scope"}, }, }, - Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.SyftCoordinates", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.UpstreamPackage"}, } } -func schema_pkg_apis_softwarecomposition_v1beta1_HTTPIngressPath(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_IngressClassSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend.", + Description: "IngressClassSpec provides information about the class of an Ingress.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "path": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "pathType": { + "controller": { SchemaProps: spec.SchemaProps{ - Description: "pathType determines the interpretation of the path matching. PathType can be one of the following values: * Exact: Matches the URL path exactly. * Prefix: Matches based on a URL path prefix split by '/'. Matching is\n done on a path element by element basis. A path element refers is the\n list of labels in the path split by the '/' separator. A request is a\n match for path p if every p is an element-wise prefix of p of the\n request path. Note that if the last element of the path is a substring\n of the last element in request path, it is not a match (e.g. /foo/bar\n matches /foo/bar/baz, but does not match /foo/barbaz).\n* ImplementationSpecific: Interpretation of the Path matching is up to\n the IngressClass. Implementations can treat this as a separate PathType\n or treat it identically to Prefix or Exact path types.\nImplementations are required to support all path types.\n\nPossible enum values:\n - `\"Exact\"` matches the URL path exactly and with case sensitivity.\n - `\"ImplementationSpecific\"` matching is up to the IngressClass. Implementations can treat this as a separate PathType or treat it identically to Prefix or Exact path types.\n - `\"Prefix\"` matches based on a URL path prefix split by '/'. Matching is case sensitive and done on a path element by element basis. A path element refers to the list of labels in the path split by the '/' separator. A request is a match for path p if every p is an element-wise prefix of p of the request path. Note that if the last element of the path is a substring of the last element in request path, it is not a match (e.g. /foo/bar matches /foo/bar/baz, but does not match /foo/barbaz). If multiple matching paths exist in an Ingress spec, the longest matching path is given priority. Examples: - /foo/bar does not match requests to /foo/barbaz - /foo/bar matches request to /foo/bar and /foo/bar/baz - /foo and /foo/ both match requests to /foo and /foo/. If both paths are present in an Ingress spec, the longest matching path (/foo/) is given priority.", + Description: "controller refers to the name of the controller that should handle this class. This allows for different \"flavors\" that are controlled by the same controller. For example, you may have different parameters for the same implementing controller. This should be specified as a domain-prefixed path no more than 250 characters in length, e.g. \"acme.io/ingress-controller\". This field is immutable.", Type: []string{"string"}, Format: "", - Enum: []interface{}{"Exact", "ImplementationSpecific", "Prefix"}, }, }, - "backend": { + "parameters": { SchemaProps: spec.SchemaProps{ - Description: "backend defines the referenced service endpoint to which the traffic will be forwarded to.", - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressBackend"), + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressClassParametersReference"), }, }, }, - Required: []string{"pathType", "backend"}, }, }, Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressBackend"}, + "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressClassParametersReference"}, } } -func schema_pkg_apis_softwarecomposition_v1beta1_HTTPIngressRuleValue(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_IngressList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http:///? -> backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'.", + Description: "IngressList is a collection of Ingress.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "paths": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-type": "atomic", - }, + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, + }, + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "paths is a collection of paths that map requests to backends.", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Description: "items is the list of Ingress.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.HTTPIngressPath"), + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Ingress"), }, }, }, }, }, }, - Required: []string{"paths"}, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.HTTPIngressPath"}, + "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Ingress", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_softwarecomposition_v1beta1_IPBlock(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_IngressLoadBalancerIngress(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "IPBlock describes a particular CIDR (Ex. \"192.168.1.0/24\",\"2001:db8::/64\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.", + Description: "IngressLoadBalancerIngress represents the status of a load-balancer ingress point.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "cidr": { + "ip": { SchemaProps: spec.SchemaProps{ - Description: "cidr is a string representing the IPBlock Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\"", - Default: "", - Type: []string{"string"}, - Format: "", + Type: []string{"string"}, + Format: "", }, }, - "except": { + "hostname": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "ports": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressPortStatus"), }, }, }, }, }, }, - Required: []string{"cidr"}, }, }, + Dependencies: []string{ + "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressPortStatus"}, } } -func schema_pkg_apis_softwarecomposition_v1beta1_IgnoreRule(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_IngressLoadBalancerStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "IngressLoadBalancerStatus represents the status of a load-balancer.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "vulnerability": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "fix-state": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "package": { + "ingress": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IgnoreRulePackage"), + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressLoadBalancerIngress"), + }, + }, + }, }, }, }, }, }, Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IgnoreRulePackage"}, + "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressLoadBalancerIngress"}, } } -func schema_pkg_apis_softwarecomposition_v1beta1_IgnoreRulePackage(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_IngressPortStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "IngressPortStatus represents the error condition of a service port", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "port": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "port is the port number of the ingress port.", + Default: 0, + Type: []string{"integer"}, + Format: "int32", }, }, - "version": { + "protocol": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "protocol is the protocol of the ingress port. The supported values are: \"TCP\", \"UDP\", \"SCTP\"", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "type": { + "error": { SchemaProps: spec.SchemaProps{ Type: []string{"string"}, Format: "", }, }, - "location": { + }, + Required: []string{"port", "protocol"}, + }, + }, + } +} + +func schema_pkg_apis_softwarecomposition_v1beta1_IngressRule(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "host": { SchemaProps: spec.SchemaProps{ Type: []string{"string"}, Format: "", }, }, - "upstream-name": { + "http": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.HTTPIngressRuleValue"), }, }, }, }, }, + Dependencies: []string{ + "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.HTTPIngressRuleValue"}, } } -func schema_pkg_apis_softwarecomposition_v1beta1_IgnoredMatch(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_IngressRuleValue(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "IngressRuleValue represents a rule to apply against incoming requests. If the rule is satisfied, the request is routed to the specified backend. Currently mixing different types of rules in a single Ingress is disallowed, so exactly one of the following must be set.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "Match": { + "http": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Match"), + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.HTTPIngressRuleValue"), }, }, - "appliedIgnoreRules": { + }, + }, + }, + Dependencies: []string{ + "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.HTTPIngressRuleValue"}, + } +} + +func schema_pkg_apis_softwarecomposition_v1beta1_IngressServiceBackend(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "IngressServiceBackend references a Kubernetes Service as a Backend.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IgnoreRule"), - }, - }, - }, + Description: "name is the referenced service. The service must exist in the same namespace as the Ingress object.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "port": { + SchemaProps: spec.SchemaProps{ + Description: "port of the referenced service. A port name or port number is required for a IngressServiceBackend.", + Default: map[string]interface{}{}, + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.ServiceBackendPort"), }, }, }, - Required: []string{"Match", "appliedIgnoreRules"}, + Required: []string{"name"}, }, }, Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IgnoreRule", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Match"}, + "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.ServiceBackendPort"}, } } -func schema_pkg_apis_softwarecomposition_v1beta1_Ingress(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_IngressSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc.", + Description: "IngressSpec describes the Ingress the user wishes to exist.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "ingressClassName": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", + Type: []string{"string"}, + Format: "", }, }, - "apiVersion": { + "defaultBackend": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressBackend"), }, }, - "metadata": { + "tls": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressTLS"), + }, + }, + }, }, }, - "spec": { + "rules": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressSpec"), + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressRule"), + }, + }, + }, }, }, - "status": { + }, + }, + }, + Dependencies: []string{ + "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressBackend", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressRule", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressTLS"}, + } +} + +func schema_pkg_apis_softwarecomposition_v1beta1_IngressStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "IngressStatus describe the current state of the Ingress.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "loadBalancer": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressStatus"), + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressLoadBalancerStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressSpec", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressLoadBalancerStatus"}, } } -func schema_pkg_apis_softwarecomposition_v1beta1_IngressBackend(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_IngressTLS(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "IngressBackend describes all endpoints for a given service and port.", + Description: "IngressTLS describes the transport layer security associated with an ingress.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "service": { + "hosts": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressServiceBackend"), + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "resource": { + "secretName": { SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/api/core/v1.TypedLocalObjectReference"), + Type: []string{"string"}, + Format: "", }, }, }, }, }, - Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressServiceBackend", "k8s.io/api/core/v1.TypedLocalObjectReference"}, } } -func schema_pkg_apis_softwarecomposition_v1beta1_IngressClass(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_KnownServer(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "IngressClass represents the class of the Ingress, referenced by the Ingress Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be used to indicate that an IngressClass should be considered default. When a single IngressClass resource has this annotation set to true, new Ingress resources without a class specified will be assigned this default class.", + Description: "KnownServer represents a known server, containing information about its IP addresses and servers. The purpose is to enrich the GeneratedNetworkPolicy CRD", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -2899,23 +2702,65 @@ func schema_pkg_apis_softwarecomposition_v1beta1_IngressClass(ref common.Referen }, "spec": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressClassSpec"), + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.KnownServerEntry"), + }, + }, + }, }, }, }, + Required: []string{"spec"}, }, }, Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressClassSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.KnownServerEntry", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_softwarecomposition_v1beta1_IngressClassList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_KnownServerEntry(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "IngressClassList is a collection of IngressClasses.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "ipBlock": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "server": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "name": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"ipBlock", "server", "name"}, + }, + }, + } +} + +func schema_pkg_apis_softwarecomposition_v1beta1_KnownServerList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "KnownServerList is a list of KnownServer.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -2940,13 +2785,12 @@ func schema_pkg_apis_softwarecomposition_v1beta1_IngressClassList(ref common.Ref }, "items": { SchemaProps: spec.SchemaProps{ - Description: "items is the list of IngressClasses.", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressClass"), + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.KnownServer"), }, }, }, @@ -2957,1870 +2801,491 @@ func schema_pkg_apis_softwarecomposition_v1beta1_IngressClassList(ref common.Ref }, }, Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressClass", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.KnownServer", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_softwarecomposition_v1beta1_IngressClassParametersReference(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_License(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "IngressClassParametersReference identifies an API object. This can be used to specify a cluster or namespace-scoped resource.", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "apiGroup": { + "value": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "kind": { + "spdxExpression": { SchemaProps: spec.SchemaProps{ - Description: "kind is the type of resource being referenced.", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "name": { - SchemaProps: spec.SchemaProps{ - Description: "name is the name of resource being referenced.", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "scope": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "namespace": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - }, - Required: []string{"kind", "name", "scope"}, - }, - }, - } -} - -func schema_pkg_apis_softwarecomposition_v1beta1_IngressClassSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "IngressClassSpec provides information about the class of an Ingress.", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "controller": { - SchemaProps: spec.SchemaProps{ - Description: "controller refers to the name of the controller that should handle this class. This allows for different \"flavors\" that are controlled by the same controller. For example, you may have different parameters for the same implementing controller. This should be specified as a domain-prefixed path no more than 250 characters in length, e.g. \"acme.io/ingress-controller\". This field is immutable.", - Type: []string{"string"}, - Format: "", - }, - }, - "parameters": { - SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressClassParametersReference"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressClassParametersReference"}, - } -} - -func schema_pkg_apis_softwarecomposition_v1beta1_IngressList(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "IngressList is a collection of Ingress.", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { - SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", - }, - }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), - }, - }, - "items": { - SchemaProps: spec.SchemaProps{ - Description: "items is the list of Ingress.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Ingress"), - }, - }, - }, - }, - }, - }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Ingress", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, - } -} - -func schema_pkg_apis_softwarecomposition_v1beta1_IngressLoadBalancerIngress(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "IngressLoadBalancerIngress represents the status of a load-balancer ingress point.", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "ip": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "hostname": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "ports": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressPortStatus"), - }, - }, - }, - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressPortStatus"}, - } -} - -func schema_pkg_apis_softwarecomposition_v1beta1_IngressLoadBalancerStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "IngressLoadBalancerStatus represents the status of a load-balancer.", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "ingress": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressLoadBalancerIngress"), - }, - }, - }, - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressLoadBalancerIngress"}, - } -} - -func schema_pkg_apis_softwarecomposition_v1beta1_IngressPortStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "IngressPortStatus represents the error condition of a service port", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "port": { - SchemaProps: spec.SchemaProps{ - Description: "port is the port number of the ingress port.", - Default: 0, - Type: []string{"integer"}, - Format: "int32", - }, - }, - "protocol": { - SchemaProps: spec.SchemaProps{ - Description: "protocol is the protocol of the ingress port. The supported values are: \"TCP\", \"UDP\", \"SCTP\"", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "error": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - }, - Required: []string{"port", "protocol"}, - }, - }, - } -} - -func schema_pkg_apis_softwarecomposition_v1beta1_IngressRule(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue.", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "host": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "http": { - SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.HTTPIngressRuleValue"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.HTTPIngressRuleValue"}, - } -} - -func schema_pkg_apis_softwarecomposition_v1beta1_IngressRuleValue(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "IngressRuleValue represents a rule to apply against incoming requests. If the rule is satisfied, the request is routed to the specified backend. Currently mixing different types of rules in a single Ingress is disallowed, so exactly one of the following must be set.", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "http": { - SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.HTTPIngressRuleValue"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.HTTPIngressRuleValue"}, - } -} - -func schema_pkg_apis_softwarecomposition_v1beta1_IngressServiceBackend(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "IngressServiceBackend references a Kubernetes Service as a Backend.", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "name": { - SchemaProps: spec.SchemaProps{ - Description: "name is the referenced service. The service must exist in the same namespace as the Ingress object.", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "port": { - SchemaProps: spec.SchemaProps{ - Description: "port of the referenced service. A port name or port number is required for a IngressServiceBackend.", - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.ServiceBackendPort"), - }, - }, - }, - Required: []string{"name"}, - }, - }, - Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.ServiceBackendPort"}, - } -} - -func schema_pkg_apis_softwarecomposition_v1beta1_IngressSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "IngressSpec describes the Ingress the user wishes to exist.", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "ingressClassName": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "defaultBackend": { - SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressBackend"), - }, - }, - "tls": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressTLS"), - }, - }, - }, - }, - }, - "rules": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressRule"), - }, - }, - }, - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressBackend", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressRule", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressTLS"}, - } -} - -func schema_pkg_apis_softwarecomposition_v1beta1_IngressStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "IngressStatus describe the current state of the Ingress.", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "loadBalancer": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressLoadBalancerStatus"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IngressLoadBalancerStatus"}, - } -} - -func schema_pkg_apis_softwarecomposition_v1beta1_IngressTLS(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "IngressTLS describes the transport layer security associated with an ingress.", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "hosts": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - "secretName": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - } -} - -func schema_pkg_apis_softwarecomposition_v1beta1_KnownServer(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "KnownServer represents a known server, containing information about its IP addresses and servers. The purpose is to enrich the GeneratedNetworkPolicy CRD", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { - SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", - }, - }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), - }, - }, - "spec": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.KnownServerEntry"), - }, - }, - }, - }, - }, - }, - Required: []string{"spec"}, - }, - }, - Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.KnownServerEntry", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, - } -} - -func schema_pkg_apis_softwarecomposition_v1beta1_KnownServerEntry(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "ipBlock": { - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "server": { - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "name": { - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - Required: []string{"ipBlock", "server", "name"}, - }, - }, - } -} - -func schema_pkg_apis_softwarecomposition_v1beta1_KnownServerList(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "KnownServerList is a list of KnownServer.", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { - SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", - }, - }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), - }, - }, - "items": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.KnownServer"), - }, - }, - }, - }, - }, - }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.KnownServer", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, - } -} - -func schema_pkg_apis_softwarecomposition_v1beta1_License(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "value": { - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "spdxExpression": { - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "type": { - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "urls": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - "locations": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Location"), - }, - }, - }, - }, - }, - }, - Required: []string{"value", "spdxExpression", "type", "urls", "locations"}, - }, - }, - Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Location"}, - } -} - -func schema_pkg_apis_softwarecomposition_v1beta1_LinuxRelease(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "prettyName": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "name": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "id": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "idLike": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - "version": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "versionID": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "versionCodename": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "buildID": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "imageID": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "imageVersion": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "variant": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "variantID": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "homeURL": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "supportURL": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "bugReportURL": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "privacyPolicyURL": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "cpeName": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "supportEnd": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - } -} - -func schema_pkg_apis_softwarecomposition_v1beta1_Location(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "Location represents a path relative to a particular filesystem resolved to a specific file.Reference. This struct is used as a key in content fetching to uniquely identify a file relative to a request (the VirtualPath).", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "LocationData": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.LocationData"), - }, - }, - "LocationMetadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.LocationMetadata"), - }, - }, - }, - Required: []string{"LocationData", "LocationMetadata"}, - }, - }, - Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.LocationData", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.LocationMetadata"}, - } -} - -func schema_pkg_apis_softwarecomposition_v1beta1_LocationData(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "Coordinates": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Coordinates"), - }, - }, - "accessPath": { - SchemaProps: spec.SchemaProps{ - Description: "note: it is IMPORTANT to ignore anything but the coordinates for a Location when considering the ID (hash value) since the coordinates are the minimally correct ID for a location (symlinks should not come into play)", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - Required: []string{"Coordinates", "accessPath"}, - }, - }, - Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Coordinates"}, - } -} - -func schema_pkg_apis_softwarecomposition_v1beta1_LocationMetadata(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "annotations": { - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - }, - }, - }, - } -} - -func schema_pkg_apis_softwarecomposition_v1beta1_Match(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "vulnerability": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Vulnerability"), - }, - }, - "relatedVulnerabilities": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.VulnerabilityMetadata"), - }, - }, - }, - }, - }, - "matchDetails": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.MatchDetails"), - }, - }, - }, - }, - }, - "artifact": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.GrypePackage"), - }, - }, - }, - Required: []string{"vulnerability", "relatedVulnerabilities", "matchDetails", "artifact"}, - }, - }, - Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.GrypePackage", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.MatchDetails", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Vulnerability", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.VulnerabilityMetadata"}, - } -} - -func schema_pkg_apis_softwarecomposition_v1beta1_MatchDetails(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "type": { - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "matcher": { - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "searchedBy": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "byte", - }, - }, - "found": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "byte", - }, - }, - }, - Required: []string{"type", "matcher"}, - }, - }, - } -} - -func schema_pkg_apis_softwarecomposition_v1beta1_Metadata(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "@context": { - SchemaProps: spec.SchemaProps{ - Description: "Context is the URL pointing to the jsonld context definition", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "@id": { - SchemaProps: spec.SchemaProps{ - Description: "ID is the identifying string for the VEX document. This should be unique per document.", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "author": { - SchemaProps: spec.SchemaProps{ - Description: "Author is the identifier for the author of the VEX statement, ideally a common name, may be a URI. [author] is an individual or organization. [author] identity SHOULD be cryptographically associated with the signature of the VEX statement or document or transport.", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "role": { - SchemaProps: spec.SchemaProps{ - Description: "AuthorRole describes the role of the document Author.", - Type: []string{"string"}, - Format: "", - }, - }, - "timestamp": { - SchemaProps: spec.SchemaProps{ - Description: "Timestamp defines the time at which the document was issued.", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "last_updated": { - SchemaProps: spec.SchemaProps{ - Description: "LastUpdated marks the time when the document had its last update. When the document changes both version and this field should be updated.", - Type: []string{"string"}, - Format: "", - }, - }, - "version": { - SchemaProps: spec.SchemaProps{ - Description: "Version is the document version. It must be incremented when any content within the VEX document changes, including any VEX statements included within the VEX document.", - Default: 0, - Type: []string{"integer"}, - Format: "int32", - }, - }, - "tooling": { - SchemaProps: spec.SchemaProps{ - Description: "Tooling expresses how the VEX document and contained VEX statements were generated. It's optional. It may specify tools or automated processes used in the document or statement generation.", - Type: []string{"string"}, - Format: "", - }, - }, - "supplier": { - SchemaProps: spec.SchemaProps{ - Description: "Supplier is an optional field.", - Type: []string{"string"}, - Format: "", - }, - }, - }, - Required: []string{"@context", "@id", "author", "timestamp", "version"}, - }, - }, - } -} - -func schema_pkg_apis_softwarecomposition_v1beta1_NetworkNeighbor(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "NetworkNeighbor represents a single network communication made by this resource.", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "identifier": { - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "type": { - SchemaProps: spec.SchemaProps{ - Description: "A unique identifier for this entry", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "dns": { - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "dnsNames": { - SchemaProps: spec.SchemaProps{ - Description: "DEPRECATED - use DNSNames instead.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - "ports": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-patch-merge-key": "name", - "x-kubernetes-patch-strategy": "merge", - }, - }, - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkPort"), - }, - }, - }, - }, - }, - "podSelector": { - SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), - }, - }, - "namespaceSelector": { - SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), - }, - }, - "ipAddress": { - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - Required: []string{"identifier", "type", "dns", "dnsNames", "ports", "podSelector", "namespaceSelector", "ipAddress"}, - }, - }, - Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkPort", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, - } -} - -func schema_pkg_apis_softwarecomposition_v1beta1_NetworkNeighborhood(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "NetworkNeighborhood represents a list of network communications for a specific workload.", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { - SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", - }, - }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), - }, - }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkNeighborhoodSpec"), - }, - }, - }, - Required: []string{"spec"}, - }, - }, - Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkNeighborhoodSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, - } -} - -func schema_pkg_apis_softwarecomposition_v1beta1_NetworkNeighborhoodContainer(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "name": { - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "ingress": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkNeighbor"), - }, - }, - }, - }, - }, - "egress": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkNeighbor"), - }, - }, - }, - }, - }, - }, - Required: []string{"name", "ingress", "egress"}, - }, - }, - Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkNeighbor"}, - } -} - -func schema_pkg_apis_softwarecomposition_v1beta1_NetworkNeighborhoodList(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "NetworkNeighborhoodList is a list of NetworkNeighborhoods.", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { - SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", - }, - }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), - }, - }, - "items": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkNeighborhood"), - }, - }, - }, - }, - }, - }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkNeighborhood", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, - } -} - -func schema_pkg_apis_softwarecomposition_v1beta1_NetworkNeighborhoodSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "matchLabels": { - SchemaProps: spec.SchemaProps{ - Description: "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - "matchExpressions": { - SchemaProps: spec.SchemaProps{ - Description: "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement"), - }, - }, - }, - }, - }, - "containers": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkNeighborhoodContainer"), - }, - }, - }, - }, - }, - "initContainers": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkNeighborhoodContainer"), - }, - }, - }, - }, - }, - "ephemeralContainers": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkNeighborhoodContainer"), - }, - }, - }, - }, - }, - }, - Required: []string{"containers", "initContainers", "ephemeralContainers"}, - }, - }, - Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkNeighborhoodContainer", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement"}, - } -} - -func schema_pkg_apis_softwarecomposition_v1beta1_NetworkNeighbors(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "NetworkNeighbors represents a list of network communications for a specific workload. DEPRECATED - use NetworkNeighborhood instead.", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { - SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", - }, - }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), - }, - }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkNeighborsSpec"), - }, - }, - }, - Required: []string{"spec"}, - }, - }, - Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkNeighborsSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, - } -} - -func schema_pkg_apis_softwarecomposition_v1beta1_NetworkNeighborsList(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "NetworkNeighborsList is a list of NetworkNeighbors. DEPRECATED - use NetworkNeighborhoodList instead.", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { - SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", - }, - }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), - }, - }, - "items": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkNeighbors"), - }, - }, - }, - }, - }, - }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkNeighbors", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, - } -} - -func schema_pkg_apis_softwarecomposition_v1beta1_NetworkNeighborsSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "matchLabels": { - SchemaProps: spec.SchemaProps{ - Description: "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - "matchExpressions": { - SchemaProps: spec.SchemaProps{ - Description: "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement"), - }, - }, - }, - }, - }, - "ingress": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-patch-merge-key": "identifier", - "x-kubernetes-patch-strategy": "merge", - }, - }, - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkNeighbor"), - }, - }, - }, - }, - }, - "egress": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-patch-merge-key": "identifier", - "x-kubernetes-patch-strategy": "merge", - }, - }, - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkNeighbor"), - }, - }, - }, - }, - }, - }, - Required: []string{"ingress", "egress"}, - }, - }, - Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkNeighbor", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement"}, - } -} - -func schema_pkg_apis_softwarecomposition_v1beta1_NetworkPolicy(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "spec": { + "type": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkPolicySpec"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkPolicySpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, - } -} - -func schema_pkg_apis_softwarecomposition_v1beta1_NetworkPolicyEgressRule(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. This type is beta-level in 1.8", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "ports": { + "urls": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkPolicyPort"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "to": { + "locations": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkPolicyPeer"), + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Location"), }, }, }, }, }, }, + Required: []string{"value", "spdxExpression", "type", "urls", "locations"}, }, }, Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkPolicyPeer", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkPolicyPort"}, + "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Location"}, } } -func schema_pkg_apis_softwarecomposition_v1beta1_NetworkPolicyIngressRule(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_LinuxRelease(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "NetworkPolicyIngressRule describes a particular set of traffic that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and from.", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "ports": { + "prettyName": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkPolicyPort"), - }, - }, - }, + Type: []string{"string"}, + Format: "", }, }, - "from": { + "name": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "id": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "idLike": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkPolicyPeer"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkPolicyPeer", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkPolicyPort"}, - } -} - -func schema_pkg_apis_softwarecomposition_v1beta1_NetworkPolicyList(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "NetworkPolicyList is a list of NetworkPolicy objects.", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "version": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", + Type: []string{"string"}, + Format: "", }, }, - "apiVersion": { + "versionID": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", + Type: []string{"string"}, + Format: "", }, }, - "metadata": { + "versionCodename": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Type: []string{"string"}, + Format: "", }, }, - "items": { + "buildID": { SchemaProps: spec.SchemaProps{ - Description: "items is a list of schema objects.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkPolicy"), - }, - }, - }, + Type: []string{"string"}, + Format: "", + }, + }, + "imageID": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "imageVersion": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "variant": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "variantID": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "homeURL": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "supportURL": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "bugReportURL": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "privacyPolicyURL": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "cpeName": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "supportEnd": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", }, }, }, - Required: []string{"items"}, }, }, - Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkPolicy", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_softwarecomposition_v1beta1_NetworkPolicyPeer(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_Location(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of fields are allowed", + Description: "Location represents a path relative to a particular filesystem resolved to a specific file.Reference. This struct is used as a key in content fetching to uniquely identify a file relative to a request (the VirtualPath).", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "podSelector": { - SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), - }, - }, - "namespaceSelector": { + "LocationData": { SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Default: map[string]interface{}{}, + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.LocationData"), }, }, - "ipBlock": { + "LocationMetadata": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IPBlock"), + Default: map[string]interface{}{}, + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.LocationMetadata"), }, }, }, + Required: []string{"LocationData", "LocationMetadata"}, }, }, Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IPBlock", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.LocationData", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.LocationMetadata"}, } } -func schema_pkg_apis_softwarecomposition_v1beta1_NetworkPolicyPort(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_LocationData(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "NetworkPolicyPort describes a port to allow traffic on", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "protocol": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "port": { + "Coordinates": { SchemaProps: spec.SchemaProps{ - Type: []string{"integer"}, - Format: "int32", + Default: map[string]interface{}{}, + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Coordinates"), }, }, - "endPort": { + "accessPath": { SchemaProps: spec.SchemaProps{ - Type: []string{"integer"}, - Format: "int32", + Description: "note: it is IMPORTANT to ignore anything but the coordinates for a Location when considering the ID (hash value) since the coordinates are the minimally correct ID for a location (symlinks should not come into play)", + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, + Required: []string{"Coordinates", "accessPath"}, }, }, + Dependencies: []string{ + "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Coordinates"}, } } -func schema_pkg_apis_softwarecomposition_v1beta1_NetworkPolicySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_LocationMetadata(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "NetworkPolicySpec provides the specification of a NetworkPolicy", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "podSelector": { - SchemaProps: spec.SchemaProps{ - Description: "podSelector selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace.", - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), - }, - }, - "ingress": { + "annotations": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkPolicyIngressRule"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "egress": { + }, + }, + }, + } +} + +func schema_pkg_apis_softwarecomposition_v1beta1_Match(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "vulnerability": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Vulnerability"), + }, + }, + "relatedVulnerabilities": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkPolicyEgressRule"), + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.VulnerabilityMetadata"), }, }, }, }, }, - "policyTypes": { + "matchDetails": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.MatchDetails"), }, }, }, }, }, + "artifact": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.GrypePackage"), + }, + }, }, - Required: []string{"podSelector", "ingress", "egress", "policyTypes"}, + Required: []string{"vulnerability", "relatedVulnerabilities", "matchDetails", "artifact"}, }, }, Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkPolicyEgressRule", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkPolicyIngressRule", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.GrypePackage", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.MatchDetails", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Vulnerability", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.VulnerabilityMetadata"}, } } -func schema_pkg_apis_softwarecomposition_v1beta1_NetworkPolicyStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_MatchDetails(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "NetworkPolicyStatus describes the current state of the NetworkPolicy.", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "conditions": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-map-keys": []interface{}{ - "type", - }, - "x-kubernetes-list-type": "map", - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge", - }, + "type": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", }, + }, + "matcher": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Condition"), - }, - }, - }, + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "searchedBy": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "byte", + }, + }, + "found": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "byte", }, }, }, + Required: []string{"type", "matcher"}, }, }, - Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Condition"}, } } -func schema_pkg_apis_softwarecomposition_v1beta1_NetworkPort(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_Metadata(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "@context": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "Context is the URL pointing to the jsonld context definition", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "protocol": { + "@id": { SchemaProps: spec.SchemaProps{ - Description: "protocol-port", + Description: "ID is the identifying string for the VEX document. This should be unique per document.", Default: "", Type: []string{"string"}, Format: "", }, }, - "port": { + "author": { SchemaProps: spec.SchemaProps{ - Type: []string{"integer"}, - Format: "int32", + Description: "Author is the identifier for the author of the VEX statement, ideally a common name, may be a URI. [author] is an individual or organization. [author] identity SHOULD be cryptographically associated with the signature of the VEX statement or document or transport.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "role": { + SchemaProps: spec.SchemaProps{ + Description: "AuthorRole describes the role of the document Author.", + Type: []string{"string"}, + Format: "", + }, + }, + "timestamp": { + SchemaProps: spec.SchemaProps{ + Description: "Timestamp defines the time at which the document was issued.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "last_updated": { + SchemaProps: spec.SchemaProps{ + Description: "LastUpdated marks the time when the document had its last update. When the document changes both version and this field should be updated.", + Type: []string{"string"}, + Format: "", + }, + }, + "version": { + SchemaProps: spec.SchemaProps{ + Description: "Version is the document version. It must be incremented when any content within the VEX document changes, including any VEX statements included within the VEX document.", + Default: 0, + Type: []string{"integer"}, + Format: "int64", + }, + }, + "tooling": { + SchemaProps: spec.SchemaProps{ + Description: "Tooling expresses how the VEX document and contained VEX statements were generated. It's optional. It may specify tools or automated processes used in the document or statement generation.", + Type: []string{"string"}, + Format: "", + }, + }, + "supplier": { + SchemaProps: spec.SchemaProps{ + Description: "Supplier is an optional field.", + Type: []string{"string"}, + Format: "", }, }, }, - Required: []string{"name", "protocol", "port"}, + Required: []string{"@context", "@id", "author", "timestamp", "version"}, }, }, } } -func schema_pkg_apis_softwarecomposition_v1beta1_OpenCalls(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_NetworkNeighbor(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "NetworkNeighbor represents a single network communication made by this resource.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "path": { + "identifier": { SchemaProps: spec.SchemaProps{ Default: "", Type: []string{"string"}, Format: "", }, }, - "flags": { + "type": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "A unique identifier for this entry", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "dns": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "dnsNames": { + SchemaProps: spec.SchemaProps{ + Description: "DEPRECATED - use DNSNames instead.", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -4832,18 +3297,57 @@ func schema_pkg_apis_softwarecomposition_v1beta1_OpenCalls(ref common.ReferenceC }, }, }, + "ports": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge", + }, + }, + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkPort"), + }, + }, + }, + }, + }, + "podSelector": { + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + }, + }, + "namespaceSelector": { + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + }, + }, + "ipAddress": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, }, - Required: []string{"path", "flags"}, + Required: []string{"identifier", "type", "dns", "dnsNames", "ports", "podSelector", "namespaceSelector", "ipAddress"}, }, }, + Dependencies: []string{ + "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkPort", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, } } -func schema_pkg_apis_softwarecomposition_v1beta1_OpenVulnerabilityExchangeContainer(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_NetworkNeighborhood(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "NetworkNeighborhood represents a list of network communications for a specific workload.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -4868,22 +3372,72 @@ func schema_pkg_apis_softwarecomposition_v1beta1_OpenVulnerabilityExchangeContai "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.VEX"), + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkNeighborhoodSpec"), + }, + }, + }, + Required: []string{"spec"}, + }, + }, + Dependencies: []string{ + "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkNeighborhoodSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_softwarecomposition_v1beta1_NetworkNeighborhoodContainer(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "ingress": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkNeighbor"), + }, + }, + }, + }, + }, + "egress": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkNeighbor"), + }, + }, + }, }, }, }, + Required: []string{"name", "ingress", "egress"}, }, }, Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.VEX", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkNeighbor"}, } } -func schema_pkg_apis_softwarecomposition_v1beta1_OpenVulnerabilityExchangeContainerList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_NetworkNeighborhoodList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "NetworkNeighborhoodList is a list of NetworkNeighborhoods.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -4912,7 +3466,7 @@ func schema_pkg_apis_softwarecomposition_v1beta1_OpenVulnerabilityExchangeContai Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.OpenVulnerabilityExchangeContainer"), + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkNeighborhood"), }, }, }, @@ -4923,231 +3477,197 @@ func schema_pkg_apis_softwarecomposition_v1beta1_OpenVulnerabilityExchangeContai }, }, Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.OpenVulnerabilityExchangeContainer", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkNeighborhood", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_softwarecomposition_v1beta1_Originator(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_NetworkNeighborhoodSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "Originator": { - SchemaProps: spec.SchemaProps{ - Description: "can be \"NOASSERTION\"", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "OriginatorType": { - SchemaProps: spec.SchemaProps{ - Description: "OriginatorType can be one of \"Person\", \"Organization\", or empty if Originator is \"NOASSERTION\"", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - Required: []string{"Originator", "OriginatorType"}, - }, - }, - } -} - -func schema_pkg_apis_softwarecomposition_v1beta1_OtherLicense(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "OtherLicense is an Other License Information section of an SPDX Document for version 2.3 of the spec.", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "licenseId": { + "matchLabels": { SchemaProps: spec.SchemaProps{ - Description: "10.1: License Identifier: \"LicenseRef-[idstring]\" Cardinality: conditional (mandatory, one) if license is not\n on SPDX License List", - Default: "", - Type: []string{"string"}, - Format: "", + Description: "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "extractedText": { + "matchExpressions": { SchemaProps: spec.SchemaProps{ - Description: "10.2: Extracted Text Cardinality: conditional (mandatory, one) if there is a\n License Identifier assigned", - Default: "", - Type: []string{"string"}, - Format: "", + Description: "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement"), + }, + }, + }, }, }, - "name": { + "containers": { SchemaProps: spec.SchemaProps{ - Description: "10.3: License Name: single line of text or \"NOASSERTION\" Cardinality: conditional (mandatory, one) if license is not\n on SPDX License List", - Default: "", - Type: []string{"string"}, - Format: "", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkNeighborhoodContainer"), + }, + }, + }, }, }, - "seeAlsos": { + "initContainers": { SchemaProps: spec.SchemaProps{ - Description: "10.4: License Cross Reference Cardinality: conditional (optional, one or many) if license\n is not on SPDX License List", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkNeighborhoodContainer"), }, }, }, }, }, - "comment": { + "ephemeralContainers": { SchemaProps: spec.SchemaProps{ - Description: "10.5: License Comment Cardinality: optional, one", - Default: "", - Type: []string{"string"}, - Format: "", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkNeighborhoodContainer"), + }, + }, + }, }, }, }, - Required: []string{"licenseId", "extractedText", "name", "seeAlsos", "comment"}, + Required: []string{"containers", "initContainers", "ephemeralContainers"}, }, }, + Dependencies: []string{ + "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkNeighborhoodContainer", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement"}, } } -func schema_pkg_apis_softwarecomposition_v1beta1_Package(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_NetworkNeighbors(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Package is a Package section of an SPDX Document for version 2.3 of the spec.", + Description: "NetworkNeighbors represents a list of network communications for a specific workload. DEPRECATED - use NetworkNeighborhood instead.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "hasFiles": { - SchemaProps: spec.SchemaProps{ - Description: "Added", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - "name": { - SchemaProps: spec.SchemaProps{ - Description: "7.1: Package Name Cardinality: mandatory, one", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "SPDXID": { - SchemaProps: spec.SchemaProps{ - Description: "7.2: Package SPDX Identifier: \"SPDXRef-[idstring]\" Cardinality: mandatory, one", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "versionInfo": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "7.3: Package Version Cardinality: optional, one", - Default: "", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "packageFileName": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "7.4: Package File Name Cardinality: optional, one", - Default: "", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "supplier": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "7.5: Package Supplier: may have single result for either Person or Organization,\n or NOASSERTION\nCardinality: optional, one", - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Supplier"), + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "originator": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "7.6: Package Originator: may have single result for either Person or Organization,\n or NOASSERTION\nCardinality: optional, one", - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Originator"), + Default: map[string]interface{}{}, + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkNeighborsSpec"), }, }, - "downloadLocation": { + }, + Required: []string{"spec"}, + }, + }, + Dependencies: []string{ + "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkNeighborsSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_softwarecomposition_v1beta1_NetworkNeighborsList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "NetworkNeighborsList is a list of NetworkNeighbors. DEPRECATED - use NetworkNeighborhoodList instead.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "7.7: Package Download Location Cardinality: mandatory, one", - Default: "", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "filesAnalyzed": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "7.8: FilesAnalyzed Cardinality: optional, one; default value is \"true\" if omitted", - Default: false, - Type: []string{"boolean"}, + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, Format: "", }, }, - "packageVerificationCode": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "7.9: Package Verification Code Cardinality: if FilesAnalyzed == true must be present, if FilesAnalyzed == false must be omitted", - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.PackageVerificationCode"), + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "checksums": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "7.10: Package Checksum: may have keys for SHA1, SHA256, SHA512, MD5, SHA3-256, SHA3-384, SHA3-512, BLAKE2b-256, BLAKE2b-384, BLAKE2b-512, BLAKE3, ADLER32 Cardinality: optional, one or many", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Checksum"), + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkNeighbors"), }, }, }, }, }, - "homepage": { - SchemaProps: spec.SchemaProps{ - Description: "7.11: Package Home Page Cardinality: optional, one", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "sourceInfo": { - SchemaProps: spec.SchemaProps{ - Description: "7.12: Source Information Cardinality: optional, one", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "licenseConcluded": { - SchemaProps: spec.SchemaProps{ - Description: "7.13: Concluded License: SPDX License Expression, \"NONE\" or \"NOASSERTION\" Cardinality: optional, one", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "licenseInfoFromFiles": { + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkNeighbors", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_softwarecomposition_v1beta1_NetworkNeighborsSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "matchLabels": { SchemaProps: spec.SchemaProps{ - Description: "7.14: All Licenses Info from Files: SPDX License Expression, \"NONE\" or \"NOASSERTION\" Cardinality: optional, one or many if filesAnalyzed is true / omitted;\n zero (must be omitted) if filesAnalyzed is false", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + Description: "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: "", @@ -5158,329 +3678,339 @@ func schema_pkg_apis_softwarecomposition_v1beta1_Package(ref common.ReferenceCal }, }, }, - "licenseDeclared": { - SchemaProps: spec.SchemaProps{ - Description: "7.15: Declared License: SPDX License Expression, \"NONE\" or \"NOASSERTION\" Cardinality: optional, one", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "licenseComments": { - SchemaProps: spec.SchemaProps{ - Description: "7.16: Comments on License Cardinality: optional, one", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "copyrightText": { - SchemaProps: spec.SchemaProps{ - Description: "7.17: Copyright Text: copyright notice(s) text, \"NONE\" or \"NOASSERTION\" Cardinality: mandatory, one", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "summary": { - SchemaProps: spec.SchemaProps{ - Description: "7.18: Package Summary Description Cardinality: optional, one", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "description": { - SchemaProps: spec.SchemaProps{ - Description: "7.19: Package Detailed Description Cardinality: optional, one", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "comment": { - SchemaProps: spec.SchemaProps{ - Description: "7.20: Package Comment Cardinality: optional, one", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "externalRefs": { + "matchExpressions": { SchemaProps: spec.SchemaProps{ - Description: "7.21: Package External Reference Cardinality: optional, one or many", + Description: "matchExpressions is a list of label selector requirements. The requirements are ANDed.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.PackageExternalReference"), + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement"), }, }, }, }, }, - "attributionTexts": { + "ingress": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-patch-merge-key": "identifier", + "x-kubernetes-patch-strategy": "merge", + }, + }, SchemaProps: spec.SchemaProps{ - Description: "7.23: Package Attribution Text Cardinality: optional, one or many", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkNeighbor"), }, }, }, }, }, - "primaryPackagePurpose": { + "egress": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-patch-merge-key": "identifier", + "x-kubernetes-patch-strategy": "merge", + }, + }, SchemaProps: spec.SchemaProps{ - Description: "7.24: Primary Package Purpose Cardinality: optional, one or many Allowed values: APPLICATION, FRAMEWORK, LIBRARY, CONTAINER, OPERATING-SYSTEM, DEVICE, FIRMWARE, SOURCE, ARCHIVE, FILE, INSTALL, OTHER", - Default: "", - Type: []string{"string"}, - Format: "", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkNeighbor"), + }, + }, + }, }, }, - "releaseDate": { + }, + Required: []string{"ingress", "egress"}, + }, + }, + Dependencies: []string{ + "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkNeighbor", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement"}, + } +} + +func schema_pkg_apis_softwarecomposition_v1beta1_NetworkPolicy(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "7.25: Release Date: YYYY-MM-DDThh:mm:ssZ Cardinality: optional, one", - Default: "", - Type: []string{"string"}, - Format: "", + Type: []string{"string"}, + Format: "", }, }, - "builtDate": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "7.26: Build Date: YYYY-MM-DDThh:mm:ssZ Cardinality: optional, one", - Default: "", - Type: []string{"string"}, - Format: "", + Type: []string{"string"}, + Format: "", }, }, - "validUntilDate": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "7.27: Valid Until Date: YYYY-MM-DDThh:mm:ssZ Cardinality: optional, one", - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "files": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "Files contained in this Package", - Type: []string{"array"}, + Default: map[string]interface{}{}, + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkPolicySpec"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkPolicySpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_softwarecomposition_v1beta1_NetworkPolicyEgressRule(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. This type is beta-level in 1.8", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "ports": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.File"), + Default: map[string]interface{}{}, + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkPolicyPort"), }, }, }, }, }, - "annotations": { + "to": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Annotation"), + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkPolicyPeer"), }, }, }, }, }, }, - Required: []string{"hasFiles", "name", "SPDXID", "versionInfo", "packageFileName", "supplier", "originator", "downloadLocation", "filesAnalyzed", "packageVerificationCode", "checksums", "homepage", "sourceInfo", "licenseConcluded", "licenseInfoFromFiles", "licenseDeclared", "licenseComments", "copyrightText", "summary", "description", "comment", "externalRefs", "attributionTexts", "primaryPackagePurpose", "releaseDate", "builtDate", "validUntilDate", "files", "annotations"}, }, }, Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Annotation", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Checksum", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.File", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Originator", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.PackageExternalReference", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.PackageVerificationCode", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Supplier"}, + "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkPolicyPeer", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkPolicyPort"}, } } -func schema_pkg_apis_softwarecomposition_v1beta1_PackageBasicData(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_NetworkPolicyIngressRule(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "PackageBasicData contains non-ambiguous values (type-wise) from pkg.SyftPackage.", + Description: "NetworkPolicyIngressRule describes a particular set of traffic that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and from.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "id": { - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "name": { - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "version": { - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "type": { - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "foundBy": { - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "locations": { + "ports": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Location"), + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkPolicyPort"), }, }, }, }, }, - "licenses": { + "from": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.License"), + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkPolicyPeer"), }, }, }, }, }, - "language": { + }, + }, + }, + Dependencies: []string{ + "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkPolicyPeer", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkPolicyPort"}, + } +} + +func schema_pkg_apis_softwarecomposition_v1beta1_NetworkPolicyList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "NetworkPolicyList is a list of NetworkPolicy objects.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "cpes": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Description: "items is a list of schema objects.", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.CPE"), + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkPolicy"), }, }, }, }, }, - "purl": { + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkPolicy", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_softwarecomposition_v1beta1_NetworkPolicyPeer(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of fields are allowed", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "podSelector": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + }, + }, + "namespaceSelector": { + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + }, + }, + "ipBlock": { + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IPBlock"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.IPBlock", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + } +} + +func schema_pkg_apis_softwarecomposition_v1beta1_NetworkPolicyPort(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "NetworkPolicyPort describes a port to allow traffic on", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "protocol": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "port": { + SchemaProps: spec.SchemaProps{ + Type: []string{"integer"}, + Format: "int32", + }, + }, + "endPort": { + SchemaProps: spec.SchemaProps{ + Type: []string{"integer"}, + Format: "int32", }, }, }, - Required: []string{"id", "name", "version", "type", "foundBy", "locations", "licenses", "language", "cpes", "purl"}, }, }, - Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.CPE", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.License", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Location"}, } } -func schema_pkg_apis_softwarecomposition_v1beta1_PackageBasicDataV01011(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_NetworkPolicySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "PackageBasicDataV01011 is the previous version of PackageBasicData used in schema v0.101.1.", + Description: "NetworkPolicySpec provides the specification of a NetworkPolicy", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "id": { - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "name": { - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "version": { - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "type": { - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "foundBy": { + "podSelector": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "podSelector selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace.", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), }, }, - "locations": { + "ingress": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Location"), + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkPolicyIngressRule"), }, }, }, }, }, - "licenses": { + "egress": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.License"), + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkPolicyEgressRule"), }, }, }, }, }, - "language": { - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "cpes": { + "policyTypes": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ @@ -5494,111 +4024,103 @@ func schema_pkg_apis_softwarecomposition_v1beta1_PackageBasicDataV01011(ref comm }, }, }, - "purl": { - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, }, - Required: []string{"id", "name", "version", "type", "foundBy", "locations", "licenses", "language", "cpes", "purl"}, + Required: []string{"podSelector", "ingress", "egress", "policyTypes"}, }, }, Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.License", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Location"}, + "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkPolicyEgressRule", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.NetworkPolicyIngressRule", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, } } -func schema_pkg_apis_softwarecomposition_v1beta1_PackageCustomData(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_NetworkPolicyStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "PackageCustomData contains ambiguous values (type-wise) from pkg.SyftPackage.", + Description: "NetworkPolicyStatus describes the current state of the NetworkPolicy.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "metadataType": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + "conditions": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "type", + }, + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge", + }, }, - }, - "metadata": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "byte", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Condition"), + }, + }, + }, }, }, }, }, }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.Condition"}, } } -func schema_pkg_apis_softwarecomposition_v1beta1_PackageExternalReference(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_NetworkPort(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "PackageExternalReference is an External Reference to additional info about a Package, as defined in section 7.21 in version 2.3 of the spec.", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "referenceCategory": { - SchemaProps: spec.SchemaProps{ - Description: "category is \"SECURITY\", \"PACKAGE-MANAGER\" or \"OTHER\"", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "referenceType": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "type is an [idstring] as defined in Appendix VI; called RefType here due to \"type\" being a Golang keyword", - Default: "", - Type: []string{"string"}, - Format: "", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "referenceLocator": { + "protocol": { SchemaProps: spec.SchemaProps{ - Description: "locator is a unique string to access the package-specific info, metadata or content within the target location", + Description: "protocol-port", Default: "", Type: []string{"string"}, Format: "", }, }, - "comment": { + "port": { SchemaProps: spec.SchemaProps{ - Description: "7.22: Package External Reference Comment Cardinality: conditional (optional, one) for each External Reference", - Default: "", - Type: []string{"string"}, - Format: "", + Type: []string{"integer"}, + Format: "int32", }, }, }, - Required: []string{"referenceCategory", "referenceType", "referenceLocator", "comment"}, + Required: []string{"name", "protocol", "port"}, }, }, } } -func schema_pkg_apis_softwarecomposition_v1beta1_PackageVerificationCode(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_OpenCalls(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "packageVerificationCodeValue": { + "path": { SchemaProps: spec.SchemaProps{ - Description: "Cardinality: mandatory, one if filesAnalyzed is true / omitted;\n zero (must be omitted) if filesAnalyzed is false", - Default: "", - Type: []string{"string"}, - Format: "", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "packageVerificationCodeExcludedFiles": { + "flags": { SchemaProps: spec.SchemaProps{ - Description: "Spec also allows specifying files to exclude from the verification code algorithm; intended to enable exclusion of the SPDX document file itself.", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -5611,258 +4133,294 @@ func schema_pkg_apis_softwarecomposition_v1beta1_PackageVerificationCode(ref com }, }, }, - Required: []string{"packageVerificationCodeValue", "packageVerificationCodeExcludedFiles"}, + Required: []string{"path", "flags"}, }, }, } } -func schema_pkg_apis_softwarecomposition_v1beta1_PolicyRef(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_OpenVulnerabilityExchangeContainer(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "ipBlock": { - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "originalIP": { + "kind": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "dns": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - "name": { + "metadata": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "server": { + "spec": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.VEX"), }, }, }, - Required: []string{"ipBlock", "originalIP", "dns", "name", "server"}, }, }, + Dependencies: []string{ + "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.VEX", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_softwarecomposition_v1beta1_Product(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_OpenVulnerabilityExchangeContainerList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "Component": { + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Component"), + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "subcomponents": { + "items": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Subcomponent"), + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.OpenVulnerabilityExchangeContainer"), }, }, }, }, }, }, - Required: []string{"Component"}, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Component", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Subcomponent"}, + "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.OpenVulnerabilityExchangeContainer", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_softwarecomposition_v1beta1_Relationship(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_PackageBasicData(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Relationship is a Relationship section of an SPDX Document for version 2.3 of the spec.", + Description: "PackageBasicData contains non-ambiguous values (type-wise) from pkg.SyftPackage.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "spdxElementId": { + "id": { SchemaProps: spec.SchemaProps{ - Description: "11.1: Relationship Cardinality: optional, one or more; one per Relationship\n one mandatory for SPDX Document with multiple packages\nRefA and RefB are first and second item Relationship is type from 11.1.1", - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.DocElementID"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "relatedSpdxElement": { + "name": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.DocElementID"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "relationshipType": { + "version": { SchemaProps: spec.SchemaProps{ Default: "", Type: []string{"string"}, Format: "", }, }, - "comment": { + "type": { SchemaProps: spec.SchemaProps{ - Description: "11.2: Relationship Comment Cardinality: optional, one", - Default: "", - Type: []string{"string"}, - Format: "", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - }, - Required: []string{"spdxElementId", "relatedSpdxElement", "relationshipType", "comment"}, - }, - }, - Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.DocElementID"}, - } -} - -func schema_pkg_apis_softwarecomposition_v1beta1_ReportMeta(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "ReportMeta describes metadata about a report", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "createdAt": { + "foundBy": { SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "locations": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Location"), + }, + }, + }, }, }, - }, - Required: []string{"createdAt"}, - }, - }, - Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, - } -} - -func schema_pkg_apis_softwarecomposition_v1beta1_Review(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "Review is a Review section of an SPDX Document for version 2.3 of the spec. DEPRECATED in version 2.0 of spec; retained here for compatibility.", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "Reviewer": { + "licenses": { SchemaProps: spec.SchemaProps{ - Description: "DEPRECATED in version 2.0 of spec 13.1: Reviewer Cardinality: optional, one", - Default: "", - Type: []string{"string"}, - Format: "", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.License"), + }, + }, + }, }, }, - "ReviewerType": { + "language": { SchemaProps: spec.SchemaProps{ - Description: "including AnnotatorType: one of \"Person\", \"Organization\" or \"Tool\"", - Default: "", - Type: []string{"string"}, - Format: "", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "ReviewDate": { + "cpes": { SchemaProps: spec.SchemaProps{ - Description: "DEPRECATED in version 2.0 of spec 13.2: Review Date: YYYY-MM-DDThh:mm:ssZ Cardinality: conditional (mandatory, one) if there is a Reviewer", - Default: "", - Type: []string{"string"}, - Format: "", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.CPE"), + }, + }, + }, }, }, - "ReviewComment": { + "purl": { SchemaProps: spec.SchemaProps{ - Description: "DEPRECATED in version 2.0 of spec 13.3: Review Comment Cardinality: optional, one", - Default: "", - Type: []string{"string"}, - Format: "", + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, - Required: []string{"Reviewer", "ReviewerType", "ReviewDate", "ReviewComment"}, + Required: []string{"id", "name", "version", "type", "foundBy", "locations", "licenses", "language", "cpes", "purl"}, }, }, + Dependencies: []string{ + "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.CPE", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.License", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Location"}, } } -func schema_pkg_apis_softwarecomposition_v1beta1_RulePath(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_PackageBasicDataV01011(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "PackageBasicDataV01011 is the previous version of PackageBasicData used in schema v0.101.1.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "failedPath": { + "id": { SchemaProps: spec.SchemaProps{ Default: "", Type: []string{"string"}, Format: "", }, }, - "fixPath": { + "name": { SchemaProps: spec.SchemaProps{ Default: "", Type: []string{"string"}, Format: "", }, }, - "fixPathValue": { + "version": { SchemaProps: spec.SchemaProps{ Default: "", Type: []string{"string"}, Format: "", }, }, - "fixCommand": { + "type": { SchemaProps: spec.SchemaProps{ Default: "", Type: []string{"string"}, Format: "", }, }, - }, - Required: []string{"failedPath", "fixPath", "fixPathValue", "fixCommand"}, - }, - }, - } -} - -func schema_pkg_apis_softwarecomposition_v1beta1_RuleStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "status": { + "foundBy": { SchemaProps: spec.SchemaProps{ Default: "", Type: []string{"string"}, Format: "", }, }, - "subStatus": { + "locations": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Location"), + }, + }, + }, + }, + }, + "licenses": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.License"), + }, + }, + }, + }, + }, + "language": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "cpes": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "purl": { SchemaProps: spec.SchemaProps{ Default: "", Type: []string{"string"}, @@ -5870,238 +4428,205 @@ func schema_pkg_apis_softwarecomposition_v1beta1_RuleStatus(ref common.Reference }, }, }, - Required: []string{"status", "subStatus"}, + Required: []string{"id", "name", "version", "type", "foundBy", "locations", "licenses", "language", "cpes", "purl"}, }, }, + Dependencies: []string{ + "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.License", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Location"}, } } -func schema_pkg_apis_softwarecomposition_v1beta1_SBOMSPDXv2p3(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_PackageCustomData(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "SBOMSPDXv2p3 is a custom resource that describes an SBOM in the SPDX 2.3 format.", + Description: "PackageCustomData contains ambiguous values (type-wise) from pkg.SyftPackage.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { + "metadataType": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", + Type: []string{"string"}, + Format: "", }, }, "metadata": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), - }, - }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.SBOMSPDXv2p3Spec"), - }, - }, - "status": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.SBOMSPDXv2p3Status"), + Type: []string{"string"}, + Format: "byte", }, }, }, }, }, - Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.SBOMSPDXv2p3Spec", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.SBOMSPDXv2p3Status", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_softwarecomposition_v1beta1_SBOMSPDXv2p3Filtered(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_PolicyRef(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "SBOMSPDXv2p3Filtered is a custom resource that describes a filtered SBOM in the SPDX 2.3 format.\n\nBeing filtered means that the SBOM contains only the relevant vulnerable materials.", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "ipBlock": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "apiVersion": { + "originalIP": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "metadata": { + "dns": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "spec": { + "name": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.SBOMSPDXv2p3Spec"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "status": { + "server": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.SBOMSPDXv2p3Status"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, + Required: []string{"ipBlock", "originalIP", "dns", "name", "server"}, }, }, - Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.SBOMSPDXv2p3Spec", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.SBOMSPDXv2p3Status", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_softwarecomposition_v1beta1_SBOMSPDXv2p3FilteredList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_Product(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "SBOMSPDXv2p3FilteredList is a list of SBOMSPDXv2p3Filtered objects.", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { + "Component": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Component"), }, }, - "metadata": { + "subcomponents": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Subcomponent"), + }, + }, + }, }, }, - "items": { + }, + Required: []string{"Component"}, + }, + }, + Dependencies: []string{ + "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Component", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Subcomponent"}, + } +} + +func schema_pkg_apis_softwarecomposition_v1beta1_ReportMeta(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ReportMeta describes metadata about a report", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "createdAt": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.SBOMSPDXv2p3Filtered"), - }, - }, - }, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), }, }, }, - Required: []string{"items"}, + Required: []string{"createdAt"}, }, }, Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.SBOMSPDXv2p3Filtered", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, } } -func schema_pkg_apis_softwarecomposition_v1beta1_SBOMSPDXv2p3List(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_RulePath(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "SBOMSPDXv2p3List is a list of Flunder objects.", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "failedPath": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "apiVersion": { + "fixPath": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "metadata": { + "fixPathValue": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "items": { + "fixCommand": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.SBOMSPDXv2p3"), - }, - }, - }, + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, - Required: []string{"items"}, + Required: []string{"failedPath", "fixPath", "fixPathValue", "fixCommand"}, }, }, - Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.SBOMSPDXv2p3", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_softwarecomposition_v1beta1_SBOMSPDXv2p3Spec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_softwarecomposition_v1beta1_RuleStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "SBOMSPDXv2p3Spec is the specification of an SPDX SBOM.", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "metadata": { + "status": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.SPDXMeta"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "spdx": { + "subStatus": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Document"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, - Required: []string{"metadata"}, - }, - }, - Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.Document", "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.SPDXMeta"}, - } -} - -func schema_pkg_apis_softwarecomposition_v1beta1_SBOMSPDXv2p3Status(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "SBOMSPDXv2p3Status is the status of an SPDX SBOM.", - Type: []string{"object"}, + Required: []string{"status", "subStatus"}, }, }, } @@ -6158,7 +4683,7 @@ func schema_pkg_apis_softwarecomposition_v1beta1_SBOMSyftFiltered(ref common.Ref return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "SBOMSyftFiltered is a custom resource that describes a filtered SBOM in the Syft 2.3 format.\n\nBeing filtered means that the SBOM contains only the relevant vulnerable materials.", + Description: "SBOMSyftFiltered is a custom resource that describes a filtered SBOM in the Syft format.\n\nBeing filtered means that the SBOM contains only the relevant vulnerable materials.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -6446,16 +4971,9 @@ func schema_pkg_apis_softwarecomposition_v1beta1_ScannedControlRule(ref common.R Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, @@ -6965,8 +5483,9 @@ func schema_pkg_apis_softwarecomposition_v1beta1_SingleSeccompProfileSpec(ref co Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, @@ -7042,170 +5561,6 @@ func schema_pkg_apis_softwarecomposition_v1beta1_SingleSeccompProfileStatus(ref } } -func schema_pkg_apis_softwarecomposition_v1beta1_Snippet(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "Snippet is a Snippet section of an SPDX Document for version 2.3 of the spec.", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "SPDXID": { - SchemaProps: spec.SchemaProps{ - Description: "9.1: Snippet SPDX Identifier: \"SPDXRef-[idstring]\" Cardinality: mandatory, one", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "snippetFromFile": { - SchemaProps: spec.SchemaProps{ - Description: "9.2: Snippet from File SPDX Identifier Cardinality: mandatory, one", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "ranges": { - SchemaProps: spec.SchemaProps{ - Description: "Ranges denotes the start/end byte offsets or line numbers that the snippet is relevant to", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.SnippetRange"), - }, - }, - }, - }, - }, - "licenseConcluded": { - SchemaProps: spec.SchemaProps{ - Description: "9.5: Snippet Concluded License: SPDX License Expression, \"NONE\" or \"NOASSERTION\" Cardinality: optional, one", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "licenseInfoInSnippets": { - SchemaProps: spec.SchemaProps{ - Description: "9.6: License Information in Snippet: SPDX License Expression, \"NONE\" or \"NOASSERTION\" Cardinality: optional, one or many", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - "licenseComments": { - SchemaProps: spec.SchemaProps{ - Description: "9.7: Snippet Comments on License Cardinality: optional, one", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "copyrightText": { - SchemaProps: spec.SchemaProps{ - Description: "9.8: Snippet Copyright Text: copyright notice(s) text, \"NONE\" or \"NOASSERTION\" Cardinality: mandatory, one", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "comment": { - SchemaProps: spec.SchemaProps{ - Description: "9.9: Snippet Comment Cardinality: optional, one", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "name": { - SchemaProps: spec.SchemaProps{ - Description: "9.10: Snippet Name Cardinality: optional, one", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - Required: []string{"SPDXID", "snippetFromFile", "ranges", "licenseConcluded", "licenseInfoInSnippets", "licenseComments", "copyrightText", "comment", "name"}, - }, - }, - Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.SnippetRange"}, - } -} - -func schema_pkg_apis_softwarecomposition_v1beta1_SnippetRange(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "startPointer": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.SnippetRangePointer"), - }, - }, - "endPointer": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.SnippetRangePointer"), - }, - }, - }, - Required: []string{"startPointer", "endPointer"}, - }, - }, - Dependencies: []string{ - "github.com/kubescape/storage/pkg/apis/softwarecomposition/v1beta1.SnippetRangePointer"}, - } -} - -func schema_pkg_apis_softwarecomposition_v1beta1_SnippetRangePointer(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "offset": { - SchemaProps: spec.SchemaProps{ - Description: "5.3: Snippet Byte Range: [start byte]:[end byte] Cardinality: mandatory, one", - Default: 0, - Type: []string{"integer"}, - Format: "int32", - }, - }, - "lineNumber": { - SchemaProps: spec.SchemaProps{ - Description: "5.4: Snippet Line Range: [start line]:[end line] Cardinality: optional, one", - Default: 0, - Type: []string{"integer"}, - Format: "int32", - }, - }, - "reference": { - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - Required: []string{"offset", "lineNumber", "reference"}, - }, - }, - } -} - func schema_pkg_apis_softwarecomposition_v1beta1_Source(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -7404,35 +5759,6 @@ func schema_pkg_apis_softwarecomposition_v1beta1_Subcomponent(ref common.Referen } } -func schema_pkg_apis_softwarecomposition_v1beta1_Supplier(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "Supplier": { - SchemaProps: spec.SchemaProps{ - Description: "can be \"NOASSERTION\"", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "SupplierType": { - SchemaProps: spec.SchemaProps{ - Description: "SupplierType can be one of \"Person\", \"Organization\", or empty if Supplier is \"NOASSERTION\"", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - Required: []string{"Supplier", "SupplierType"}, - }, - }, - } -} - func schema_pkg_apis_softwarecomposition_v1beta1_SyftCoordinates(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -7497,7 +5823,7 @@ func schema_pkg_apis_softwarecomposition_v1beta1_SyftDocument(ref common.Referen return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Document represents the syft cataloging findings as a JSON document", + Description: "SyftDocument represents the syft cataloging findings as a JSON document", Type: []string{"object"}, Properties: map[string]spec.Schema{ "artifacts": { @@ -7795,7 +6121,7 @@ func schema_pkg_apis_softwarecomposition_v1beta1_Syscall(ref common.ReferenceCal SchemaProps: spec.SchemaProps{ Description: "the errno return code to use. Some actions like SCMP_ACT_ERRNO and SCMP_ACT_TRACE allow to specify the errno code to return", Type: []string{"integer"}, - Format: "int32", + Format: "int64", }, }, "args": { @@ -8068,13 +6394,13 @@ func schema_pkg_apis_softwarecomposition_v1beta1_VulnerabilityCounters(ref commo SchemaProps: spec.SchemaProps{ Default: 0, Type: []string{"integer"}, - Format: "int32", + Format: "int64", }, }, "relevant": { SchemaProps: spec.SchemaProps{ Type: []string{"integer"}, - Format: "int32", + Format: "int64", }, }, }, @@ -8745,35 +7071,35 @@ func schema_pkg_apis_softwarecomposition_v1beta1_WorkloadConfigurationScanSeveri SchemaProps: spec.SchemaProps{ Default: 0, Type: []string{"integer"}, - Format: "int32", + Format: "int64", }, }, "high": { SchemaProps: spec.SchemaProps{ Default: 0, Type: []string{"integer"}, - Format: "int32", + Format: "int64", }, }, "medium": { SchemaProps: spec.SchemaProps{ Default: 0, Type: []string{"integer"}, - Format: "int32", + Format: "int64", }, }, "low": { SchemaProps: spec.SchemaProps{ Default: 0, Type: []string{"integer"}, - Format: "int32", + Format: "int64", }, }, "unknown": { SchemaProps: spec.SchemaProps{ Default: 0, Type: []string{"integer"}, - Format: "int32", + Format: "int64", }, }, }, diff --git a/pkg/registry/file/storage_test.go b/pkg/registry/file/storage_test.go index 55922c6ce..c748d1326 100644 --- a/pkg/registry/file/storage_test.go +++ b/pkg/registry/file/storage_test.go @@ -28,10 +28,10 @@ func getStoredMetadataFilepath(root, key string) string { func TestStorageImpl_Count(t *testing.T) { files := []string{ "/other/type/ns/titi", - "/spdx.softwarecomposition.kubescape.io/sbomspdxv2p3filtereds/kubescape/titi", - "/spdx.softwarecomposition.kubescape.io/sbomspdxv2p3filtereds/other/toto", - "/spdx.softwarecomposition.kubescape.io/sbomspdxv2p3s/kubescape/toto", - "/spdx.softwarecomposition.kubescape.io/sbomspdxv2p3s/other/toto", + "/spdx.softwarecomposition.kubescape.io/sbomsyftfiltereds/kubescape/titi", + "/spdx.softwarecomposition.kubescape.io/sbomsyftfiltereds/other/toto", + "/spdx.softwarecomposition.kubescape.io/sbomsyfts/kubescape/toto", + "/spdx.softwarecomposition.kubescape.io/sbomsyfts/other/toto", } tests := []struct { name string @@ -41,17 +41,17 @@ func TestStorageImpl_Count(t *testing.T) { }{ { name: "one object", - key: "/spdx.softwarecomposition.kubescape.io/sbomspdxv2p3s/kubescape/toto", + key: "/spdx.softwarecomposition.kubescape.io/sbomsyfts/kubescape/toto", want: 1, }, { name: "one ns", - key: "/spdx.softwarecomposition.kubescape.io/sbomspdxv2p3s/kubescape", + key: "/spdx.softwarecomposition.kubescape.io/sbomsyfts/kubescape", want: 1, }, { name: "one type", - key: "/spdx.softwarecomposition.kubescape.io/sbomspdxv2p3s", + key: "/spdx.softwarecomposition.kubescape.io/sbomsyfts", want: 2, }, { @@ -105,16 +105,16 @@ func TestStorageImpl_Create(t *testing.T) { name: "readonly fs", readonly: true, args: args{ - key: "/spdx.softwarecomposition.kubescape.io/sbomspdxv2p3s/kubescape/toto", - obj: &v1beta1.SBOMSPDXv2p3{}, + key: "/spdx.softwarecomposition.kubescape.io/sbomsyfts/kubescape/toto", + obj: &v1beta1.SBOMSyft{}, }, wantErr: true, }, { name: "object", args: args{ - key: "/spdx.softwarecomposition.kubescape.io/sbomspdxv2p3s/kubescape/toto", - obj: &v1beta1.SBOMSPDXv2p3{ + key: "/spdx.softwarecomposition.kubescape.io/sbomsyfts/kubescape/toto", + obj: &v1beta1.SBOMSyft{ ObjectMeta: v1.ObjectMeta{ Name: "toto", }, @@ -124,16 +124,16 @@ func TestStorageImpl_Create(t *testing.T) { { name: "object and out", args: args{ - key: "/spdx.softwarecomposition.kubescape.io/sbomspdxv2p3s/kubescape/toto", - obj: &v1beta1.SBOMSPDXv2p3{ + key: "/spdx.softwarecomposition.kubescape.io/sbomsyfts/kubescape/toto", + obj: &v1beta1.SBOMSyft{ ObjectMeta: v1.ObjectMeta{ Name: "toto", ManagedFields: []v1.ManagedFieldsEntry{{Manager: "node-agent"}}, }, }, - out: &v1beta1.SBOMSPDXv2p3{}, + out: &v1beta1.SBOMSyft{}, }, - want: &v1beta1.SBOMSPDXv2p3{ + want: &v1beta1.SBOMSyft{ ObjectMeta: v1.ObjectMeta{ Name: "toto", ResourceVersion: "1", @@ -170,7 +170,7 @@ func TestStorageImpl_Create(t *testing.T) { } func TestStorageImpl_Delete(t *testing.T) { - toto, _ := json.Marshal(v1beta1.SBOMSPDXv2p3{ + toto, _ := json.Marshal(v1beta1.SBOMSyft{ ObjectMeta: v1.ObjectMeta{ Name: "toto", }, @@ -193,15 +193,15 @@ func TestStorageImpl_Delete(t *testing.T) { { name: "not found", args: args{ - key: "/spdx.softwarecomposition.kubescape.io/sbomspdxv2p3s/kubescape/toto", + key: "/spdx.softwarecomposition.kubescape.io/sbomsyfts/kubescape/toto", }, wantErr: true, }, { name: "empty string", args: args{ - key: "/spdx.softwarecomposition.kubescape.io/sbomspdxv2p3s/kubescape/toto", - out: &v1beta1.SBOMSPDXv2p3{}, + key: "/spdx.softwarecomposition.kubescape.io/sbomsyfts/kubescape/toto", + out: &v1beta1.SBOMSyft{}, }, create: true, wantErr: true, @@ -209,22 +209,22 @@ func TestStorageImpl_Delete(t *testing.T) { { name: "empty object", args: args{ - key: "/spdx.softwarecomposition.kubescape.io/sbomspdxv2p3s/kubescape/toto", - out: &v1beta1.SBOMSPDXv2p3{}, + key: "/spdx.softwarecomposition.kubescape.io/sbomsyfts/kubescape/toto", + out: &v1beta1.SBOMSyft{}, }, content: "{}", create: true, - want: &v1beta1.SBOMSPDXv2p3{}, + want: &v1beta1.SBOMSyft{}, }, { name: "real object", args: args{ - key: "/spdx.softwarecomposition.kubescape.io/sbomspdxv2p3s/kubescape/toto", - out: &v1beta1.SBOMSPDXv2p3{}, + key: "/spdx.softwarecomposition.kubescape.io/sbomsyfts/kubescape/toto", + out: &v1beta1.SBOMSyft{}, }, content: string(toto), create: true, - want: &v1beta1.SBOMSPDXv2p3{ + want: &v1beta1.SBOMSyft{ ObjectMeta: v1.ObjectMeta{ Name: "toto", }, @@ -255,9 +255,9 @@ func isNotFoundError(_ assert.TestingT, err error, _ ...any) bool { func TestStorageImpl_Get(t *testing.T) { var emptyObj bytes.Buffer - _ = gob.NewEncoder(&emptyObj).Encode(v1beta1.SBOMSPDXv2p3{}) + _ = gob.NewEncoder(&emptyObj).Encode(v1beta1.SBOMSyft{}) var realObj bytes.Buffer - _ = gob.NewEncoder(&realObj).Encode(v1beta1.SBOMSPDXv2p3{ + _ = gob.NewEncoder(&realObj).Encode(v1beta1.SBOMSyft{ ObjectMeta: v1.ObjectMeta{ Name: "toto", }, @@ -278,15 +278,15 @@ func TestStorageImpl_Get(t *testing.T) { { name: "not found", args: args{ - key: "/spdx.softwarecomposition.kubescape.io/sbomspdxv2p3s/kubescape/toto", + key: "/spdx.softwarecomposition.kubescape.io/sbomsyfts/kubescape/toto", }, wantErr: isNotFoundError, }, { name: "empty string", args: args{ - key: "/spdx.softwarecomposition.kubescape.io/sbomspdxv2p3s/kubescape/toto", - objPtr: &v1beta1.SBOMSPDXv2p3{}, + key: "/spdx.softwarecomposition.kubescape.io/sbomsyfts/kubescape/toto", + objPtr: &v1beta1.SBOMSyft{}, }, create: true, wantErr: isNotFoundError, @@ -294,24 +294,24 @@ func TestStorageImpl_Get(t *testing.T) { { name: "empty object", args: args{ - key: "/spdx.softwarecomposition.kubescape.io/sbomspdxv2p3s/kubescape/toto", - objPtr: &v1beta1.SBOMSPDXv2p3{}, + key: "/spdx.softwarecomposition.kubescape.io/sbomsyfts/kubescape/toto", + objPtr: &v1beta1.SBOMSyft{}, }, content: emptyObj.String(), create: true, wantErr: assert.NoError, - want: &v1beta1.SBOMSPDXv2p3{}, + want: &v1beta1.SBOMSyft{}, }, { name: "real object", args: args{ - key: "/spdx.softwarecomposition.kubescape.io/sbomspdxv2p3s/kubescape/toto", - objPtr: &v1beta1.SBOMSPDXv2p3{}, + key: "/spdx.softwarecomposition.kubescape.io/sbomsyfts/kubescape/toto", + objPtr: &v1beta1.SBOMSyft{}, }, content: realObj.String(), create: true, wantErr: assert.NoError, - want: &v1beta1.SBOMSPDXv2p3{ + want: &v1beta1.SBOMSyft{ ObjectMeta: v1.ObjectMeta{ Name: "toto", }, @@ -320,8 +320,8 @@ func TestStorageImpl_Get(t *testing.T) { { name: "truncated object", args: args{ - key: "/spdx.softwarecomposition.kubescape.io/sbomspdxv2p3s/kubescape/toto", - objPtr: &v1beta1.SBOMSPDXv2p3{}, + key: "/spdx.softwarecomposition.kubescape.io/sbomsyfts/kubescape/toto", + objPtr: &v1beta1.SBOMSyft{}, }, content: string(realObj.Bytes()[10]), create: true, @@ -348,19 +348,19 @@ func TestStorageImpl_Get(t *testing.T) { func TestStorageImpl_GetList(t *testing.T) { objs := map[string]runtime.Object{ - "/spdx.softwarecomposition.kubescape.io/sbomspdxv2p3s/kubescape/toto": &v1beta1.SBOMSPDXv2p3{ + "/spdx.softwarecomposition.kubescape.io/sbomsyfts/kubescape/toto": &v1beta1.SBOMSyft{ ObjectMeta: v1.ObjectMeta{ Name: "toto", Namespace: "kubescape", }, }, - "/spdx.softwarecomposition.kubescape.io/sbomspdxv2p3s/kubescape/titi": &v1beta1.SBOMSPDXv2p3{ + "/spdx.softwarecomposition.kubescape.io/sbomsyfts/kubescape/titi": &v1beta1.SBOMSyft{ ObjectMeta: v1.ObjectMeta{ Name: "titi", Namespace: "kubescape", }, }, - "/spdx.softwarecomposition.kubescape.io/sbomspdxv2p3s/other/tata": &v1beta1.SBOMSPDXv2p3{ + "/spdx.softwarecomposition.kubescape.io/sbomsyfts/other/tata": &v1beta1.SBOMSyft{ ObjectMeta: v1.ObjectMeta{ Name: "tata", Namespace: "other", @@ -381,24 +381,24 @@ func TestStorageImpl_GetList(t *testing.T) { { name: "get object", args: args{ - key: "/spdx.softwarecomposition.kubescape.io/sbomspdxv2p3s/kubescape/toto", - listObj: &v1beta1.SBOMSPDXv2p3List{}, + key: "/spdx.softwarecomposition.kubescape.io/sbomsyfts/kubescape/toto", + listObj: &v1beta1.SBOMSyftList{}, }, want: 1, }, { name: "get ns", args: args{ - key: "/spdx.softwarecomposition.kubescape.io/sbomspdxv2p3s/kubescape", - listObj: &v1beta1.SBOMSPDXv2p3List{}, + key: "/spdx.softwarecomposition.kubescape.io/sbomsyfts/kubescape", + listObj: &v1beta1.SBOMSyftList{}, }, want: 2, }, { name: "get all ns", args: args{ - key: "/spdx.softwarecomposition.kubescape.io/sbomspdxv2p3s", - listObj: &v1beta1.SBOMSPDXv2p3List{}, + key: "/spdx.softwarecomposition.kubescape.io/sbomsyfts", + listObj: &v1beta1.SBOMSyftList{}, }, want: 3, }, @@ -413,18 +413,18 @@ func TestStorageImpl_GetList(t *testing.T) { if err := s.GetList(context.TODO(), tt.args.key, tt.args.in2, tt.args.listObj); (err != nil) != tt.wantErr { t.Errorf("GetList() error = %v, wantErr %v", err, tt.wantErr) } - assert.Equal(t, tt.want, len(tt.args.listObj.(*v1beta1.SBOMSPDXv2p3List).Items)) + assert.Equal(t, tt.want, len(tt.args.listObj.(*v1beta1.SBOMSyftList).Items)) }) } } func TestStorageImpl_GuaranteedUpdate(t *testing.T) { count := 0 - toto := &v1beta1.SBOMSPDXv2p3{ + toto := &v1beta1.SBOMSyft{ ObjectMeta: v1.ObjectMeta{ Name: "toto", }, - Spec: v1beta1.SBOMSPDXv2p3Spec{ + Spec: v1beta1.SBOMSyftSpec{ Metadata: v1beta1.SPDXMeta{ Tool: v1beta1.ToolMeta{ Name: "titi", @@ -432,12 +432,12 @@ func TestStorageImpl_GuaranteedUpdate(t *testing.T) { }, }, } - totov1 := &v1beta1.SBOMSPDXv2p3{ + totov1 := &v1beta1.SBOMSyft{ ObjectMeta: v1.ObjectMeta{ Name: "toto", ResourceVersion: "1", }, - Spec: v1beta1.SBOMSPDXv2p3Spec{ + Spec: v1beta1.SBOMSyftSpec{ Metadata: v1beta1.SPDXMeta{ Tool: v1beta1.ToolMeta{ Name: "titi", @@ -445,12 +445,12 @@ func TestStorageImpl_GuaranteedUpdate(t *testing.T) { }, }, } - totov3 := &v1beta1.SBOMSPDXv2p3{ + totov3 := &v1beta1.SBOMSyft{ ObjectMeta: v1.ObjectMeta{ Name: "toto", ResourceVersion: "3", }, - Spec: v1beta1.SBOMSPDXv2p3Spec{ + Spec: v1beta1.SBOMSyftSpec{ Metadata: v1beta1.SPDXMeta{ Tool: v1beta1.ToolMeta{ Name: "tutu", @@ -458,12 +458,12 @@ func TestStorageImpl_GuaranteedUpdate(t *testing.T) { }, }, } - tutu := &v1beta1.SBOMSPDXv2p3{ + tutu := &v1beta1.SBOMSyft{ ObjectMeta: v1.ObjectMeta{ Name: "toto", ResourceVersion: "1", }, - Spec: v1beta1.SBOMSPDXv2p3Spec{ + Spec: v1beta1.SBOMSyftSpec{ Metadata: v1beta1.SPDXMeta{ Tool: v1beta1.ToolMeta{ Name: "tutu", @@ -484,12 +484,12 @@ func TestStorageImpl_GuaranteedUpdate(t *testing.T) { create bool wantErr bool wantNotFound bool - want *v1beta1.SBOMSPDXv2p3 + want *v1beta1.SBOMSyft }{ { name: "test", args: args{ - key: "/spdx.softwarecomposition.kubescape.io/sbomspdxv2p3s/kubescape/toto", + key: "/spdx.softwarecomposition.kubescape.io/sbomsyfts/kubescape/toto", ignoreNotFound: true, tryUpdate: func(input runtime.Object, res storage.ResponseMeta) (runtime.Object, *uint64, error) { return toto.DeepCopyObject(), nil, nil @@ -500,9 +500,9 @@ func TestStorageImpl_GuaranteedUpdate(t *testing.T) { { name: "test with existing object", args: args{ - key: "/spdx.softwarecomposition.kubescape.io/sbomspdxv2p3s/kubescape/toto", + key: "/spdx.softwarecomposition.kubescape.io/sbomsyfts/kubescape/toto", tryUpdate: func(input runtime.Object, res storage.ResponseMeta) (runtime.Object, *uint64, error) { - obj := *input.(*v1beta1.SBOMSPDXv2p3) + obj := *input.(*v1beta1.SBOMSyft) obj.Spec.Metadata.Tool.Name = "tutu" return &obj, nil, nil }, @@ -513,7 +513,7 @@ func TestStorageImpl_GuaranteedUpdate(t *testing.T) { { name: "test with existing object, no change", args: args{ - key: "/spdx.softwarecomposition.kubescape.io/sbomspdxv2p3s/kubescape/toto", + key: "/spdx.softwarecomposition.kubescape.io/sbomsyfts/kubescape/toto", tryUpdate: func(input runtime.Object, res storage.ResponseMeta) (runtime.Object, *uint64, error) { return input, nil, nil }, @@ -524,7 +524,7 @@ func TestStorageImpl_GuaranteedUpdate(t *testing.T) { { name: "test with failing precondition", args: args{ - key: "/spdx.softwarecomposition.kubescape.io/sbomspdxv2p3s/kubescape/toto", + key: "/spdx.softwarecomposition.kubescape.io/sbomsyfts/kubescape/toto", preconditions: &storage.Preconditions{ ResourceVersion: ptr.To("v123"), }, @@ -535,14 +535,14 @@ func TestStorageImpl_GuaranteedUpdate(t *testing.T) { { name: "test with failing tryUpdate", args: args{ - key: "/spdx.softwarecomposition.kubescape.io/sbomspdxv2p3s/kubescape/toto", + key: "/spdx.softwarecomposition.kubescape.io/sbomsyfts/kubescape/toto", ignoreNotFound: true, tryUpdate: func(input runtime.Object, res storage.ResponseMeta) (runtime.Object, *uint64, error) { if count == 0 { count++ return nil, nil, fmt.Errorf("tryUpdate error") } - obj := *input.(*v1beta1.SBOMSPDXv2p3) + obj := *input.(*v1beta1.SBOMSyft) obj.ResourceVersion = "2" obj.Spec.Metadata.Tool.Name = "tutu" return &obj, nil, nil @@ -560,7 +560,7 @@ func TestStorageImpl_GuaranteedUpdate(t *testing.T) { err := s.Create(context.Background(), tt.args.key, toto.DeepCopyObject(), nil, 0) assert.NoError(t, err) } - destination := &v1beta1.SBOMSPDXv2p3{} + destination := &v1beta1.SBOMSyft{} err := s.GuaranteedUpdate(context.TODO(), tt.args.key, destination, tt.args.ignoreNotFound, tt.args.preconditions, tt.args.tryUpdate, tt.args.cachedExistingObject) if tt.wantErr { if err == nil { @@ -568,7 +568,7 @@ func TestStorageImpl_GuaranteedUpdate(t *testing.T) { } return } else { - onDisk := &v1beta1.SBOMSPDXv2p3{} + onDisk := &v1beta1.SBOMSyft{} err = s.Get(context.Background(), tt.args.key, storage.GetOptions{}, onDisk) if tt.wantNotFound { assert.Error(t, err) @@ -601,18 +601,18 @@ func TestStorageImpl_Versioner(t *testing.T) { func BenchmarkWriteFiles(b *testing.B) { s := NewStorageImpl(afero.NewMemMapFs(), DefaultStorageRoot).(*StorageImpl) - key := "/spdx.softwarecomposition.kubescape.io/sbomspdxv2p3s/kubescape/toto" - obj := &v1beta1.SBOMSPDXv2p3{ + key := "/spdx.softwarecomposition.kubescape.io/sbomsyfts/kubescape/toto" + obj := &v1beta1.SBOMSyft{ ObjectMeta: v1.ObjectMeta{ Name: "toto", }, - Spec: v1beta1.SBOMSPDXv2p3Spec{ + Spec: v1beta1.SBOMSyftSpec{ Metadata: v1beta1.SPDXMeta{ Tool: v1beta1.ToolMeta{Name: "titi"}, }, }, } - metaOut := &v1beta1.SBOMSPDXv2p3{} + metaOut := &v1beta1.SBOMSyft{} for i := 0; i < b.N; i++ { _ = s.writeFiles(key, obj, metaOut) } diff --git a/pkg/registry/file/watch_test.go b/pkg/registry/file/watch_test.go index bec3b0170..4386931d7 100644 --- a/pkg/registry/file/watch_test.go +++ b/pkg/registry/file/watch_test.go @@ -36,18 +36,18 @@ func TestExtractKeysToNotify(t *testing.T) { }, { "Full resource key should produce the full lineage", - "/spdx.softwarecomposition.kubescape.io/sbomspdxv2p3filtereds/kubescape/titi", + "/spdx.softwarecomposition.kubescape.io/sbomsyftfiltereds/kubescape/titi", []string{ "/", "/spdx.softwarecomposition.kubescape.io", - "/spdx.softwarecomposition.kubescape.io/sbomspdxv2p3filtereds", - "/spdx.softwarecomposition.kubescape.io/sbomspdxv2p3filtereds/kubescape", - "/spdx.softwarecomposition.kubescape.io/sbomspdxv2p3filtereds/kubescape/titi", + "/spdx.softwarecomposition.kubescape.io/sbomsyftfiltereds", + "/spdx.softwarecomposition.kubescape.io/sbomsyftfiltereds/kubescape", + "/spdx.softwarecomposition.kubescape.io/sbomsyftfiltereds/kubescape/titi", }, }, { "Missing leading slash should produce an error", - "spdx.softwarecomposition.kubescape.io/sbomspdxv2p3filtereds/kubescape/titi", + "spdx.softwarecomposition.kubescape.io/sbomsyftfiltereds/kubescape/titi", []string{}, }, } @@ -73,7 +73,7 @@ func TestFileSystemStorageWatchReturnsDistinctWatchers(t *testing.T) { { name: "Watch should return new watch objects for the same key for every invocation", args: args{ - key: "/spdx.softwarecomposition.kubescape.io/sbomspdxv2p3s/kubescape", + key: "/spdx.softwarecomposition.kubescape.io/sbomsyfts/kubescape", }, }, } @@ -95,9 +95,9 @@ func TestFileSystemStorageWatchReturnsDistinctWatchers(t *testing.T) { func TestFilesystemStorageWatchPublishing(t *testing.T) { var ( - keyN = "/spdx.softwarecomposition.kubescape.io/sbomspdxv2p3s/not-kubescape" - keyK = "/spdx.softwarecomposition.kubescape.io/sbomspdxv2p3s/kubescape" - obj = &v1beta1.SBOMSPDXv2p3{ObjectMeta: v1.ObjectMeta{ + keyN = "/spdx.softwarecomposition.kubescape.io/sbomsyfts/not-kubescape" + keyK = "/spdx.softwarecomposition.kubescape.io/sbomsyfts/kubescape" + obj = &v1beta1.SBOMSyft{ObjectMeta: v1.ObjectMeta{ Name: "some-sbom", ResourceVersion: "1", }} @@ -105,19 +105,19 @@ func TestFilesystemStorageWatchPublishing(t *testing.T) { tt := []struct { name string start, stopBefore, stopAfter map[string]int - inputObjects map[string]*v1beta1.SBOMSPDXv2p3 + inputObjects map[string]*v1beta1.SBOMSyft want map[string][]watch.Event }{{ name: "Create should publish to the appropriate single channel", start: map[string]int{keyK: 1}, - inputObjects: map[string]*v1beta1.SBOMSPDXv2p3{ + inputObjects: map[string]*v1beta1.SBOMSyft{ keyK + "/some-sbom": {ObjectMeta: v1.ObjectMeta{Name: "some-sbom"}}, }, want: map[string][]watch.Event{keyK: {{Type: watch.Added, Object: obj}}}, }, { name: "Create should publish to all watchers on the relevant key", start: map[string]int{keyK: 3}, - inputObjects: map[string]*v1beta1.SBOMSPDXv2p3{ + inputObjects: map[string]*v1beta1.SBOMSyft{ keyK + "/some-sbom": {ObjectMeta: v1.ObjectMeta{Name: "some-sbom"}}, }, want: map[string][]watch.Event{keyK: { @@ -128,21 +128,21 @@ func TestFilesystemStorageWatchPublishing(t *testing.T) { }, { name: "Creating on key different than the watch should produce no event", start: map[string]int{keyK: 3, keyN: 1}, - inputObjects: map[string]*v1beta1.SBOMSPDXv2p3{ + inputObjects: map[string]*v1beta1.SBOMSyft{ keyN + "/some-sbom": {ObjectMeta: v1.ObjectMeta{Name: "some-sbom"}}, }, want: map[string][]watch.Event{keyN: {{Type: watch.Added, Object: obj}}, keyK: {}}, }, { name: "Creating on key not being watched should produce no events", start: map[string]int{keyK: 1}, - inputObjects: map[string]*v1beta1.SBOMSPDXv2p3{ + inputObjects: map[string]*v1beta1.SBOMSyft{ keyN + "/some-sbom": {ObjectMeta: v1.ObjectMeta{Name: "some-sbom"}}, }, want: map[string][]watch.Event{keyN: {}}, }, { name: "Sending to stopped watch should not produce an event", start: map[string]int{keyN: 3}, - inputObjects: map[string]*v1beta1.SBOMSPDXv2p3{ + inputObjects: map[string]*v1beta1.SBOMSyft{ keyN + "/some-sbom": {ObjectMeta: v1.ObjectMeta{Name: "some-sbom"}}, }, stopBefore: map[string]int{keyN: 1}, @@ -153,7 +153,7 @@ func TestFilesystemStorageWatchPublishing(t *testing.T) { }, { name: "Stopping watch after send shouldn't deadlock", start: map[string]int{keyN: 3}, - inputObjects: map[string]*v1beta1.SBOMSPDXv2p3{ + inputObjects: map[string]*v1beta1.SBOMSyft{ keyN + "/some-sbom": {ObjectMeta: v1.ObjectMeta{Name: "some-sbom"}}, }, stopAfter: map[string]int{keyN: 0}, @@ -165,7 +165,7 @@ func TestFilesystemStorageWatchPublishing(t *testing.T) { }, { name: "Stopping watch twice is ok", start: map[string]int{keyN: 3}, - inputObjects: map[string]*v1beta1.SBOMSPDXv2p3{ + inputObjects: map[string]*v1beta1.SBOMSyft{ keyN + "/some-sbom": {ObjectMeta: v1.ObjectMeta{Name: "some-sbom"}}, }, stopBefore: map[string]int{keyN: 1}, @@ -213,7 +213,7 @@ func TestFilesystemStorageWatchPublishing(t *testing.T) { wait() { // Act out the creation operation var ttl uint64 = 0 - out := &v1beta1.SBOMSPDXv2p3{} + out := &v1beta1.SBOMSyft{} for key, object := range tc.inputObjects { _ = s.Create(ctx, key, object, out, ttl) } @@ -245,7 +245,7 @@ func TestFilesystemStorageWatchPublishing(t *testing.T) { } func TestWatchGuaranteedUpdateProducesMatchingEvents(t *testing.T) { - toto := &v1beta1.SBOMSPDXv2p3{ + toto := &v1beta1.SBOMSyft{ ObjectMeta: v1.ObjectMeta{ Name: "toto", ResourceVersion: "1", @@ -269,17 +269,17 @@ func TestWatchGuaranteedUpdateProducesMatchingEvents(t *testing.T) { { name: "Successful GuaranteedUpdate should produce a matching Modified event", inputWatchesByKey: map[string]int{ - "/spdx.softwarecomposition.kubescape.io/sbomspdxv2p3s/kubescape": 1, + "/spdx.softwarecomposition.kubescape.io/sbomsyfts/kubescape": 1, }, args: args{ - key: "/spdx.softwarecomposition.kubescape.io/sbomspdxv2p3s/kubescape/toto", + key: "/spdx.softwarecomposition.kubescape.io/sbomsyfts/kubescape/toto", ignoreNotFound: true, tryUpdate: func(input runtime.Object, res storage.ResponseMeta) (runtime.Object, *uint64, error) { return toto, nil, nil }, }, expectedEvents: map[string][]watch.Event{ - "/spdx.softwarecomposition.kubescape.io/sbomspdxv2p3s/kubescape": { + "/spdx.softwarecomposition.kubescape.io/sbomsyfts/kubescape": { { Type: watch.Modified, Object: toto, @@ -301,7 +301,7 @@ func TestWatchGuaranteedUpdateProducesMatchingEvents(t *testing.T) { } } - destination := &v1beta1.SBOMSPDXv2p3{} + destination := &v1beta1.SBOMSyft{} _ = s.GuaranteedUpdate(context.TODO(), tc.args.key, destination, tc.args.ignoreNotFound, tc.args.preconditions, tc.args.tryUpdate, tc.args.cachedExistingObject) for key, expectedEvents := range tc.expectedEvents { diff --git a/pkg/registry/softwarecomposition/sbomspdxv2p3/etcd.go b/pkg/registry/softwarecomposition/sbomspdxv2p3/etcd.go deleted file mode 100644 index 49a930473..000000000 --- a/pkg/registry/softwarecomposition/sbomspdxv2p3/etcd.go +++ /dev/null @@ -1,56 +0,0 @@ -/* -Copyright 2017 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package sbomspdxv2p3 - -import ( - "github.com/kubescape/storage/pkg/apis/softwarecomposition" - "github.com/kubescape/storage/pkg/registry" - "k8s.io/apimachinery/pkg/runtime" - "k8s.io/apiserver/pkg/registry/generic" - genericregistry "k8s.io/apiserver/pkg/registry/generic/registry" - "k8s.io/apiserver/pkg/registry/rest" - "k8s.io/apiserver/pkg/storage" -) - -// NewREST returns a RESTStorage object that will work against API services. -func NewREST(scheme *runtime.Scheme, storageImpl storage.Interface, optsGetter generic.RESTOptionsGetter) (*registry.REST, error) { - strategy := NewStrategy(scheme) - - dryRunnableStorage := genericregistry.DryRunnableStorage{Codec: nil, Storage: storageImpl} - - store := &genericregistry.Store{ - NewFunc: func() runtime.Object { return &softwarecomposition.SBOMSPDXv2p3{} }, - NewListFunc: func() runtime.Object { return &softwarecomposition.SBOMSPDXv2p3List{} }, - PredicateFunc: MatchFlunder, - DefaultQualifiedResource: softwarecomposition.Resource("sbomspdxv2p3s"), - SingularQualifiedResource: softwarecomposition.Resource("sbomspdxv2p3"), - - Storage: dryRunnableStorage, - - CreateStrategy: strategy, - UpdateStrategy: strategy, - DeleteStrategy: strategy, - - // TODO: define table converter that exposes more than name/creation timestamp - TableConvertor: rest.NewDefaultTableConvertor(softwarecomposition.Resource("sbomspdxv2p3s")), - } - options := &generic.StoreOptions{RESTOptions: optsGetter, AttrFunc: GetAttrs} - if err := store.CompleteWithOptions(options); err != nil { - return nil, err - } - return ®istry.REST{Store: store}, nil -} diff --git a/pkg/registry/softwarecomposition/sbomspdxv2p3/strategy.go b/pkg/registry/softwarecomposition/sbomspdxv2p3/strategy.go deleted file mode 100644 index dcbfeb195..000000000 --- a/pkg/registry/softwarecomposition/sbomspdxv2p3/strategy.go +++ /dev/null @@ -1,103 +0,0 @@ -/* -Copyright 2017 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package sbomspdxv2p3 - -import ( - "context" - "fmt" - - "k8s.io/apimachinery/pkg/fields" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/apimachinery/pkg/runtime" - "k8s.io/apimachinery/pkg/util/validation/field" - "k8s.io/apiserver/pkg/registry/generic" - "k8s.io/apiserver/pkg/storage" - "k8s.io/apiserver/pkg/storage/names" - - "github.com/kubescape/storage/pkg/apis/softwarecomposition" -) - -// NewStrategy creates and returns a flunderStrategy instance -func NewStrategy(typer runtime.ObjectTyper) flunderStrategy { - return flunderStrategy{typer, names.SimpleNameGenerator} -} - -// GetAttrs returns labels.Set, fields.Set, and error in case the given runtime.Object is not a Flunder -func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error) { - apiserver, ok := obj.(*softwarecomposition.SBOMSPDXv2p3) - if !ok { - return nil, nil, fmt.Errorf("given object is not a Flunder") - } - return labels.Set(apiserver.ObjectMeta.Labels), SelectableFields(apiserver), nil -} - -// MatchFlunder is the filter used by the generic etcd backend to watch events -// from etcd to clients of the apiserver only interested in specific labels/fields. -func MatchFlunder(label labels.Selector, field fields.Selector) storage.SelectionPredicate { - return storage.SelectionPredicate{ - Label: label, - Field: field, - GetAttrs: GetAttrs, - } -} - -// SelectableFields returns a field set that represents the object. -func SelectableFields(obj *softwarecomposition.SBOMSPDXv2p3) fields.Set { - return generic.ObjectMetaFieldsSet(&obj.ObjectMeta, true) -} - -type flunderStrategy struct { - runtime.ObjectTyper - names.NameGenerator -} - -func (flunderStrategy) NamespaceScoped() bool { - return true -} - -func (flunderStrategy) PrepareForCreate(ctx context.Context, obj runtime.Object) { -} - -func (flunderStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) { -} - -func (flunderStrategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList { - return field.ErrorList{} -} - -// WarningsOnCreate returns warnings for the creation of the given object. -func (flunderStrategy) WarningsOnCreate(ctx context.Context, obj runtime.Object) []string { return nil } - -func (flunderStrategy) AllowCreateOnUpdate() bool { - return false -} - -func (flunderStrategy) AllowUnconditionalUpdate() bool { - return false -} - -func (flunderStrategy) Canonicalize(obj runtime.Object) { -} - -func (flunderStrategy) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList { - return field.ErrorList{} -} - -// WarningsOnUpdate returns warnings for the given update. -func (flunderStrategy) WarningsOnUpdate(ctx context.Context, obj, old runtime.Object) []string { - return nil -} diff --git a/pkg/registry/softwarecomposition/sbomspdxv2p3filtered/etcd.go b/pkg/registry/softwarecomposition/sbomspdxv2p3filtered/etcd.go deleted file mode 100644 index d22af9806..000000000 --- a/pkg/registry/softwarecomposition/sbomspdxv2p3filtered/etcd.go +++ /dev/null @@ -1,56 +0,0 @@ -/* -Copyright 2017 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package sbomspdxv2p3filtered - -import ( - "github.com/kubescape/storage/pkg/apis/softwarecomposition" - "github.com/kubescape/storage/pkg/registry" - "k8s.io/apimachinery/pkg/runtime" - "k8s.io/apiserver/pkg/registry/generic" - genericregistry "k8s.io/apiserver/pkg/registry/generic/registry" - "k8s.io/apiserver/pkg/registry/rest" - "k8s.io/apiserver/pkg/storage" -) - -// NewREST returns a RESTStorage object that will work against API services. -func NewREST(scheme *runtime.Scheme, storageImpl storage.Interface, optsGetter generic.RESTOptionsGetter) (*registry.REST, error) { - strategy := NewStrategy(scheme) - - dryRunnableStorage := genericregistry.DryRunnableStorage{Codec: nil, Storage: storageImpl} - - store := &genericregistry.Store{ - NewFunc: func() runtime.Object { return &softwarecomposition.SBOMSPDXv2p3Filtered{} }, - NewListFunc: func() runtime.Object { return &softwarecomposition.SBOMSPDXv2p3FilteredList{} }, - PredicateFunc: MatchFlunder, - DefaultQualifiedResource: softwarecomposition.Resource("sbomspdxv2p3filtereds"), - SingularQualifiedResource: softwarecomposition.Resource("sbomspdxv2p3filtered"), - - Storage: dryRunnableStorage, - - CreateStrategy: strategy, - UpdateStrategy: strategy, - DeleteStrategy: strategy, - - // TODO: define table converter that exposes more than name/creation timestamp - TableConvertor: rest.NewDefaultTableConvertor(softwarecomposition.Resource("sbomspdxv2p3filtereds")), - } - options := &generic.StoreOptions{RESTOptions: optsGetter, AttrFunc: GetAttrs} - if err := store.CompleteWithOptions(options); err != nil { - return nil, err - } - return ®istry.REST{Store: store}, nil -} diff --git a/pkg/registry/softwarecomposition/sbomspdxv2p3filtered/strategy.go b/pkg/registry/softwarecomposition/sbomspdxv2p3filtered/strategy.go deleted file mode 100644 index ad9e60305..000000000 --- a/pkg/registry/softwarecomposition/sbomspdxv2p3filtered/strategy.go +++ /dev/null @@ -1,89 +0,0 @@ -package sbomspdxv2p3filtered - -import ( - "context" - "fmt" - - "k8s.io/apimachinery/pkg/fields" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/apimachinery/pkg/runtime" - "k8s.io/apimachinery/pkg/util/validation/field" - "k8s.io/apiserver/pkg/registry/generic" - "k8s.io/apiserver/pkg/storage" - "k8s.io/apiserver/pkg/storage/names" - - "github.com/kubescape/storage/pkg/apis/softwarecomposition" -) - -// NewStrategy creates and returns an sbomSDPXv2p3FilteredStrategy instance -func NewStrategy(typer runtime.ObjectTyper) sbomSDPXv2p3FilteredStrategy { - return sbomSDPXv2p3FilteredStrategy{typer, names.SimpleNameGenerator} -} - -// GetAttrs returns labels.Set, fields.Set, and error in case the given runtime.Object is not a Flunder -func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error) { - apiserver, ok := obj.(*softwarecomposition.SBOMSPDXv2p3Filtered) - if !ok { - return nil, nil, fmt.Errorf("given object is not a Flunder") - } - return labels.Set(apiserver.ObjectMeta.Labels), SelectableFields(apiserver), nil -} - -// MatchFlunder is the filter used by the generic etcd backend to watch events -// from etcd to clients of the apiserver only interested in specific labels/fields. -func MatchFlunder(label labels.Selector, field fields.Selector) storage.SelectionPredicate { - return storage.SelectionPredicate{ - Label: label, - Field: field, - GetAttrs: GetAttrs, - } -} - -// SelectableFields returns a field set that represents the object. -func SelectableFields(obj *softwarecomposition.SBOMSPDXv2p3Filtered) fields.Set { - return generic.ObjectMetaFieldsSet(&obj.ObjectMeta, true) -} - -type sbomSDPXv2p3FilteredStrategy struct { - runtime.ObjectTyper - names.NameGenerator -} - -func (sbomSDPXv2p3FilteredStrategy) NamespaceScoped() bool { - return true -} - -func (sbomSDPXv2p3FilteredStrategy) PrepareForCreate(ctx context.Context, obj runtime.Object) { -} - -func (sbomSDPXv2p3FilteredStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) { -} - -func (sbomSDPXv2p3FilteredStrategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList { - return field.ErrorList{} -} - -// WarningsOnCreate returns warnings for the creation of the given object. -func (sbomSDPXv2p3FilteredStrategy) WarningsOnCreate(ctx context.Context, obj runtime.Object) []string { - return nil -} - -func (sbomSDPXv2p3FilteredStrategy) AllowCreateOnUpdate() bool { - return false -} - -func (sbomSDPXv2p3FilteredStrategy) AllowUnconditionalUpdate() bool { - return false -} - -func (sbomSDPXv2p3FilteredStrategy) Canonicalize(obj runtime.Object) { -} - -func (sbomSDPXv2p3FilteredStrategy) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList { - return field.ErrorList{} -} - -// WarningsOnUpdate returns warnings for the given update. -func (sbomSDPXv2p3FilteredStrategy) WarningsOnUpdate(ctx context.Context, obj, old runtime.Object) []string { - return nil -}