Versions in this module Expand all Collapse all v0 v0.4.0 May 15, 2024 v0.3.0 Dec 27, 2022 v0.2.0 Jul 26, 2022 v0.1.2 Jul 6, 2022 v0.1.1 Jun 30, 2022 v0.1.0 Jun 27, 2022 Changes in this version + const UIDCustomFieldName + type Client interface + CreateTag func(ctx context.Context, tag string) (*Tag, error) + DeleteIP func(ctx context.Context, uid UID) error + GetIP func(ctx context.Context, uid UID) (*IPAddress, error) + GetTag func(ctx context.Context, tag string) (*Tag, error) + UpsertIP func(ctx context.Context, ip *IPAddress) (*IPAddress, error) + UpsertUIDField func(ctx context.Context) error + func NewClient(apiURL, apiToken string, opts ...ClientOption) (Client, error) + func NewFakeClient(tags map[string]Tag, ips map[UID]IPAddress) Client + type ClientOption func(*client) error + func WithCARootCert(path string) ClientOption + func WithLogger(logger *log.Logger) ClientOption + func WithRateLimiter(refillRate rate.Limit, bucketSize int) ClientOption + type CustomField struct + ContentTypes []string + Description string + FilterLogic LabeledString + ID int64 + Label string + Name string + Required bool + Type LabeledString + ValidationRegex string + Weight int64 + type CustomFieldList struct + Count uint + Results []CustomField + type IP netip.Addr + func (ip *IP) UnmarshalJSON(b []byte) error + func (ip IP) MarshalText() ([]byte, error) + type IPAddress struct + Address IP + DNSName string + Description string + ID int64 + Tags []Tag + UID UID + type IPAddressList struct + Count uint + Results []IPAddress + type LabeledString string + func (v *LabeledString) UnmarshalJSON(b []byte) error + type Tag struct + ID int64 + Name string + Slug string + type TagList struct + Count uint + Results []Tag + type UID string + func (uid *UID) UnmarshalJSON(b []byte) error + func (uid UID) MarshalJSON() ([]byte, error)