notification

package
v1.0.0-alpha.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterRoleRequest

type ClusterRoleRequest struct {
	Name string
}

ClusterRoleRequest is the structure for the cluster role request

type Content

type Content struct {
	Cluster            string
	User               string
	FirstName          string
	LastName           string
	Subject            string
	Recipient          []string
	RoleRequest        *RoleRequest
	TenantRequest      *TenantRequest
	ClusterRoleRequest *ClusterRoleRequest
}

Content is the structure for the notification content

func (*Content) Init

func (c *Content) Init(firstname, lastname, email, subject, clusterUID string, recipient []string)

Init is the function to initialize info for the notification content

func (*Content) SendNotification

func (c *Content) SendNotification(purpose string) error

SendNotification is the function to send notification via email and slack

type RoleRequest

type RoleRequest struct {
	Name      string
	Namespace string
}

RoleRequest is the structure for the role request

type TenantRequest

type TenantRequest struct {
	Tenant string
}

TenantRequest is the structure for the tenant request

Jump to

Keyboard shortcuts

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