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) VimClient ¶
func (v *VsphereClient) VimClient() (*vim25.Client, error)
参考官方样例: https://github.com/vmware/govmomi/blob/master/examples/examples.go#L104
Click to show internal directories.
Click to hide internal directories.