vpncredentials

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Location

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

type ManagedBy

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

type Service

type Service struct {
	Client *zia.Client
}

func New

func New(c *zia.Client) *Service

func (*Service) Create

func (service *Service) Create(vpnCredentials *VPNCredentials) (*VPNCredentials, *http.Response, error)

func (*Service) Delete

func (service *Service) Delete(vpnCredentialID int) error

func (*Service) Get

func (service *Service) Get(vpnCredentialID int) (*VPNCredentials, error)

func (*Service) GetAll added in v0.0.4

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

func (*Service) GetByFQDN

func (service *Service) GetByFQDN(vpnCredentialName string) (*VPNCredentials, error)

func (*Service) GetVPNByType

func (service *Service) GetVPNByType(vpnType string) (*VPNCredentials, error)

func (*Service) Update

func (service *Service) Update(vpnCredentialID int, vpnCredentials *VPNCredentials) (*VPNCredentials, *http.Response, error)

type VPNCredentials

type VPNCredentials struct {
	ID           int        `json:"id"`
	Type         string     `json:"type,omitempty"`
	FQDN         string     `json:"fqdn,omitempty"`
	IPAddress    string     `json:"ipAddress,omitempty"`
	PreSharedKey string     `json:"preSharedKey,omitempty"`
	Comments     string     `json:"comments,omitempty"`
	Location     *Location  `json:"location,omitempty"`
	ManagedBy    *ManagedBy `json:"managedBy,omitempty"`
}

Jump to

Keyboard shortcuts

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