Documentation ¶
Index ¶
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 = "/api" )
Variables ¶
var Default = NewHTTPClient(nil)
Default cloudbreak HTTP client.
var DefaultSchemes = []string{"http", "https"}
DefaultSchemes are the default schemes found in Meta (info) section of spec file
Functions ¶
This section is empty.
Types ¶
type Cloudbreak ¶
type Cloudbreak struct { Autoscale *autoscale.Client Flow *flow.Client V1distrox *v1distrox.Client V1internaldistrox *v1internaldistrox.Client V4WorkspaceID *v4_workspace_id.Client V4WorkspaceIDAudits *v4_workspace_id_audits.Client V4WorkspaceIDBlueprints *v4_workspace_id_blueprints.Client V4WorkspaceIDBlueprintsUtil *v4_workspace_id_blueprints_util.Client V4WorkspaceIDClusterTemplates *v4_workspace_id_cluster_templates.Client V4WorkspaceIDDatabases *v4_workspace_id_databases.Client V4WorkspaceIDFileSystems *v4_workspace_id_file_systems.Client V4WorkspaceIDImagecatalogs *v4_workspace_id_imagecatalogs.Client V4WorkspaceIDRecipes *v4_workspace_id_recipes.Client V4WorkspaceIDStacks *v4_workspace_id_stacks.Client V4datalake *v4datalake.Client V4events *v4events.Client V4info *v4info.Client V4userProfiles *v4user_profiles.Client V4users *v4users.Client V4utils *v4utils.Client V4workspaces *v4workspaces.Client Transport runtime.ClientTransport }
Cloudbreak is a client for cloudbreak
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Cloudbreak
New creates a new cloudbreak client
func NewHTTPClient ¶
func NewHTTPClient(formats strfmt.Registry) *Cloudbreak
NewHTTPClient creates a new cloudbreak HTTP client.
func NewHTTPClientWithConfig ¶
func NewHTTPClientWithConfig(formats strfmt.Registry, cfg *TransportConfig) *Cloudbreak
NewHTTPClientWithConfig creates a new cloudbreak HTTP client, using a customizable transport config.
func (*Cloudbreak) SetTransport ¶
func (c *Cloudbreak) 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.