client

package
v1.3.53 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClientFromMetaMap

func GetClientFromMetaMap(meta interface{}) (*configuration.Config, error)

GetClientFromMetaMap is a convenience function used by provider code to extract *Client from the meta argument passed-in by terraform

Types

type InitialiseClient

type InitialiseClient struct{}

InitialiseClient is imported by hpegl from each service repo

func (InitialiseClient) NewClient

func (i InitialiseClient) NewClient(r *schema.ResourceData) (interface{}, error)

NewClient takes an argument of all of the provider.ConfigData, and returns an interface{} and error If there is no error interface{} will contain *Client. The hpegl provider will put *Client at the value of keyForGLClientMap (returned by ServiceName) in the map of clients that it creates and passes down to provider code. hpegl executes NewClient for each service.

func (InitialiseClient) ServiceName

func (i InitialiseClient) ServiceName() string

ServiceName is used to return the value of MetalClientMapKey, for use by hpegl

Jump to

Keyboard shortcuts

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