auditlog

package
v0.0.0-...-9940484 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action int
const (
	CreateOrUpdate Action = iota
	Delete
)

func (*Action) GetActionAsString

func (a *Action) GetActionAsString() string

type AuditLogger

type AuditLogger interface {
	Log(auditMessageInfo *AuditMessageInfo) (string, error)
	Close() error
}

type AuditLoggerImpl

type AuditLoggerImpl struct {
	// contains filtered or unexported fields
}

func NewAuditLogger

func NewAuditLogger(logger logr.Logger) (*AuditLoggerImpl, error)

func (*AuditLoggerImpl) Close

func (a *AuditLoggerImpl) Close() error

func (*AuditLoggerImpl) Init

func (a *AuditLoggerImpl) Init() error

func (*AuditLoggerImpl) Log

func (a *AuditLoggerImpl) Log(auditMessageInfo *AuditMessageInfo) (string, error)

type AuditMessageInfo

type AuditMessageInfo struct {
	Action      Action
	ClusterBOM  string
	ProjectName string
	ClusterName string
	ServiceUser string
	ClusterURL  string
	Bom         string
	OldBom      string
	ID          string // set on return
	Success     *bool
}

func NewAuditMessage

func NewAuditMessage(action Action, clusterBOM, projectName, clusterName, serviceUser, clusterURL, bom,
	oldBom string, success *bool) *AuditMessageInfo

type AuditMessageResponse

type AuditMessageResponse struct {
	ID string
}

Jump to

Keyboard shortcuts

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