lib

package
v0.0.0-...-6b74903 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTLSServerConfig

func GetTLSServerConfig(cert tls.Certificate) *tls.Config

Types

type EnvFetchError

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

EnvFetchError is returned when the ovf env cannot be fetched via RPC.

func (EnvFetchError) Error

func (e EnvFetchError) Error() string

type Environment

type Environment struct {
	Properties map[string]string
}

Environment stores guestinfo data.

func UnmarshaledOvfEnv

func UnmarshaledOvfEnv() (Environment, error)

UnmarshaledOvfEnv returns the unmarshaled OVA environment fetched via RPC.

func (*Environment) UnmarshalXML

func (e *Environment) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

type LoginInfo

type LoginInfo struct {
	Target     string `json:"target"`
	User       string `json:"user"`
	Password   string `json:"password"`
	Thumbprint string `json:"thumbprint"`
	URL        *url.URL
	Session    *session.Session
}

LoginInfo represents credentials needed to access vSphere

func (*LoginInfo) VerifyLogin

func (info *LoginInfo) VerifyLogin(op trace.Operation) (context.CancelFunc, error)

VerifyLogin based on info given, return non nil error if validation fails.

type UnmarshalError

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

UnmarshalError is returned when the ovf env cannot be unmarshaled.

func (UnmarshalError) Error

func (e UnmarshalError) Error() string

Jump to

Keyboard shortcuts

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