Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NsxtConfig ¶
type NsxtConfig struct { // NSX-T username. User string // NSX-T password in clear text. Password string // NSX-T host. Host string // InsecureFlag is to be set to true if NSX-T uses self-signed cert. InsecureFlag bool // RemoteAuth is to be set to true if NSX-T uses remote authentication (authentication done through the vIDM). RemoteAuth bool VMCAccessToken string VMCAuthHost string ClientAuthCertFile string ClientAuthKeyFile string CAFile string }
NsxtConfig contains the NSX-T specific configuration
func (*NsxtConfig) FromEnv ¶
func (cfg *NsxtConfig) FromEnv() error
FromEnv initializes the provided configuration object with values obtained from environment variables. If an environment variable is set for a property that's already initialized, the environment variable's value takes precedence.
type NsxtConfigINI ¶
type NsxtConfigINI struct { // NSX-T username. User string `gcfg:"user"` // NSX-T password in clear text. Password string `gcfg:"password"` // NSX-T host. Host string `gcfg:"host"` // InsecureFlag is to be set to true if NSX-T uses self-signed cert. InsecureFlag bool `gcfg:"insecure-flag"` // RemoteAuth is to be set to true if NSX-T uses remote authentication (authentication done through the vIDM). RemoteAuth bool `gcfg:"remote-auth"` VMCAccessToken string `gcfg:"vmc-access-token"` VMCAuthHost string `gcfg:"vmc-auth-host"` ClientAuthCertFile string `gcfg:"client-auth-cert-file"` ClientAuthKeyFile string `gcfg:"client-auth-key-file"` CAFile string `gcfg:"ca-file"` }
NsxtConfigINI contains the NSX-T specific configuration
func (*NsxtConfigINI) ValidateConfig ¶
func (cfg *NsxtConfigINI) ValidateConfig() error
ValidateConfig checks NSXT configurations
type NsxtConfigYAML ¶
type NsxtConfigYAML struct { // NSX-T username. User string `yaml:"user"` // NSX-T password in clear text. Password string `yaml:"password"` // NSX-T host. Host string `yaml:"host"` // InsecureFlag is to be set to true if NSX-T uses self-signed cert. InsecureFlag bool `yaml:"insecureFlag"` // RemoteAuth is to be set to true if NSX-T uses remote authentication (authentication done through the vIDM). RemoteAuth bool `yaml:"remoteAuth"` VMCAccessToken string `yaml:"vmcAccessToken"` VMCAuthHost string `yaml:"vmcAuthHost"` ClientAuthCertFile string `yaml:"clientAuthCertFile"` ClientAuthKeyFile string `yaml:"clientAuthKeyFile"` CAFile string `yaml:"caFile"` }
NsxtConfigYAML contains the NSX-T specific configuration
func (*NsxtConfigYAML) ValidateConfig ¶
func (cfg *NsxtConfigYAML) ValidateConfig() error
ValidateConfig checks NSXT configurations
Click to show internal directories.
Click to hide internal directories.