events

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LoggerName                = "events"
	CategoryWorkloadLifecycle = "workload_lifecycle"
)
View Source
const (
	OperatorMSP = "MSP platform"
	OperatorSDK = "SDK"
)

Variables

View Source
var CategoriesStrings = map[string]string{
	CategoryWorkloadLifecycle: "Workload life cycle",
}

Functions

This section is empty.

Types

type CertOp

type CertOp struct {
	UniqueId string `json:"unique_id"`
	SN       string `json:"sn"`
	AKI      string `json:"aki"`
}

type Op

type Op struct {
	Operator string      `json:"operator"` // Operator
	Category string      `json:"category"` // Classification
	Type     string      `json:"type"`     // Operation type
	Obj      interface{} `json:"obj"`      // Operation object
}

Op Operation record

func NewWorkloadLifeCycle

func NewWorkloadLifeCycle(op string, author string, cert CertOp) *Op

func (*Op) Log

func (o *Op) Log()

Jump to

Keyboard shortcuts

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