discovery

package
v0.0.0-...-e165f0f Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*Details) GetDiscovered

func (m *Details) GetDiscovered() *Discovered

func (*Details) ProtoMessage

func (*Details) ProtoMessage()

func (*Details) Reset

func (m *Details) Reset()

func (*Details) String

func (m *Details) String() string

func (*Details) XXX_DiscardUnknown

func (m *Details) XXX_DiscardUnknown()

func (*Details) XXX_Marshal

func (m *Details) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Details) XXX_Merge

func (m *Details) XXX_Merge(src proto.Message)

func (*Details) XXX_Size

func (m *Details) XXX_Size() int

func (*Details) XXX_Unmarshal

func (m *Details) XXX_Unmarshal(b []byte) error

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

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) Descriptor() ([]byte, []int)

func (*Discovery) GetAnalysisKind

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

func (*Discovery) ProtoMessage

func (*Discovery) ProtoMessage()

func (*Discovery) Reset

func (m *Discovery) Reset()

func (*Discovery) String

func (m *Discovery) String() string

func (*Discovery) XXX_DiscardUnknown

func (m *Discovery) XXX_DiscardUnknown()

func (*Discovery) XXX_Marshal

func (m *Discovery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Discovery) XXX_Merge

func (m *Discovery) XXX_Merge(src proto.Message)

func (*Discovery) XXX_Size

func (m *Discovery) XXX_Size() int

func (*Discovery) XXX_Unmarshal

func (m *Discovery) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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