Documentation
¶
Index ¶
- type Client
- func (c *Client) Create(ctx context.Context, req *CreateRequest) (*CreateResponse, error)
- func (c *Client) Delete(ctx context.Context, req *DeleteRequest) (*DeleteResponse, error)
- func (c *Client) Find(ctx context.Context, req *FindRequest) (*FindResponse, error)
- func (c *Client) Index(ctx context.Context, req *IndexRequest) (*IndexResponse, error)
- func (c *Client) Update(ctx context.Context, req *UpdateRequest) (*UpdateResponse, error)
- type CreateRequest
- type CreateResponse
- type DeleteRequest
- type DeleteResponse
- type FindRequest
- type FindResponse
- type HTTPClient
- type IndexRequest
- type IndexResponse
- type UpdateRequest
- type UpdateResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func New ¶
func New(c HTTPClient) *Client
func (*Client) Create ¶
func (c *Client) Create(ctx context.Context, req *CreateRequest) (*CreateResponse, error)
Create Create a new sdn subnet object.
func (*Client) Delete ¶
func (c *Client) Delete(ctx context.Context, req *DeleteRequest) (*DeleteResponse, error)
Delete Delete sdn subnet object configuration.
func (*Client) Find ¶
func (c *Client) Find(ctx context.Context, req *FindRequest) (*FindResponse, error)
Find Read sdn subnet configuration.
func (*Client) Index ¶
func (c *Client) Index(ctx context.Context, req *IndexRequest) (*IndexResponse, error)
Index SDN subnets index.
func (*Client) Update ¶
func (c *Client) Update(ctx context.Context, req *UpdateRequest) (*UpdateResponse, error)
Update Update sdn subnet object configuration.
type CreateRequest ¶
type CreateRequest struct { Subnet string `url:"subnet",json:"subnet"` // The SDN subnet object identifier. Type string `url:"type",json:"type"` Vnet string `url:"vnet",json:"vnet"` // associated vnet // The following parameters are optional Dnszoneprefix *string `url:"dnszoneprefix,omitempty",json:"dnszoneprefix,omitempty"` // dns domain zone prefix ex: 'adm' -> <hostname>.adm.mydomain.com Gateway *string `url:"gateway,omitempty",json:"gateway,omitempty"` // Subnet Gateway: Will be assign on vnet for layer3 zones Snat *bool `url:"snat,omitempty",json:"snat,omitempty"` // enable masquerade for this subnet if pve-firewall }
type CreateResponse ¶
type CreateResponse map[string]interface{}
type DeleteRequest ¶
type DeleteResponse ¶
type DeleteResponse map[string]interface{}
type FindRequest ¶
type FindRequest struct { Subnet string `url:"subnet",json:"subnet"` // The SDN subnet object identifier. Vnet string `url:"vnet",json:"vnet"` // The SDN vnet object identifier. // The following parameters are optional Pending *bool `url:"pending,omitempty",json:"pending,omitempty"` // Display pending config. Running *bool `url:"running,omitempty",json:"running,omitempty"` // Display running config. }
type FindResponse ¶
type FindResponse map[string]interface{}
type HTTPClient ¶
type IndexRequest ¶
type IndexRequest struct { Vnet string `url:"vnet",json:"vnet"` // The SDN vnet object identifier. // The following parameters are optional Pending *bool `url:"pending,omitempty",json:"pending,omitempty"` // Display pending config. Running *bool `url:"running,omitempty",json:"running,omitempty"` // Display running config. }
type IndexResponse ¶
type IndexResponse []*map[string]interface{}
type UpdateRequest ¶
type UpdateRequest struct { Subnet string `url:"subnet",json:"subnet"` // The SDN subnet object identifier. // The following parameters are optional Delete *string `url:"delete,omitempty",json:"delete,omitempty"` // A list of settings you want to delete. Digest *string `url:"digest,omitempty",json:"digest,omitempty"` // Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications. Dnszoneprefix *string `url:"dnszoneprefix,omitempty",json:"dnszoneprefix,omitempty"` // dns domain zone prefix ex: 'adm' -> <hostname>.adm.mydomain.com Gateway *string `url:"gateway,omitempty",json:"gateway,omitempty"` // Subnet Gateway: Will be assign on vnet for layer3 zones Snat *bool `url:"snat,omitempty",json:"snat,omitempty"` // enable masquerade for this subnet if pve-firewall Vnet *string `url:"vnet,omitempty",json:"vnet,omitempty"` // associated vnet }
type UpdateResponse ¶
type UpdateResponse map[string]interface{}
Click to show internal directories.
Click to hide internal directories.