Documentation ¶
Index ¶
- Variables
- type Details
- func (*Details) Descriptor() ([]byte, []int)
- func (m *Details) GetDiscovered() *Discovered
- func (*Details) ProtoMessage()
- func (m *Details) Reset()
- func (m *Details) String() string
- func (m *Details) XXX_DiscardUnknown()
- func (m *Details) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Details) XXX_Merge(src proto.Message)
- func (m *Details) XXX_Size() int
- func (m *Details) XXX_Unmarshal(b []byte) error
- type Discovered
- func (*Discovered) Descriptor() ([]byte, []int)
- func (m *Discovered) GetAnalysisStatus() Discovered_AnalysisStatus
- func (m *Discovered) GetAnalysisStatusError() *status.Status
- func (m *Discovered) GetContinuousAnalysis() Discovered_ContinuousAnalysis
- func (m *Discovered) GetLastAnalysisTime() *timestamp.Timestamp
- func (*Discovered) ProtoMessage()
- func (m *Discovered) Reset()
- func (m *Discovered) String() string
- func (m *Discovered) XXX_DiscardUnknown()
- func (m *Discovered) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Discovered) XXX_Merge(src proto.Message)
- func (m *Discovered) XXX_Size() int
- func (m *Discovered) XXX_Unmarshal(b []byte) error
- type Discovered_AnalysisStatus
- type Discovered_ContinuousAnalysis
- type Discovery
- func (*Discovery) Descriptor() ([]byte, []int)
- func (m *Discovery) GetAnalysisKind() common.NoteKind
- func (*Discovery) ProtoMessage()
- func (m *Discovery) Reset()
- func (m *Discovery) String() string
- func (m *Discovery) XXX_DiscardUnknown()
- func (m *Discovery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Discovery) XXX_Merge(src proto.Message)
- func (m *Discovery) XXX_Size() int
- func (m *Discovery) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Discovered_AnalysisStatus_name = map[int32]string{
0: "ANALYSIS_STATUS_UNSPECIFIED",
1: "PENDING",
2: "SCANNING",
3: "FINISHED_SUCCESS",
4: "FINISHED_FAILED",
5: "FINISHED_UNSUPPORTED",
}
View Source
var Discovered_AnalysisStatus_value = map[string]int32{
"ANALYSIS_STATUS_UNSPECIFIED": 0,
"PENDING": 1,
"SCANNING": 2,
"FINISHED_SUCCESS": 3,
"FINISHED_FAILED": 4,
"FINISHED_UNSUPPORTED": 5,
}
View Source
var Discovered_ContinuousAnalysis_name = map[int32]string{
0: "CONTINUOUS_ANALYSIS_UNSPECIFIED",
1: "ACTIVE",
2: "INACTIVE",
}
View Source
var Discovered_ContinuousAnalysis_value = map[string]int32{
"CONTINUOUS_ANALYSIS_UNSPECIFIED": 0,
"ACTIVE": 1,
"INACTIVE": 2,
}
Functions ¶
This section is empty.
Types ¶
type Details ¶
type Details struct { // Required. Analysis status for the discovered resource. Discovered *Discovered `protobuf:"bytes,1,opt,name=discovered,proto3" json:"discovered,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Details of a discovery occurrence.
func (*Details) Descriptor ¶
func (*Details) GetDiscovered ¶
func (m *Details) GetDiscovered() *Discovered
func (*Details) ProtoMessage ¶
func (*Details) ProtoMessage()
func (*Details) XXX_DiscardUnknown ¶
func (m *Details) XXX_DiscardUnknown()
func (*Details) XXX_Marshal ¶
func (*Details) XXX_Unmarshal ¶
type Discovered ¶
type Discovered struct { // Whether the resource is continuously analyzed. ContinuousAnalysis Discovered_ContinuousAnalysis `` /* 177-byte string literal not displayed */ // 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 `` /* 161-byte string literal not displayed */ // 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Provides information about the analysis status of a discovered resource.
func (*Discovered) Descriptor ¶
func (*Discovered) Descriptor() ([]byte, []int)
func (*Discovered) GetAnalysisStatus ¶
func (m *Discovered) GetAnalysisStatus() Discovered_AnalysisStatus
func (*Discovered) GetAnalysisStatusError ¶
func (m *Discovered) GetAnalysisStatusError() *status.Status
func (*Discovered) GetContinuousAnalysis ¶
func (m *Discovered) GetContinuousAnalysis() Discovered_ContinuousAnalysis
func (*Discovered) GetLastAnalysisTime ¶
func (m *Discovered) GetLastAnalysisTime() *timestamp.Timestamp
func (*Discovered) ProtoMessage ¶
func (*Discovered) ProtoMessage()
func (*Discovered) Reset ¶
func (m *Discovered) Reset()
func (*Discovered) String ¶
func (m *Discovered) String() string
func (*Discovered) XXX_DiscardUnknown ¶
func (m *Discovered) XXX_DiscardUnknown()
func (*Discovered) XXX_Marshal ¶
func (m *Discovered) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Discovered) XXX_Merge ¶
func (m *Discovered) XXX_Merge(src proto.Message)
func (*Discovered) XXX_Size ¶
func (m *Discovered) XXX_Size() int
func (*Discovered) XXX_Unmarshal ¶
func (m *Discovered) XXX_Unmarshal(b []byte) error
type Discovered_AnalysisStatus ¶
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) EnumDescriptor ¶
func (Discovered_AnalysisStatus) EnumDescriptor() ([]byte, []int)
func (Discovered_AnalysisStatus) String ¶
func (x Discovered_AnalysisStatus) String() string
type Discovered_ContinuousAnalysis ¶
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) EnumDescriptor ¶
func (Discovered_ContinuousAnalysis) EnumDescriptor() ([]byte, []int)
func (Discovered_ContinuousAnalysis) String ¶
func (x Discovered_ContinuousAnalysis) String() string
type Discovery ¶
type Discovery struct { // Required. Immutable. The kind of analysis that is handled by this // discovery. AnalysisKind common.NoteKind `` /* 128-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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 ¶
func (*Discovery) GetAnalysisKind ¶
func (*Discovery) ProtoMessage ¶
func (*Discovery) ProtoMessage()
func (*Discovery) XXX_DiscardUnknown ¶
func (m *Discovery) XXX_DiscardUnknown()
func (*Discovery) XXX_Marshal ¶
func (*Discovery) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.