models

package
v0.0.0-...-d125d34 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Any                    string = "*"
	ApplicationCreated     string = "applications_created"
	ApplicationDeleted     string = "applications_deleted"
	ApplicationUpdated     string = "applications_updated"
	ApplicationTransfered  string = "applications_transferred"
	ClusterCreated         string = "clusters_created"
	ClusterDeleted         string = "clusters_deleted"
	ClusterBuildDeployed   string = "clusters_builddeployed"
	ClusterDeployed        string = "clusters_deployed"
	ClusterRollbacked      string = "clusters_rollbacked"
	ClusterRestarted       string = "clsuters_restarted"
	ClusterPodsRescheduled string = "clusters_rescheduled"
	ClusterUpdated         string = "clusters_updated"
	ClusterFreed           string = "clusters_freed"
	ClusterKubernetesEvent string = "clusters_kubernetes_event"
	ClusterAction                 = "clusters_action"
	MemberCreated          string = "members_created"
	MemberUpdated          string = "members_updated"
	MemberDeleted          string = "members_deleted"
	PipelinerunCreated     string = "pipelineruns_created"
	PipelinerunCancelled   string = "pipelineruns_cancelled"
	PipelinerunExecuted    string = "pipelineruns_executed"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionWithDescription

type ActionWithDescription struct {
	Name        EventType `json:"name"`
	Description string    `json:"description"`
}

type Event

type Event struct {
	EventSummary
	ID        uint
	ReqID     string
	CreatedAt time.Time
	CreatedBy uint
}

type EventCursor

type EventCursor struct {
	ID        uint
	Position  uint
	CreatedAt time.Time
	UpdatedAt time.Time
}

type EventResourceType

type EventResourceType string

type EventSummary

type EventSummary struct {
	ResourceType string
	ResourceID   uint
	EventType    string
	Extra        *string `gorm:"default:''"`
}

type EventType

type EventType string

Jump to

Keyboard shortcuts

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