Documentation ¶
Index ¶
- Constants
- func ValidateStatusOK(resp *http.Response) error
- type AZConfiguration
- type ActivateCertificateAuthorityInput
- type AvailableProductsInput
- type AvailableProductsOutput
- type AvailableProductsService
- func (ap AvailableProductsService) CheckProductAvailability(productName string, productVersion string) (bool, error)
- func (ap AvailableProductsService) Delete(input AvailableProductsInput, all bool) error
- func (ap AvailableProductsService) List() (AvailableProductsOutput, error)
- func (ap AvailableProductsService) Upload(input UploadProductInput) (UploadProductOutput, error)
- type BoshFormService
- type CA
- type CertificateAuthoritiesOutput
- type CertificateAuthoritiesService
- func (c CertificateAuthoritiesService) Activate(input ActivateCertificateAuthorityInput) error
- func (c CertificateAuthoritiesService) Create(certBody CertificateAuthorityInput) (CA, error)
- func (c CertificateAuthoritiesService) Delete(input DeleteCertificateAuthorityInput) error
- func (c CertificateAuthoritiesService) Generate() (CA, error)
- func (c CertificateAuthoritiesService) List() (CertificateAuthoritiesOutput, error)
- func (c CertificateAuthoritiesService) Regenerate() error
- type CertificateAuthorityInput
- type CertificatesService
- type ConfigurationRequest
- type CreateVMExtension
- type Credential
- type CredentialOutput
- type CredentialReferencesOutput
- type CredentialReferencesService
- type CredentialsService
- type DashboardService
- type DeleteCertificateAuthorityInput
- type DeployedProductOutput
- type DeployedProductsService
- type DiagnosticProduct
- type DiagnosticReport
- type DiagnosticReportUnavailable
- type DiagnosticService
- type DirectorProperties
- type DirectorService
- type Disk
- type EnsureAvailabilityInput
- type EnsureAvailabilityOutput
- type Errand
- type ErrandsListOutput
- type ErrandsService
- type Form
- type ImportInstallationInput
- type InstallationAssetService
- type InstallationsService
- func (is InstallationsService) ListInstallations() ([]InstallationsServiceOutput, error)
- func (is InstallationsService) Logs(id int) (InstallationsServiceOutput, error)
- func (is InstallationsService) RunningInstallation() (InstallationsServiceOutput, error)
- func (is InstallationsService) Status(id int) (InstallationsServiceOutput, error)
- func (is InstallationsService) Trigger(ignoreWarnings bool, deployProducts bool) (InstallationsServiceOutput, error)
- type InstallationsServiceOutput
- type InstanceType
- type Job
- type JobProperties
- type JobsService
- type NSXLB
- type NetworkAndAZConfiguration
- type PendingChangesOutput
- type PendingChangesService
- type PostFormInput
- type ProductChange
- type ProductInfo
- type ProductsConfigurationInput
- type RequestService
- type RequestServiceInvokeInput
- type RequestServiceInvokeOutput
- type SecurityService
- type SetupInput
- type SetupOutput
- type SetupService
- type StageProductInput
- type StagedProduct
- type StagedProductsFindOutput
- type StagedProductsOutput
- type StagedProductsService
- func (p StagedProductsService) Configure(input ProductsConfigurationInput) error
- func (p StagedProductsService) Find(productName string) (StagedProductsFindOutput, error)
- func (p StagedProductsService) List() (StagedProductsOutput, error)
- func (p StagedProductsService) Manifest(guid string) (string, error)
- func (p StagedProductsService) Stage(input StageProductInput, deployedGUID string) error
- func (p StagedProductsService) Unstage(input UnstageProductInput) error
- type StemcellUploadInput
- type StemcellUploadOutput
- type UnstageProductInput
- type UpgradeRequest
- type UploadProductInput
- type UploadProductOutput
- type UploadStemcellService
- type VMExtensionInput
- type VMExtensionsService
Constants ¶
View Source
const ( StatusRunning = "running" StatusSucceeded = "succeeded" StatusFailed = "failed" )
View Source
const ( EnsureAvailabilityStatusUnstarted = "unstarted" EnsureAvailabilityStatusPending = "pending" EnsureAvailabilityStatusComplete = "complete" EnsureAvailabilityStatusUnknown = "unknown" )
Variables ¶
This section is empty.
Functions ¶
func ValidateStatusOK ¶
Types ¶
type AZConfiguration ¶
type AZConfiguration struct {
AvailabilityZones json.RawMessage `json:"availability_zones,omitempty"`
}
type ActivateCertificateAuthorityInput ¶
type ActivateCertificateAuthorityInput struct {
GUID string
}
type AvailableProductsInput ¶
type AvailableProductsOutput ¶
type AvailableProductsOutput struct {
ProductsList []ProductInfo
}
type AvailableProductsService ¶
type AvailableProductsService struct {
// contains filtered or unexported fields
}
func NewAvailableProductsService ¶
func NewAvailableProductsService(client httpClient, progress progress, liveWriter liveWriter) AvailableProductsService
func (AvailableProductsService) CheckProductAvailability ¶
func (ap AvailableProductsService) CheckProductAvailability(productName string, productVersion string) (bool, error)
func (AvailableProductsService) Delete ¶
func (ap AvailableProductsService) Delete(input AvailableProductsInput, all bool) error
func (AvailableProductsService) List ¶
func (ap AvailableProductsService) List() (AvailableProductsOutput, error)
func (AvailableProductsService) Upload ¶
func (ap AvailableProductsService) Upload(input UploadProductInput) (UploadProductOutput, error)
type BoshFormService ¶
type BoshFormService struct {
// contains filtered or unexported fields
}
func NewBoshFormService ¶
func NewBoshFormService(client httpClient) BoshFormService
func (BoshFormService) AvailabilityZones ¶
func (bs BoshFormService) AvailabilityZones() (map[string]string, error)
func (BoshFormService) PostForm ¶
func (bs BoshFormService) PostForm(input PostFormInput) error
type CertificateAuthoritiesOutput ¶
type CertificateAuthoritiesOutput struct {
CAs []CA `json:"certificate_authorities"`
}
type CertificateAuthoritiesService ¶
type CertificateAuthoritiesService struct {
// contains filtered or unexported fields
}
func NewCertificateAuthoritiesService ¶
func NewCertificateAuthoritiesService(client httpClient) CertificateAuthoritiesService
func (CertificateAuthoritiesService) Activate ¶
func (c CertificateAuthoritiesService) Activate(input ActivateCertificateAuthorityInput) error
func (CertificateAuthoritiesService) Create ¶
func (c CertificateAuthoritiesService) Create(certBody CertificateAuthorityInput) (CA, error)
func (CertificateAuthoritiesService) Delete ¶
func (c CertificateAuthoritiesService) Delete(input DeleteCertificateAuthorityInput) error
func (CertificateAuthoritiesService) Generate ¶
func (c CertificateAuthoritiesService) Generate() (CA, error)
func (CertificateAuthoritiesService) List ¶
func (c CertificateAuthoritiesService) List() (CertificateAuthoritiesOutput, error)
func (CertificateAuthoritiesService) Regenerate ¶
func (c CertificateAuthoritiesService) Regenerate() error
type CertificatesService ¶
type CertificatesService struct {
// contains filtered or unexported fields
}
func NewCertificatesService ¶
func NewCertificatesService(client httpClient) CertificatesService
type ConfigurationRequest ¶
type CreateVMExtension ¶
type CreateVMExtension struct { Name string `json:"name"` CloudProperties json.RawMessage `json:"cloud_properties"` }
type Credential ¶
type CredentialOutput ¶
type CredentialOutput struct {
Credential Credential `json:"credential"`
}
type CredentialReferencesOutput ¶
type CredentialReferencesOutput struct {
Credentials []string `json:"credentials"`
}
type CredentialReferencesService ¶
type CredentialReferencesService struct {
// contains filtered or unexported fields
}
func NewCredentialReferencesService ¶
func NewCredentialReferencesService(client httpClient, progress progress) CredentialReferencesService
func (CredentialReferencesService) List ¶
func (cr CredentialReferencesService) List(deployedGUID string) (CredentialReferencesOutput, error)
type CredentialsService ¶
type CredentialsService struct {
// contains filtered or unexported fields
}
func NewCredentialsService ¶
func NewCredentialsService(client httpClient, progress progress) CredentialsService
func (CredentialsService) Fetch ¶
func (cr CredentialsService) Fetch(deployedGUID, credential string) (CredentialOutput, error)
type DashboardService ¶
type DashboardService struct {
// contains filtered or unexported fields
}
func NewDashboardService ¶
func NewDashboardService(client httpClient) DashboardService
func (DashboardService) GetInstallForm ¶
func (ds DashboardService) GetInstallForm() (Form, error)
func (DashboardService) GetRevertForm ¶
func (ds DashboardService) GetRevertForm() (Form, error)
func (DashboardService) PostInstallForm ¶
func (ds DashboardService) PostInstallForm(input PostFormInput) error
type DeleteCertificateAuthorityInput ¶
type DeleteCertificateAuthorityInput struct {
GUID string
}
type DeployedProductOutput ¶
type DeployedProductsService ¶
type DeployedProductsService struct {
// contains filtered or unexported fields
}
func NewDeployedProductsService ¶
func NewDeployedProductsService(client httpClient) DeployedProductsService
func (DeployedProductsService) List ¶
func (s DeployedProductsService) List() ([]DeployedProductOutput, error)
type DiagnosticProduct ¶
type DiagnosticReport ¶
type DiagnosticReport struct { InfrastructureType string `json:"infrastructure_type"` Stemcells []string StagedProducts []DiagnosticProduct DeployedProducts []DiagnosticProduct }
type DiagnosticReportUnavailable ¶
type DiagnosticReportUnavailable struct{}
func (DiagnosticReportUnavailable) Error ¶
func (du DiagnosticReportUnavailable) Error() string
type DiagnosticService ¶
type DiagnosticService struct {
// contains filtered or unexported fields
}
func NewDiagnosticService ¶
func NewDiagnosticService(client httpClient) DiagnosticService
func (DiagnosticService) Report ¶
func (ds DiagnosticService) Report() (DiagnosticReport, error)
type DirectorProperties ¶
type DirectorProperties struct { IAASConfiguration json.RawMessage `json:"iaas_configuration,omitempty"` DirectorConfiguration json.RawMessage `json:"director_configuration,omitempty"` SecurityConfiguration json.RawMessage `json:"security_configuration,omitempty"` SyslogConfiguration json.RawMessage `json:"syslog_configuration,omitempty"` }
type DirectorService ¶
type DirectorService struct {
// contains filtered or unexported fields
}
func NewDirectorService ¶
func NewDirectorService(client httpClient) DirectorService
func (DirectorService) AZConfiguration ¶
func (d DirectorService) AZConfiguration(input AZConfiguration) error
func (DirectorService) NetworkAndAZ ¶
func (d DirectorService) NetworkAndAZ(input NetworkAndAZConfiguration) error
func (DirectorService) NetworksConfiguration ¶
func (d DirectorService) NetworksConfiguration(input json.RawMessage) error
func (DirectorService) Properties ¶
func (d DirectorService) Properties(input DirectorProperties) error
type EnsureAvailabilityInput ¶
type EnsureAvailabilityInput struct{}
type EnsureAvailabilityOutput ¶
type EnsureAvailabilityOutput struct {
Status string
}
type Errand ¶
type Errand struct { Name string `json:"name"` PostDeploy interface{} `json:"post_deploy,omitempty"` PreDelete interface{} `json:"pre_delete,omitempty"` }
type ErrandsListOutput ¶
type ErrandsListOutput struct {
Errands []Errand `json:"errands"`
}
type ErrandsService ¶
type ErrandsService struct {
Client httpClient
}
func NewErrandsService ¶
func NewErrandsService(client httpClient) ErrandsService
func (ErrandsService) List ¶
func (es ErrandsService) List(productID string) (ErrandsListOutput, error)
type ImportInstallationInput ¶
type InstallationAssetService ¶
type InstallationAssetService struct {
// contains filtered or unexported fields
}
func NewInstallationAssetService ¶
func NewInstallationAssetService(client httpClient, progress progress, liveWriter liveWriter) InstallationAssetService
func (InstallationAssetService) Delete ¶
func (ia InstallationAssetService) Delete() (InstallationsServiceOutput, error)
func (InstallationAssetService) Export ¶
func (ia InstallationAssetService) Export(outputFile string, pollingInterval int) error
func (InstallationAssetService) Import ¶
func (ia InstallationAssetService) Import(input ImportInstallationInput) error
type InstallationsService ¶
type InstallationsService struct {
// contains filtered or unexported fields
}
func NewInstallationsService ¶
func NewInstallationsService(client httpClient) InstallationsService
func (InstallationsService) ListInstallations ¶
func (is InstallationsService) ListInstallations() ([]InstallationsServiceOutput, error)
func (InstallationsService) Logs ¶
func (is InstallationsService) Logs(id int) (InstallationsServiceOutput, error)
func (InstallationsService) RunningInstallation ¶
func (is InstallationsService) RunningInstallation() (InstallationsServiceOutput, error)
func (InstallationsService) Status ¶
func (is InstallationsService) Status(id int) (InstallationsServiceOutput, error)
func (InstallationsService) Trigger ¶
func (is InstallationsService) Trigger(ignoreWarnings bool, deployProducts bool) (InstallationsServiceOutput, error)
type InstanceType ¶
type InstanceType struct {
ID string `json:"id"`
}
type JobProperties ¶
type JobProperties struct { Instances interface{} `json:"instances"` PersistentDisk *Disk `json:"persistent_disk,omitempty"` InstanceType InstanceType `json:"instance_type"` InternetConnected *bool `json:"internet_connected,omitempty"` LBNames []string `json:"elb_names"` NSXSecurityGroups []string `json:"nsx_security_groups,omitempty"` NSXLBS []NSXLB `json:"nsx_lbs,omitempty"` FloatingIPs string `json:"floating_ips,omitempty"` AdditionalVMExtensions []string `json:"additional_vm_extensions,omitempty"` }
type JobsService ¶
type JobsService struct {
// contains filtered or unexported fields
}
func NewJobsService ¶
func NewJobsService(client httpClient) JobsService
func (JobsService) ConfigureJob ¶
func (j JobsService) ConfigureJob(productGUID, jobGUID string, jobProperties JobProperties) error
func (JobsService) GetExistingJobConfig ¶
func (j JobsService) GetExistingJobConfig(productGUID, jobGUID string) (JobProperties, error)
type NetworkAndAZConfiguration ¶
type NetworkAndAZConfiguration struct {
NetworkAZ json.RawMessage `json:"network_and_az,omitempty"`
}
type PendingChangesOutput ¶
type PendingChangesOutput struct {
ChangeList []ProductChange `json:"product_changes"`
}
type PendingChangesService ¶
type PendingChangesService struct {
// contains filtered or unexported fields
}
func NewPendingChangesService ¶
func NewPendingChangesService(client httpClient) PendingChangesService
func (PendingChangesService) List ¶
func (pc PendingChangesService) List() (PendingChangesOutput, error)
type PostFormInput ¶
type ProductChange ¶
type ProductInfo ¶
type RequestService ¶
type RequestService struct {
// contains filtered or unexported fields
}
func NewRequestService ¶
func NewRequestService(client httpClient) RequestService
func (RequestService) Invoke ¶
func (rs RequestService) Invoke(input RequestServiceInvokeInput) (RequestServiceInvokeOutput, error)
type SecurityService ¶
type SecurityService struct {
// contains filtered or unexported fields
}
func NewSecurityService ¶
func NewSecurityService(client httpClient) SecurityService
func (SecurityService) FetchRootCACert ¶
func (s SecurityService) FetchRootCACert() (string, error)
type SetupInput ¶
type SetupOutput ¶
type SetupOutput struct{}
type SetupService ¶
type SetupService struct {
// contains filtered or unexported fields
}
func NewSetupService ¶
func NewSetupService(client httpClient) SetupService
func (SetupService) EnsureAvailability ¶
func (ss SetupService) EnsureAvailability(input EnsureAvailabilityInput) (EnsureAvailabilityOutput, error)
func (SetupService) Setup ¶
func (ss SetupService) Setup(input SetupInput) (SetupOutput, error)
type StageProductInput ¶
type StagedProduct ¶
type StagedProductsFindOutput ¶
type StagedProductsFindOutput struct {
Product StagedProduct
}
type StagedProductsOutput ¶
type StagedProductsOutput struct {
Products []StagedProduct
}
type StagedProductsService ¶
type StagedProductsService struct {
// contains filtered or unexported fields
}
func NewStagedProductsService ¶
func NewStagedProductsService(client httpClient) StagedProductsService
func (StagedProductsService) Configure ¶
func (p StagedProductsService) Configure(input ProductsConfigurationInput) error
func (StagedProductsService) Find ¶
func (p StagedProductsService) Find(productName string) (StagedProductsFindOutput, error)
func (StagedProductsService) List ¶
func (p StagedProductsService) List() (StagedProductsOutput, error)
func (StagedProductsService) Manifest ¶
func (p StagedProductsService) Manifest(guid string) (string, error)
func (StagedProductsService) Stage ¶
func (p StagedProductsService) Stage(input StageProductInput, deployedGUID string) error
func (StagedProductsService) Unstage ¶
func (p StagedProductsService) Unstage(input UnstageProductInput) error
type StemcellUploadInput ¶
type StemcellUploadOutput ¶
type StemcellUploadOutput struct{}
type UnstageProductInput ¶
type UnstageProductInput struct {
ProductName string `json:"name"`
}
type UpgradeRequest ¶
type UpgradeRequest struct {
ToVersion string `json:"to_version"`
}
type UploadProductInput ¶
type UploadProductOutput ¶
type UploadProductOutput struct{}
type UploadStemcellService ¶
type UploadStemcellService struct {
// contains filtered or unexported fields
}
func NewUploadStemcellService ¶
func NewUploadStemcellService(client httpClient, progress progress) UploadStemcellService
func (UploadStemcellService) Upload ¶
func (us UploadStemcellService) Upload(input StemcellUploadInput) (StemcellUploadOutput, error)
type VMExtensionInput ¶
type VMExtensionsService ¶
type VMExtensionsService struct {
// contains filtered or unexported fields
}
func NewVMExtensionsService ¶
func NewVMExtensionsService(client httpClient) VMExtensionsService
func (VMExtensionsService) Create ¶
func (v VMExtensionsService) Create(input CreateVMExtension) error
Source Files ¶
- available_products_service.go
- bosh_form_service.go
- certificate_authorities_service.go
- certificates_service.go
- client.go
- credential_references_service.go
- credentials_service.go
- dashboard_service.go
- deployed_products_service.go
- diagnostic_service.go
- director_service.go
- errands_service.go
- installation_asset_service.go
- installations_service.go
- jobs_service.go
- pending_changes_service.go
- progress.go
- request_service.go
- security_service.go
- setup_service.go
- staged_products_service.go
- stemcell_service.go
- validation.go
- vm_extensions_service.go
Click to show internal directories.
Click to hide internal directories.