Documentation ¶
Index ¶
- type Location
- type ManagedBy
- type Service
- func (service *Service) Create(vpnCredentials *VPNCredentials) (*VPNCredentials, *http.Response, error)
- func (service *Service) Delete(vpnCredentialID int) error
- func (service *Service) Get(vpnCredentialID int) (*VPNCredentials, error)
- func (service *Service) GetAll() ([]VPNCredentials, error)
- func (service *Service) GetByFQDN(vpnCredentialName string) (*VPNCredentials, error)
- func (service *Service) GetVPNByType(vpnType string) (*VPNCredentials, error)
- func (service *Service) Update(vpnCredentialID int, vpnCredentials *VPNCredentials) (*VPNCredentials, *http.Response, error)
- type VPNCredentials
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
func (*Service) Create ¶
func (service *Service) Create(vpnCredentials *VPNCredentials) (*VPNCredentials, *http.Response, 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"` Comments string `json:"comments,omitempty"` Location *Location `json:"location,omitempty"` ManagedBy *ManagedBy `json:"managedBy,omitempty"` }
Click to show internal directories.
Click to hide internal directories.