Documentation

Index

Constants

View Source
const (
	Namespace = "lookup"
	Version   = "2.0"
	Path      = "/lookupservice" + vim25.Path
)

Variables

View Source
var (
	ServiceInstance = vim.ManagedObjectReference{
		Type:  "LookupServiceInstance",
		Value: "ServiceInstance",
	}
)

Functions

func EndpointURL

func EndpointURL(ctx context.Context, c *vim25.Client, path string, filter *types.LookupServiceRegistrationFilter) string

    EndpointURL uses the Lookup Service to find the endpoint URL and thumbprint for the given filter. If the endpoint is found, its TLS certificate is also added to the vim25.Client's trusted host thumbprints. If the Lookup Service is not available, the given path is returned as the default.

    Types

    type Client

    type Client struct {
    	*soap.Client
    
    	ServiceContent types.LookupServiceContent
    }

      Client is a soap.Client targeting the SSO Lookup Service API endpoint.

      func NewClient

      func NewClient(ctx context.Context, c *vim25.Client) (*Client, error)

        NewClient returns a client targeting the SSO Lookup Service API endpoint.

        func (*Client) SiteID

        func (c *Client) SiteID(ctx context.Context) (string, error)

        Source Files

        Directories

        Path Synopsis