apiserver

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIServer

type APIServer struct {
	// contains filtered or unexported fields
}

APIServer is a connection to the Pure1 Unplugged API server using a raw REST client.

func NewConnection

func NewConnection(backendURL string) *APIServer

NewConnection establishes a connection with the API server at the given backend URL. Note that this returns a pointer to an API server, not to a specific interface, as it implements multiple interfaces.

func (*APIServer) GetArrays

func (a *APIServer) GetArrays() ([]*resources.ArrayRegistrationInfo, error)

GetArrays is an implementation of the ArrayDiscovery interface

func (*APIServer) GetTags

func (a *APIServer) GetTags(arrayID string) (map[string]string, error)

GetTags fetches the tags for the given device from the API server

func (*APIServer) Patch

func (a *APIServer) Patch(arrayID string, body *resources.ArrayPatchInfo) error

Patch patches the given device with the given body

Jump to

Keyboard shortcuts

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