Documentation ¶
Index ¶
- type Report
- type Reporter
- type ResourceReports
- func (e ResourceReports) Accept(res ...resources.InputResource) ResourceReports
- func (e ResourceReports) AddError(res resources.InputResource, err error)
- func (e ResourceReports) AddErrors(res resources.InputResource, errs ...error)
- func (e ResourceReports) AddWarning(res resources.InputResource, warning string)
- func (e ResourceReports) AddWarnings(res resources.InputResource, warning ...string)
- func (e ResourceReports) Find(kind string, ref core.ResourceRef) (resources.InputResource, Report)
- func (e ResourceReports) Merge(resErrs ResourceReports)
- func (e ResourceReports) Validate() error
- func (e ResourceReports) ValidateStrict() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reporter ¶
type Reporter interface {
WriteReports(ctx context.Context, errs ResourceReports, subresourceStatuses map[string]*core.Status) error
}
func NewReporter ¶
func NewReporter(reporterRef string, resourceClients ...clients.ResourceClient) Reporter
type ResourceReports ¶
type ResourceReports map[resources.InputResource]Report
func (ResourceReports) Accept ¶
func (e ResourceReports) Accept(res ...resources.InputResource) ResourceReports
func (ResourceReports) AddError ¶
func (e ResourceReports) AddError(res resources.InputResource, err error)
func (ResourceReports) AddErrors ¶ added in v0.10.25
func (e ResourceReports) AddErrors(res resources.InputResource, errs ...error)
func (ResourceReports) AddWarning ¶
func (e ResourceReports) AddWarning(res resources.InputResource, warning string)
func (ResourceReports) AddWarnings ¶ added in v0.10.25
func (e ResourceReports) AddWarnings(res resources.InputResource, warning ...string)
func (ResourceReports) Find ¶ added in v0.10.25
func (e ResourceReports) Find(kind string, ref core.ResourceRef) (resources.InputResource, Report)
func (ResourceReports) Merge ¶
func (e ResourceReports) Merge(resErrs ResourceReports)
func (ResourceReports) ValidateStrict ¶
func (e ResourceReports) ValidateStrict() error
does not ignore warnings
Click to show internal directories.
Click to hide internal directories.