Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { CmpClient *cmp_client.Client // BrokerClient is used to get Morpheus details BrokerClient *cmp_client.BrokerClient }
Client is the client struct that is used by the provider code
func GetClientFromMetaMap ¶
GetClientFromMetaMap is a convenience function used by provider code to extract *Client from the meta argument passed-in by terraform
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 keyForGLClientMap, for use by hpegl