common

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPageSize

func GetPageSize() int

GetPageSize returns the page size.

func ReadAllPages

func ReadAllPages[T any](client *zcon.Client, endpoint string, list *[]T) error

func ReadPage

func ReadPage[T any](client *zcon.Client, endpoint string, page int, list *[]T) error

Types

type DNS

type DNS struct {
	ID      int      `json:"id,omitempty"`
	IPs     []string `json:"ips,omitempty"`
	DNSType string   `json:"dnsType,omitempty"`
}

type ECInstances

type ECInstances struct {
	ServiceNw      *ManagementNw `json:"serviceNw,omitempty"`
	VirtualNw      *ManagementNw `json:"virtualNw,omitempty"`
	ECInstanceType string        `json:"ecInstanceType,omitempty"`
	OutGwIp        string        `json:"outGwIp,omitempty"`
	NatIP          string        `json:"natIp,omitempty"`
	DNSIp          string        `json:"dnsIp,omitempty"`
	Name           string        `json:"name,omitempty"`
	ID             int           `json:"id,omitempty"`
	Flags          string        `json:"flags,omitempty"`
	RegisterTime   int           `json:"registerTime,omitempty"`
}

type ECVMLite

type ECVMLite struct {
	ID               int    `json:"id,omitempty"`
	Name             string `json:"name,omitempty"`
	UpgradeStatus    int    `json:"upgradeStatus,omitempty"`
	UpgradeStartTime int    `json:"upgradeStartTime,omitempty"`
	UpgradeEndTime   int    `json:"upgradeEndTime,omitempty"`
}

type ECVMs

type ECVMs struct {
	ID               int           `json:"id,omitempty"`
	Name             string        `json:"name,omitempty"`
	FormFactor       string        `json:"formFactor,omitempty"`
	CityGeoId        int           `json:"cityGeoId,omitempty"`
	NATIP            string        `json:"natIp,omitempty"`
	ZiaGateway       string        `json:"ziaGateway,omitempty"`
	ZpaBroker        string        `json:"zpaBroker,omitempty"`
	BuildVersion     string        `json:"buildVersion,omitempty"`
	LastUpgradeTime  int           `json:"lastUpgradeTime,omitempty"`
	UpgradeStatus    int           `json:"upgradeStatus,omitempty"`
	UpgradeStartTime int           `json:"upgradeStartTime,omitempty"`
	UpgradeEndTime   int           `json:"upgradeEndTime,omitempty"`
	ManagementNw     *ManagementNw `json:"managementNw,omitempty"`
	ECInstances      []ECInstances `json:"ecInstances,omitempty"`
}

type GeneralPurpose

type GeneralPurpose struct {
	ID              int                    `json:"id,omitempty"`
	Name            string                 `json:"name,omitempty"`
	IsNameL10nTag   bool                   `json:"isNameL10nTag,omitempty"`
	Extensions      map[string]interface{} `json:"extensions,omitempty"`
	Deleted         bool                   `json:"deleted,omitempty"`
	ExternalId      string                 `json:"externalId,omitempty"`
	AssociationTime int                    `json:"associationTime,omitempty"`
}

General purpose object. This is an immutable reference to an entity, which mainly consists of ID and name.

type IDNameExtensions

type IDNameExtensions struct {
	ID         int                    `json:"id,omitempty"`
	Name       string                 `json:"name,omitempty"`
	Extensions map[string]interface{} `json:"extensions,omitempty"`
}

type ManagementNw

type ManagementNw struct {
	ID             int    `json:"id,omitempty"`
	IPStart        string `json:"ipStart,omitempty"`
	IPEnd          string `json:"ipEnd,omitempty"`
	Netmask        string `json:"netmask,omitempty"`
	DefaultGateway string `json:"defaultGateway,omitempty"`
	NWType         string `json:"nwType,omitempty"`
	DNS            *DNS   `json:"dns,omitempty"`
}

type Service

type Service struct {
	Client *zcon.Client
}

func New

func New(c *zcon.Client) *Service

type UIDNameLite

type UIDNameLite struct {
	ID   int    `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
}

Jump to

Keyboard shortcuts

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