client

package
v0.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2024 License: BSD-2-Clause Imports: 47 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultHost is the default Host
	// found in Meta (info) section of spec file
	DefaultHost string = "sfo-vcf01.rainpole.io"
	// DefaultBasePath is the default BasePath
	// found in Meta (info) section of spec file
	DefaultBasePath string = "/"
)

Variables

View Source
var Default = NewHTTPClient(nil)

Default vcf client HTTP client.

View Source
var DefaultSchemes = []string{"https"}

DefaultSchemes are the default schemes found in Meta (info) section of spec file

Functions

This section is empty.

Types

type TransportConfig

type TransportConfig struct {
	Host     string
	BasePath string
	Schemes  []string
}

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 VcfClient

type VcfClient struct {
	AvNs avns.ClientService

	BackupRestore backup_restore.ClientService

	Bundles bundles.ClientService

	CEIP ceip.ClientService

	Certificates certificates.ClientService

	Clusters clusters.ClientService

	Credentials credentials.ClientService

	DepotSettings depot_settings.ClientService

	Domains domains.ClientService

	FIPSModeDetails fips_mode_details.ClientService

	Hosts hosts.ClientService

	IdentityProviders identity_providers.ClientService

	LicenseKeys license_keys.ClientService

	Manifests manifests.ClientService

	NSXTClusters nsxt_clusters.ClientService

	NetworkPools network_pools.ClientService

	NSXTEdgeClusters nsxt_edge_clusters.ClientService

	PsCs pscs.ClientService

	Personalities personalities.ClientService

	ProxyConfiguration proxy_configuration.ClientService

	Releases releases.ClientService

	ResourceFunctionalities resource_functionalities.ClientService

	ResourceWarnings resource_warnings.ClientService

	SDDC sddc.ClientService

	SDDCManagers sddc_managers.ClientService

	SOS sos.ClientService

	System system.ClientService

	SystemPrechecks system_prechecks.ClientService

	Tasks tasks.ClientService

	Tokens tokens.ClientService

	TrustedCertificates trusted_certificates.ClientService

	Upgradables upgradables.ClientService

	Upgrades upgrades.ClientService

	Users users.ClientService

	VCenters vcenters.ClientService

	VRA vra.ClientService

	Vrli vrli.ClientService

	VroPs vrops.ClientService

	VRSLCM vrslcm.ClientService

	VSANHealthCheck vsan_health_check.ClientService

	VasaProviders vasa_providers.ClientService

	VcfServices vcf_services.ClientService

	VersionAliasesForBundleComponentType version_aliases_for_bundle_component_type.ClientService

	WSA wsa.ClientService

	Transport runtime.ClientTransport
}

VcfClient is a client for vcf client

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *VcfClient

New creates a new vcf client client

func NewHTTPClient

func NewHTTPClient(formats strfmt.Registry) *VcfClient

NewHTTPClient creates a new vcf client HTTP client.

func NewHTTPClientWithConfig

func NewHTTPClientWithConfig(formats strfmt.Registry, cfg *TransportConfig) *VcfClient

NewHTTPClientWithConfig creates a new vcf client HTTP client, using a customizable transport config.

func (*VcfClient) SetTransport

func (c *VcfClient) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client and all its subresources

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL