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
Click to show internal directories.
Click to hide internal directories.