gonable

package module
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 5 Imported by: 0

README

n-ableScraper

Webscraper built in GoLang using go-rod to control the N-Able N-Central hosted portal

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NewPage

type NewPage struct {
	Page      *rod.Page
	ShortWait time.Duration
	MedWait   time.Duration
	LongWait  time.Duration
}

func (*NewPage) AllDevicesPage

func (n *NewPage) AllDevicesPage()

func (*NewPage) BulkEdit

func (n *NewPage) BulkEdit() *NewPage

func (*NewPage) ChangeDeviceName

func (n *NewPage) ChangeDeviceName(name string) *NewPage

First checks to make sure the "Use Discovered Name" is unchecked so the Given name box isn't grayed out. After that it selects all the existing characters and replaces with the provided string.

func (*NewPage) Connect

func (n *NewPage) Connect(url string) *NewPage

Start a new browser session. Disables Leakless in go-rod package by default. If you would like to use leakless use ConnectWLeakless() instead

func (*NewPage) ConnectWLeakless added in v0.0.9

func (n *NewPage) ConnectWLeakless(url string) *NewPage

func (*NewPage) DevicePageCancel

func (n *NewPage) DevicePageCancel() *NewPage

hits the cancel button the device edit page. General used after saving.

func (*NewPage) DeviceProps

func (n *NewPage) DeviceProps() *NewPage

Edit() > DeviceProps(). Goes into Settings and clicks Properties.

func (*NewPage) Edit

func (n *NewPage) Edit() *NewPage

AllDevicesPage() > SelectAll() > Edit()

func (*NewPage) Fill_Defaults

func (n *NewPage) Fill_Defaults() *NewPage

func (*NewPage) GetDeviceName

func (n *NewPage) GetDeviceName() (string, bool)

Edit() > GetDeviceName(). Gets device name from Device Properties page. Panics on multiselect page as that's not currently supported. Great for verifying you're in the right place and allows you compare new and old device names before and after making changes.

func (*NewPage) InputOsName added in v0.0.4

func (n *NewPage) InputOsName(osName string) *NewPage

func (*NewPage) Login

func (n *NewPage) Login(username string, password string)

func (*NewPage) MultiDevicePageCancel

func (n *NewPage) MultiDevicePageCancel() *NewPage

hits the cancel button on the multidevice edit page. Usually the result of an error since we don't handle that page.

func (*NewPage) SaveChanges

func (n *NewPage) SaveChanges() *NewPage

Hits save button on device settings page. Saving takes 3-10 seconds so there's a mandatory 4 second delay after hitting the button. It might still be worth it to add a longer manual delay to avoid issues.

func (*NewPage) Search

func (n *NewPage) Search(searchString string)

func (*NewPage) SelectAll

func (n *NewPage) SelectAll() *NewPage

only works on the AllDevices Page. Selects all devices listed. If you searched for a device or set a filter it'll select that one device or group.

Jump to

Keyboard shortcuts

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