initclient

package
v0.0.0-...-ada9f9d Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: MPL-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const SYSTEM_EP = "/v1/systems"

Variables

This section is empty.

Functions

func CreateHTTPSURL

func CreateHTTPSURL(s SystemIPInfo) (*url.URL, error)

func CreateHTTPURL

func CreateHTTPURL(s SystemIPInfo) (*url.URL, error)

func CreateHostString

func CreateHostString(org string, system string) string

func GetHostUrl

func GetHostUrl(host string, icHost string, org *string, debug bool) (*url.URL, error)

Types

type ErrorMessage

type ErrorMessage struct {
	Message string `json:"message"`
	Details string `json:"details,omitempty"`
}

type InitClient

type InitClient struct {
	C   *resty.Client
	URL *url.URL
}

func NewInitClient

func NewInitClient(host string, debug bool) (*InitClient, error)

type SystemIPInfo

type SystemIPInfo struct {
	SystemId    string `json:"systemId"`
	SystemName  string `json:"systemName"`
	OrgName     string `json:"orgName"`
	Certificate string `json:"certificate"`
	Ip          string `json:"ip"`
	Port        uint   `json:"port"`
	Health      int    `json:"health"`
}

type SystemLookupReq

type SystemLookupReq struct {
	System string
	Org    string
}

func ParseHostString

func ParseHostString(host string, org *string) (*SystemLookupReq, error)

Host is expected to be orgname.systemname

Jump to

Keyboard shortcuts

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