logclient

package
v0.0.0-...-94e4715 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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"
)

Jump to

Keyboard shortcuts

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