connectivity

package
v0.0.0-...-7aae7b9 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadClientFromEnv

func LoadClientFromEnv() error

Types

type VsphereClient

type VsphereClient struct {
	Host     string `validate:"required" env:"VS_HOST"`
	Username string `validate:"required" env:"VS_USERNAME"`
	Password string `validate:"required" env:"VS_PASSWORD"`
	Insecure bool
	// contains filtered or unexported fields
}

func C

func C() *VsphereClient

func NewVsphereClient

func NewVsphereClient(host, username, password string) *VsphereClient

NewVsphereClient client

func (*VsphereClient) URL

func (v *VsphereClient) URL() (*url.URL, error)

func (*VsphereClient) VimClient

func (v *VsphereClient) VimClient() (*vim25.Client, error)

参考官方样例: https://github.com/vmware/govmomi/blob/master/examples/examples.go#L104

Jump to

Keyboard shortcuts

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