client

package
v2.0.2-rc.17 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	// Get Scheduler and Scheduler cluster configuration
	GetScheduler(*manager.GetSchedulerRequest) (*manager.Scheduler, error)

	// Update scheduler configuration
	UpdateScheduler(*manager.UpdateSchedulerRequest) (*manager.Scheduler, error)

	// Update CDN configuration
	UpdateCDN(*manager.UpdateCDNRequest) (*manager.CDN, error)

	// List acitve schedulers configuration
	ListSchedulers(*manager.ListSchedulersRequest) (*manager.ListSchedulersResponse, error)

	// KeepAlive with manager
	KeepAlive(time.Duration, *manager.KeepAliveRequest)

	// Close client connect
	Close() error
}

func New

func New(target string) (Client, error)

func NewWithAddrs added in v2.0.1

func NewWithAddrs(netAddrs []dfnet.NetAddr) (Client, error)

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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