lookup

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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