ragcli

package
v0.0.0-...-e3073cf Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: MIT Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAproveServices

func GetAproveServices(appname string, c context.Context) (services map[string]interface{}, allpath bool)

func GetCatalogSevice

func GetCatalogSevice(appname, env string, c context.Context) map[string][]string

func GetConsulapps

func GetConsulapps(appname, env, service string, hostmode bool, c context.Context) []*api.ServiceEntry

func Getall

func Getall(c context.Context) map[string]interface{}

func IsSkip

func IsSkip(appname string, c context.Context) bool

Types

type EurekaApplication

type EurekaApplication struct {
	Application Eurekaappinfo `json:"application"`
}

func Eurekapp

func Eurekapp(servicename string, c context.Context) EurekaApplication

type EurekaApplications

type EurekaApplications struct {
	Applications struct {
		Versions__delta string          `json:"versions__delta"`
		Apps__hashcode  string          `json:"apps__hashcode"`
		Application     []Eurekaappinfo `json:"application"`
	} `json:"applications"`
}

func GetEuapps

func GetEuapps(appname, env string, hostmode bool, c context.Context) EurekaApplications

type EurekaInstance

type EurekaInstance struct {
	InstanceId       string `json:"instanceId"`
	HostName         string `json:"hostName"`
	App              string `json:"app"`
	Status           string `json:"status"`
	Overriddenstatus string `json:"overriddenstatus"`
	IpAddr           string `json:"ipAddr"`
	Port             struct {
		Realport int    `json:"$"`
		Enabled  string `json:"@enabled"`
	} `json:"port"`
	SecurePort struct {
		Realport int    `json:"$"`
		Enabled  string `json:"@enabled"`
	} `json:"securePort"`
	CountryId      int `json:"countryId"`
	DataCenterInfo struct {
		Class string `json:"@class"`
		Name  string `json:"name"`
	} `json:"dataCenterInfo"`
	LeaseInfo struct {
		RenewalIntervalInSecs int   `json:"renewalIntervalInSecs"`
		DurationInSecs        int   `json:"durationInSecs"`
		RegistrationTimestamp int64 `json:"registrationTimestamp"`
		LastRenewalTimestamp  int64 `json:"lastRenewalTimestamp"`
		EvictionTimestamp     int64 `json:"evictionTimestamp"`
		ServiceUpTimestamp    int64 `json:"serviceUpTimestamp"`
	} `json:"leaseInfo"`
	Metadata                      map[string]string `json:"metadata"`
	HomePageUrl                   string            `json:"homePageUrl"`
	StatusPageUrl                 string            `json:"statusPageUrl"`
	HealthCheckUrl                string            `json:"healthCheckUrl"`
	VipAddress                    string            `json:"vipAddress"`
	SecureVipAddress              string            `json:"secureVipAddress"`
	IsCoordinatingDiscoveryServer string            `json:"isCoordinatingDiscoveryServer"`
	LastUpdatedTimestamp          string            `json:"lastUpdatedTimestamp"`
	LastDirtyTimestamp            string            `json:"lastDirtyTimestamp"`
	ActionType                    string            `json:"actionType"`
}

func (EurekaInstance) String

func (euinst EurekaInstance) String() string

type Eurekaappinfo

type Eurekaappinfo struct {
	Name     string           `json:"name"`
	Instance []EurekaInstance `json:"instance"`
}

Jump to

Keyboard shortcuts

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