Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
EventActionMap map[TEventAction]string
)
Functions ¶
func LogWithContext ¶
func LogWithContext(ctx context.Context, obj db.IModel, eventAction TEventAction, iNotes interface{}, userCred mcclient.TokenCredential, isSuccess bool)
LogWithContext log record with context
func LogWithStartable ¶
func LogWithStartable(task logclient.IStartable, obj db.IModel, eventAction TEventAction, iNotes interface{}, userCred mcclient.TokenCredential, isSuccess bool)
LogWithStartable log record with start time
Types ¶
type TEventAction ¶
type TEventAction string
const ( ActionClusterCreate TEventAction = "cluster_create" ActionClusterCreateMachines TEventAction = "cluster_create_machines" ActionClusterAddMachine TEventAction = "cluster_add_machine" ActionClusterDeleteMachine TEventAction = "cluster_delete_machine" ActionClusterDelete TEventAction = "cluster_delete" ActionClusterApplyAddons TEventAction = "cluster_apply_addons" ActionClusterSyncStatus TEventAction = "cluster_sync_status" ActionClusterSync TEventAction = "cluster_sync" ActionClusterDeploy TEventAction = "cluster_deploy" ActionMachineCreate TEventAction = "machine_create" ActionMachinePrepare TEventAction = "machine_prepare" ActionMachineDelete TEventAction = "machine_delete" ActionResourceCreate TEventAction = "resource_create" ActionResourceUpdate TEventAction = "resource_update" ActionResourceDelete TEventAction = "resource_delete" ActionResourceSync TEventAction = "resource_sync" ActionResourceAttach TEventAction = "resource_attach" ActionResourceDetach TEventAction = "resource_detach" )
Click to show internal directories.
Click to hide internal directories.