client

package
v2.21.7 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 53 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
var Default = NewHTTPClient(nil)

Default kubermatic kubernetes platform API 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 KubermaticKubernetesPlatformAPI added in v2.18.0

type KubermaticKubernetesPlatformAPI struct {
	Addon addon.ClientService

	Admin admin.ClientService

	Aks aks.ClientService

	Alibaba alibaba.ClientService

	Allowedregistries allowedregistries.ClientService

	Allowedregistry allowedregistry.ClientService

	Anexia anexia.ClientService

	Applications applications.ClientService

	Aws aws.ClientService

	Azure azure.ClientService

	Backupcredentials backupcredentials.ClientService

	Cniversion cniversion.ClientService

	Constraint constraint.ClientService

	Constraints constraints.ClientService

	Constrainttemplates constrainttemplates.ClientService

	Credentials credentials.ClientService

	Datacenter datacenter.ClientService

	Digitalocean digitalocean.ClientService

	Eks eks.ClientService

	Etcdbackupconfig etcdbackupconfig.ClientService

	Etcdrestore etcdrestore.ClientService

	Gcp gcp.ClientService

	Get get.ClientService

	Gke gke.ClientService

	Hetzner hetzner.ClientService

	Ipampool ipampool.ClientService

	Kubevirt kubevirt.ClientService

	Metering metering.ClientService

	Metric metric.ClientService

	Mlaadminsetting mlaadminsetting.ClientService

	Networkdefaults networkdefaults.ClientService

	Nutanix nutanix.ClientService

	Openstack openstack.ClientService

	Operatingsystemprofile operatingsystemprofile.ClientService

	Operations operations.ClientService

	Packet packet.ClientService

	Preset preset.ClientService

	Project project.ClientService

	ResourceQuota resource_quota.ClientService

	Rulegroup rulegroup.ClientService

	Seed seed.ClientService

	Serviceaccounts serviceaccounts.ClientService

	Settings settings.ClientService

	Tokens tokens.ClientService

	User user.ClientService

	Users users.ClientService

	Version version.ClientService

	Versions versions.ClientService

	Vmwareclouddirector vmwareclouddirector.ClientService

	Vsphere vsphere.ClientService

	Transport runtime.ClientTransport
}

KubermaticKubernetesPlatformAPI is a client for kubermatic kubernetes platform API

func New

New creates a new kubermatic kubernetes platform API client

func NewHTTPClient

func NewHTTPClient(formats strfmt.Registry) *KubermaticKubernetesPlatformAPI

NewHTTPClient creates a new kubermatic kubernetes platform API HTTP client.

func NewHTTPClientWithConfig

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

NewHTTPClientWithConfig creates a new kubermatic kubernetes platform API HTTP client, using a customizable transport config.

func (*KubermaticKubernetesPlatformAPI) SetTransport added in v2.18.0

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

SetTransport changes the transport on the client and all its subresources

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.

Jump to

Keyboard shortcuts

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