client

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddOptions

func AddOptions(s string, opts interface{}) (string, error)

AddOptions adds the parameters in opts as URL query parameters to s. opts must be a struct whose fields may contain "url" tags.

Types

type ClientInterface

type ClientInterface interface {
	NewRequest(ctx context.Context, method, urlStr string, body interface{}) (*http.Request, error)
	Do(req *http.Request, v interface{}) (*http.Response, error)
}

ClientInterface is an interface for making and executing BastionZero API requests

type Service

type Service struct {
	Client ClientInterface
}

Service manages communication with exactly one BastionZero API service. It contains a client that can be used to make API requests to BastionZero.

Jump to

Keyboard shortcuts

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