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 ¶
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 ¶
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
Click to show internal directories.
Click to hide internal directories.