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 dns object.
func (*Client) Delete ¶
func (c *Client) Delete(ctx context.Context, req *DeleteRequest) (*DeleteResponse, error)
Delete Delete sdn dns object configuration.
func (*Client) Find ¶
func (c *Client) Find(ctx context.Context, req *FindRequest) (*FindResponse, error)
Find Read sdn dns configuration.
func (*Client) Index ¶
func (c *Client) Index(ctx context.Context, req *IndexRequest) (*IndexResponse, error)
Index SDN dns index.
func (*Client) Update ¶
func (c *Client) Update(ctx context.Context, req *UpdateRequest) (*UpdateResponse, error)
Update Update sdn dns object configuration.
type CreateRequest ¶
type CreateRequest struct { Dns string `url:"dns",json:"dns"` // The SDN dns object identifier. Key string `url:"key",json:"key"` Type string `url:"type",json:"type"` // Plugin type. Url string `url:"url",json:"url"` // The following parameters are optional Reversemaskv6 *int `url:"reversemaskv6,omitempty",json:"reversemaskv6,omitempty"` Reversev6mask *int `url:"reversev6mask,omitempty",json:"reversev6mask,omitempty"` Ttl *int `url:"ttl,omitempty",json:"ttl,omitempty"` }
type CreateResponse ¶
type CreateResponse map[string]interface{}
type DeleteRequest ¶
type DeleteRequest struct {
Dns string `url:"dns",json:"dns"` // The SDN dns object identifier.
}
type DeleteResponse ¶
type DeleteResponse map[string]interface{}
type FindRequest ¶
type FindRequest struct {
Dns string `url:"dns",json:"dns"` // The SDN dns object identifier.
}
type FindResponse ¶
type FindResponse map[string]interface{}
type HTTPClient ¶
type IndexRequest ¶
type IndexRequest struct { // The following parameters are optional Type *string `url:"type,omitempty",json:"type,omitempty"` // Only list sdn dns of specific type }
type IndexResponse ¶
type UpdateRequest ¶
type UpdateRequest struct { Dns string `url:"dns",json:"dns"` // The SDN dns 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. Key *string `url:"key,omitempty",json:"key,omitempty"` Reversemaskv6 *int `url:"reversemaskv6,omitempty",json:"reversemaskv6,omitempty"` Ttl *int `url:"ttl,omitempty",json:"ttl,omitempty"` Url *string `url:"url,omitempty",json:"url,omitempty"` }
type UpdateResponse ¶
type UpdateResponse map[string]interface{}
Click to show internal directories.
Click to hide internal directories.