generics

package
v0.0.0-...-4436486 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendEmail

func SendEmail(recipient *string, sender *string, subject string, templateFilename string,
	templateData interface{}) *ign.ErrMsg

SendEmail sends a generic email from HTML template

func SendReportEmail

func SendReportEmail(name, owner, category, reason string, r *http.Request) (interface{}, *ign.ErrMsg)

SendReportEmail sends an alert to admins about a resource report

Types

type Report

type Report struct {
	gorm.Model
	// Reason is the justification why the resource was reported
	Reason *string `gorm:"type:text" json:"reason,omitempty"`
}

Report represents a generic resource report

Jump to

Keyboard shortcuts

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