client

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

client package provides an OpsGenie Heartbeat client Port (interface) and factory. TODO: this should probably be moved to upsteam SDK as it currently doesn't use interfaces so it's a pain to use in tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Port

type Port interface {
	Ping(context context.Context, heartbeatName string) (*heartbeat.PingResult, error)
	Get(context context.Context, heartbeatName string) (*heartbeat.GetResult, error)
	List(context context.Context) (*heartbeat.ListResult, error)
	Update(context context.Context, request *heartbeat.UpdateRequest) (*heartbeat.HeartbeatInfo, error)
	Add(context context.Context, request *heartbeat.AddRequest) (*heartbeat.AddResult, error)
	Enable(context context.Context, heartbeatName string) (*heartbeat.HeartbeatInfo, error)
	Disable(context context.Context, heartbeatName string) (*heartbeat.HeartbeatInfo, error)
	Delete(context context.Context, heartbeatName string) (*heartbeat.DeleteResult, error)
}

func New

func New(cfg *client.Config) (Port, error)

Jump to

Keyboard shortcuts

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