Documentation ¶
Index ¶
- Constants
- Variables
- type ClientConfig
- type Cloudtower
- func New(transport runtime.ClientTransport, formats strfmt.Registry) *Cloudtower
- func NewHTTPClient(formats strfmt.Registry) *Cloudtower
- func NewHTTPClientWithConfig(formats strfmt.Registry, cfg *TransportConfig) *Cloudtower
- func NewWithUserConfig(clientConfig ClientConfig, userConfig UserConfig) (*Cloudtower, error)
- type TransportConfig
- type UserConfig
Constants ¶
const ( // DefaultHost is the default Host // found in Meta (info) section of spec file DefaultHost string = "localhost" // DefaultBasePath is the default BasePath // found in Meta (info) section of spec file DefaultBasePath string = "/" )
Variables ¶
var Default = NewHTTPClient(nil)
Default cloudtower HTTP client.
var DefaultSchemes = []string{"http"}
DefaultSchemes are the default schemes found in Meta (info) section of spec file
Functions ¶
This section is empty.
Types ¶
type ClientConfig ¶ added in v2.1.0
type Cloudtower ¶
type Cloudtower struct { Alert alert.ClientService AlertNotifier alert_notifier.ClientService AlertRule alert_rule.ClientService APIInfo api_info.ClientService Application application.ClientService BrickTopo brick_topo.ClientService CloudTowerApplication cloud_tower_application.ClientService CloudTowerApplicationPackage cloud_tower_application_package.ClientService Cluster cluster.ClientService ClusterImage cluster_image.ClientService ClusterSettings cluster_settings.ClientService ClusterTopo cluster_topo.ClientService ClusterUpgradeHistory cluster_upgrade_history.ClientService ConsistencyGroup consistency_group.ClientService ConsistencyGroupSnapshot consistency_group_snapshot.ClientService ContentLibraryImage content_library_image.ClientService ContentLibraryVMTemplate content_library_vm_template.ClientService Datacenter datacenter.ClientService Deploy deploy.ClientService DiscoveredHost discovered_host.ClientService Disk disk.ClientService ElfDataStore elf_data_store.ClientService ElfImage elf_image.ClientService ElfStoragePolicy elf_storage_policy.ClientService EntityFilter entity_filter.ClientService EverouteCluster everoute_cluster.ClientService EverouteLicense everoute_license.ClientService EveroutePackage everoute_package.ClientService GlobalAlertRule global_alert_rule.ClientService GlobalSettings global_settings.ClientService Graph graph.ClientService Host host.ClientService Ipmi ipmi.ClientService IscsiConnection iscsi_connection.ClientService IscsiLun iscsi_lun.ClientService IscsiLunSnapshot iscsi_lun_snapshot.ClientService IscsiTarget iscsi_target.ClientService IsolationPolicy isolation_policy.ClientService Label label.ClientService License license.ClientService LogCollection log_collection.ClientService LogServiceConfig log_service_config.ClientService Metrics metrics.ClientService NamespaceGroup namespace_group.ClientService NfsExport nfs_export.ClientService NfsInode nfs_inode.ClientService Nic nic.ClientService NodeTopo node_topo.ClientService NvmfNamespace nvmf_namespace.ClientService NvmfNamespaceSnapshot nvmf_namespace_snapshot.ClientService NvmfSubsystem nvmf_subsystem.ClientService Organization organization.ClientService Ovf ovf.ClientService PmemDimm pmem_dimm.ClientService RackTopo rack_topo.ClientService ReportTask report_task.ClientService ReportTemplate report_template.ClientService SecurityGroup security_group.ClientService SecurityPolicy security_policy.ClientService SnapshotGroup snapshot_group.ClientService SnapshotPlan snapshot_plan.ClientService SnapshotPlanTask snapshot_plan_task.ClientService SnmpTransport snmp_transport.ClientService SnmpTrapReceiver snmp_trap_receiver.ClientService SvtImage svt_image.ClientService SystemAuditLog system_audit_log.ClientService TableReporter table_reporter.ClientService Task task.ClientService UploadTask upload_task.ClientService UsbDevice usb_device.ClientService User user.ClientService UserAuditLog user_audit_log.ClientService UserRoleNext user_role_next.ClientService VcenterAccount vcenter_account.ClientService Vds vds.ClientService View view.ClientService Vlan vlan.ClientService VM vm.ClientService VMDisk vm_disk.ClientService VMEntityFilterResult vm_entity_filter_result.ClientService VMExportFile vm_export_file.ClientService VMFolder vm_folder.ClientService VMNic vm_nic.ClientService VMPlacementGroup vm_placement_group.ClientService VMSnapshot vm_snapshot.ClientService VMTemplate vm_template.ClientService VMVolume vm_volume.ClientService VMVolumeSnapshot vm_volume_snapshot.ClientService VsphereEsxiAccount vsphere_esxi_account.ClientService Witness witness.ClientService WitnessService witness_service.ClientService Zone zone.ClientService ZoneTopo zone_topo.ClientService Transport runtime.ClientTransport }
Cloudtower is a client for cloudtower
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Cloudtower
New creates a new cloudtower client
func NewHTTPClient ¶
func NewHTTPClient(formats strfmt.Registry) *Cloudtower
NewHTTPClient creates a new cloudtower HTTP client.
func NewHTTPClientWithConfig ¶
func NewHTTPClientWithConfig(formats strfmt.Registry, cfg *TransportConfig) *Cloudtower
NewHTTPClientWithConfig creates a new cloudtower HTTP client, using a customizable transport config.
func NewWithUserConfig ¶ added in v2.1.0
func NewWithUserConfig(clientConfig ClientConfig, userConfig UserConfig) (*Cloudtower, error)
func (*Cloudtower) SetTransport ¶
func (c *Cloudtower) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client and all its subresources
type TransportConfig ¶
TransportConfig contains the transport related info, found in the meta section of the spec file.
func DefaultTransportConfig ¶
func DefaultTransportConfig() *TransportConfig
DefaultTransportConfig creates a TransportConfig with the default settings taken from the meta section of the spec file.
func (*TransportConfig) WithBasePath ¶
func (cfg *TransportConfig) WithBasePath(basePath string) *TransportConfig
WithBasePath overrides the default basePath, provided by the meta section of the spec file.
func (*TransportConfig) WithHost ¶
func (cfg *TransportConfig) WithHost(host string) *TransportConfig
WithHost overrides the default host, provided by the meta section of the spec file.
func (*TransportConfig) WithSchemes ¶
func (cfg *TransportConfig) WithSchemes(schemes []string) *TransportConfig
WithSchemes overrides the default schemes, provided by the meta section of the spec file.
type UserConfig ¶ added in v2.1.0
type UserConfig struct { Name string Password string Source models.UserSource }