victorops

package
v0.0.0-...-ac5bdac Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2022 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OnCall

type OnCall struct {
	Policy   string
	Userlist string
}

OnCall object to handle different on call policies

type OnCallResponse

type OnCallResponse struct {
	TeamsOnCall []struct {
		Team struct {
			Name string `json:"name"`
			Slug string `json:"slug"`
		} `json:"team"`
		OnCallNow []struct {
			EscalationPolicy struct {
				Name string `json:"name"`
				Slug string `json:"slug"`
			} `json:"escalationPolicy"`
			Users []struct {
				OnCallUser struct {
					Username string `json:"username"`
				} `json:"onCalluser"`
			} `json:"users"`
		} `json:"oncallNow"`
	} `json:"teamsOnCall"`
}

OnCallResponse object

type OnCallTeam

type OnCallTeam struct {
	Name   string
	Slug   string
	OnCall []OnCall
}

OnCallTeam object to make managing objects easier

func Fetch

func Fetch(apiID, apiKey string) ([]OnCallTeam, error)

Fetch gets the current oncall users

type Settings

type Settings struct {
	*cfg.Common
	// contains filtered or unexported fields
}

func NewSettingsFromYAML

func NewSettingsFromYAML(name string, ymlConfig *config.Config, globalConfig *config.Config) *Settings

type Widget

type Widget struct {
	view.TextWidget
	// contains filtered or unexported fields
}

Widget contains text info

func NewWidget

func NewWidget(tviewApp *tview.Application, redrawChan chan bool, settings *Settings) *Widget

NewWidget creates a new widget

func (*Widget) Refresh

func (widget *Widget) Refresh()

Refresh gets latest content for the widget

Jump to

Keyboard shortcuts

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