site_portal_client

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 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 Client

type Client interface {
	// ConfigAndConnectSite configures the site info and connect it to the fml manager
	ConfigAndConnectSite() error
	// UnregisterFromFMLManager asks the site to unregister from the fml manager
	UnregisterFromFMLManager() error
}

Client provides interface to work with a site portal service

func NewClient

func NewClient(site Site) (Client, error)

type FMLManagerConnectionInfo

type FMLManagerConnectionInfo struct {
	// Endpoint address starting with "http" or "https"
	Endpoint string `json:"endpoint"`
	// ServerName is used by Site Portal to verify FML Manager's certificate
	ServerName string `json:"server_name"`
}

FMLManagerConnectionInfo contains connection settings for the fml manager

type Site

type Site struct {
	Username             string `json:"-"`
	Password             string `json:"-"`
	Name                 string `json:"name"`
	Description          string `json:"description"`
	PartyID              uint   `json:"party_id"`
	ExternalHost         string `json:"external_host"`
	ExternalPort         uint   `json:"external_port"`
	HTTPS                bool   `json:"https"`
	FMLManagerEndpoint   string `json:"fml_manager_endpoint"`
	FMLManagerServerName string `json:"fml_manager_server_name"`
	FATEFlowHost         string `json:"fate_flow_host"`
	FATEFlowHTTPPort     uint   `json:"fate_flow_http_port"`
}

Site contains essential info to configure its connection with fml manager

Jump to

Keyboard shortcuts

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