Versions in this module Expand all Collapse all v0 v0.1.1 Dec 18, 2018 v0.1.0 Dec 9, 2018 Changes in this version + func CheckVSphereConfig(ctx context.Context, o *ClientOption) error + func CreateRole(ctx context.Context, o *ClientOption, role *Role) error + func CreateSolutionUser(ctx context.Context, o *ClientOption) error + func IsClusterNode(name string) bool + func ParseConfig(configFile string) (config.Config, error) + func ReadContent(path string) (string, error) + type ClientOption struct + Client *govmomi.Client + Config config.Config + func (o *ClientOption) GetClient() (*vim25.Client, error) + func (o *ClientOption) LoadCredential(username, password, cert, role string, insecure bool) + func (o *ClientOption) NewClient(ctx context.Context, hostURL string) (*govmomi.Client, error) + func (o *ClientOption) Userinfo() *url.Userinfo + type CreateUserFunc func(c *ssoadmin.Client) error + type Credential struct + Secret VCCMSecret + type Role struct + Privileges []string + RoleName string + type RolePermission struct + Permissions []vimType.Permission + Roles object.AuthorizationRoleList + func GetRolePermission(ctx context.Context, c *ClientOption) (*RolePermission, error) + type User struct + func (u *User) Run(ctx context.Context, c *ClientOption, fn CreateUserFunc) error + type VCCMSecret struct + Data map[string]string + Name string