opsman

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2018 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConfig

type AuthConfig struct {
	UserName             string `yaml:"username,omitempty"`
	Password             string `yaml:"password,omitempty"`
	DecryptionPassphrase string `yaml:"decryption-passphrase"`
	IDPMetadata          string `yaml:"saml-idp-metadata,omitempty"`
	BOSHIDPMetadata      string `yaml:"saml-bosh-idp-metadata,omitempty"`
	RBACAdminGroup       string `yaml:"saml-rbac-admin-group,omitempty"`
	RBACGroupsAttribute  string `yaml:"saml-rbac-groups-attribute,omitempty"`
	HTTPProxyURL         string `yaml:"http-proxy-url,omitempty"`
	HTTPSProxyURL        string `yaml:"https-proxy-url,omitempty"`
	NoProxy              string `yaml:"no-proxy,omitempty"`
}

AuthConfig used by the auth-file command

type EnvConfig added in v0.0.6

type EnvConfig struct {
	Target               string `yaml:"target"`
	SkipSSLValidation    bool   `yaml:"skip-ssl-validation"`
	UserName             string `yaml:"username,omitempty"`
	Password             string `yaml:"password,omitempty"`
	ConnectTimeout       int    `yaml:"connect-timeout,omitempty"`
	RequestTimeout       int    `yaml:"request-timeout,omitempty"`
	ClientID             string `yaml:"client-id,omitempty"`
	ClientSecret         string `yaml:"client-secret,omitempty"`
	Trace                bool   `yaml:"trace"`
	DecryptionPassphrase string `yaml:"decryption-passphrase"`
}

EnvConfig used by the env-file command

type OmAuthConfig added in v0.0.6

type OmAuthConfig struct {
	OpsmanURL         string `yaml:"opsman_url"`
	SkipSSLValidation bool   `yaml:"skip_ssl_validation"`
	Credentials       struct {
		UserName     string `yaml:"username,omitempty"`
		Password     string `yaml:"password,omitempty"`
		ClientID     string `yaml:"client-id,omitempty"`
		ClientSecret string `yaml:"client-secret,omitempty"`
	} `yaml:"credentials,omitempty"`
	DecryptionPassphrase string `yaml:"decryption_passphrase"`
}

OmAuthConfig used by the deprecated opsman-auth command

type OmEnvConfig added in v0.0.6

type OmEnvConfig struct {
	Target               string `yaml:"target"`
	SkipSSLValidation    bool   `yaml:"skip-ssl-validation"`
	UserName             string `yaml:"username,omitempty"`
	Password             string `yaml:"password,omitempty"`
	ConnectTimeout       int    `yaml:"connect-timeout,omitempty"`
	RequestTimeout       int    `yaml:"request-timeout,omitempty"`
	ClientID             string `yaml:"client-id,omitempty"`
	ClientSecret         string `yaml:"client-secret,omitempty"`
	DecryptionPassphrase string `yaml:"decryption-passphrase,omitempty"`
	SAMLConfiguration    struct {
		IDPMetadata         string `yaml:"idp-metadata,omitempty"`
		BOSHIDPMetadata     string `yaml:"bosh-idp-metadata,omitempty"`
		RBACAdminGroup      string `yaml:"rbac-admin-group,omitempty"`
		RBACGroupsAttribute string `yaml:"rbac-groups-attribute,omitempty"`
	} `yaml:"saml-configuration,omitempty"`
}

OmEnvConfig used by the deprecated om-env-file command

type OpsManager

type OpsManager struct {
	// contains filtered or unexported fields
}

OpsManager points to an OpsMan API instance

func NewOpsManager

func NewOpsManager(envFile string, logger *log.Logger) (*OpsManager, error)

NewOpsManager creates a new OpsManager instance

func (*OpsManager) UAAClient

func (o *OpsManager) UAAClient(deployment, credentialPath, target string, skipSSLValidation, verbose bool) (*uaa.API, error)

UAAClient creates a new UAA API client

Jump to

Keyboard shortcuts

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