site

package
v0.0.0-...-21311fb Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VerifySiteNavigation

func VerifySiteNavigation(page *web.Page, URL string)

VerifySiteNavigation navigates to given URL and ensures it is a cluster page

Types

type AppPage

type AppPage struct {
	// contains filtered or unexported fields
}

AppPage is cluster index page ui model

func (*AppPage) GetCurrentVersion

func (a *AppPage) GetCurrentVersion() AppVersion

GetCurrentVersion returns current installed version of application

func (*AppPage) GetNewVersions

func (a *AppPage) GetNewVersions() []AppVersion

GetNewVersions returns this cluster new application versions

func (*AppPage) StartUpdateOperation

func (a *AppPage) StartUpdateOperation(toVersion AppVersion)

StartUpdateOperation starts update operation

type AppVersion

type AppVersion struct {
	Index        int
	Version      string
	ReleaseNotes string
}

AppVersion is application version

type ServerPage

type ServerPage struct {
	// contains filtered or unexported fields
}

ServerPage is cluster server page ui model

func (*ServerPage) AddAWSServer

func (p *ServerPage) AddAWSServer() SiteServer

AddAWSServer adds aws server

func (*ServerPage) AddOnPremServer

func (p *ServerPage) AddOnPremServer() SiteServer

AddOnPremServer adds onprem servers

func (*ServerPage) DeleteServer

func (p *ServerPage) DeleteServer(server SiteServer)

DeleteServer deletes given server

func (*ServerPage) GetAgentServers

func (p *ServerPage) GetAgentServers() []agent.AgentServer

GetAgentServers returns agent servers

func (*ServerPage) GetSiteServers

func (p *ServerPage) GetSiteServers() []SiteServer

GetSiteServers returns this cluster servers

type Site

type Site struct {
	// contains filtered or unexported fields
}

Site is cluster ui model

func Open

func Open(page *web.Page, domainName string) Site

Open navigates to cluster URL and returns its ui model

func (*Site) GetEndpoints

func (s *Site) GetEndpoints() (endpoints []string)

GetEndpoints returns cluster endpoints

func (*Site) GoToIndex

func (s *Site) GoToIndex() AppPage

GoToIndex navigates to cluster index page

func (*Site) GoToServers

func (s *Site) GoToServers() ServerPage

GoToServers navigates to cluster server page

func (*Site) IsBusy

func (s *Site) IsBusy() bool

IsBusy checks if cluster is in busy state

func (*Site) IsReady

func (s *Site) IsReady() bool

IsReady checks if cluster is in ready state

func (*Site) UpdateWithLatestVersion

func (s *Site) UpdateWithLatestVersion()

UpdateWithLatestVersion updates this cluster with the new version

func (*Site) WaitForBusyState

func (s *Site) WaitForBusyState()

WaitForBusyState waits until cluster is busy

func (*Site) WaitForOperationCompletion

func (s *Site) WaitForOperationCompletion()

WaitForOperationCompletion waits for cluster ongoing operation to be completed

func (*Site) WaitForReadyState

func (s *Site) WaitForReadyState()

WaitForReadyState waits until cluster is ready

type SiteServer

type SiteServer struct {
	AdvertiseIP string `json:"AdvertiseIP"`
	PublicIP    string `json:"PublicIP"`
	Profile     string `json:"Profile"`
	Hostname    string `json:"Hostname"`
	InstaceType string
}

SiteServer is cluster server

Jump to

Keyboard shortcuts

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