client

package
v0.0.0-...-50e8434 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultClient

type DefaultClient struct {
	HttpClient *http.Client
	// contains filtered or unexported fields
}

func NewClient

func NewClient(host string, tp token.TokenProvider, ca []byte) (*DefaultClient, error)

func NewInCluster

func NewInCluster() (*DefaultClient, error)

NewInCluster creates Client if it is inside Kubernetes.

func (*DefaultClient) APIServerURL

func (kc *DefaultClient) APIServerURL() string

func (*DefaultClient) Do

func (kc *DefaultClient) Do(req *http.Request) (*http.Response, error)

type Interface

type Interface interface {
	// Do sends HTTP request to ObjectAPI server.
	Do(req *http.Request) (*http.Response, error)
	// APIServerURL returns API server URL.
	APIServerURL() string
}

Interface is minimal kubernetes Client interface.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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