metrics

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecPolicy

func DecPolicy(policyType string)

func IncrPolicy

func IncrPolicy(policyType string)

func OverridePolicyMatched

func OverridePolicyMatched(policyName string, resourceGVK schema.GroupVersionKind)

func OverridePolicyOverride

func OverridePolicyOverride(policyName string, resourceGVK schema.GroupVersionKind)

func PolicyGotError

func PolicyGotError(policyName string, resourceGVK schema.GroupVersionKind, errorType ErrorType)

func SetPolicyNumber

func SetPolicyNumber(policyType string, n int64)

func SyncResourceError

func SyncResourceError(resourceGVK schema.GroupVersionKind)

func ValidatePolicyMatched

func ValidatePolicyMatched(policyName string, resourceGVK schema.GroupVersionKind)

func ValidatePolicyReject

func ValidatePolicyReject(policyName string, resourceGVK schema.GroupVersionKind)

Types

type ErrorType

type ErrorType string
const (
	ErrorTypeUnknown        ErrorType = "unknown"
	ErrorTypeCueExecute     ErrorType = "cue_execute_error"
	ErrTypePrepareCueParams ErrorType = "prepare_cue_params_error"

	SubSystemName = "kcloudlabs"
)

Jump to

Keyboard shortcuts

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