Documentation ¶
Index ¶
- func ConvertOperationResult(operationResult ctrlutil.OperationResult) (Operation, ResourceType)
- func GenerateMocResourceName(nameSegments ...string) string
- func IsCRDUpdate(operationResult ctrlutil.OperationResult) bool
- func RecordHybridAKSCRDChange(logger logr.Logger, parentResource string, resource string, action Operation, ...)
- func WriteMocInfoLog(ctx context.Context, scope scope.ScopeInterface)
- func WriteMocOperationLog(logger logr.Logger, operation Operation, crResourceName string, ...)
- type MocInfoLog
- type MocResourceType
- type Operation
- type OperationLog
- type ResourceType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertOperationResult ¶ added in v1.1.12
func ConvertOperationResult(operationResult ctrlutil.OperationResult) (Operation, ResourceType)
func GenerateMocResourceName ¶
func IsCRDUpdate ¶ added in v1.1.12
func IsCRDUpdate(operationResult ctrlutil.OperationResult) bool
func RecordHybridAKSCRDChange ¶ added in v1.1.12
func RecordHybridAKSCRDChange(logger logr.Logger, parentResource string, resource string, action Operation, resourceType ResourceType, params interface{}, err error)
RecordHybridAKSCRDChange need to be called when CRD changed.
func WriteMocInfoLog ¶ added in v1.1.10
func WriteMocInfoLog(ctx context.Context, scope scope.ScopeInterface)
func WriteMocOperationLog ¶
Types ¶
type MocInfoLog ¶ added in v1.1.10
type MocResourceType ¶
type MocResourceType string
const ( LoadBalancer MocResourceType = "LoadBalancer" VipPool MocResourceType = "VipPool" VirtualNetwork MocResourceType = "VirtualNetwork" NetworkInterface MocResourceType = "NetworkInterface" Disk MocResourceType = "Disk" VirtualMachine MocResourceType = "VirtualMachine" KeyVault MocResourceType = "KeyVault" Secret MocResourceType = "Secret" Group MocResourceType = "Group" )
type OperationLog ¶
type OperationLog struct { Timestamp string `json:"timestamp"` ParentResource string `json:"parent_resource"` Resource string `json:"resource"` FilterKeyword string `json:"filter_keyword"` Action string `json:"action"` Params interface{} `json:"params"` ErrorCode string `json:"error_code"` Message string `json:"msg"` }
type ResourceType ¶ added in v1.1.12
type ResourceType string
const ( CRD ResourceType = "CRD" Status ResourceType = "Status" )
Click to show internal directories.
Click to hide internal directories.