Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IgnoreLinodeAPIError ¶
IgnoreLinodeAPIError returns the error except matches to status code
func UnwrapError ¶ added in v0.2.1
UnwrapError safely unwraps an error until it can't be unwrapped.
Types ¶
type Filter ¶
type Filter struct { ID *int // Filter on the resource's ID (most specific). Label string // Filter on the resource's label. Tags []string // Filter resources by their tags (least specific). AdditionalFilters map[string]string // Filter resources by additional parameters }
Filter holds the fields used for filtering results from the Linode API.
The fields within Filter are prioritized so that only the most-specific field is present when Filter is marshaled to JSON.
func (Filter) MarshalJSON ¶
MarshalJSON returns a JSON-encoded representation of a Filter. The resulting encoded value will have exactly 1 (one) field present. See Filter for details on the value precedence.
Click to show internal directories.
Click to hide internal directories.