victorops

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2019 License: MPL-2.0 Imports: 10 Imported by: 1

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 {
	// contains filtered or unexported fields
}

func NewSettingsFromYAML

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

type Widget

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

Widget contains text info

func NewWidget

func NewWidget(app *tview.Application, 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