client

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpError

type HttpError struct {
	Response *http.Response
	Message  string
}

func (HttpError) Error

func (e HttpError) Error() string

type Interface

type Interface interface {
	Heartbeat() error
	UploadGlobalService(ctx context.Context, service apis.GlobalService) error
	DownloadAllGlobalServices(ctx context.Context) ([]apis.GlobalService, error)
	DeleteGlobalService(ctx context.Context, namespace, name string) error
}

func NewClient

func NewClient(apiServerAddr string, clusterName string, transport http.RoundTripper) (Interface, error)

Jump to

Keyboard shortcuts

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