client

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Requester   requests.Requester
	OrgLookupFn func() string
}

func New

func New(r requests.Requester, orgLookupFn func() string) Client

func (Client) AllEnvironmentUUIDs added in v1.6.0

func (c Client) AllEnvironmentUUIDs() (*types.UUIDResponse, error)

AllEnvironmentUUIDs tries to fetch all environment by UUIDs in an org.

func (Client) AllServices

func (c Client) AllServices(envID string) ([]types.Service, error)

AllServices tries to fetch an environment's services.

func (Client) EnvByID

func (c Client) EnvByID(id string) (*types.Response, error)

EnvByID tries to fetch an environment given its ID.

func (Client) FindService

func (c Client) FindService(serviceName, envID string) (*types.Service, error)

FindService tries to fetch a single service.

type Requester added in v1.7.0

type Requester interface {
	Do(method string, uri string, body any) ([]byte, error)
}

Jump to

Keyboard shortcuts

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