Documentation ¶
Index ¶
- Constants
- type AddVirtualHostCommandInput
- type DeleteVirtualHostCommandInput
- type GetVirtualHostCommandInput
- type GetVirtualHostsCommandInput
- type UpdateVirtualHostCommandInput
- type VirtualhostsAPI
- type VirtualhostsService
- func (s *VirtualhostsService) AddVirtualHostCommand(input *AddVirtualHostCommandInput) (output *models.VirtualHostView, resp *http.Response, err error)
- func (s *VirtualhostsService) DeleteVirtualHostCommand(input *DeleteVirtualHostCommandInput) (resp *http.Response, err error)
- func (s *VirtualhostsService) GetVirtualHostCommand(input *GetVirtualHostCommandInput) (output *models.VirtualHostView, resp *http.Response, err error)
- func (s *VirtualhostsService) GetVirtualHostsCommand(input *GetVirtualHostsCommandInput) (output *models.VirtualHostsView, resp *http.Response, err error)
- func (s *VirtualhostsService) UpdateVirtualHostCommand(input *UpdateVirtualHostCommandInput) (output *models.VirtualHostView, resp *http.Response, err error)
Constants ¶
const (
// ServiceName - The name of service.
ServiceName = "Virtualhosts"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddVirtualHostCommandInput ¶
type AddVirtualHostCommandInput struct {
Body models.VirtualHostView
}
AddVirtualHostCommandInput - Inputs for AddVirtualHostCommand
type DeleteVirtualHostCommandInput ¶
type DeleteVirtualHostCommandInput struct {
Id string
}
DeleteVirtualHostCommandInput - Inputs for DeleteVirtualHostCommand
type GetVirtualHostCommandInput ¶
type GetVirtualHostCommandInput struct {
Id string
}
GetVirtualHostCommandInput - Inputs for GetVirtualHostCommand
type GetVirtualHostsCommandInput ¶
type GetVirtualHostsCommandInput struct { Page string NumberPerPage string Filter string VirtualHost string SortKey string Order string }
GetVirtualHostsCommandInput - Inputs for GetVirtualHostsCommand
type UpdateVirtualHostCommandInput ¶
type UpdateVirtualHostCommandInput struct { Body models.VirtualHostView Id string }
UpdateVirtualHostCommandInput - Inputs for UpdateVirtualHostCommand
type VirtualhostsAPI ¶
type VirtualhostsAPI interface { GetVirtualHostsCommand(input *GetVirtualHostsCommandInput) (output *models.VirtualHostsView, resp *http.Response, err error) AddVirtualHostCommand(input *AddVirtualHostCommandInput) (output *models.VirtualHostView, resp *http.Response, err error) DeleteVirtualHostCommand(input *DeleteVirtualHostCommandInput) (resp *http.Response, err error) GetVirtualHostCommand(input *GetVirtualHostCommandInput) (output *models.VirtualHostView, resp *http.Response, err error) UpdateVirtualHostCommand(input *UpdateVirtualHostCommandInput) (output *models.VirtualHostView, resp *http.Response, err error) }
type VirtualhostsService ¶
VirtualhostsService provides the API operations for making requests to Virtualhosts endpoint.
func New ¶
func New(cfg *config.Config) *VirtualhostsService
New createa a new instance of the VirtualhostsService client.
Example:
cfg := config.NewConfig().WithUsername("Administrator").WithPassword("2FederateM0re").WithEndpoint(paURL.String()) //Create a VirtualhostsService from the configuration svc := virtualhosts.New(cfg)
func (*VirtualhostsService) AddVirtualHostCommand ¶
func (s *VirtualhostsService) AddVirtualHostCommand(input *AddVirtualHostCommandInput) (output *models.VirtualHostView, resp *http.Response, err error)
AddVirtualHostCommand - Create a Virtual Host RequestType: POST Input: input *AddVirtualHostCommandInput
func (*VirtualhostsService) DeleteVirtualHostCommand ¶
func (s *VirtualhostsService) DeleteVirtualHostCommand(input *DeleteVirtualHostCommandInput) (resp *http.Response, err error)
DeleteVirtualHostCommand - Delete a Virtual Host RequestType: DELETE Input: input *DeleteVirtualHostCommandInput
func (*VirtualhostsService) GetVirtualHostCommand ¶
func (s *VirtualhostsService) GetVirtualHostCommand(input *GetVirtualHostCommandInput) (output *models.VirtualHostView, resp *http.Response, err error)
GetVirtualHostCommand - Get a Virtual Host RequestType: GET Input: input *GetVirtualHostCommandInput
func (*VirtualhostsService) GetVirtualHostsCommand ¶
func (s *VirtualhostsService) GetVirtualHostsCommand(input *GetVirtualHostsCommandInput) (output *models.VirtualHostsView, resp *http.Response, err error)
GetVirtualHostsCommand - Get all Virtual Hosts RequestType: GET Input: input *GetVirtualHostsCommandInput
func (*VirtualhostsService) UpdateVirtualHostCommand ¶
func (s *VirtualhostsService) UpdateVirtualHostCommand(input *UpdateVirtualHostCommandInput) (output *models.VirtualHostView, resp *http.Response, err error)
UpdateVirtualHostCommand - Update a Virtual Host RequestType: PUT Input: input *UpdateVirtualHostCommandInput