opsman

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConfig

type AuthConfig 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"`
}

type ENVConfig

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"`
	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"`
}

type OpsManager

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

func NewOpsManager

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

func (*OpsManager) UAAClient

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

Jump to

Keyboard shortcuts

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