ip_address

package
v3.3.302 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2026 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package ip_address provides the Files.com IpAddress API client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	files_sdk.Config
}

Client calls the IpAddress API using its embedded Config.

func (*Client) GetExavaultReserved

func (c *Client) GetExavaultReserved(params files_sdk.IpAddressGetExavaultReservedParams, opts ...files_sdk.RequestResponseOption) (*Iter, error)

GetExavaultReserved returns an iterator for GET /ip_addresses/exavault-reserved. Pages are requested as iteration reaches them: range over Iter.All, or call Next and then check Err. Iter.All yields this listing's resources as files_sdk.PublicIpAddress values.

API operation: List all possible public ExaVault IP addresses.

func (*Client) GetReserved

GetReserved returns an iterator for GET /ip_addresses/reserved. Pages are requested as iteration reaches them: range over Iter.All, or call Next and then check Err. Iter.All yields this listing's resources as files_sdk.PublicIpAddress values.

API operation: List all possible public IP addresses.

func (*Client) GetSmartfileReserved added in v3.1.23

func (c *Client) GetSmartfileReserved(params files_sdk.IpAddressGetSmartfileReservedParams, opts ...files_sdk.RequestResponseOption) (*Iter, error)

GetSmartfileReserved returns an iterator for GET /ip_addresses/smartfile-reserved. Pages are requested as iteration reaches them: range over Iter.All, or call Next and then check Err. Iter.All yields this listing's resources as files_sdk.PublicIpAddress values.

API operation: List all possible public SmartFile IP addresses.

func (*Client) List

List returns an iterator for GET /ip_addresses. Pages are requested as iteration reaches them: range over Iter.All, or call Next and then check Err. Iter.All yields this listing's resources as files_sdk.IpAddress values.

API operation: List IP Addresses associated with the current site.

type Iter

type Iter struct {
	*files_sdk.Iter
	*Client
}

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 GetExavaultReserved

GetExavaultReserved returns a listing iterator using the default configuration. See Client.GetExavaultReserved for the operation and paging behavior.

func GetReserved

GetReserved returns a listing iterator using the default configuration. See Client.GetReserved for the operation and paging behavior.

func GetSmartfileReserved added in v3.1.23

GetSmartfileReserved returns a listing iterator using the default configuration. See Client.GetSmartfileReserved for the operation and paging behavior.

func List

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

func (i *Iter) All() iter.Seq2[any, error]

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.

This package's listings return different types, so All yields each resource unchanged, as an any value; use a type assertion or type switch to read it. List yields files_sdk.IpAddress values, and GetSmartfileReserved, GetExavaultReserved, and GetReserved yield files_sdk.PublicIpAddress values.

func (*Iter) IpAddress

func (i *Iter) IpAddress() files_sdk.IpAddress

IpAddress returns the current resource. Call it only after Next returns true.

func (*Iter) PublicIpAddress

func (i *Iter) PublicIpAddress() files_sdk.PublicIpAddress

PublicIpAddress returns the current resource. Call it only after Next returns true.

func (*Iter) Reload

func (i *Iter) Reload(opts ...files_sdk.RequestResponseOption) files_sdk.IterI

Reload returns a new iterator for the same listing, starting at the first page. See files_sdk.Iter.Reload for parameter and request-option handling.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL