commands

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Manager manager
View Source
var VERSION = "0.0.0-dev"

Functions

This section is empty.

Types

type CreateAuthFile added in v0.0.6

type CreateAuthFile struct {
	Username             string             `long:"username" env:"OPSMAN_USERNAME" description:"OpsManager username"`
	Password             string             `long:"password" env:"OPSMAN_PASSWORD" description:"OpsManager password"`
	DecryptionPassphrase string             `long:"decryption-passphrase" env:"OPSMAN_DECRYPTION_PASSPHRASE" description:"OpsManager Decryption Passphrase"`
	SAMLConfiguration    *SAMLConfiguration `group:"SAML"`
	HTTPProxyURL         string             `long:"http-proxy-url" env:"OPSMAN_HTTP_PROXY_URL" description:"proxy for outbound HTTP network traffic"`
	HTTPSProxyURL        string             `long:"https-proxy-url" env:"OPSMAN_HTTPS_PROXY_URL" description:"proxy for outbound HTTPS network traffic"`
	NoProxy              string             `long:"no-proxy"    env:"OPSMAN_NO_PROXY" description:"comma-separated list of hosts that do not go through the proxy"`
	OutputFile           string             `long:"output-file" description:"output file for yaml" default:"auth.yml"`
}

CreateAuthFile is a auth.yml struct as defined by p-automator http://docs-platform-automation.cfapps.io/pcf-automation/task-reference.html#auth

func (*CreateAuthFile) Execute added in v0.0.6

func (c *CreateAuthFile) Execute([]string) error

Execute - creates om env

type CreateEnvironmentFile added in v0.0.6

type CreateEnvironmentFile struct {
	Target               string `long:"target" env:"OPSMAN_TARGET" description:"OpsManager hostname" required:"true"`
	SkipSSLValidation    bool   `` /* 126-byte string literal not displayed */
	Username             string `long:"username" env:"OPSMAN_USERNAME" description:"OpsManager username"`
	Password             string `long:"password" env:"OPSMAN_PASSWORD" description:"OpsManager password"`
	ClientID             string `long:"client-id" env:"OPSMAN_CLIENTID" description:"OpsManager client id"`
	ClientSecret         string `long:"client-secret" env:"OPSMAN_CLIENT_SECRET" description:"OpsManager client secret"`
	ConnectTimeout       int    `long:"connect-timeout" env:"OPSMAN_CONNECT_TIMEOUT" description:"OpsManager Connect timeout" default:"5"`
	RequestTimeout       int    `long:"request-timeout" env:"OPSMAN_REQUEST_TIMEOUT" description:"OpsManager Request timeout" default:"1800"`
	OutputFile           string `long:"output-file" description:"output file for yaml" default:"env.yml"`
	Trace                bool   `long:"trace" env:"OPSMAN_TRACE" description:"Prints HTTP requests and response payloads"`
	DecryptionPassphrase string `long:"decryption-passphrase" env:"OPSMAN_DECRYPTION_PASSPHRASE" description:"OpsManager Decryption passphrase"`
}

CreateEnvironmentFile is a env.yml struct that matches `om --env file` format https://github.com/pivotal-cf/om/blob/1540039512bdfd848af10d4baaadeb195a003008/main.go#L189-L239 http://docs-platform-automation.cfapps.io/pcf-automation/task-reference.html#env

func (*CreateEnvironmentFile) Execute added in v0.0.6

func (c *CreateEnvironmentFile) Execute([]string) error

Execute - creates the env.yml file

type CreateOMEnvironmentFile added in v0.0.2

type CreateOMEnvironmentFile struct {
	Target               string             `long:"target" env:"OPSMAN_TARGET" description:"OpsManager hostname" required:"true"`
	SkipSSLValidation    bool               `` /* 126-byte string literal not displayed */
	Username             string             `long:"username" env:"OPSMAN_USERNAME" description:"OpsManager username"`
	Password             string             `long:"password" env:"OPSMAN_PASSWORD" description:"OpsManager password"`
	ClientID             string             `long:"client-id" env:"OPSMAN_CLIENTID" description:"OpsManager client id"`
	ClientSecret         string             `long:"client-secret" env:"OPSMAN_CLIENT_SECRET" description:"OpsManager client secret"`
	DecryptionPassphrase string             `long:"decryption-passphrase" env:"OPSMAN_DECRYPTION_PASSPHRASE" description:"OpsManager Decryption Passphrase"`
	ConnectTimeout       int                `long:"connect-timeout" env:"OPSMAN_CONNECT_TIMEOUT" description:"OpsManager Connect timeout" default:"5"`
	RequestTimeout       int                `long:"request-timeout" env:"OPSMAN_REQUEST_TIMEOUT" description:"OpsManager Request timeout" default:"1800"`
	SAMLConfiguration    *SAMLConfiguration `group:"SAML"`
	OutputFile           string             `long:"output-file" description:"output file for yaml" required:"true"`
}

func (*CreateOMEnvironmentFile) Execute added in v0.0.2

func (c *CreateOMEnvironmentFile) Execute([]string) error

Execute - creates om env

type CreateOpsmanAuth

type CreateOpsmanAuth struct {
	URL                  string `long:"url" env:"OPSMAN_URL" description:"OpsManager URL" required:"true"`
	SkipSSLValidation    bool   `` /* 126-byte string literal not displayed */
	Username             string `long:"username" env:"OPSMAN_USERNAME" description:"OpsManager username"`
	Password             string `long:"password" env:"OPSMAN_PASSWORD" description:"OpsManager password"`
	ClientID             string `long:"client-id" env:"OPSMAN_CLIENTID" description:"OpsManager client id"`
	ClientSecret         string `long:"client-secret" env:"OPSMAN_CLIENT_SECRET" description:"OpsManager client secret"`
	DecryptionPassphrase string `` /* 127-byte string literal not displayed */
	OutputFile           string `long:"output-file" description:"output file for yaml" required:"true"`
}

CreateOpsmanAuth to create a deprecated auth.yml

func (*CreateOpsmanAuth) Execute

func (c *CreateOpsmanAuth) Execute([]string) error

Execute - generates structs

type EnvironmentToYAML

type EnvironmentToYAML struct {
	EnvPrefix  string `long:"environment-prefix" description:"prefix for environment variables" default:"YAML"`
	OutputFile string `long:"output-file" description:"output file for yaml" required:"true"`
}

func (*EnvironmentToYAML) Execute

func (c *EnvironmentToYAML) Execute([]string) error

Execute - creates yaml file based on enviroment variable prefix

type SAMLConfiguration added in v0.0.2

type SAMLConfiguration struct {
	IDPMetadata         string `long:"idp-metadata" env:"OPSMAN_SAML_IDP_METADATA" description:"OpsManager SAML IDP Metadata"`
	BOSHIDPMetadata     string `long:"bosh-idp-metadata" env:"OPSMAN_SAML_BOSH_IDP_METADATA" description:"OpsManager SAML BOSH IDP Metadata"`
	RBACAdminGroup      string `long:"rbac-admin-group" env:"OPSMAN_RBAC_ADMIN_GROUP" description:"OpsManager RBAC admin group"`
	RBACGroupsAttribute string `long:"rbac-groups-attribute" env:"OPSMAN_RBAC_GROUPS_ATTRIBUTE" description:"OpsManager RBAC groups attribute"`
}

SAMLConfiguration used to configure SAML auth on OpsMan

type UAAConfig added in v0.0.2

type UAAConfig struct {
	Target                     string `yaml:"target"`
	SkipSSLValidation          bool   `yaml:"skip_ssl_validation"`
	Verbose                    bool   `yaml:"verbose"`
	Deployment                 string `yaml:"deployment"`
	UAAAdminCredentialProperty string `yaml:"uaa_admin_credential_property"`
	Clients                    map[string]struct {
		Secret              string   `yaml:"secret"`
		GrantTypes          []string `yaml:"grant_types"`
		Scope               []string `yaml:"scope"`
		Authorities         []string `yaml:"authorities"`
		AccessTokenValidity int64    `yaml:"access_token_validity"`
	} `yaml:"clients"`
}

type UAAConfiguration added in v0.0.2

type UAAConfiguration struct {
	AuthFile   string   `long:"auth-file" description:"path to auth file" default:"auth/auth.yml"`
	ConfigFile string   `long:"config" short:"c" required:"true" description:"path to config file"`
	VarsFile   []string `long:"vars-file" short:"l" description:"path to vars file"`
}

func (*UAAConfiguration) Execute added in v0.0.2

func (c *UAAConfiguration) Execute([]string) error

Execute - creates/updates specified uaa client within PAS uaa

type Version

type Version struct {
}

func (*Version) Execute

func (c *Version) Execute([]string) error

Execute - returns the version

Jump to

Keyboard shortcuts

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