Documentation ¶
Index ¶
- Constants
- Variables
- type Attribute
- type Control
- func (*Control) Descriptor() ([]byte, []int)deprecated
- func (x *Control) GetCode() string
- func (x *Control) GetDesc() string
- func (x *Control) GetId() string
- func (x *Control) GetImpact() float32
- func (x *Control) GetRefs() []*_struct.Struct
- func (x *Control) GetRemovedResultsCounts() *RemovedResultsCounts
- func (x *Control) GetResults() []*Result
- func (x *Control) GetSourceLocation() *SourceLocation
- func (x *Control) GetTags() *_struct.Struct
- func (x *Control) GetTitle() string
- func (x *Control) GetWaiverData() *WaiverData
- func (control *Control) ImpactName() (impact string)
- func (*Control) ProtoMessage()
- func (x *Control) ProtoReflect() protoreflect.Message
- func (x *Control) Reset()
- func (control *Control) Status() (status string)
- func (x *Control) String() string
- type Dependency
- func (*Dependency) Descriptor() ([]byte, []int)deprecated
- func (x *Dependency) GetBranch() string
- func (x *Dependency) GetCommit() string
- func (x *Dependency) GetCompliance() string
- func (x *Dependency) GetGit() string
- func (x *Dependency) GetName() string
- func (x *Dependency) GetPath() string
- func (x *Dependency) GetSkipMessage() string
- func (x *Dependency) GetStatus() string
- func (x *Dependency) GetSupermarket() string
- func (x *Dependency) GetTag() string
- func (x *Dependency) GetUrl() string
- func (x *Dependency) GetVersion() string
- func (*Dependency) ProtoMessage()
- func (x *Dependency) ProtoReflect() protoreflect.Message
- func (x *Dependency) Reset()
- func (x *Dependency) String() string
- type Group
- type Platform
- type Profile
- func (*Profile) Descriptor() ([]byte, []int)deprecated
- func (x *Profile) GetAttributes() []*Attribute
- func (x *Profile) GetControls() []*Control
- func (x *Profile) GetCopyright() string
- func (x *Profile) GetCopyrightEmail() string
- func (x *Profile) GetDepends() []*Dependency
- func (x *Profile) GetGroups() []*Group
- func (x *Profile) GetLicense() string
- func (x *Profile) GetMaintainer() string
- func (x *Profile) GetName() string
- func (x *Profile) GetParentProfile() string
- func (x *Profile) GetSha256() string
- func (x *Profile) GetSkipMessage() string
- func (x *Profile) GetStatus() string
- func (x *Profile) GetStatusMessage() string
- func (x *Profile) GetSummary() string
- func (x *Profile) GetSupports() []*Support
- func (x *Profile) GetTitle() string
- func (x *Profile) GetVersion() string
- func (*Profile) ProtoMessage()
- func (x *Profile) ProtoReflect() protoreflect.Message
- func (x *Profile) Reset()
- func (x *Profile) String() string
- type RemovedResultsCounts
- func (*RemovedResultsCounts) Descriptor() ([]byte, []int)deprecated
- func (x *RemovedResultsCounts) GetFailed() int32
- func (x *RemovedResultsCounts) GetPassed() int32
- func (x *RemovedResultsCounts) GetSkipped() int32
- func (*RemovedResultsCounts) ProtoMessage()
- func (x *RemovedResultsCounts) ProtoReflect() protoreflect.Message
- func (x *RemovedResultsCounts) Reset()
- func (x *RemovedResultsCounts) String() string
- type Report
- func (*Report) Descriptor() ([]byte, []int)deprecated
- func (x *Report) GetOtherChecks() []string
- func (x *Report) GetPlatform() *Platform
- func (x *Report) GetProfiles() []*Profile
- func (x *Report) GetStatistics() *Statistics
- func (x *Report) GetStatus() string
- func (x *Report) GetStatusMessage() string
- func (x *Report) GetVersion() string
- func (*Report) ProtoMessage()
- func (x *Report) ProtoReflect() protoreflect.Message
- func (x *Report) Reset()
- func (x *Report) String() string
- type Result
- func (*Result) Descriptor() ([]byte, []int)deprecated
- func (x *Result) GetCodeDesc() string
- func (x *Result) GetMessage() string
- func (x *Result) GetResource() string
- func (x *Result) GetRunTime() float32
- func (x *Result) GetSkipMessage() string
- func (x *Result) GetStartTime() string
- func (x *Result) GetStatus() string
- func (*Result) ProtoMessage()
- func (x *Result) ProtoReflect() protoreflect.Message
- func (x *Result) Reset()
- func (x *Result) String() string
- type SourceLocation
- func (*SourceLocation) Descriptor() ([]byte, []int)deprecated
- func (x *SourceLocation) GetLine() int32
- func (x *SourceLocation) GetRef() string
- func (*SourceLocation) ProtoMessage()
- func (x *SourceLocation) ProtoReflect() protoreflect.Message
- func (x *SourceLocation) Reset()
- func (x *SourceLocation) String() string
- type Statistics
- type Support
- func (*Support) Descriptor() ([]byte, []int)deprecated
- func (x *Support) GetInspec() string
- func (x *Support) GetOsFamily() string
- func (x *Support) GetOsName() string
- func (x *Support) GetPlatform() string
- func (x *Support) GetPlatformFamily() string
- func (x *Support) GetPlatformName() string
- func (x *Support) GetRelease() string
- func (*Support) ProtoMessage()
- func (x *Support) ProtoReflect() protoreflect.Message
- func (x *Support) Reset()
- func (x *Support) String() string
- type WaiverData
- func (*WaiverData) Descriptor() ([]byte, []int)deprecated
- func (x *WaiverData) GetExpirationDate() string
- func (x *WaiverData) GetJustification() string
- func (x *WaiverData) GetMessage() string
- func (x *WaiverData) GetRun() bool
- func (x *WaiverData) GetSkippedDueToWaiver() bool
- func (*WaiverData) ProtoMessage()
- func (x *WaiverData) ProtoReflect() protoreflect.Message
- func (x *WaiverData) Reset()
- func (x *WaiverData) String() string
Constants ¶
View Source
const ( ResultStatusPassed string = "passed" ResultStatusSkipped string = "skipped" ResultStatusFailed string = "failed" ResultStatusLoaded string = "loaded" ResultStatusWaived string = "waived" ControlImpactMinor string = "minor" ControlImpactMajor string = "major" ControlImpactCritical string = "critical" ControlWaivedStrNo string = "no" ControlWaivedStrNoExpired string = "no_expired" ControlWaivedStrYes string = "yes" ControlWaivedStrYesRun string = "yes_run" )
Variables ¶
View Source
var File_interservice_compliance_ingest_events_inspec_inspec_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Attribute ¶
type Attribute struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty" toml:"name,omitempty" mapstructure:"name,omitempty"` Options *_struct.Struct `` /* 126-byte string literal not displayed */ // contains filtered or unexported fields }
We can't have options as another message because the default field inside can take any json value(int, string, bool, hash, array) We get options as a struct and handle the unmarshalling and marshaling in the code
func (*Attribute) Descriptor
deprecated
func (*Attribute) GetOptions ¶
func (*Attribute) ProtoMessage ¶
func (*Attribute) ProtoMessage()
func (*Attribute) ProtoReflect ¶
func (x *Attribute) ProtoReflect() protoreflect.Message
type Control ¶
type Control struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" toml:"id,omitempty" mapstructure:"id,omitempty"` Impact float32 `protobuf:"fixed32,2,opt,name=impact,proto3" json:"impact,omitempty" toml:"impact,omitempty" mapstructure:"impact,omitempty"` Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty" toml:"title,omitempty" mapstructure:"title,omitempty"` Code string `protobuf:"bytes,20,opt,name=code,proto3" json:"code,omitempty" toml:"code,omitempty" mapstructure:"code,omitempty"` Desc string `protobuf:"bytes,21,opt,name=desc,proto3" json:"desc,omitempty" toml:"desc,omitempty" mapstructure:"desc,omitempty"` SourceLocation *SourceLocation `` /* 178-byte string literal not displayed */ // TODO handle raw refs and tags Refs []*_struct.Struct `protobuf:"bytes,23,rep,name=refs,proto3" json:"refs,omitempty" toml:"refs,omitempty" mapstructure:"refs,omitempty"` Tags *_struct.Struct `protobuf:"bytes,24,opt,name=tags,proto3" json:"tags,omitempty" toml:"tags,omitempty" mapstructure:"tags,omitempty"` Results []*Result `` /* 126-byte string literal not displayed */ WaiverData *WaiverData `` /* 158-byte string literal not displayed */ RemovedResultsCounts *RemovedResultsCounts `` /* 212-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Control) Descriptor
deprecated
func (*Control) GetRemovedResultsCounts ¶
func (x *Control) GetRemovedResultsCounts() *RemovedResultsCounts
func (*Control) GetResults ¶
func (*Control) GetSourceLocation ¶
func (x *Control) GetSourceLocation() *SourceLocation
func (*Control) GetWaiverData ¶
func (x *Control) GetWaiverData() *WaiverData
func (*Control) ImpactName ¶
ImpactName returns a human readable name for the impact
func (*Control) ProtoMessage ¶
func (*Control) ProtoMessage()
func (*Control) ProtoReflect ¶
func (x *Control) ProtoReflect() protoreflect.Message
type Dependency ¶
type Dependency struct { Name string `protobuf:"bytes,21,opt,name=name,proto3" json:"name,omitempty" toml:"name,omitempty" mapstructure:"name,omitempty"` Url string `protobuf:"bytes,22,opt,name=url,proto3" json:"url,omitempty" toml:"url,omitempty" mapstructure:"url,omitempty"` Path string `protobuf:"bytes,23,opt,name=path,proto3" json:"path,omitempty" toml:"path,omitempty" mapstructure:"path,omitempty"` Git string `protobuf:"bytes,24,opt,name=git,proto3" json:"git,omitempty" toml:"git,omitempty" mapstructure:"git,omitempty"` Branch string `protobuf:"bytes,25,opt,name=branch,proto3" json:"branch,omitempty" toml:"branch,omitempty" mapstructure:"branch,omitempty"` Tag string `protobuf:"bytes,26,opt,name=tag,proto3" json:"tag,omitempty" toml:"tag,omitempty" mapstructure:"tag,omitempty"` Commit string `protobuf:"bytes,27,opt,name=commit,proto3" json:"commit,omitempty" toml:"commit,omitempty" mapstructure:"commit,omitempty"` Version string `` /* 126-byte string literal not displayed */ Supermarket string `` /* 142-byte string literal not displayed */ Compliance string `` /* 138-byte string literal not displayed */ Status string `protobuf:"bytes,31,opt,name=status,proto3" json:"status,omitempty" toml:"status,omitempty" mapstructure:"status,omitempty"` SkipMessage string `` /* 163-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Dependency) Descriptor
deprecated
func (*Dependency) Descriptor() ([]byte, []int)
Deprecated: Use Dependency.ProtoReflect.Descriptor instead.
func (*Dependency) GetBranch ¶
func (x *Dependency) GetBranch() string
func (*Dependency) GetCommit ¶
func (x *Dependency) GetCommit() string
func (*Dependency) GetCompliance ¶
func (x *Dependency) GetCompliance() string
func (*Dependency) GetGit ¶
func (x *Dependency) GetGit() string
func (*Dependency) GetName ¶
func (x *Dependency) GetName() string
func (*Dependency) GetPath ¶
func (x *Dependency) GetPath() string
func (*Dependency) GetSkipMessage ¶
func (x *Dependency) GetSkipMessage() string
func (*Dependency) GetStatus ¶
func (x *Dependency) GetStatus() string
func (*Dependency) GetSupermarket ¶
func (x *Dependency) GetSupermarket() string
func (*Dependency) GetTag ¶
func (x *Dependency) GetTag() string
func (*Dependency) GetUrl ¶
func (x *Dependency) GetUrl() string
func (*Dependency) GetVersion ¶
func (x *Dependency) GetVersion() string
func (*Dependency) ProtoMessage ¶
func (*Dependency) ProtoMessage()
func (*Dependency) ProtoReflect ¶
func (x *Dependency) ProtoReflect() protoreflect.Message
func (*Dependency) Reset ¶
func (x *Dependency) Reset()
func (*Dependency) String ¶
func (x *Dependency) String() string
type Group ¶
type Group struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" toml:"id,omitempty" mapstructure:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty" toml:"title,omitempty" mapstructure:"title,omitempty"` Controls []string `` /* 130-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Group) Descriptor
deprecated
func (*Group) GetControls ¶
func (*Group) ProtoMessage ¶
func (*Group) ProtoMessage()
func (*Group) ProtoReflect ¶
func (x *Group) ProtoReflect() protoreflect.Message
type Platform ¶
type Platform struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty" toml:"name,omitempty" mapstructure:"name,omitempty"` Release string `protobuf:"bytes,2,opt,name=release,proto3" json:"release,omitempty" toml:"release,omitempty" mapstructure:"release,omitempty"` // contains filtered or unexported fields }
func (*Platform) Descriptor
deprecated
func (*Platform) GetRelease ¶
func (*Platform) ProtoMessage ¶
func (*Platform) ProtoMessage()
func (*Platform) ProtoReflect ¶
func (x *Platform) ProtoReflect() protoreflect.Message
type Profile ¶
type Profile struct { Name string `protobuf:"bytes,20,opt,name=name,proto3" json:"name,omitempty" toml:"name,omitempty" mapstructure:"name,omitempty"` Title string `protobuf:"bytes,21,opt,name=title,proto3" json:"title,omitempty" toml:"title,omitempty" mapstructure:"title,omitempty"` Version string `` /* 126-byte string literal not displayed */ Summary string `` /* 126-byte string literal not displayed */ Maintainer string `` /* 138-byte string literal not displayed */ License string `` /* 126-byte string literal not displayed */ Copyright string `` /* 134-byte string literal not displayed */ CopyrightEmail string `` /* 178-byte string literal not displayed */ Sha256 string `protobuf:"bytes,28,opt,name=sha256,proto3" json:"sha256,omitempty" toml:"sha256,omitempty" mapstructure:"sha256,omitempty"` Controls []*Control `` /* 130-byte string literal not displayed */ Supports []*Support `` /* 130-byte string literal not displayed */ Attributes []*Attribute `` /* 138-byte string literal not displayed */ Depends []*Dependency `` /* 126-byte string literal not displayed */ Groups []*Group `protobuf:"bytes,33,rep,name=groups,proto3" json:"groups,omitempty" toml:"groups,omitempty" mapstructure:"groups,omitempty"` ParentProfile string `` /* 173-byte string literal not displayed */ Status string `protobuf:"bytes,35,opt,name=status,proto3" json:"status,omitempty" toml:"status,omitempty" mapstructure:"status,omitempty"` SkipMessage string `` /* 163-byte string literal not displayed */ StatusMessage string `` /* 173-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Profile) Descriptor
deprecated
func (*Profile) GetAttributes ¶
func (*Profile) GetControls ¶
func (*Profile) GetCopyright ¶
func (*Profile) GetCopyrightEmail ¶
func (*Profile) GetDepends ¶
func (x *Profile) GetDepends() []*Dependency
func (*Profile) GetLicense ¶
func (*Profile) GetMaintainer ¶
func (*Profile) GetParentProfile ¶
func (*Profile) GetSkipMessage ¶
func (*Profile) GetStatusMessage ¶
func (*Profile) GetSummary ¶
func (*Profile) GetSupports ¶
func (*Profile) GetVersion ¶
func (*Profile) ProtoMessage ¶
func (*Profile) ProtoMessage()
func (*Profile) ProtoReflect ¶
func (x *Profile) ProtoReflect() protoreflect.Message
type RemovedResultsCounts ¶
type RemovedResultsCounts struct { Failed int32 `protobuf:"varint,1,opt,name=failed,proto3" json:"failed,omitempty" toml:"failed,omitempty" mapstructure:"failed,omitempty"` Skipped int32 `` /* 126-byte string literal not displayed */ Passed int32 `protobuf:"varint,3,opt,name=passed,proto3" json:"passed,omitempty" toml:"passed,omitempty" mapstructure:"passed,omitempty"` // contains filtered or unexported fields }
func (*RemovedResultsCounts) Descriptor
deprecated
func (*RemovedResultsCounts) Descriptor() ([]byte, []int)
Deprecated: Use RemovedResultsCounts.ProtoReflect.Descriptor instead.
func (*RemovedResultsCounts) GetFailed ¶
func (x *RemovedResultsCounts) GetFailed() int32
func (*RemovedResultsCounts) GetPassed ¶
func (x *RemovedResultsCounts) GetPassed() int32
func (*RemovedResultsCounts) GetSkipped ¶
func (x *RemovedResultsCounts) GetSkipped() int32
func (*RemovedResultsCounts) ProtoMessage ¶
func (*RemovedResultsCounts) ProtoMessage()
func (*RemovedResultsCounts) ProtoReflect ¶
func (x *RemovedResultsCounts) ProtoReflect() protoreflect.Message
func (*RemovedResultsCounts) Reset ¶
func (x *RemovedResultsCounts) Reset()
func (*RemovedResultsCounts) String ¶
func (x *RemovedResultsCounts) String() string
type Report ¶
type Report struct { Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty" toml:"version,omitempty" mapstructure:"version,omitempty"` Platform *Platform `` /* 129-byte string literal not displayed */ Statistics *Statistics `` /* 137-byte string literal not displayed */ OtherChecks []string `` /* 162-byte string literal not displayed */ Status string `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty" toml:"status,omitempty" mapstructure:"status,omitempty"` StatusMessage string `` /* 172-byte string literal not displayed */ Profiles []*Profile `` /* 130-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Report) Descriptor
deprecated
func (*Report) GetOtherChecks ¶
func (*Report) GetPlatform ¶
func (*Report) GetProfiles ¶
func (*Report) GetStatistics ¶
func (x *Report) GetStatistics() *Statistics
func (*Report) GetStatusMessage ¶
func (*Report) GetVersion ¶
func (*Report) ProtoMessage ¶
func (*Report) ProtoMessage()
func (*Report) ProtoReflect ¶
func (x *Report) ProtoReflect() protoreflect.Message
type Result ¶
type Result struct { Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty" toml:"status,omitempty" mapstructure:"status,omitempty"` CodeDesc string `` /* 147-byte string literal not displayed */ RunTime float32 `` /* 144-byte string literal not displayed */ StartTime string `` // For now, use string /* 152-byte string literal not displayed */ Resource string `` /* 129-byte string literal not displayed */ Message string `` /* 126-byte string literal not displayed */ SkipMessage string `` /* 163-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Result) Descriptor
deprecated
func (*Result) GetCodeDesc ¶
func (*Result) GetMessage ¶
func (*Result) GetResource ¶
func (*Result) GetRunTime ¶
func (*Result) GetSkipMessage ¶
func (*Result) GetStartTime ¶
func (*Result) ProtoMessage ¶
func (*Result) ProtoMessage()
func (*Result) ProtoReflect ¶
func (x *Result) ProtoReflect() protoreflect.Message
type SourceLocation ¶
type SourceLocation struct { Ref string `protobuf:"bytes,1,opt,name=ref,proto3" json:"ref,omitempty" toml:"ref,omitempty" mapstructure:"ref,omitempty"` Line int32 `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty" toml:"line,omitempty" mapstructure:"line,omitempty"` // contains filtered or unexported fields }
func (*SourceLocation) Descriptor
deprecated
func (*SourceLocation) Descriptor() ([]byte, []int)
Deprecated: Use SourceLocation.ProtoReflect.Descriptor instead.
func (*SourceLocation) GetLine ¶
func (x *SourceLocation) GetLine() int32
func (*SourceLocation) GetRef ¶
func (x *SourceLocation) GetRef() string
func (*SourceLocation) ProtoMessage ¶
func (*SourceLocation) ProtoMessage()
func (*SourceLocation) ProtoReflect ¶
func (x *SourceLocation) ProtoReflect() protoreflect.Message
func (*SourceLocation) Reset ¶
func (x *SourceLocation) Reset()
func (*SourceLocation) String ¶
func (x *SourceLocation) String() string
type Statistics ¶
type Statistics struct { Duration float32 `` /* 131-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Statistics) Descriptor
deprecated
func (*Statistics) Descriptor() ([]byte, []int)
Deprecated: Use Statistics.ProtoReflect.Descriptor instead.
func (*Statistics) GetDuration ¶
func (x *Statistics) GetDuration() float32
func (*Statistics) ProtoMessage ¶
func (*Statistics) ProtoMessage()
func (*Statistics) ProtoReflect ¶
func (x *Statistics) ProtoReflect() protoreflect.Message
func (*Statistics) Reset ¶
func (x *Statistics) Reset()
func (*Statistics) String ¶
func (x *Statistics) String() string
type Support ¶
type Support struct { Inspec string `protobuf:"bytes,1,opt,name=inspec,proto3" json:"inspec,omitempty" toml:"inspec,omitempty" mapstructure:"inspec,omitempty"` OsName string `` /* 138-byte string literal not displayed */ OsFamily string `` /* 148-byte string literal not displayed */ Release string `protobuf:"bytes,4,opt,name=release,proto3" json:"release,omitempty" toml:"release,omitempty" mapstructure:"release,omitempty"` PlatformName string `` /* 168-byte string literal not displayed */ PlatformFamily string `` /* 178-byte string literal not displayed */ Platform string `` /* 129-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Support) Descriptor
deprecated
func (*Support) GetOsFamily ¶
func (*Support) GetPlatform ¶
func (*Support) GetPlatformFamily ¶
func (*Support) GetPlatformName ¶
func (*Support) GetRelease ¶
func (*Support) ProtoMessage ¶
func (*Support) ProtoMessage()
func (*Support) ProtoReflect ¶
func (x *Support) ProtoReflect() protoreflect.Message
type WaiverData ¶
type WaiverData struct { ExpirationDate string `` /* 177-byte string literal not displayed */ Justification string `` /* 149-byte string literal not displayed */ Run bool `protobuf:"varint,3,opt,name=run,proto3" json:"run,omitempty" toml:"run,omitempty" mapstructure:"run,omitempty"` SkippedDueToWaiver bool `` /* 206-byte string literal not displayed */ Message string `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty" toml:"message,omitempty" mapstructure:"message,omitempty"` // contains filtered or unexported fields }
func (*WaiverData) Descriptor
deprecated
func (*WaiverData) Descriptor() ([]byte, []int)
Deprecated: Use WaiverData.ProtoReflect.Descriptor instead.
func (*WaiverData) GetExpirationDate ¶
func (x *WaiverData) GetExpirationDate() string
func (*WaiverData) GetJustification ¶
func (x *WaiverData) GetJustification() string
func (*WaiverData) GetMessage ¶
func (x *WaiverData) GetMessage() string
func (*WaiverData) GetRun ¶
func (x *WaiverData) GetRun() bool
func (*WaiverData) GetSkippedDueToWaiver ¶
func (x *WaiverData) GetSkippedDueToWaiver() bool
func (*WaiverData) ProtoMessage ¶
func (*WaiverData) ProtoMessage()
func (*WaiverData) ProtoReflect ¶
func (x *WaiverData) ProtoReflect() protoreflect.Message
func (*WaiverData) Reset ¶
func (x *WaiverData) Reset()
func (*WaiverData) String ¶
func (x *WaiverData) String() string
Click to show internal directories.
Click to hide internal directories.