analyser

package
v0.0.0-...-3750d73 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Analysis

type Analysis struct {
	Duration        time.Duration
	Date            time.Time
	ProviderName    string
	ProviderVersion string
	// contains filtered or unexported fields
}

func NewAnalysis

func NewAnalysis() *Analysis

func (*Analysis) AddDeleted

func (a *Analysis) AddDeleted(resources ...*resource.Resource)

func (*Analysis) AddManaged

func (a *Analysis) AddManaged(resources ...*resource.Resource)

func (*Analysis) AddUnmanaged

func (a *Analysis) AddUnmanaged(resources ...*resource.Resource)

func (*Analysis) Alerts

func (a *Analysis) Alerts() alerter.Alerts

func (*Analysis) Coverage

func (a *Analysis) Coverage() int

func (*Analysis) Deleted

func (a *Analysis) Deleted() []*resource.Resource

func (*Analysis) DriftIgnoreList

func (a *Analysis) DriftIgnoreList(opts GenDriftIgnoreOptions) (int, string)

func (*Analysis) IsSync

func (a *Analysis) IsSync() bool

func (*Analysis) Managed

func (a *Analysis) Managed() []*resource.Resource

func (Analysis) MarshalJSON

func (a Analysis) MarshalJSON() ([]byte, error)

func (*Analysis) SetAlerts

func (a *Analysis) SetAlerts(alerts alerter.Alerts)

func (*Analysis) SetIaCSourceCount

func (a *Analysis) SetIaCSourceCount(i uint)

func (*Analysis) SortResources

func (a *Analysis) SortResources()

func (*Analysis) Summary

func (a *Analysis) Summary() Summary

func (*Analysis) Unmanaged

func (a *Analysis) Unmanaged() []*resource.Resource

func (*Analysis) UnmarshalJSON

func (a *Analysis) UnmarshalJSON(bytes []byte) error

type Analyzer

type Analyzer struct {
	// contains filtered or unexported fields
}

func NewAnalyzer

func NewAnalyzer(alerter *alerter.Alerter, filter filter.Filter) *Analyzer

func (Analyzer) Analyze

func (a Analyzer) Analyze(remoteResources, resourcesFromState []*resource.Resource) (Analysis, error)

type ComputedDiffAlert

type ComputedDiffAlert struct{}

func NewComputedDiffAlert

func NewComputedDiffAlert() *ComputedDiffAlert

func (*ComputedDiffAlert) Message

func (c *ComputedDiffAlert) Message() string

func (*ComputedDiffAlert) Resource

func (c *ComputedDiffAlert) Resource() *resource.Resource

func (*ComputedDiffAlert) ShouldIgnoreResource

func (c *ComputedDiffAlert) ShouldIgnoreResource() bool

type GenDriftIgnoreOptions

type GenDriftIgnoreOptions struct {
	ExcludeUnmanaged bool
	ExcludeDeleted   bool
	ExcludeDrifted   bool
	InputPath        string
	OutputPath       string
}

type Summary

type Summary struct {
	TotalResources      int  `json:"total_resources"`
	TotalUnmanaged      int  `json:"total_unmanaged"`
	TotalDeleted        int  `json:"total_missing"`
	TotalManaged        int  `json:"total_managed"`
	TotalIaCSourceCount uint `json:"total_iac_source_count"`
}

type UnmanagedSecurityGroupRulesAlert

type UnmanagedSecurityGroupRulesAlert struct{}

func (*UnmanagedSecurityGroupRulesAlert) Message

func (*UnmanagedSecurityGroupRulesAlert) Resource

func (*UnmanagedSecurityGroupRulesAlert) ShouldIgnoreResource

func (u *UnmanagedSecurityGroupRulesAlert) ShouldIgnoreResource() bool

Jump to

Keyboard shortcuts

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