genproto: google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/cvss Index | Files

package cvss

import "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/cvss"

Index

Package Files

cvss.pb.go

Variables

var (
    CVSSv3_AttackVector_name = map[int32]string{
        0:  "ATTACK_VECTOR_UNSPECIFIED",
        1:  "ATTACK_VECTOR_NETWORK",
        2:  "ATTACK_VECTOR_ADJACENT",
        3:  "ATTACK_VECTOR_LOCAL",
        4:  "ATTACK_VECTOR_PHYSICAL",
    }
    CVSSv3_AttackVector_value = map[string]int32{
        "ATTACK_VECTOR_UNSPECIFIED": 0,
        "ATTACK_VECTOR_NETWORK":     1,
        "ATTACK_VECTOR_ADJACENT":    2,
        "ATTACK_VECTOR_LOCAL":       3,
        "ATTACK_VECTOR_PHYSICAL":    4,
    }
)

Enum value maps for CVSSv3_AttackVector.

var (
    CVSSv3_AttackComplexity_name = map[int32]string{
        0:  "ATTACK_COMPLEXITY_UNSPECIFIED",
        1:  "ATTACK_COMPLEXITY_LOW",
        2:  "ATTACK_COMPLEXITY_HIGH",
    }
    CVSSv3_AttackComplexity_value = map[string]int32{
        "ATTACK_COMPLEXITY_UNSPECIFIED": 0,
        "ATTACK_COMPLEXITY_LOW":         1,
        "ATTACK_COMPLEXITY_HIGH":        2,
    }
)

Enum value maps for CVSSv3_AttackComplexity.

var (
    CVSSv3_PrivilegesRequired_name = map[int32]string{
        0:  "PRIVILEGES_REQUIRED_UNSPECIFIED",
        1:  "PRIVILEGES_REQUIRED_NONE",
        2:  "PRIVILEGES_REQUIRED_LOW",
        3:  "PRIVILEGES_REQUIRED_HIGH",
    }
    CVSSv3_PrivilegesRequired_value = map[string]int32{
        "PRIVILEGES_REQUIRED_UNSPECIFIED": 0,
        "PRIVILEGES_REQUIRED_NONE":        1,
        "PRIVILEGES_REQUIRED_LOW":         2,
        "PRIVILEGES_REQUIRED_HIGH":        3,
    }
)

Enum value maps for CVSSv3_PrivilegesRequired.

var (
    CVSSv3_UserInteraction_name = map[int32]string{
        0:  "USER_INTERACTION_UNSPECIFIED",
        1:  "USER_INTERACTION_NONE",
        2:  "USER_INTERACTION_REQUIRED",
    }
    CVSSv3_UserInteraction_value = map[string]int32{
        "USER_INTERACTION_UNSPECIFIED": 0,
        "USER_INTERACTION_NONE":        1,
        "USER_INTERACTION_REQUIRED":    2,
    }
)

Enum value maps for CVSSv3_UserInteraction.

var (
    CVSSv3_Scope_name = map[int32]string{
        0:  "SCOPE_UNSPECIFIED",
        1:  "SCOPE_UNCHANGED",
        2:  "SCOPE_CHANGED",
    }
    CVSSv3_Scope_value = map[string]int32{
        "SCOPE_UNSPECIFIED": 0,
        "SCOPE_UNCHANGED":   1,
        "SCOPE_CHANGED":     2,
    }
)

Enum value maps for CVSSv3_Scope.

var (
    CVSSv3_Impact_name = map[int32]string{
        0:  "IMPACT_UNSPECIFIED",
        1:  "IMPACT_HIGH",
        2:  "IMPACT_LOW",
        3:  "IMPACT_NONE",
    }
    CVSSv3_Impact_value = map[string]int32{
        "IMPACT_UNSPECIFIED": 0,
        "IMPACT_HIGH":        1,
        "IMPACT_LOW":         2,
        "IMPACT_NONE":        3,
    }
)

Enum value maps for CVSSv3_Impact.

var File_google_devtools_containeranalysis_v1beta1_cvss_cvss_proto protoreflect.FileDescriptor

type CVSSv3 Uses

type CVSSv3 struct {

    // The base score is a function of the base metric scores.
    BaseScore           float32 `protobuf:"fixed32,1,opt,name=base_score,json=baseScore,proto3" json:"base_score,omitempty"`
    ExploitabilityScore float32 `protobuf:"fixed32,2,opt,name=exploitability_score,json=exploitabilityScore,proto3" json:"exploitability_score,omitempty"`
    ImpactScore         float32 `protobuf:"fixed32,3,opt,name=impact_score,json=impactScore,proto3" json:"impact_score,omitempty"`
    // Base Metrics
    // Represents the intrinsic characteristics of a vulnerability that are
    // constant over time and across user environments.
    AttackVector          CVSSv3_AttackVector       `protobuf:"varint,5,opt,name=attack_vector,json=attackVector,proto3,enum=grafeas.v1beta1.vulnerability.CVSSv3_AttackVector" json:"attack_vector,omitempty"`
    AttackComplexity      CVSSv3_AttackComplexity   `protobuf:"varint,6,opt,name=attack_complexity,json=attackComplexity,proto3,enum=grafeas.v1beta1.vulnerability.CVSSv3_AttackComplexity" json:"attack_complexity,omitempty"`
    PrivilegesRequired    CVSSv3_PrivilegesRequired `protobuf:"varint,7,opt,name=privileges_required,json=privilegesRequired,proto3,enum=grafeas.v1beta1.vulnerability.CVSSv3_PrivilegesRequired" json:"privileges_required,omitempty"`
    UserInteraction       CVSSv3_UserInteraction    `protobuf:"varint,8,opt,name=user_interaction,json=userInteraction,proto3,enum=grafeas.v1beta1.vulnerability.CVSSv3_UserInteraction" json:"user_interaction,omitempty"`
    Scope                 CVSSv3_Scope              `protobuf:"varint,9,opt,name=scope,proto3,enum=grafeas.v1beta1.vulnerability.CVSSv3_Scope" json:"scope,omitempty"`
    ConfidentialityImpact CVSSv3_Impact             `protobuf:"varint,10,opt,name=confidentiality_impact,json=confidentialityImpact,proto3,enum=grafeas.v1beta1.vulnerability.CVSSv3_Impact" json:"confidentiality_impact,omitempty"`
    IntegrityImpact       CVSSv3_Impact             `protobuf:"varint,11,opt,name=integrity_impact,json=integrityImpact,proto3,enum=grafeas.v1beta1.vulnerability.CVSSv3_Impact" json:"integrity_impact,omitempty"`
    AvailabilityImpact    CVSSv3_Impact             `protobuf:"varint,12,opt,name=availability_impact,json=availabilityImpact,proto3,enum=grafeas.v1beta1.vulnerability.CVSSv3_Impact" json:"availability_impact,omitempty"`
    // contains filtered or unexported fields
}

Common Vulnerability Scoring System version 3. For details, see https://www.first.org/cvss/specification-document

func (*CVSSv3) Descriptor Uses

func (*CVSSv3) Descriptor() ([]byte, []int)

Deprecated: Use CVSSv3.ProtoReflect.Descriptor instead.

func (*CVSSv3) GetAttackComplexity Uses

func (x *CVSSv3) GetAttackComplexity() CVSSv3_AttackComplexity

func (*CVSSv3) GetAttackVector Uses

func (x *CVSSv3) GetAttackVector() CVSSv3_AttackVector

func (*CVSSv3) GetAvailabilityImpact Uses

func (x *CVSSv3) GetAvailabilityImpact() CVSSv3_Impact

func (*CVSSv3) GetBaseScore Uses

func (x *CVSSv3) GetBaseScore() float32

func (*CVSSv3) GetConfidentialityImpact Uses

func (x *CVSSv3) GetConfidentialityImpact() CVSSv3_Impact

func (*CVSSv3) GetExploitabilityScore Uses

func (x *CVSSv3) GetExploitabilityScore() float32

func (*CVSSv3) GetImpactScore Uses

func (x *CVSSv3) GetImpactScore() float32

func (*CVSSv3) GetIntegrityImpact Uses

func (x *CVSSv3) GetIntegrityImpact() CVSSv3_Impact

func (*CVSSv3) GetPrivilegesRequired Uses

func (x *CVSSv3) GetPrivilegesRequired() CVSSv3_PrivilegesRequired

func (*CVSSv3) GetScope Uses

func (x *CVSSv3) GetScope() CVSSv3_Scope

func (*CVSSv3) GetUserInteraction Uses

func (x *CVSSv3) GetUserInteraction() CVSSv3_UserInteraction

func (*CVSSv3) ProtoMessage Uses

func (*CVSSv3) ProtoMessage()

func (*CVSSv3) ProtoReflect Uses

func (x *CVSSv3) ProtoReflect() protoreflect.Message

func (*CVSSv3) Reset Uses

func (x *CVSSv3) Reset()

func (*CVSSv3) String Uses

func (x *CVSSv3) String() string

type CVSSv3_AttackComplexity Uses

type CVSSv3_AttackComplexity int32
const (
    CVSSv3_ATTACK_COMPLEXITY_UNSPECIFIED CVSSv3_AttackComplexity = 0
    CVSSv3_ATTACK_COMPLEXITY_LOW         CVSSv3_AttackComplexity = 1
    CVSSv3_ATTACK_COMPLEXITY_HIGH        CVSSv3_AttackComplexity = 2
)

func (CVSSv3_AttackComplexity) Descriptor Uses

func (CVSSv3_AttackComplexity) Descriptor() protoreflect.EnumDescriptor

func (CVSSv3_AttackComplexity) Enum Uses

func (x CVSSv3_AttackComplexity) Enum() *CVSSv3_AttackComplexity

func (CVSSv3_AttackComplexity) EnumDescriptor Uses

func (CVSSv3_AttackComplexity) EnumDescriptor() ([]byte, []int)

Deprecated: Use CVSSv3_AttackComplexity.Descriptor instead.

func (CVSSv3_AttackComplexity) Number Uses

func (x CVSSv3_AttackComplexity) Number() protoreflect.EnumNumber

func (CVSSv3_AttackComplexity) String Uses

func (x CVSSv3_AttackComplexity) String() string

func (CVSSv3_AttackComplexity) Type Uses

func (CVSSv3_AttackComplexity) Type() protoreflect.EnumType

type CVSSv3_AttackVector Uses

type CVSSv3_AttackVector int32
const (
    CVSSv3_ATTACK_VECTOR_UNSPECIFIED CVSSv3_AttackVector = 0
    CVSSv3_ATTACK_VECTOR_NETWORK     CVSSv3_AttackVector = 1
    CVSSv3_ATTACK_VECTOR_ADJACENT    CVSSv3_AttackVector = 2
    CVSSv3_ATTACK_VECTOR_LOCAL       CVSSv3_AttackVector = 3
    CVSSv3_ATTACK_VECTOR_PHYSICAL    CVSSv3_AttackVector = 4
)

func (CVSSv3_AttackVector) Descriptor Uses

func (CVSSv3_AttackVector) Descriptor() protoreflect.EnumDescriptor

func (CVSSv3_AttackVector) Enum Uses

func (x CVSSv3_AttackVector) Enum() *CVSSv3_AttackVector

func (CVSSv3_AttackVector) EnumDescriptor Uses

func (CVSSv3_AttackVector) EnumDescriptor() ([]byte, []int)

Deprecated: Use CVSSv3_AttackVector.Descriptor instead.

func (CVSSv3_AttackVector) Number Uses

func (x CVSSv3_AttackVector) Number() protoreflect.EnumNumber

func (CVSSv3_AttackVector) String Uses

func (x CVSSv3_AttackVector) String() string

func (CVSSv3_AttackVector) Type Uses

func (CVSSv3_AttackVector) Type() protoreflect.EnumType

type CVSSv3_Impact Uses

type CVSSv3_Impact int32
const (
    CVSSv3_IMPACT_UNSPECIFIED CVSSv3_Impact = 0
    CVSSv3_IMPACT_HIGH        CVSSv3_Impact = 1
    CVSSv3_IMPACT_LOW         CVSSv3_Impact = 2
    CVSSv3_IMPACT_NONE        CVSSv3_Impact = 3
)

func (CVSSv3_Impact) Descriptor Uses

func (CVSSv3_Impact) Descriptor() protoreflect.EnumDescriptor

func (CVSSv3_Impact) Enum Uses

func (x CVSSv3_Impact) Enum() *CVSSv3_Impact

func (CVSSv3_Impact) EnumDescriptor Uses

func (CVSSv3_Impact) EnumDescriptor() ([]byte, []int)

Deprecated: Use CVSSv3_Impact.Descriptor instead.

func (CVSSv3_Impact) Number Uses

func (x CVSSv3_Impact) Number() protoreflect.EnumNumber

func (CVSSv3_Impact) String Uses

func (x CVSSv3_Impact) String() string

func (CVSSv3_Impact) Type Uses

func (CVSSv3_Impact) Type() protoreflect.EnumType

type CVSSv3_PrivilegesRequired Uses

type CVSSv3_PrivilegesRequired int32
const (
    CVSSv3_PRIVILEGES_REQUIRED_UNSPECIFIED CVSSv3_PrivilegesRequired = 0
    CVSSv3_PRIVILEGES_REQUIRED_NONE        CVSSv3_PrivilegesRequired = 1
    CVSSv3_PRIVILEGES_REQUIRED_LOW         CVSSv3_PrivilegesRequired = 2
    CVSSv3_PRIVILEGES_REQUIRED_HIGH        CVSSv3_PrivilegesRequired = 3
)

func (CVSSv3_PrivilegesRequired) Descriptor Uses

func (CVSSv3_PrivilegesRequired) Descriptor() protoreflect.EnumDescriptor

func (CVSSv3_PrivilegesRequired) Enum Uses

func (x CVSSv3_PrivilegesRequired) Enum() *CVSSv3_PrivilegesRequired

func (CVSSv3_PrivilegesRequired) EnumDescriptor Uses

func (CVSSv3_PrivilegesRequired) EnumDescriptor() ([]byte, []int)

Deprecated: Use CVSSv3_PrivilegesRequired.Descriptor instead.

func (CVSSv3_PrivilegesRequired) Number Uses

func (x CVSSv3_PrivilegesRequired) Number() protoreflect.EnumNumber

func (CVSSv3_PrivilegesRequired) String Uses

func (x CVSSv3_PrivilegesRequired) String() string

func (CVSSv3_PrivilegesRequired) Type Uses

func (CVSSv3_PrivilegesRequired) Type() protoreflect.EnumType

type CVSSv3_Scope Uses

type CVSSv3_Scope int32
const (
    CVSSv3_SCOPE_UNSPECIFIED CVSSv3_Scope = 0
    CVSSv3_SCOPE_UNCHANGED   CVSSv3_Scope = 1
    CVSSv3_SCOPE_CHANGED     CVSSv3_Scope = 2
)

func (CVSSv3_Scope) Descriptor Uses

func (CVSSv3_Scope) Descriptor() protoreflect.EnumDescriptor

func (CVSSv3_Scope) Enum Uses

func (x CVSSv3_Scope) Enum() *CVSSv3_Scope

func (CVSSv3_Scope) EnumDescriptor Uses

func (CVSSv3_Scope) EnumDescriptor() ([]byte, []int)

Deprecated: Use CVSSv3_Scope.Descriptor instead.

func (CVSSv3_Scope) Number Uses

func (x CVSSv3_Scope) Number() protoreflect.EnumNumber

func (CVSSv3_Scope) String Uses

func (x CVSSv3_Scope) String() string

func (CVSSv3_Scope) Type Uses

func (CVSSv3_Scope) Type() protoreflect.EnumType

type CVSSv3_UserInteraction Uses

type CVSSv3_UserInteraction int32
const (
    CVSSv3_USER_INTERACTION_UNSPECIFIED CVSSv3_UserInteraction = 0
    CVSSv3_USER_INTERACTION_NONE        CVSSv3_UserInteraction = 1
    CVSSv3_USER_INTERACTION_REQUIRED    CVSSv3_UserInteraction = 2
)

func (CVSSv3_UserInteraction) Descriptor Uses

func (CVSSv3_UserInteraction) Descriptor() protoreflect.EnumDescriptor

func (CVSSv3_UserInteraction) Enum Uses

func (x CVSSv3_UserInteraction) Enum() *CVSSv3_UserInteraction

func (CVSSv3_UserInteraction) EnumDescriptor Uses

func (CVSSv3_UserInteraction) EnumDescriptor() ([]byte, []int)

Deprecated: Use CVSSv3_UserInteraction.Descriptor instead.

func (CVSSv3_UserInteraction) Number Uses

func (x CVSSv3_UserInteraction) Number() protoreflect.EnumNumber

func (CVSSv3_UserInteraction) String Uses

func (x CVSSv3_UserInteraction) String() string

func (CVSSv3_UserInteraction) Type Uses

func (CVSSv3_UserInteraction) Type() protoreflect.EnumType

Package cvss imports 5 packages (graph) and is imported by 1 packages. Updated 2020-08-13. Refresh now. Tools for package owners.