Documentation
¶
Overview ¶
Package custom_domain provides the Files.com CustomDomain API client.
Index ¶
- func Create(params files_sdk.CustomDomainCreateParams, ...) (customDomain files_sdk.CustomDomain, err error)
- func CreateAllocateIp(params files_sdk.CustomDomainCreateAllocateIpParams, ...) (customDomain files_sdk.CustomDomain, err error)
- func Delete(params files_sdk.CustomDomainDeleteParams, ...) (err error)
- func Find(params files_sdk.CustomDomainFindParams, ...) (customDomain files_sdk.CustomDomain, err error)
- func Update(params files_sdk.CustomDomainUpdateParams, ...) (customDomain files_sdk.CustomDomain, err error)
- func UpdateWithMap(params map[string]interface{}, opts ...files_sdk.RequestResponseOption) (customDomain files_sdk.CustomDomain, err error)
- type Client
- func (c *Client) Create(params files_sdk.CustomDomainCreateParams, ...) (customDomain files_sdk.CustomDomain, err error)
- func (c *Client) CreateAllocateIp(params files_sdk.CustomDomainCreateAllocateIpParams, ...) (customDomain files_sdk.CustomDomain, err error)
- func (c *Client) Delete(params files_sdk.CustomDomainDeleteParams, ...) (err error)
- func (c *Client) Find(params files_sdk.CustomDomainFindParams, ...) (customDomain files_sdk.CustomDomain, err error)
- func (c *Client) List(params files_sdk.CustomDomainListParams, ...) (*Iter, error)
- func (c *Client) Update(params files_sdk.CustomDomainUpdateParams, ...) (customDomain files_sdk.CustomDomain, err error)
- func (c *Client) UpdateWithMap(params map[string]interface{}, opts ...files_sdk.RequestResponseOption) (customDomain files_sdk.CustomDomain, err error)
- type Iter
- func (i *Iter) All() iter.Seq2[files_sdk.CustomDomain, error]
- func (i *Iter) CustomDomain() files_sdk.CustomDomain
- func (i *Iter) LoadResource(identifier interface{}, opts ...files_sdk.RequestResponseOption) (interface{}, error)
- func (i *Iter) Reload(opts ...files_sdk.RequestResponseOption) files_sdk.IterI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(params files_sdk.CustomDomainCreateParams, opts ...files_sdk.RequestResponseOption) (customDomain files_sdk.CustomDomain, err error)
Create calls Client.Create using the default configuration.
func CreateAllocateIp ¶ added in v3.3.249
func CreateAllocateIp(params files_sdk.CustomDomainCreateAllocateIpParams, opts ...files_sdk.RequestResponseOption) (customDomain files_sdk.CustomDomain, err error)
CreateAllocateIp calls Client.CreateAllocateIp using the default configuration.
func Delete ¶
func Delete(params files_sdk.CustomDomainDeleteParams, opts ...files_sdk.RequestResponseOption) (err error)
Delete calls Client.Delete using the default configuration.
func Find ¶
func Find(params files_sdk.CustomDomainFindParams, opts ...files_sdk.RequestResponseOption) (customDomain files_sdk.CustomDomain, err error)
Find calls Client.Find using the default configuration.
func Update ¶
func Update(params files_sdk.CustomDomainUpdateParams, opts ...files_sdk.RequestResponseOption) (customDomain files_sdk.CustomDomain, err error)
Update calls Client.Update using the default configuration.
func UpdateWithMap ¶
func UpdateWithMap(params map[string]interface{}, opts ...files_sdk.RequestResponseOption) (customDomain files_sdk.CustomDomain, err error)
UpdateWithMap calls Client.UpdateWithMap using the default configuration.
Types ¶
type Client ¶
Client calls the CustomDomain API using its embedded Config.
func (*Client) Create ¶
func (c *Client) Create(params files_sdk.CustomDomainCreateParams, opts ...files_sdk.RequestResponseOption) (customDomain files_sdk.CustomDomain, err error)
Create calls POST /custom_domains.
func (*Client) CreateAllocateIp ¶ added in v3.3.249
func (c *Client) CreateAllocateIp(params files_sdk.CustomDomainCreateAllocateIpParams, opts ...files_sdk.RequestResponseOption) (customDomain files_sdk.CustomDomain, err error)
CreateAllocateIp calls POST /custom_domains/{id}/allocate_ips.
API operation: Allocate dedicated IP addresses to this Custom Domain.
func (*Client) Delete ¶
func (c *Client) Delete(params files_sdk.CustomDomainDeleteParams, opts ...files_sdk.RequestResponseOption) (err error)
Delete calls DELETE /custom_domains/{id}.
func (*Client) Find ¶
func (c *Client) Find(params files_sdk.CustomDomainFindParams, opts ...files_sdk.RequestResponseOption) (customDomain files_sdk.CustomDomain, err error)
Find calls GET /custom_domains/{id}.
func (*Client) List ¶
func (c *Client) List(params files_sdk.CustomDomainListParams, opts ...files_sdk.RequestResponseOption) (*Iter, error)
List returns an iterator for GET /custom_domains. Pages are requested as iteration reaches them: range over Iter.All, or call Next and then check Err.
func (*Client) Update ¶
func (c *Client) Update(params files_sdk.CustomDomainUpdateParams, opts ...files_sdk.RequestResponseOption) (customDomain files_sdk.CustomDomain, err error)
Update calls PATCH /custom_domains/{id}.
func (*Client) UpdateWithMap ¶
func (c *Client) UpdateWithMap(params map[string]interface{}, opts ...files_sdk.RequestResponseOption) (customDomain files_sdk.CustomDomain, err error)
UpdateWithMap calls PATCH /custom_domains/{id} using API parameter names as map keys. Include any path parameters in the map. Unlike optional struct fields, explicit zero values in the map are included in the request.
type Iter ¶
Iter traverses a paginated API response. Range over All to get each resource with a nil error, followed by the error that stopped the listing, if any. Alternatively, call Next before reading the current resource, then check Err after Next returns false.
func List ¶
func List(params files_sdk.CustomDomainListParams, opts ...files_sdk.RequestResponseOption) (*Iter, error)
List returns a listing iterator using the default configuration. See Client.List for the operation and paging behavior.
func (*Iter) All ¶ added in v3.3.301
All returns an iterator over the listing's remaining resources, each with a nil error, followed by the error that stops the listing, if any. Pages are requested as the loop reaches them. See files_sdk.IterAll.
func (*Iter) CustomDomain ¶
func (i *Iter) CustomDomain() files_sdk.CustomDomain
CustomDomain returns the current resource. Call it only after Next returns true.
func (*Iter) LoadResource ¶
func (i *Iter) LoadResource(identifier interface{}, opts ...files_sdk.RequestResponseOption) (interface{}, error)
LoadResource fetches a resource by its ID. identifier must have type int64.