target

package
v1.5.2-dev Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package target encapsulates the logic for translating the raw input about the intended target of an API operation (vSphere endpoint, thumbprint, datacenter, compute resource, VCH ID) into structs handlers can use.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BasicAuth

func BasicAuth(user string, pass string) (interface{}, error)

func SessionAuth

func SessionAuth(ticket string) (interface{}, error)

func Validate

func Validate(op trace.Operation, action management.Action, params Params, principal interface{}) (*data.Data, *client.HandlerClient, error)

Validate params and build data and config structs from them.

Types

type Credentials

type Credentials struct {
	// contains filtered or unexported fields
}

type Params

type Params struct {
	Target          string
	Thumbprint      *string
	Datacenter      *string
	ComputeResource *string
	VCHID           *string
}

Params captures the raw target information, much of which is optional.

type Session

type Session struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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