lookup

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: Apache-2.0 Imports: 13 Imported by: 56

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

	RoundTripper soap.RoundTripper

	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) RoundTrip added in v0.25.0

func (c *Client) RoundTrip(ctx context.Context, req, res soap.HasFault) error

RoundTrip dispatches to the RoundTripper field.

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