slack

package
v1.0.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AUTH_TOKEN_IDENTIFIER = "SLACK_AUTH_TOKEN"
	CHANNEL_ID_IDENTIFIER = "SLACK_CHANNEL_ID"
)
View Source
const (
	CLUSTER_ROLE_REQUEST_MADE = "" /* 162-byte string literal not displayed */
	ROLE_REQUEST_MADE         = "" /* 161-byte string literal not displayed */
	TENANT_REQUEST_MADE       = "" /* 144-byte string literal not displayed */
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterRoleRequest

type ClusterRoleRequest struct {
	Name string
}

type Content

type Content struct {
	Cluster   string
	User      string
	FirstName string
	LastName  string
	Subject   string
	AuthToken string
	ChannelId string
	// There are not recipient since this the notification will only be sent to a channel.
	// If requested this may be changed to support multiple Slack channels.
	// Recipient     []string
	ClusterRolerequest *ClusterRoleRequest
	RoleRequest        *RoleRequest
	TenantRequest      *TenantRequest
}

func (*Content) Send

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

type RoleRequest

type RoleRequest struct {
	Name      string
	Namespace string
}

type TenantRequest

type TenantRequest struct {
	Tenant string
}

Jump to

Keyboard shortcuts

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