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

package discovery

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

Index

Package Files

discovery.pb.go

Variables

var (
    Discovered_ContinuousAnalysis_name = map[int32]string{
        0:  "CONTINUOUS_ANALYSIS_UNSPECIFIED",
        1:  "ACTIVE",
        2:  "INACTIVE",
    }
    Discovered_ContinuousAnalysis_value = map[string]int32{
        "CONTINUOUS_ANALYSIS_UNSPECIFIED": 0,
        "ACTIVE":                          1,
        "INACTIVE":                        2,
    }
)

Enum value maps for Discovered_ContinuousAnalysis.

var (
    Discovered_AnalysisStatus_name = map[int32]string{
        0:  "ANALYSIS_STATUS_UNSPECIFIED",
        1:  "PENDING",
        2:  "SCANNING",
        3:  "FINISHED_SUCCESS",
        4:  "FINISHED_FAILED",
        5:  "FINISHED_UNSUPPORTED",
    }
    Discovered_AnalysisStatus_value = map[string]int32{
        "ANALYSIS_STATUS_UNSPECIFIED": 0,
        "PENDING":                     1,
        "SCANNING":                    2,
        "FINISHED_SUCCESS":            3,
        "FINISHED_FAILED":             4,
        "FINISHED_UNSUPPORTED":        5,
    }
)

Enum value maps for Discovered_AnalysisStatus.

var File_google_devtools_containeranalysis_v1beta1_discovery_discovery_proto protoreflect.FileDescriptor

type Details Uses

type Details struct {

    // Required. Analysis status for the discovered resource.
    Discovered *Discovered `protobuf:"bytes,1,opt,name=discovered,proto3" json:"discovered,omitempty"`
    // contains filtered or unexported fields
}

Details of a discovery occurrence.

func (*Details) Descriptor Uses

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

Deprecated: Use Details.ProtoReflect.Descriptor instead.

func (*Details) GetDiscovered Uses

func (x *Details) GetDiscovered() *Discovered

func (*Details) ProtoMessage Uses

func (*Details) ProtoMessage()

func (*Details) ProtoReflect Uses

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

func (*Details) Reset Uses

func (x *Details) Reset()

func (*Details) String Uses

func (x *Details) String() string

type Discovered Uses

type Discovered struct {

    // Whether the resource is continuously analyzed.
    ContinuousAnalysis Discovered_ContinuousAnalysis `protobuf:"varint,1,opt,name=continuous_analysis,json=continuousAnalysis,proto3,enum=grafeas.v1beta1.discovery.Discovered_ContinuousAnalysis" json:"continuous_analysis,omitempty"`
    // The last time continuous analysis was done for this resource.
    LastAnalysisTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=last_analysis_time,json=lastAnalysisTime,proto3" json:"last_analysis_time,omitempty"`
    // The status of discovery for the resource.
    AnalysisStatus Discovered_AnalysisStatus `protobuf:"varint,3,opt,name=analysis_status,json=analysisStatus,proto3,enum=grafeas.v1beta1.discovery.Discovered_AnalysisStatus" json:"analysis_status,omitempty"`
    // When an error is encountered this will contain a LocalizedMessage under
    // details to show to the user. The LocalizedMessage is output only and
    // populated by the API.
    AnalysisStatusError *status.Status `protobuf:"bytes,4,opt,name=analysis_status_error,json=analysisStatusError,proto3" json:"analysis_status_error,omitempty"`
    // contains filtered or unexported fields
}

Provides information about the analysis status of a discovered resource.

func (*Discovered) Descriptor Uses

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

Deprecated: Use Discovered.ProtoReflect.Descriptor instead.

func (*Discovered) GetAnalysisStatus Uses

func (x *Discovered) GetAnalysisStatus() Discovered_AnalysisStatus

func (*Discovered) GetAnalysisStatusError Uses

func (x *Discovered) GetAnalysisStatusError() *status.Status

func (*Discovered) GetContinuousAnalysis Uses

func (x *Discovered) GetContinuousAnalysis() Discovered_ContinuousAnalysis

func (*Discovered) GetLastAnalysisTime Uses

func (x *Discovered) GetLastAnalysisTime() *timestamp.Timestamp

func (*Discovered) ProtoMessage Uses

func (*Discovered) ProtoMessage()

func (*Discovered) ProtoReflect Uses

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

func (*Discovered) Reset Uses

func (x *Discovered) Reset()

func (*Discovered) String Uses

func (x *Discovered) String() string

type Discovered_AnalysisStatus Uses

type Discovered_AnalysisStatus int32

Analysis status for a resource. Currently for initial analysis only (not updated in continuous analysis).

const (
    // Unknown.
    Discovered_ANALYSIS_STATUS_UNSPECIFIED Discovered_AnalysisStatus = 0
    // Resource is known but no action has been taken yet.
    Discovered_PENDING Discovered_AnalysisStatus = 1
    // Resource is being analyzed.
    Discovered_SCANNING Discovered_AnalysisStatus = 2
    // Analysis has finished successfully.
    Discovered_FINISHED_SUCCESS Discovered_AnalysisStatus = 3
    // Analysis has finished unsuccessfully, the analysis itself is in a bad
    // state.
    Discovered_FINISHED_FAILED Discovered_AnalysisStatus = 4
    // The resource is known not to be supported
    Discovered_FINISHED_UNSUPPORTED Discovered_AnalysisStatus = 5
)

func (Discovered_AnalysisStatus) Descriptor Uses

func (Discovered_AnalysisStatus) Descriptor() protoreflect.EnumDescriptor

func (Discovered_AnalysisStatus) Enum Uses

func (x Discovered_AnalysisStatus) Enum() *Discovered_AnalysisStatus

func (Discovered_AnalysisStatus) EnumDescriptor Uses

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

Deprecated: Use Discovered_AnalysisStatus.Descriptor instead.

func (Discovered_AnalysisStatus) Number Uses

func (x Discovered_AnalysisStatus) Number() protoreflect.EnumNumber

func (Discovered_AnalysisStatus) String Uses

func (x Discovered_AnalysisStatus) String() string

func (Discovered_AnalysisStatus) Type Uses

func (Discovered_AnalysisStatus) Type() protoreflect.EnumType

type Discovered_ContinuousAnalysis Uses

type Discovered_ContinuousAnalysis int32

Whether the resource is continuously analyzed.

const (
    // Unknown.
    Discovered_CONTINUOUS_ANALYSIS_UNSPECIFIED Discovered_ContinuousAnalysis = 0
    // The resource is continuously analyzed.
    Discovered_ACTIVE Discovered_ContinuousAnalysis = 1
    // The resource is ignored for continuous analysis.
    Discovered_INACTIVE Discovered_ContinuousAnalysis = 2
)

func (Discovered_ContinuousAnalysis) Descriptor Uses

func (Discovered_ContinuousAnalysis) Descriptor() protoreflect.EnumDescriptor

func (Discovered_ContinuousAnalysis) Enum Uses

func (x Discovered_ContinuousAnalysis) Enum() *Discovered_ContinuousAnalysis

func (Discovered_ContinuousAnalysis) EnumDescriptor Uses

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

Deprecated: Use Discovered_ContinuousAnalysis.Descriptor instead.

func (Discovered_ContinuousAnalysis) Number Uses

func (x Discovered_ContinuousAnalysis) Number() protoreflect.EnumNumber

func (Discovered_ContinuousAnalysis) String Uses

func (x Discovered_ContinuousAnalysis) String() string

func (Discovered_ContinuousAnalysis) Type Uses

func (Discovered_ContinuousAnalysis) Type() protoreflect.EnumType

type Discovery Uses

type Discovery struct {

    // Required. Immutable. The kind of analysis that is handled by this
    // discovery.
    AnalysisKind common.NoteKind `protobuf:"varint,1,opt,name=analysis_kind,json=analysisKind,proto3,enum=grafeas.v1beta1.NoteKind" json:"analysis_kind,omitempty"`
    // contains filtered or unexported fields
}

A note that indicates a type of analysis a provider would perform. This note exists in a provider's project. A `Discovery` occurrence is created in a consumer's project at the start of analysis.

func (*Discovery) Descriptor Uses

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

Deprecated: Use Discovery.ProtoReflect.Descriptor instead.

func (*Discovery) GetAnalysisKind Uses

func (x *Discovery) GetAnalysisKind() common.NoteKind

func (*Discovery) ProtoMessage Uses

func (*Discovery) ProtoMessage()

func (*Discovery) ProtoReflect Uses

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

func (*Discovery) Reset Uses

func (x *Discovery) Reset()

func (*Discovery) String Uses

func (x *Discovery) String() string

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