commands

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

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

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