Documentation ¶
Index ¶
- func GenerateMocResourceName(nameSegments ...string) string
- func WriteMocDeploymentIdLog(ctx context.Context, scope scope.ScopeInterface)
- func WriteMocOperationLog(operation MocOperation, crResourceName string, mocResourceType MocResourceType, ...)
- type MocOperation
- type MocResourceType
- type OperationLog
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateMocResourceName ¶
func WriteMocDeploymentIdLog ¶
func WriteMocDeploymentIdLog(ctx context.Context, scope scope.ScopeInterface)
func WriteMocOperationLog ¶
func WriteMocOperationLog(operation MocOperation, crResourceName string, mocResourceType MocResourceType, mocResourceName string, params interface{}, err error)
Types ¶
type MocOperation ¶
type MocOperation string
const ( CreateOrUpdate MocOperation = "CreateOrUpdate" Delete MocOperation = "Delete" Get MocOperation = "Get" )
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"` }
Click to show internal directories.
Click to hide internal directories.