statuspageapi

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Client

func Client(config *configuration.Config) *resty.Client

Client within the statuspage package contains Resty config specific to interacting with statuspage.io

func DeleteComponent

func DeleteComponent(client *resty.Client, pageID string, componentID string) error

DeleteComponent deletes an existing component on the remote page by the component's ID, not name

func DeleteGroup

func DeleteGroup(client *resty.Client, pageID string, groupID string) error

DeleteGroup deletes an existing group on the remote page by the group's ID, not name

func GetComponents

func GetComponents(client *resty.Client, pageID string) (*[]statuspagetypes.Component, error)

GetComponents provides a slice of all components (NOT groups) on the remote page

func GetGroups

func GetGroups(client *resty.Client, pageID string) (*[]statuspagetypes.Group, error)

GetGroups provides a slice of all groups on the remote page

func PatchComponent

func PatchComponent(client *resty.Client, pageID string, componentID string, component statuspagetypes.Component) (*statuspagetypes.Component, error)

PatchComponent updates an existing component on the remote page by the component's ID, not name

func PatchComponentStatus added in v1.0.0

func PatchComponentStatus(client *resty.Client, pageID string, componentID string, newStatus statuspagetypes.Status) (*statuspagetypes.Component, error)

PatchComponentStatus updates an existing component's status only

func PatchGroup

func PatchGroup(client *resty.Client, pageID string, groupID string, group statuspagetypes.Group) (*statuspagetypes.Group, error)

PatchGroup updates an existing group on the remote page by the group's ID, not name

func PostComponent

func PostComponent(client *resty.Client, pageID string, component statuspagetypes.Component) (*statuspagetypes.Component, error)

PostComponent creates a new component on the remote page

func PostGroup

func PostGroup(client *resty.Client, pageID string, group statuspagetypes.Group) (*statuspagetypes.Group, error)

PostGroup creates a new group on the remote page

Types

This section is empty.

Jump to

Keyboard shortcuts

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