Documentation ¶
Index ¶
- type NetworkPorts
- type NetworkServiceGroups
- type NetworkServices
- type Service
- func (service *Service) Create(networkService *NetworkServices) (*NetworkServices, error)
- func (service *Service) CreateNetworkServiceGroups(networkServiceGroups *NetworkServiceGroups) (*NetworkServiceGroups, error)
- func (service *Service) Delete(serviceID int) (*http.Response, error)
- func (service *Service) DeleteNetworkServiceGroups(serviceGroupID int) (*http.Response, error)
- func (service *Service) Get(serviceID int) (*NetworkServices, error)
- func (service *Service) GetAllNetworkServiceGroups() ([]NetworkServiceGroups, error)
- func (service *Service) GetAllNetworkServices() ([]NetworkServices, error)
- func (service *Service) GetByName(networkServiceName string) (*NetworkServices, error)
- func (service *Service) GetNetworkServiceGroups(serviceGroupID int) (*NetworkServiceGroups, error)
- func (service *Service) GetNetworkServiceGroupsByName(serviceGroupsName string) (*NetworkServiceGroups, error)
- func (service *Service) Update(serviceID int, networkService *NetworkServices) (*NetworkServices, *http.Response, error)
- func (service *Service) UpdateNetworkServiceGroups(serviceGroupID int, networkServiceGroups *NetworkServiceGroups) (*NetworkServiceGroups, *http.Response, error)
- type Services
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetworkPorts ¶
type NetworkServiceGroups ¶
type NetworkServices ¶
type NetworkServices struct { ID int `json:"id"` Name string `json:"name,omitempty"` Tag string `json:"tag,omitempty"` SrcTCPPorts []NetworkPorts `json:"srcTcpPorts,omitempty"` DestTCPPorts []NetworkPorts `json:"destTcpPorts,omitempty"` SrcUDPPorts []NetworkPorts `json:"srcUdpPorts,omitempty"` DestUDPPorts []NetworkPorts `json:"destUdpPorts,omitempty"` Type string `json:"type,omitempty"` Description string `json:"description,omitempty"` Protocol string `json:"protocol,omitempty"` IsNameL10nTag bool `json:"isNameL10nTag,omitempty"` }
type Service ¶
func (*Service) Create ¶
func (service *Service) Create(networkService *NetworkServices) (*NetworkServices, error)
func (*Service) CreateNetworkServiceGroups ¶
func (service *Service) CreateNetworkServiceGroups(networkServiceGroups *NetworkServiceGroups) (*NetworkServiceGroups, error)
func (*Service) DeleteNetworkServiceGroups ¶
func (*Service) GetAllNetworkServiceGroups ¶ added in v0.0.4
func (service *Service) GetAllNetworkServiceGroups() ([]NetworkServiceGroups, error)
func (*Service) GetAllNetworkServices ¶ added in v0.0.4
func (service *Service) GetAllNetworkServices() ([]NetworkServices, error)
func (*Service) GetByName ¶
func (service *Service) GetByName(networkServiceName string) (*NetworkServices, error)
func (*Service) GetNetworkServiceGroups ¶
func (service *Service) GetNetworkServiceGroups(serviceGroupID int) (*NetworkServiceGroups, error)
func (*Service) GetNetworkServiceGroupsByName ¶
func (service *Service) GetNetworkServiceGroupsByName(serviceGroupsName string) (*NetworkServiceGroups, error)
func (*Service) Update ¶
func (service *Service) Update(serviceID int, networkService *NetworkServices) (*NetworkServices, *http.Response, error)
func (*Service) UpdateNetworkServiceGroups ¶
func (service *Service) UpdateNetworkServiceGroups(serviceGroupID int, networkServiceGroups *NetworkServiceGroups) (*NetworkServiceGroups, *http.Response, error)
type Services ¶
type Services struct { ID int `json:"id"` Name string `json:"name,omitempty"` Tag string `json:"tag,omitempty"` SrcTCPPorts []NetworkPorts `json:"srcTcpPorts,omitempty"` DestTCPPorts []NetworkPorts `json:"destTcpPorts,omitempty"` SrcUDPPorts []NetworkPorts `json:"srcUdpPorts,omitempty"` DestUDPPorts []NetworkPorts `json:"destUdpPorts,omitempty"` Type string `json:"type,omitempty"` Description string `json:"description,omitempty"` IsNameL10nTag bool `json:"isNameL10nTag,omitempty"` }
Click to show internal directories.
Click to hide internal directories.