sensuclient

package
v0.0.0-...-9a7d9fe Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() appcontext.Component

Types

type Auth

type Auth struct {
	AccessToken  string `json:"access_token"`
	RefreshToken string `json:"refresh_token"`
	ExpiresAt    int64  `json:"expires_at"`
}

Auth represents the authentication info

type SensuRepository

type SensuRepository struct {
	Client *http.Client
}

SensuRepository struct

func (SensuRepository) SensuDelete

func (repo SensuRepository) SensuDelete(sensuURL string) error

SensuDelete func

func (SensuRepository) SensuGet

func (repo SensuRepository) SensuGet(sensuurl string) ([]byte, error)

SensuGet func return []byte and error from a requested URL using a sensu api token

func (SensuRepository) SensuHealth

func (repo SensuRepository) SensuHealth(sensuurl string) bool

SensuHealth func

func (SensuRepository) SensuPost

func (repo SensuRepository) SensuPost(sensuurl string, method string, body []byte) ([]byte, error)

SensuPost func return []byte and error from a POST using sensu api token

Jump to

Keyboard shortcuts

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