k8s

package
v0.0.0-...-9d183bc Latest Latest
Warning

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

Go to latest
Published: May 28, 2025 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const AlertsTableName = "k8s.alerts"
View Source
const AllPoliciesTableName = "k8s.all_policies"
View Source
const ClustersTableName = "k8s.clusters"
View Source
const ImplimentedPoliciesTableName = "k8s.implimented_policies"

Variables

This section is empty.

Functions

This section is empty.

Types

type Alerts

type Alerts struct {
	bun.BaseModel `bun:"table:k8s.alerts,alias:h"`

	ID          string `bun:",pk,type:uuid,default:gen_random_uuid()"`
	ElasticId   string
	AlertTitle  string
	Description string
	Pod         string
	Namespace   string
	Severity    string

	AuditFields
}

type AllPolicies

type AllPolicies struct {
	bun.BaseModel `bun:"table:k8s.all_policies,alias:h"`

	ID             string `bun:",pk,type:uuid,default:gen_random_uuid()"`
	PolicyTitle    string
	Description    string
	PolicyType     string
	PolicyFilePath string

	AuditFields
}

type AuditFields

type AuditFields struct {
	CreatedBy string       `bun:"type:varchar(150)"`
	UpdatedBy string       `bun:"type:varchar(150)"`
	CreatedAt time.Time    `bun:",nullzero,notnull,default:current_timestamp"`
	UpdatedAt bun.NullTime `bun:",nullzero"`
}

type Clusters

type Clusters struct {
	bun.BaseModel `bun:"table:k8s.clusters,alias:h"`

	ID          string `bun:",pk,type:uuid,default:gen_random_uuid()"`
	ClusterName string
	MasterIP    string
	AgentPort   int
	Description string

	AuditFields
}

type ImplimentedPolicies

type ImplimentedPolicies struct {
	bun.BaseModel `bun:"table:k8s.implimented_policies,alias:h"`

	ID             string `bun:",pk,type:uuid,default:gen_random_uuid()"`
	PolicyTitle    string
	Description    string
	AppLabel       string
	Namespace      string
	PolicyFilePath string

	AuditFields
}

Jump to

Keyboard shortcuts

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