service_hub

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: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModeServer = "server"
	ModeClient = "client"
)

Variables

This section is empty.

Functions

func Execute

func Execute() error

Types

type Options

type Options struct {
	Cluster string
	Zone    string
	Region  string
	Mode    string

	HealthProbeListenAddress string
	APIServerListenAddress   string
	APIServerAddress         string
	TLSKeyFile               string
	TLSCertFile              string
	TLSCACertFile            string

	ClusterExpireTime     time.Duration
	ServiceImportInterval time.Duration
	RequestTimeout        time.Duration
	AllowCreateNamespace  bool

	Manager      ctrlpkg.Manager
	ClusterStore *types.ClusterStore
	APIServer    *http.Server
	Client       fclient.Interface

	ExportGlobalService types.ExportGlobalServiceFunc
	RevokeGlobalService types.RevokeGlobalServiceFunc
}

func (*Options) AddFlags

func (opts *Options) AddFlags(flag *pflag.FlagSet)

func (*Options) Complete

func (opts *Options) Complete() (err error)

func (Options) Run

func (opts Options) Run() error

func (Options) Validate

func (opts Options) Validate() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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