Documentation ¶
Index ¶
Constants ¶
const ( // DefaultHost is the default Host // found in Meta (info) section of spec file DefaultHost string = "metakube.syseleven.de" // DefaultBasePath is the default BasePath // found in Meta (info) section of spec file DefaultBasePath string = "/" )
Variables ¶
var Default = NewHTTPClient(nil)
Default meta kube API HTTP client.
var DefaultSchemes = []string{"https"}
DefaultSchemes are the default schemes found in Meta (info) section of spec file
Functions ¶
This section is empty.
Types ¶
type MetaKubeAPI ¶
type MetaKubeAPI struct { Addon addon.ClientService Admin admin.ClientService Alibaba alibaba.ClientService Allowedregistries allowedregistries.ClientService Allowedregistry allowedregistry.ClientService Anexia anexia.ClientService Aws aws.ClientService Azure azure.ClientService Backupcredentials backupcredentials.ClientService Constraint constraint.ClientService Constraints constraints.ClientService Constrainttemplates constrainttemplates.ClientService Credentials credentials.ClientService Datacenter datacenter.ClientService Digitalocean digitalocean.ClientService Etcdbackupconfig etcdbackupconfig.ClientService Etcdrestore etcdrestore.ClientService Gcp gcp.ClientService Hetzner hetzner.ClientService Metering metering.ClientService Metric metric.ClientService Mlaadminsetting mlaadminsetting.ClientService Openstack openstack.ClientService Operations operations.ClientService Packet packet.ClientService Preset preset.ClientService Project project.ClientService Rulegroup rulegroup.ClientService Seed seed.ClientService Serviceaccounts serviceaccounts.ClientService Settings settings.ClientService Tokens tokens.ClientService Users users.ClientService Version version.ClientService Versions versions.ClientService Vsphere vsphere.ClientService Transport runtime.ClientTransport }
MetaKubeAPI is a client for meta kube API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *MetaKubeAPI
New creates a new meta kube API client
func NewHTTPClient ¶
func NewHTTPClient(formats strfmt.Registry) *MetaKubeAPI
NewHTTPClient creates a new meta kube API HTTP client.
func NewHTTPClientWithConfig ¶
func NewHTTPClientWithConfig(formats strfmt.Registry, cfg *TransportConfig) *MetaKubeAPI
NewHTTPClientWithConfig creates a new meta kube API HTTP client, using a customizable transport config.
func (*MetaKubeAPI) SetTransport ¶
func (c *MetaKubeAPI) 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.