client

package
v0.0.0-...-1e5aeb1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2021 License: Apache-2.0 Imports: 71 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 kubernetes HTTP client.

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

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

Functions

This section is empty.

Types

type Kubernetes

type Kubernetes struct {
	Admissionregistration admissionregistration.ClientService

	AdmissionregistrationV1 admissionregistration_v1.ClientService

	AdmissionregistrationV1beta1 admissionregistration_v1beta1.ClientService

	Apiextensions apiextensions.ClientService

	ApiextensionsV1 apiextensions_v1.ClientService

	ApiextensionsV1beta1 apiextensions_v1beta1.ClientService

	Apiregistration apiregistration.ClientService

	ApiregistrationV1 apiregistration_v1.ClientService

	ApiregistrationV1beta1 apiregistration_v1beta1.ClientService

	Apis apis.ClientService

	Apps apps.ClientService

	AppsV1 apps_v1.ClientService

	Authentication authentication.ClientService

	AuthenticationV1 authentication_v1.ClientService

	AuthenticationV1beta1 authentication_v1beta1.ClientService

	Authorization authorization.ClientService

	AuthorizationV1 authorization_v1.ClientService

	AuthorizationV1beta1 authorization_v1beta1.ClientService

	Autoscaling autoscaling.ClientService

	AutoscalingV1 autoscaling_v1.ClientService

	AutoscalingV2beta1 autoscaling_v2beta1.ClientService

	AutoscalingV2beta2 autoscaling_v2beta2.ClientService

	Batch batch.ClientService

	BatchV1 batch_v1.ClientService

	BatchV1beta1 batch_v1beta1.ClientService

	BatchV2alpha1 batch_v2alpha1.ClientService

	Certificates certificates.ClientService

	CertificatesV1 certificates_v1.ClientService

	CertificatesV1beta1 certificates_v1beta1.ClientService

	Cilium cilium.ClientService

	Coordination coordination.ClientService

	CoordinationV1 coordination_v1.ClientService

	CoordinationV1beta1 coordination_v1beta1.ClientService

	Core core.ClientService

	CoreV1 core_v1.ClientService

	Discovery discovery.ClientService

	DiscoveryV1beta1 discovery_v1beta1.ClientService

	Events events.ClientService

	EventsV1 events_v1.ClientService

	EventsV1beta1 events_v1beta1.ClientService

	Extensions extensions.ClientService

	ExtensionsV1beta1 extensions_v1beta1.ClientService

	FlowcontrolApiserver flowcontrol_apiserver.ClientService

	FlowcontrolApiserverV1alpha1 flowcontrol_apiserver_v1alpha1.ClientService

	Logs logs.ClientService

	Networking networking.ClientService

	NetworkingV1 networking_v1.ClientService

	NetworkingV1beta1 networking_v1beta1.ClientService

	Node node.ClientService

	NodeV1alpha1 node_v1alpha1.ClientService

	NodeV1beta1 node_v1beta1.ClientService

	Policy policy.ClientService

	PolicyV1beta1 policy_v1beta1.ClientService

	RbacAuthorization rbac_authorization.ClientService

	RbacAuthorizationV1 rbac_authorization_v1.ClientService

	RbacAuthorizationV1alpha1 rbac_authorization_v1alpha1.ClientService

	RbacAuthorizationV1beta1 rbac_authorization_v1beta1.ClientService

	Scheduling scheduling.ClientService

	SchedulingV1 scheduling_v1.ClientService

	SchedulingV1alpha1 scheduling_v1alpha1.ClientService

	SchedulingV1beta1 scheduling_v1beta1.ClientService

	Settings settings.ClientService

	SettingsV1alpha1 settings_v1alpha1.ClientService

	Storage storage.ClientService

	StorageV1 storage_v1.ClientService

	StorageV1alpha1 storage_v1alpha1.ClientService

	StorageV1beta1 storage_v1beta1.ClientService

	Version version.ClientService

	Transport runtime.ClientTransport
}

Kubernetes is a client for kubernetes

func New

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

New creates a new kubernetes client

func NewHTTPClient

func NewHTTPClient(formats strfmt.Registry) *Kubernetes

NewHTTPClient creates a new kubernetes HTTP client.

func NewHTTPClientWithConfig

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

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

func (*Kubernetes) SetTransport

func (c *Kubernetes) 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