Documentation ¶
Index ¶
- Variables
- type ActivateCertificateAuthority
- type ApplyChanges
- type AssignMultiStemcell
- type AssignStemcell
- type Automator
- type AvailableProducts
- type AzureOptions
- type BoshDiff
- type BoshEnvironment
- type CertificateAuthorities
- type CertificateAuthority
- type ConfigTemplate
- type ConfigureAuthentication
- type ConfigureDirector
- type ConfigureLDAPAuthentication
- type ConfigureOpsman
- type ConfigureProduct
- type ConfigureSAMLAuthentication
- type CreateCertificateAuthority
- type CreateVMExtension
- type CredentialReferences
- type Credentials
- type Curl
- type DeleteCertificateAuthority
- type DeleteInstallation
- type DeleteProduct
- type DeleteSSLCertificate
- type DeleteUnusedProducts
- type DeployedManifest
- type DeployedProducts
- type DiagnosticReport
- type DisableDirectorVerifiers
- type DisableProductVerifiers
- type DownloadProduct
- type DownloadProductOptions
- type Errands
- type ExpiringCerts
- type ExportInstallation
- type GCSOptions
- type GenerateCertificate
- type GenerateCertificateAuthority
- type ImportInstallation
- type InstallationLog
- type Installations
- type Interpolate
- type LogWriter
- type MetadataProvider
- type PendingChanges
- type PivnetOptions
- type PreDeployCheck
- type ProductClientRegistration
- type ProductMetadata
- type Products
- type RegenerateCertificates
- type RevertStagedChanges
- type S3Options
- type SSLCertificate
- type StageProduct
- type StagedConfig
- type StagedDirectorConfig
- type StagedManifest
- type StagedProducts
- type StemcellOptions
- type UnstageProduct
- type UploadProduct
- type UploadStemcell
- type VMTypesConfiguration
- type Version
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfigTemplateProvider = func() func(c *ConfigTemplate) MetadataProvider { return func(c *ConfigTemplate) MetadataProvider { options := c.Options if options.ProductPath != "" { return metadata.NewFileProvider(options.ProductPath) } return metadata.NewPivnetProvider(options.PivnetHost, options.PivnetApiToken, options.PivnetProductSlug, options.ProductVersion, options.FileGlob, options.PivnetDisableSSL) } }
View Source
var DefaultProductMetadataProvider = func() func(c *ProductMetadata) MetadataProvider { return func(c *ProductMetadata) MetadataProvider { options := c.Options if options.ProductPath != "" { return metadata.NewFileProvider(options.ProductPath) } return metadata.NewPivnetProvider(options.PivnetHost, options.PivnetApiToken, options.PivnetProductSlug, options.PivnetProductVersion, options.FileGlob, options.PivnetDisableSSL) } }
View Source
var ErrBoshDiffChangesExist = errors.New("Differences exist between the staged and deployed versions of the requested products")
Functions ¶
This section is empty.
Types ¶
type ActivateCertificateAuthority ¶
type ActivateCertificateAuthority struct { Options struct { Id string `long:"id" required:"false" description:"certificate authority id"` } // contains filtered or unexported fields }
func NewActivateCertificateAuthority ¶
func NewActivateCertificateAuthority(service activateCertificateAuthorityService, logger logger) *ActivateCertificateAuthority
func (ActivateCertificateAuthority) Execute ¶
func (a ActivateCertificateAuthority) Execute(args []string) error
type ApplyChanges ¶
type ApplyChanges struct { Options struct { Config string `` /* 148-byte string literal not displayed */ IgnoreWarnings bool `` /* 148-byte string literal not displayed */ Reattach bool `long:"reattach" description:"reattach to an already running apply changes (if available)"` RecreateVMs bool `long:"recreate-vms" description:"recreate all vms"` SkipDeployProducts bool `short:"s" long:"skip-deploy-products" description:"skip deploying products when applying changes - just update the director"` ForceLatestVariables bool `` /* 161-byte string literal not displayed */ ProductNames []string `` /* 155-byte string literal not displayed */ } // contains filtered or unexported fields }
func NewApplyChanges ¶
func NewApplyChanges(service applyChangesService, pendingService pendingChangesService, logWriter logWriter, logger logger, waitDuration time.Duration) *ApplyChanges
func (ApplyChanges) Execute ¶
func (ac ApplyChanges) Execute(args []string) error
type AssignMultiStemcell ¶
type AssignMultiStemcell struct { Options struct { InterpolateOptions interpolateConfigFileOptions `group:"config file interpolation"` ProductName string `long:"product" short:"p" description:"name of Ops Manager tile to associate a stemcell to" required:"true"` Stemcells []string `` /* 133-byte string literal not displayed */ } // contains filtered or unexported fields }
func NewAssignMultiStemcell ¶
func NewAssignMultiStemcell(service assignMultiStemcellService, logger logger) *AssignMultiStemcell
func (AssignMultiStemcell) Execute ¶
func (as AssignMultiStemcell) Execute(args []string) error
type AssignStemcell ¶
type AssignStemcell struct { Options struct { InterpolateOptions interpolateConfigFileOptions `group:"config file interpolation"` ProductName string `long:"product" short:"p" description:"name of Ops Manager tile to associate a stemcell to" required:"true"` StemcellVersion string `long:"stemcell" short:"s" description:"associate a particular stemcell version to a tile." default:"latest"` } // contains filtered or unexported fields }
func NewAssignStemcell ¶
func NewAssignStemcell(service assignStemcellService, logger logger) *AssignStemcell
func (AssignStemcell) Execute ¶
func (as AssignStemcell) Execute(args []string) error
type Automator ¶
type Automator struct { CreateVM vmlifecyclecommands.CreateVM `command:"create-vm" description:"Create VM for Ops Manager to a given IaaS"` DeleteVM vmlifecyclecommands.DeleteVM `command:"delete-vm" description:"Delete VM from a given IaaS"` UpgradeOpsman vmlifecyclecommands.UpgradeOpsman `` /* 144-byte string literal not displayed */ ExportOpsmanConfig vmlifecyclecommands.ExportOpsmanConfig `command:"export-opsman-config" description:"Exports an opsman.yml for an existing Ops Manager VM"` PrepareTasksWithSecrets vmlifecyclecommands.PrepareTasksWithSecrets `command:"prepare-tasks-with-secrets" description:"Modifies task files to include config secrets as environment variables"` }
type AvailableProducts ¶
type AvailableProducts struct { Options struct { Format string `long:"format" short:"f" default:"table" description:"Format to print as (options: table,json)"` } // contains filtered or unexported fields }
func NewAvailableProducts ¶
func NewAvailableProducts(apService availableProductsService, presenter presenters.FormattedPresenter, logger logger) *AvailableProducts
func (AvailableProducts) Execute ¶
func (ap AvailableProducts) Execute(args []string) error
type AzureOptions ¶
type BoshDiff ¶
type BoshDiff struct { Options struct { Product []string `` /* 168-byte string literal not displayed */ Director bool `long:"director" short:"d" description:"Include director diffs. Can be combined with --product-name."` Check bool `long:"check" description:"Exit 2 if there are any differences. Useful for validating that Ops Manager is in a clean state."` } // contains filtered or unexported fields }
func NewBoshDiff ¶
func NewBoshDiff(service boshDiffService, logger logger) *BoshDiff
type BoshEnvironment ¶
type BoshEnvironment struct { Options struct { ShellType string `long:"shell-type" description:"Prints for the given shell (posix|powershell)"` BoshVars bool `long:"bosh" short:"b" description:"Prints the BOSH director environment variables"` CredhubVars bool `long:"credhub" short:"c" description:"Prints the Credhub environment variables"` Unset bool `long:"unset" short:"u" description:"Prints unset commands for the environment variables"` SSHPrivateKey string `` /* 186-byte string literal not displayed */ } // contains filtered or unexported fields }
func NewBoshEnvironment ¶
func NewBoshEnvironment(service boshEnvironmentService, logger logger, opsmanHost string, rendererFactory rendererFactory) *BoshEnvironment
func (BoshEnvironment) Execute ¶
func (be BoshEnvironment) Execute(args []string) error
func (BoshEnvironment) Target ¶
func (be BoshEnvironment) Target() string
type CertificateAuthorities ¶
type CertificateAuthorities struct { Options struct { Format string `long:"format" short:"f" default:"table" description:"Format to print as (options: table,json)"` } // contains filtered or unexported fields }
func NewCertificateAuthorities ¶
func NewCertificateAuthorities(certificateAuthoritiesService certificateAuthoritiesService, presenter presenters.FormattedPresenter) *CertificateAuthorities
func (CertificateAuthorities) Execute ¶
func (c CertificateAuthorities) Execute(args []string) error
type CertificateAuthority ¶
type CertificateAuthority struct { Options struct { ID string `long:"id" description:"ID of certificate to display. Required if there is more than one certificate authority"` CertPEM bool `long:"cert-pem" description:"Display the cert pem"` Format string `long:"format" short:"f" default:"table" description:"Format to print as (options: table,json)"` } // contains filtered or unexported fields }
func NewCertificateAuthority ¶
func NewCertificateAuthority(certificateAuthoritiesService certificateAuthoritiesService, presenter presenters.FormattedPresenter, logger logger) *CertificateAuthority
func (CertificateAuthority) Execute ¶
func (c CertificateAuthority) Execute(args []string) error
type ConfigTemplate ¶
type ConfigTemplate struct { Options struct { InterpolateOptions interpolateConfigFileOptions `group:"config file interpolation"` PivnetApiToken string `long:"pivnet-api-token"` PivnetProductSlug string `long:"pivnet-product-slug" description:"the product name in pivnet"` ProductVersion string `` /* 126-byte string literal not displayed */ PivnetHost string `long:"pivnet-host" description:"the API endpoint for Pivotal Network" default:"https://network.pivotal.io"` FileGlob string `long:"file-glob" short:"f" description:"a glob to match exactly one file in the pivnet product slug" default:"*.pivotal"` PivnetDisableSSL bool `` /* 135-byte string literal not displayed */ ProductPath string `long:"product-path" description:"path to product file"` OutputDirectory string `long:"output-directory" description:"a directory to create templates under. must already exist." required:"true"` ExcludeVersion bool `long:"exclude-version" description:"if set, will not output a version-specific directory"` SizeOfCollections int `long:"size-of-collections"` PivnetFileGlobSupport string `long:"pivnet-file-glob" hidden:"true"` } // contains filtered or unexported fields }
func NewConfigTemplate ¶
func NewConfigTemplate(bp configTemplateBuildProvider) *ConfigTemplate
func NewConfigTemplateWithEnvironment ¶
func NewConfigTemplateWithEnvironment(bp configTemplateBuildProvider, environFunc envProvider) *ConfigTemplate
func (*ConfigTemplate) Execute ¶
func (c *ConfigTemplate) Execute(args []string) error
Execute - generates config template and ops files
func (*ConfigTemplate) Validate ¶
func (c *ConfigTemplate) Validate() error
type ConfigureAuthentication ¶
type ConfigureAuthentication struct { Options struct { InterpolateOptions interpolateConfigFileOptions `group:"config file interpolation"` Username string `long:"username" short:"u" env:"OM_USERNAME" description:"admin username" required:"true"` Password string `long:"password" short:"p" env:"OM_PASSWORD" description:"admin password" required:"true"` DecryptionPassphrase string `` /* 143-byte string literal not displayed */ HTTPProxyURL string `long:"http-proxy-url" description:"proxy for outbound HTTP network traffic"` HTTPSProxyURL string `long:"https-proxy-url" description:"proxy for outbound HTTPS network traffic"` NoProxy string `` /* 147-byte string literal not displayed */ PrecreatedClientSecret string `` /* 187-byte string literal not displayed */ } // contains filtered or unexported fields }
func NewConfigureAuthentication ¶
func NewConfigureAuthentication(environFunc func() []string, service configureAuthenticationService, logger logger) *ConfigureAuthentication
func (ConfigureAuthentication) Execute ¶
func (ca ConfigureAuthentication) Execute(args []string) error
type ConfigureDirector ¶
type ConfigureDirector struct { Options struct { IgnoreVerifierWarnings bool `` /* 131-byte string literal not displayed */ ConfigFile string `` /* 161-byte string literal not displayed */ VarsFile []string `long:"vars-file" short:"l" description:"load variables from a YAML file"` VarsEnv []string `long:"vars-env" env:"OM_VARS_ENV" description:"load variables from environment variables (e.g.: 'MY' to load MY_var=value)"` Vars []string `long:"var" short:"v" description:"load variable from the command line. Format: VAR=VAL"` OpsFile []string `long:"ops-file" description:"YAML operations file"` } // contains filtered or unexported fields }
func NewConfigureDirector ¶
func NewConfigureDirector(environFunc func() []string, service configureDirectorService, logger logger) *ConfigureDirector
func (ConfigureDirector) Execute ¶
func (c ConfigureDirector) Execute(args []string) error
type ConfigureLDAPAuthentication ¶
type ConfigureLDAPAuthentication struct { Options struct { InterpolateOptions interpolateConfigFileOptions `group:"config file interpolation"` DecryptionPassphrase string `long:"decryption-passphrase" short:"d" required:"true" description:"passphrase used to encrypt the installation"` HTTPProxyURL string `long:"http-proxy-url" description:"proxy for outbound HTTP network traffic"` HTTPSProxyURL string `long:"https-proxy-url" description:"proxy for outbound HTTPS network traffic"` NoProxy string `` /* 132-byte string literal not displayed */ EmailAttribute string `` /* 134-byte string literal not displayed */ GroupSearchBase string `` /* 148-byte string literal not displayed */ GroupSearchFilter string `` /* 145-byte string literal not displayed */ LDAPPassword string `long:"ldap-password" required:"true" description:"password for ldap-username DN"` LDAPRBACAdminGroup string `` /* 148-byte string literal not displayed */ LDAPReferral string `long:"ldap-referrals" required:"true" description:"configure the UAA LDAP referral behavior"` LDAPUsername string `` /* 126-byte string literal not displayed */ ServerSSLCert string `long:"server-ssl-cert" description:"the server certificate when using ldaps://"` ServerURL string `` /* 129-byte string literal not displayed */ UserSearchBase string `` /* 140-byte string literal not displayed */ UserSearchFilter string `` /* 162-byte string literal not displayed */ SkipCreateBoshAdminClient bool `` /* 233-byte string literal not displayed */ PrecreatedClientSecret string `` /* 172-byte string literal not displayed */ } // contains filtered or unexported fields }
func NewConfigureLDAPAuthentication ¶
func NewConfigureLDAPAuthentication(environFunc func() []string, service configureAuthenticationService, logger logger) *ConfigureLDAPAuthentication
func (ConfigureLDAPAuthentication) Execute ¶
func (ca ConfigureLDAPAuthentication) Execute(args []string) error
type ConfigureOpsman ¶
type ConfigureOpsman struct { Options struct { ConfigFile string `` /* 161-byte string literal not displayed */ VarsFile []string `long:"vars-file" short:"l" description:"load variables from a YAML file"` VarsEnv []string `long:"vars-env" env:"OM_VARS_ENV" description:"load variables from environment variables (e.g.: 'MY' to load MY_var=value)"` Vars []string `long:"var" short:"v" description:"load variable from the command line. Format: VAR=VAL"` OpsFile []string `long:"ops-file" description:"YAML operations file"` } // contains filtered or unexported fields }
func NewConfigureOpsman ¶
func NewConfigureOpsman(environFunc func() []string, service configureOpsmanService, logger logger) *ConfigureOpsman
func (ConfigureOpsman) Execute ¶
func (c ConfigureOpsman) Execute(args []string) error
type ConfigureProduct ¶
type ConfigureProduct struct { Options struct { ConfigFile string `` /* 160-byte string literal not displayed */ VarsFile []string `long:"vars-file" short:"l" description:"load variables from a YAML file"` Vars []string `long:"var" short:"v" description:"load variable from the command line. Format: VAR=VAL"` VarsEnv []string `long:"vars-env" env:"OM_VARS_ENV" description:"load variables from environment variables (e.g.: 'MY' to load MY_var=value)"` OpsFile []string `long:"ops-file" short:"o" description:"YAML operations file"` } // contains filtered or unexported fields }
func NewConfigureProduct ¶
func NewConfigureProduct(environFunc func() []string, service configureProductService, target string, logger logger) *ConfigureProduct
func (ConfigureProduct) Execute ¶
func (cp ConfigureProduct) Execute(args []string) error
type ConfigureSAMLAuthentication ¶
type ConfigureSAMLAuthentication struct { Options struct { InterpolateOptions interpolateConfigFileOptions `group:"config file interpolation"` DecryptionPassphrase string `long:"decryption-passphrase" short:"d" required:"true" description:"passphrase used to encrypt the installation"` HTTPProxyURL string `long:"http-proxy-url" description:"proxy for outbound HTTP network traffic"` HTTPSProxyURL string `long:"https-proxy-url" description:"proxy for outbound HTTPS network traffic"` NoProxy string `` /* 132-byte string literal not displayed */ IDPMetadata string `` /* 129-byte string literal not displayed */ BoshIDPMetadata string `long:"saml-bosh-idp-metadata" required:"true" description:"XML, or URL to XML, for the IDP that BOSH should use"` RBACAdminGroup string `` /* 136-byte string literal not displayed */ RBACGroupsAttribute string `` /* 141-byte string literal not displayed */ SkipCreateBoshAdminClient bool `` /* 203-byte string literal not displayed */ PrecreatedClientSecret string `` /* 167-byte string literal not displayed */ } // contains filtered or unexported fields }
func NewConfigureSAMLAuthentication ¶
func NewConfigureSAMLAuthentication(environFunc func() []string, service configureAuthenticationService, logger logger) *ConfigureSAMLAuthentication
func (ConfigureSAMLAuthentication) Execute ¶
func (ca ConfigureSAMLAuthentication) Execute(args []string) error
type CreateCertificateAuthority ¶
type CreateCertificateAuthority struct { Options struct { CertPem string `long:"certificate-pem" required:"true" description:"certificate"` PrivateKey string `long:"private-key-pem" required:"true" description:"private key"` Format string `long:"format" short:"f" default:"table" description:"Format to print as (options: table,json)"` } // contains filtered or unexported fields }
func NewCreateCertificateAuthority ¶
func NewCreateCertificateAuthority(service createCertificateAuthorityService, presenter presenters.FormattedPresenter) *CreateCertificateAuthority
func (CreateCertificateAuthority) Execute ¶
func (c CreateCertificateAuthority) Execute(args []string) error
type CreateVMExtension ¶
type CreateVMExtension struct { Options struct { Name string `long:"name" short:"n" description:"VM extension name"` OpsFile []string `long:"ops-file" short:"o" description:"YAML operations file"` CloudProperties string `long:"cloud-properties" description:"cloud properties in JSON format"` // contains filtered or unexported fields } // contains filtered or unexported fields }
func NewCreateVMExtension ¶
func NewCreateVMExtension(environFunc func() []string, service createVMExtensionService, logger logger) *CreateVMExtension
func (CreateVMExtension) Execute ¶
func (c CreateVMExtension) Execute(args []string) error
type CredentialReferences ¶
type CredentialReferences struct { Options struct { Product string `long:"product-name" short:"p" required:"true" description:"name of deployed product"` Format string `long:"format" short:"f" default:"table" description:"Format to print as (options: table,json)"` } // contains filtered or unexported fields }
func NewCredentialReferences ¶
func NewCredentialReferences(crService credentialReferencesService, presenter presenters.FormattedPresenter, logger logger) *CredentialReferences
func (CredentialReferences) Execute ¶
func (cr CredentialReferences) Execute(args []string) error
type Credentials ¶
type Credentials struct { Options struct { Product string `long:"product-name" short:"p" required:"true" description:"name of deployed product"` CredentialReference string `long:"credential-reference" short:"c" required:"true" description:"name of credential reference"` CredentialField string `long:"credential-field" short:"f" description:"single credential field to output"` Format string `long:"format" short:"t" default:"table" description:"Format to print as (options: table,json)"` } // contains filtered or unexported fields }
func NewCredentials ¶
func NewCredentials(csService credentialsService, presenter presenters.FormattedPresenter, logger logger) *Credentials
func (Credentials) Execute ¶
func (cs Credentials) Execute(args []string) error
type Curl ¶
type Curl struct { Options struct { Path string `long:"path" short:"p" required:"true" description:"path to api endpoint"` Method string `long:"request" short:"x" description:"http verb (defaults to GET, POST when 'data' specified"` Data string `long:"data" short:"d" description:"api request payload (prefix with @ to read file contents)"` Silent bool `long:"silent" short:"s" description:"only write response headers to stderr if response status is 4XX or 5XX"` Headers []string `` /* 144-byte string literal not displayed */ } // contains filtered or unexported fields }
type DeleteCertificateAuthority ¶
type DeleteCertificateAuthority struct { Options struct { Id string `long:"id" required:"false" description:"certificate authority id"` AllInactive bool `long:"all-inactive" required:"false" description:"delete all inactive certificate authorities"` } // contains filtered or unexported fields }
func NewDeleteCertificateAuthority ¶
func NewDeleteCertificateAuthority(service deleteCertificateAuthorityService, logger logger) *DeleteCertificateAuthority
func (DeleteCertificateAuthority) Execute ¶
func (a DeleteCertificateAuthority) Execute(args []string) error
type DeleteInstallation ¶
type DeleteInstallation struct { Options struct { Force bool `long:"force" short:"f" description:"used to avoid interactive prompt acknowledging deletion"` } // contains filtered or unexported fields }
func NewDeleteInstallation ¶
func NewDeleteInstallation(service deleteInstallationService, logWriter logWriter, logger logger, stdin io.Reader, waitDuration time.Duration) *DeleteInstallation
func (DeleteInstallation) Execute ¶
func (ac DeleteInstallation) Execute(args []string) error
type DeleteProduct ¶
type DeleteProduct struct { Options struct { Product string `long:"product-name" short:"p" required:"true" description:"name of product"` Version string `long:"product-version" short:"v" required:"true" description:"version of product"` } // contains filtered or unexported fields }
func NewDeleteProduct ¶
func NewDeleteProduct(service deleteProductService) *DeleteProduct
func (DeleteProduct) Execute ¶
func (dp DeleteProduct) Execute(args []string) error
type DeleteSSLCertificate ¶
type DeleteSSLCertificate struct { Options struct{} // contains filtered or unexported fields }
func NewDeleteSSLCertificate ¶
func NewDeleteSSLCertificate(service deleteSSLCertificateService, logger logger) *DeleteSSLCertificate
func (DeleteSSLCertificate) Execute ¶
func (c DeleteSSLCertificate) Execute(args []string) error
type DeleteUnusedProducts ¶
type DeleteUnusedProducts struct {
// contains filtered or unexported fields
}
func NewDeleteUnusedProducts ¶
func NewDeleteUnusedProducts(service deleteUnusedProductsService, logger logger) *DeleteUnusedProducts
func (DeleteUnusedProducts) Execute ¶
func (dup DeleteUnusedProducts) Execute(args []string) error
type DeployedManifest ¶
type DeployedManifest struct { Options struct { ProductName string `long:"product-name" short:"p" required:"true" description:"name of product"` } // contains filtered or unexported fields }
func NewDeployedManifest ¶
func NewDeployedManifest(service deployedManifestService, logger logger) *DeployedManifest
func (DeployedManifest) Execute ¶
func (dm DeployedManifest) Execute(args []string) error
type DeployedProducts ¶
type DeployedProducts struct { Options struct { Format string `long:"format" short:"f" default:"table" description:"Format to print as (options: table,json)"` } // contains filtered or unexported fields }
func NewDeployedProducts ¶
func NewDeployedProducts(presenter presenters.FormattedPresenter, service deployedProductsService) *DeployedProducts
func (DeployedProducts) Execute ¶
func (dp DeployedProducts) Execute(args []string) error
type DiagnosticReport ¶
type DiagnosticReport struct { Options struct { } // contains filtered or unexported fields }
func NewDiagnosticReport ¶
func NewDiagnosticReport(presenter presenters.FormattedPresenter, service diagnosticReportService) *DiagnosticReport
func (DiagnosticReport) Execute ¶
func (dr DiagnosticReport) Execute(args []string) error
type DisableDirectorVerifiers ¶
type DisableDirectorVerifiers struct { Options struct { InterpolateOptions interpolateConfigFileOptions `group:"config file interpolation"` VerifierTypes []string `long:"type" short:"t" description:"verifier types to disable" required:"true"` } // contains filtered or unexported fields }
func NewDisableDirectorVerifiers ¶
func NewDisableDirectorVerifiers(presenter presenters.FormattedPresenter, service disableDirectorVerifiersService, logger logger) *DisableDirectorVerifiers
func (DisableDirectorVerifiers) Execute ¶
func (dv DisableDirectorVerifiers) Execute(args []string) error
type DisableProductVerifiers ¶
type DisableProductVerifiers struct { Options struct { ProductName string `long:"product-name" short:"n" required:"true" description:"the name of the product"` VerifierTypes []string `long:"type" short:"t" description:"verifier types to disable" required:"true"` } // contains filtered or unexported fields }
func NewDisableProductVerifiers ¶
func NewDisableProductVerifiers(presenter presenters.FormattedPresenter, service disableProductVerifiersService, logger logger) *DisableProductVerifiers
func (DisableProductVerifiers) Execute ¶
func (dpv DisableProductVerifiers) Execute(args []string) error
type DownloadProduct ¶
type DownloadProduct struct { Options DownloadProductOptions // contains filtered or unexported fields }
func NewDownloadProduct ¶
func (*DownloadProduct) Execute ¶
func (c *DownloadProduct) Execute(args []string) error
type DownloadProductOptions ¶
type DownloadProductOptions struct { Source string `` /* 147-byte string literal not displayed */ OutputDir string `` /* 174-byte string literal not displayed */ StemcellOutputDir string `` /* 165-byte string literal not displayed */ Bucket string `long:"blobstore-bucket" description:"bucket name where the product resides in the s3|gcs|azure compatible blobstore"` ProductPath string `long:"blobstore-product-path" description:"specify the lookup path where the s3|gcs|azure product artifacts are stored"` StemcellPath string `long:"blobstore-stemcell-path" description:"specify the lookup path where the s3|gcs|azure stemcell artifacts are stored"` CacheCleanup string `` /* 232-byte string literal not displayed */ CheckAlreadyUploaded bool `` /* 146-byte string literal not displayed */ S3BucketSupport string `long:"s3-bucket" hidden:"true"` GCSBucketSupport string `long:"gcs-bucket" hidden:"true"` AzureBucketSupport string `long:"azure-container" hidden:"true"` S3ProductPathSupport string `long:"s3-product-path" hidden:"true"` GCSProductPathSupport string `long:"gcs-product-path" hidden:"true"` AzureProductPathSupport string `long:"azure-product-path" hidden:"true"` S3StemcellPathSupport string `long:"s3-stemcell-path" hidden:"true"` GCSStemcellPathSupport string `long:"gcs-stemcell-path" hidden:"true"` AzureStemcellPathSupport string `long:"azure-stemcell-path" hidden:"true"` AzureOptions GCSOptions InterpolateOptions interpolateConfigFileOptions `group:"config file interpolation"` PivnetOptions S3Options StemcellOptions }
type Errands ¶
type Errands struct { Options struct { ProductName string `long:"product-name" short:"p" required:"true" description:"name of product"` Format string `long:"format" short:"f" default:"table" description:"Format to print as (options: table,json)"` } // contains filtered or unexported fields }
func NewErrands ¶
func NewErrands(presenter presenters.FormattedPresenter, service errandsService) *Errands
type ExpiringCerts ¶
type ExpiringCerts struct { Options struct { ExpiresWithin string `` /* 166-byte string literal not displayed */ } // contains filtered or unexported fields }
func NewExpiringCertificates ¶
func NewExpiringCertificates(service expiringCertsService, logger logger) *ExpiringCerts
func (*ExpiringCerts) Execute ¶
func (e *ExpiringCerts) Execute(args []string) error
type ExportInstallation ¶
type ExportInstallation struct { Options struct { OutputFile string `long:"output-file" short:"o" required:"true" description:"output path to write installation to"` } // contains filtered or unexported fields }
func NewExportInstallation ¶
func NewExportInstallation(service exportInstallationService, logger logger) *ExportInstallation
func (ExportInstallation) Execute ¶
func (ei ExportInstallation) Execute(args []string) error
type GCSOptions ¶
type GCSOptions struct { GCSServiceAccountJSON string `long:"gcs-service-account-json" description:"the service account key JSON"` GCSProjectID string `long:"gcs-project-id" description:"the project id for the bucket's gcp account"` GCPServiceAccountSupport string `long:"gcp-service-account-json" hidden:"true"` GCPProjectIDSupport string `long:"gcp-project-id" hidden:"true"` }
type GenerateCertificate ¶
type GenerateCertificate struct { Options struct { Domains []string `` /* 182-byte string literal not displayed */ } // contains filtered or unexported fields }
func NewGenerateCertificate ¶
func NewGenerateCertificate(service generateCertificateService, logger logger) *GenerateCertificate
func (GenerateCertificate) Execute ¶
func (g GenerateCertificate) Execute(args []string) error
type GenerateCertificateAuthority ¶
type GenerateCertificateAuthority struct { Options struct { Format string `long:"format" short:"f" default:"table" description:"Format to print as (options: table,json)"` } // contains filtered or unexported fields }
func NewGenerateCertificateAuthority ¶
func NewGenerateCertificateAuthority(service generateCertificateAuthorityService, presenter presenters.FormattedPresenter) *GenerateCertificateAuthority
func (GenerateCertificateAuthority) Execute ¶
func (g GenerateCertificateAuthority) Execute(args []string) error
type ImportInstallation ¶
type ImportInstallation struct { Options struct { InterpolateOptions interpolateConfigFileOptions `group:"config file interpolation"` Installation string `long:"installation" short:"i" required:"true" description:"path to installation."` PollingInterval int `` /* 136-byte string literal not displayed */ } // contains filtered or unexported fields }
func NewImportInstallation ¶
func NewImportInstallation(multipart multipart, service importInstallationService, passphrase string, logger logger) *ImportInstallation
func (*ImportInstallation) Execute ¶
func (ii *ImportInstallation) Execute(args []string) error
type InstallationLog ¶
type InstallationLog struct { Options struct { Id int `long:"id" required:"true" description:"id of the installation to retrieve logs for"` } // contains filtered or unexported fields }
func NewInstallationLog ¶
func NewInstallationLog(service installationLogService, logger logger) *InstallationLog
func (InstallationLog) Execute ¶
func (i InstallationLog) Execute(args []string) error
type Installations ¶
type Installations struct { Options struct { Format string `long:"format" short:"f" default:"table" description:"Format to print as (options: table,json)"` } // contains filtered or unexported fields }
func NewInstallations ¶
func NewInstallations(service installationsService, presenter presenters.FormattedPresenter) *Installations
func (Installations) Execute ¶
func (i Installations) Execute(args []string) error
type Interpolate ¶
type Interpolate struct { Options struct { Path string `` /* 164-byte string literal not displayed */ OpsFile []string `long:"ops-file" short:"o" description:"YAML operations files"` SkipMissingParams bool `long:"skip-missing" short:"s" description:"allow skipping missing params"` // contains filtered or unexported fields } // contains filtered or unexported fields }
func NewInterpolate ¶
func NewInterpolate(environFunc func() []string, logger logger, input *os.File) *Interpolate
func (Interpolate) Execute ¶
func (c Interpolate) Execute(args []string) error
type LogWriter ¶
type LogWriter struct {
// contains filtered or unexported fields
}
func NewLogWriter ¶
type MetadataProvider ¶
type PendingChanges ¶
type PendingChanges struct { Options struct { Check bool `` /* 127-byte string literal not displayed */ Format string `long:"format" short:"f" default:"table" description:"Format to print as (options: table,json)"` } // contains filtered or unexported fields }
func NewPendingChanges ¶
func NewPendingChanges(presenter presenters.FormattedPresenter, service pendingChangesService, logger logger) *PendingChanges
func (PendingChanges) Execute ¶
func (pc PendingChanges) Execute(args []string) error
type PivnetOptions ¶
type PivnetOptions struct { PivnetProductSlug string `long:"pivnet-product-slug" short:"p" description:"path to product" required:"true"` PivnetDisableSSL bool `` /* 147-byte string literal not displayed */ PivnetToken string `` /* 175-byte string literal not displayed */ PivnetHost string `long:"pivnet-host" description:"the API endpoint for Pivotal Network" default:"https://network.pivotal.io"` FileGlob string `long:"file-glob" short:"f" description:"glob to match files within Pivotal Network product to be downloaded."` ProductVersion string `` /* 177-byte string literal not displayed */ ProductVersionRegex string `` /* 233-byte string literal not displayed */ PivnetFileGlobSupport string `long:"pivnet-file-glob" hidden:"true"` }
type PreDeployCheck ¶
type PreDeployCheck struct { Options struct { Format string `long:"format" short:"f" default:"table" description:"Format to print as (options: table,json)"` } // contains filtered or unexported fields }
func NewPreDeployCheck ¶
func NewPreDeployCheck(presenter presenters.FormattedPresenter, service preDeployCheckService, logger logger) *PreDeployCheck
func (PreDeployCheck) Execute ¶
func (pc PreDeployCheck) Execute(args []string) error
type ProductClientRegistration ¶
type ProductClientRegistration func( c DownloadProductOptions, progressWriter io.Writer, stdout *log.Logger, stderr *log.Logger, ) (download_clients.ProductDownloader, error)
type ProductMetadata ¶
type ProductMetadata struct { Options struct { InterpolateOptions interpolateConfigFileOptions `group:"config file interpolation"` ProductPath string `long:"product-path" short:"p" description:"path to product file"` ProductName bool `long:"product-name" description:"show product name"` ProductVersion bool `long:"product-version" description:"show product version"` PivnetApiToken string `long:"pivnet-api-token"` PivnetProductSlug string `long:"pivnet-product-slug" description:"the product name in pivnet"` PivnetProductVersion string `long:"pivnet-product-version" description:"the version of the product from which to generate a template"` PivnetHost string `` /* 140-byte string literal not displayed */ FileGlob string `long:"file-glob" short:"f" description:"a glob to match exactly one file in the pivnet product slug" default:"*.pivotal"` PivnetDisableSSL bool `long:"pivnet-disable-ssl" description:"whether to disable ssl validation when contacting the Pivotal Network"` } // contains filtered or unexported fields }
func NewProductMetadata ¶
func NewProductMetadata(bp productMetadataBuildProvider, stdout logger) *ProductMetadata
func (ProductMetadata) Execute ¶
func (t ProductMetadata) Execute(args []string) error
func (*ProductMetadata) Validate ¶
func (t *ProductMetadata) Validate() error
type Products ¶
type Products struct { Options struct { Available bool `long:"available" short:"a" description:"Specify to include available products. Can be used with other options."` Staged bool `long:"staged" short:"s" description:"Specify to include staged products. Can be used with other options."` Deployed bool `long:"deployed" short:"d" description:"Specify to deployed products. Can be used with other options."` Format string `long:"format" short:"f" default:"table" description:"Format to print as (options: table,json)"` } // contains filtered or unexported fields }
func NewProducts ¶
func NewProducts(presenter presenters.FormattedPresenter, productService productService) *Products
type RegenerateCertificates ¶
type RegenerateCertificates struct {
// contains filtered or unexported fields
}
func NewRegenerateCertificates ¶
func NewRegenerateCertificates(service regenerateCertificatesService, logger logger) *RegenerateCertificates
func (RegenerateCertificates) Execute ¶
func (r RegenerateCertificates) Execute(_ []string) error
type RevertStagedChanges ¶
type RevertStagedChanges struct {
// contains filtered or unexported fields
}
func NewRevertStagedChanges ¶
func NewRevertStagedChanges(service revertStagedChangesService, logger logger) *RevertStagedChanges
func (RevertStagedChanges) Execute ¶
func (r RevertStagedChanges) Execute(_ []string) error
type S3Options ¶
type S3Options struct { S3AccessKeyID string `long:"s3-access-key-id" description:"access key for the s3 compatible blobstore"` S3AuthType string `` /* 141-byte string literal not displayed */ S3SecretAccessKey string `long:"s3-secret-access-key" description:"secret key for the s3 compatible blobstore"` S3RegionName string `` /* 140-byte string literal not displayed */ S3Endpoint string `` /* 140-byte string literal not displayed */ S3DisableSSL bool `` /* 136-byte string literal not displayed */ S3EnableV2Signing bool `` /* 179-byte string literal not displayed */ }
type SSLCertificate ¶
type SSLCertificate struct { Options struct { Format string `long:"format" short:"f" default:"table" description:"Format to print as (options: table,json)"` } // contains filtered or unexported fields }
func NewSSLCertificate ¶
func NewSSLCertificate(service sslCertificateService, presenter presenters.FormattedPresenter) *SSLCertificate
func (SSLCertificate) Execute ¶
func (c SSLCertificate) Execute(args []string) error
type StageProduct ¶
type StageProduct struct { Options struct { ConfigFile string `long:"config" description:"the config file to load product name and version (can be same as the product configuration file)"` Product string `yaml:"product-name" long:"product-name" short:"p" description:"name of product"` Version string `yaml:"product-version" long:"product-version" description:"version of product"` } // contains filtered or unexported fields }
func NewStageProduct ¶
func NewStageProduct(service stageProductService, logger logger) *StageProduct
func (StageProduct) Execute ¶
func (sp StageProduct) Execute(args []string) error
type StagedConfig ¶
type StagedConfig struct { Options struct { Product string `long:"product-name" short:"p" required:"true" description:"name of product"` IncludeCredentials bool `long:"include-credentials" short:"c" description:"include credentials. note: requires product to have been deployed"` IncludePlaceholders bool `long:"include-placeholders" short:"r" description:"replace obscured credentials with interpolatable placeholders"` } // contains filtered or unexported fields }
func NewStagedConfig ¶
func NewStagedConfig(service stagedConfigService, logger logger) *StagedConfig
func (StagedConfig) Execute ¶
func (ec StagedConfig) Execute(args []string) error
type StagedDirectorConfig ¶
type StagedDirectorConfig struct { Options struct { IncludePlaceholders bool `` /* 191-byte string literal not displayed */ NoRedact bool `long:"no-redact" description:"Redact IaaS values from director configuration"` } // contains filtered or unexported fields }
func NewStagedDirectorConfig ¶
func NewStagedDirectorConfig(service stagedDirectorConfigService, stdout logger, stderr logger) *StagedDirectorConfig
func (StagedDirectorConfig) Execute ¶
func (sdc StagedDirectorConfig) Execute(args []string) error
type StagedManifest ¶
type StagedManifest struct { Options struct { ProductName string `long:"product-name" short:"p" required:"true" description:"name of product"` } // contains filtered or unexported fields }
func NewStagedManifest ¶
func NewStagedManifest(service stagedManifestService, logger logger) *StagedManifest
func (StagedManifest) Execute ¶
func (sm StagedManifest) Execute(args []string) error
type StagedProducts ¶
type StagedProducts struct { Options struct { Format string `long:"format" short:"f" default:"table" description:"Format to print as (options: table,json)"` } // contains filtered or unexported fields }
func NewStagedProducts ¶
func NewStagedProducts(presenter presenters.FormattedPresenter, service diagnosticReportService) *StagedProducts
func (StagedProducts) Execute ¶
func (sp StagedProducts) Execute(args []string) error
type StemcellOptions ¶
type StemcellOptions struct { StemcellIaas string `` /* 285-byte string literal not displayed */ StemcellVersion string `long:"stemcell-version" description:"the version number of the stemcell to download (ie 458.61)"` StemcellHeavy bool `long:"stemcell-heavy" description:"force the downloading of a heavy stemcell, will fail if non exists"` }
type UnstageProduct ¶
type UnstageProduct struct { Options struct { Product string `long:"product-name" short:"p" required:"true" description:"name of product"` } // contains filtered or unexported fields }
func NewUnstageProduct ¶
func NewUnstageProduct(service unstageProductService, logger logger) *UnstageProduct
func (UnstageProduct) Execute ¶
func (up UnstageProduct) Execute(args []string) error
type UploadProduct ¶
type UploadProduct struct { Options struct { InterpolateOptions interpolateConfigFileOptions `group:"config file interpolation"` Product string `long:"product" short:"p" description:"path to product" required:"true"` PollingInterval int `long:"polling-interval" short:"i" description:"interval (in seconds) at which to print status" default:"1"` Shasum string `long:"shasum" description:"shasum of the provided product file to be used for validation"` Version string `long:"product-version" description:"version of the provided product file to be used for validation"` } // contains filtered or unexported fields }
func NewUploadProduct ¶
func NewUploadProduct(multipart multipart, metadataExtractor metadataExtractor, service uploadProductService, logger logger) *UploadProduct
func (UploadProduct) Execute ¶
func (up UploadProduct) Execute(args []string) error
type UploadStemcell ¶
type UploadStemcell struct { Options struct { InterpolateOptions interpolateConfigFileOptions `group:"config file interpolation"` Stemcell string `long:"stemcell" short:"s" required:"true" description:"path to stemcell"` Force bool `long:"force" short:"f" description:"upload stemcell even if it already exists on the target Ops Manager"` Floating string `long:"floating" default:"true" description:"assigns the stemcell to all compatible products "` Shasum string `long:"shasum" description:"shasum of the provided product file to be used for validation"` } // contains filtered or unexported fields }
func NewUploadStemcell ¶
func NewUploadStemcell(multipart multipart, service uploadStemcellService, logger logger) *UploadStemcell
func (UploadStemcell) Execute ¶
func (us UploadStemcell) Execute(args []string) error
type VMTypesConfiguration ¶
type VMTypesConfiguration struct { CustomTypesOnly bool `yaml:"custom_only,omitempty" json:"custom_only,omitempty"` VMTypes []api.CreateVMType `yaml:"vm_types,omitempty" json:"vm_types,omitempty"` }
Source Files ¶
- activate_certificate_authority.go
- apply_changes.go
- assign_multi_stemcell.go
- assign_stemcell.go
- available_products.go
- bosh_diff.go
- bosh_environment.go
- certificate_authorities.go
- certificate_authority.go
- config_template.go
- configure_authentication.go
- configure_director.go
- configure_ldap_authentication.go
- configure_opsman.go
- configure_product.go
- configure_saml_authentication.go
- create_certificate_authority.go
- create_vm_extension.go
- credential_references.go
- credentials.go
- curl.go
- delete_certificate_authority.go
- delete_installation.go
- delete_products.go
- delete_ssl_certificate.go
- delete_unused_products.go
- deployed_manifest.go
- deployed_products.go
- diagnostic_report.go
- disable_director_verfiers.go
- disable_product_verfiers.go
- download_product.go
- errands.go
- expiring_certificates.go
- export_installation.go
- generate_certificate.go
- generate_certificate_authority.go
- import_installation.go
- installation_log.go
- installations.go
- interpolate.go
- log_writer.go
- logger.go
- pending_changes.go
- pre_deploy_check.go
- product_metadata.go
- products.go
- regenerate_certificates.go
- revert_staged_changes.go
- ssl_certificate.go
- stage_product.go
- staged_config.go
- staged_director_config.go
- staged_manifest.go
- staged_products.go
- unstage_product.go
- upload_product.go
- upload_stemcell.go
- version.go
- vm_lifecycle.go
Click to show internal directories.
Click to hide internal directories.