tui

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2025 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AcknowledgedByUser added in v0.0.7

func AcknowledgedByUser(i pagerduty.Incident, id string) bool

AcknowledgedByUser returns true if the incident has been acknowledged by the given user

func AssignedToAnyUsers

func AssignedToAnyUsers(i pagerduty.Incident, ids []string) bool

AssignedToAnyUsers returns true if the incident is assigned to any of the given users

func AssignedToUser

func AssignedToUser(i pagerduty.Incident, id string) bool

AssignedToUser returns true if the incident is assigned to the given user

func InitialModel

func InitialModel(
	token string,
	teams []string,
	escalation_policies map[string]string,
	ignoredusers []string,
	editor []string,
	launcher launcher.ClusterLauncher,
	debug bool,
) (tea.Model, tea.Cmd)

func ShouldBeAcknowledged added in v0.0.7

func ShouldBeAcknowledged(p *pd.Config, i pagerduty.Incident, id string, autoAcknowledge bool) bool

ShouldBeAcknowledged returns true if the incident is assigned to the given user, the user has not acknowledged the incident yet, and autoAcknowledge is enabled

func UserIsOnCall added in v0.0.7

func UserIsOnCall(p *pd.Config, id string) bool

UserIsOnCall returns true if the current time is between any of the current user's pagerduty.OnCalls in the next six hours

Types

type PollIncidentsMsg added in v0.0.7

type PollIncidentsMsg struct{}

type TickMsg added in v0.0.7

type TickMsg struct {
}

Jump to

Keyboard shortcuts

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