Documentation
¶
Index ¶
- type CredentialResponse
- type CredentialWrapper
- type DirectorProperties
- type ErrorResponse
- type Job
- type JobsResponse
- type Product
- type ProductProperties
- type Property
- type Resource
- type Sdk
- func (om *Sdk) ApplyChanges() error
- func (om *Sdk) ApplyDirector() error
- func (om *Sdk) AvaliableProducts() ([]api.ProductInfo, error)
- func (om *Sdk) ConfigureProduct(name, networks, properties string, resources string) error
- func (om *Sdk) DeleteInstallation() error
- func (om *Sdk) GetCredentials(name, credential string) (*SimpleCredential, error)
- func (om *Sdk) GetDirector() (*DirectorProperties, error)
- func (om *Sdk) GetDirectorCredentials(credential string) (*SimpleCredential, error)
- func (om *Sdk) GetDirectorIP() (string, error)
- func (om *Sdk) GetProduct(name string) (*ProductProperties, error)
- func (om *Sdk) GetResource(tileName, jobName string) (*Resource, error)
- func (om *Sdk) Online() bool
- func (om *Sdk) ReadyForAuth() bool
- func (om *Sdk) SetupAuth() error
- func (om *Sdk) SetupBosh(iaas commands.GCPIaaSConfiguration, director commands.DirectorConfiguration, ...) error
- func (om *Sdk) StageProduct(tile config.OpsManagerMetadata) error
- func (om *Sdk) Unlock() error
- func (om *Sdk) UploadProduct(path string) error
- func (om *Sdk) UploadStemcell(path string) error
- type SimpleCredential
- type StaticIP
- type UnlockRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CredentialResponse ¶
type CredentialResponse struct {
Credential CredentialWrapper `json:"credential"`
}
type CredentialWrapper ¶
type CredentialWrapper struct { Type string `json:"type"` Value SimpleCredential `json:"value"` }
type DirectorProperties ¶
type ErrorResponse ¶
type JobsResponse ¶
type JobsResponse struct {
Jobs []Job `json:"jobs"`
}
type ProductProperties ¶
type Sdk ¶
type Sdk struct {
// contains filtered or unexported fields
}
func (*Sdk) ApplyChanges ¶
ApplyChanges deploys pending changes to Ops Manager
func (*Sdk) ApplyDirector ¶
func (*Sdk) AvaliableProducts ¶
func (om *Sdk) AvaliableProducts() ([]api.ProductInfo, error)
AvaliableProducts lists products that are uploaded to Ops Manager.
func (*Sdk) ConfigureProduct ¶
ConfigureProduct sets up the settings for a given tile by name
func (*Sdk) DeleteInstallation ¶
func (*Sdk) GetCredentials ¶
func (om *Sdk) GetCredentials(name, credential string) (*SimpleCredential, error)
func (*Sdk) GetDirector ¶
func (om *Sdk) GetDirector() (*DirectorProperties, error)
GetDirector fetches settings for the BOSH director
func (*Sdk) GetDirectorCredentials ¶ added in v1.1.0
func (om *Sdk) GetDirectorCredentials(credential string) (*SimpleCredential, error)
func (*Sdk) GetDirectorIP ¶ added in v1.1.0
func (*Sdk) GetProduct ¶
func (om *Sdk) GetProduct(name string) (*ProductProperties, error)
GetProduct fetches settings for a given tile by name
func (*Sdk) GetResource ¶
GetResource fetches resource settings for a specific job of a tile
func (*Sdk) ReadyForAuth ¶
ReadyForAuth checks if the Ops Manager authentication system is ready
func (*Sdk) SetupBosh ¶
func (om *Sdk) SetupBosh(iaas commands.GCPIaaSConfiguration, director commands.DirectorConfiguration, azs commands.AvailabilityZonesConfiguration, networks commands.NetworksConfiguration, networkAssignment commands.NetworkAssignment, resources commands.ResourceConfiguration) error
SetupBosh applies the provided configuration to the BOSH director tile
func (*Sdk) StageProduct ¶
func (om *Sdk) StageProduct(tile config.OpsManagerMetadata) error
StageProduct moves a given name, version to the list of tiles that will be deployed
func (*Sdk) Unlock ¶
Unlock decrypts Ops Manager. This is needed after a reboot before attempting to authenticate. This task runs asynchronously. Query the status by invoking ReadyForAuth.
func (*Sdk) UploadProduct ¶
UploadProduct pushes a given file located locally at path to the target
func (*Sdk) UploadStemcell ¶
UploadStemcell pushes a given stemcell located locally at path to the target
type SimpleCredential ¶
type UnlockRequest ¶
type UnlockRequest struct {
Passphrase string `json:"passphrase"`
}