sensuclient

package
v0.0.0-...-59fe2b4 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SensuGet

func SensuGet(token string, url string, output string) (string, string, error)

SensuGet func

func SensuHealth

func SensuHealth(url string) (string, error)

SensuHealth func

func SensuPost

func SensuPost(token string, url string, body []byte) (string, string, error)

SensuPost func

Types

type SensuToken

type SensuToken struct {
	AccessToken  string `json:"access_token,omitempty"`
	ExpiresAt    string `json:"expires_at,omitempty"`
	RefreshToken string `json:"refresh_token,omitempty"`
}

SensuToken struct

func BasicAuth

func BasicAuth() (*SensuToken, error)

BasicAuth func go to sensu api and get a new token

Jump to

Keyboard shortcuts

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