Help us shape the future of Go! Take the 2026 Go Developer Survey

client

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LeveltoState

func LeveltoState(level string) (state int)

Types

type Client

type Client struct {
	TenantId           string
	ClientIid          string
	ClientSecret       string
	GraphServiceClient *msgraphsdkgo.GraphServiceClient
	Scope              string
}

func NewClient

func NewClient(tenantId, clientId, clientSecret, scope string) *Client

func (*Client) LoadAllServices

func (c *Client) LoadAllServices() (services *Services, err error)

func (*Client) LoadServices

func (c *Client) LoadServices(serviceNames []string) (services *Services, err error)

func (*Client) NewGraphServiceClient

func (c *Client) NewGraphServiceClient() error

type Service

type Service struct {
	Service *graph.ServiceHealth
}

func (*Service) GetOutput

func (s *Service) GetOutput() (output string)

func (*Service) GetStatus

func (s *Service) GetStatus(override StateOverride) int

type Services

type Services struct {
	Services []*Service
}

func (*Services) GetOuput

func (s *Services) GetOuput(override StateOverride, all bool) (output string)

func (*Services) GetStatus

func (s *Services) GetStatus(override StateOverride) int

type StateOverride

type StateOverride map[string]int

Jump to

Keyboard shortcuts

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