service

package
v0.0.0-...-c46a175 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LvsProxy

type LvsProxy interface {
	// CreateVirtualServer create the specified VirtualServer by vs
	CreateVirtualServer(vs string) error
	// IsVirtualServerAvailable check vs available or not
	IsVirtualServerAvailable(vs string) bool
	// DeleteVirtualServer delete vs form host
	DeleteVirtualServer(vs string) error
	// CreateRealServer create real server
	CreateRealServer(rs string) error
	// ListRealServer list real servers by lvs
	ListRealServer() ([]string, error)
	// DeleteRealServer delete real server
	DeleteRealServer(rs string) error
}

LvsProxy is lvs virtualServer and realServer operation interface

func NewLvsProxy

func NewLvsProxy() LvsProxy

NewLvsProxy init LvsProxy interface

Jump to

Keyboard shortcuts

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