util

package
v0.0.0-...-cd969d9 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComparePrivileges

func ComparePrivileges(derived []types.UserPrivilegeResult, required []string) error

func LoadConfig

func LoadConfig() (*types.Platform, error)

LoadConfig Load configuration from install-config.yaml in the working directory

func LoadConfigFromBytes

func LoadConfigFromBytes(config []byte) (*types.Platform, error)

func ValidatePrivileges

func ValidatePrivileges(client *vim25.Client, p *pctypes.Platform, folder string) error

Types

type Session

type Session struct {
	Vim25Client *vim25.Client
	RestClient  *rest.Client
	SsoClient   *ssoadmin.Client
}

func GetSession

func GetSession(ctx context.Context, p *pctypes.Platform) (*Session, error)

GetSession - creates the Session struct

Jump to

Keyboard shortcuts

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