errlog

package
v1.0.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPermIssue added in v1.0.0

func AddPermIssue(issue PermIssue)

func AddSkipIssue added in v1.0.0

func AddSkipIssue(policyName string, entityName string, skipReason SkipReason)

func FlushAll

func FlushAll()

func HadErrors

func HadErrors() bool

func HadPermIssues added in v1.0.0

func HadPermIssues() bool

func Printf

func Printf(format string, args ...interface{})

func SetOutput

func SetOutput(writer io.Writer)

func SetPermissionsOutput added in v1.0.0

func SetPermissionsOutput(writer io.Writer)

Types

type PermIssue added in v1.0.0

type PermIssue struct {
	Permission string
	Entity     string
	Effect     string
}

func NewPermIssue added in v1.0.0

func NewPermIssue(permission string, entity string, namespace string, effect string) PermIssue

type PermLog added in v1.0.0

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

func NewPermLog added in v1.0.0

func NewPermLog() *PermLog

func (*PermLog) Add added in v1.0.0

func (p *PermLog) Add(issue PermIssue)

func (*PermLog) Empty added in v1.0.0

func (p *PermLog) Empty() bool

func (*PermLog) MarshalJSON added in v1.0.0

func (p *PermLog) MarshalJSON() ([]byte, error)

type PermissionsOutput added in v1.0.0

type PermissionsOutput struct {
	Permissions     interface{} `json:"missing_permissions"`
	SkippedPolicies interface{} `json:"skipped_policies"`
}

type SkipLog added in v1.0.0

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

func NewSkipLog added in v1.0.0

func NewSkipLog() *SkipLog

func (*SkipLog) Add added in v1.0.0

func (s *SkipLog) Add(policyName string, entityName string, skipReason SkipReason)

func (*SkipLog) Empty added in v1.0.0

func (p *SkipLog) Empty() bool

func (*SkipLog) MarshalJSON added in v1.0.0

func (p *SkipLog) MarshalJSON() ([]byte, error)

type SkipReason added in v1.0.0

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

func NewPermissionSkipReason added in v1.0.0

func NewPermissionSkipReason(reason string) SkipReason

func NewPrerequisiteSkipReason added in v1.0.0

func NewPrerequisiteSkipReason(reason string) SkipReason

func (SkipReason) MarshalJSON added in v1.0.0

func (s SkipReason) MarshalJSON() ([]byte, error)

func (SkipReason) ReasonPrefix added in v1.0.0

func (s SkipReason) ReasonPrefix() string

Jump to

Keyboard shortcuts

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