client

package
v0.0.0-...-358895b Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: Apache-2.0 Imports: 8 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
	Org       string
}

func New

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

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.

Jump to

Keyboard shortcuts

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