github.com/vmware/govmomi@v0.51.0/eam/client.go (about) 1 // © Broadcom. All Rights Reserved. 2 // The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries. 3 // SPDX-License-Identifier: Apache-2.0 4 5 package eam 6 7 import ( 8 "github.com/vmware/govmomi/vim25" 9 "github.com/vmware/govmomi/vim25/soap" 10 ) 11 12 const ( 13 // Namespace is the namespace for EAM SOAP operations. 14 Namespace = "eam" 15 16 // Path is the path to the EAM service. 17 Path = "/eam/sdk" 18 ) 19 20 // Client is a client for the ESX Agent Manager API. 21 type Client struct { 22 *soap.Client 23 } 24 25 // NewClient returns a new EAM client. 26 func NewClient(c *vim25.Client) *Client { 27 return &Client{ 28 Client: c.Client.NewServiceClient(Path, Namespace), 29 } 30 }