gretunnels

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GreTunnels

type GreTunnels struct {
	ID                   int               `json:"id,omitempty"`
	SourceIP             string            `json:"sourceIp,omitempty"`
	InternalIpRange      string            `json:"internalIpRange,omitempty"`
	LastModificationTime int               `json:"lastModificationTime,omitempty"`
	WithinCountry        bool              `json:"withinCountry"`
	Comment              string            `json:"comment,omitempty"`
	IPUnnumbered         bool              `json:"ipUnnumbered"`
	SubCloud             string            `json:"subcloud,omitempty"`
	ManagedBy            *ManagedBy        `json:"managedBy,omitempty"`      // Should probably move this to a common package. Used by multiple resources
	LastModifiedBy       *LastModifiedBy   `json:"lastModifiedBy,omitempty"` // Should probably move this to a common package. Used by multiple resources
	PrimaryDestVip       *PrimaryDestVip   `json:"primaryDestVip,omitempty"`
	SecondaryDestVip     *SecondaryDestVip `json:"secondaryDestVip,omitempty"`
}

type LastModifiedBy

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

type ManagedBy

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

type PrimaryDestVip

type PrimaryDestVip struct {
	ID                 int     `json:"id,omitempty"`
	VirtualIP          string  `json:"virtualIp,omitempty"`
	PrivateServiceEdge bool    `json:"privateServiceEdge"`
	Datacenter         string  `json:"datacenter,omitempty"`
	Latitude           float64 `json:"latitude,omitempty"`
	Longitude          float64 `json:"longitude,omitempty"`
	City               string  `json:"city,omitempty"`
	CountryCode        string  `json:"countryCode,omitempty"`
	Region             string  `json:"region,omitempty"`
}

type SecondaryDestVip

type SecondaryDestVip struct {
	ID                 int     `json:"id,omitempty"`
	VirtualIP          string  `json:"virtualIp,omitempty"`
	PrivateServiceEdge bool    `json:"privateServiceEdge"`
	Datacenter         string  `json:"datacenter,omitempty"`
	Latitude           float64 `json:"latitude,omitempty"`
	Longitude          float64 `json:"longitude,omitempty"`
	City               string  `json:"city,omitempty"`
	CountryCode        string  `json:"countryCode,omitempty"`
	Region             string  `json:"region,omitempty"`
}

type Service

type Service struct {
	Client *zia.Client
}

func New

func New(c *zia.Client) *Service

func (*Service) CreateGreTunnels

func (service *Service) CreateGreTunnels(greTunnelID *GreTunnels) (*GreTunnels, *http.Response, error)

Adds a GRE tunnel configuration.

func (*Service) DeleteGreTunnels

func (service *Service) DeleteGreTunnels(greTunnelID int) (*http.Response, error)

func (*Service) GetAll added in v0.0.4

func (service *Service) GetAll() ([]GreTunnels, error)

func (*Service) GetGreTunnels

func (service *Service) GetGreTunnels(greTunnelID int) (*GreTunnels, error)

func (*Service) UpdateGreTunnels

func (service *Service) UpdateGreTunnels(greTunnelID int, greTunnels *GreTunnels) (*GreTunnels, *http.Response, error)

Jump to

Keyboard shortcuts

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