Versions in this module Expand all Collapse all v0 v0.1.0 Nov 9, 2026 Changes in this version + func IsChallenge(err error) bool + func StatusError(resp *http.Response) error + func Wrap(err error) error + type ChallengeError struct + Host string + Reason string + func (e *ChallengeError) Error() string + type Client struct + func New(opts Options) *Client + func (c *Client) HTTP() *http.Client + func (c *Client) Profile() *sourcev1.NetworkProfile + func (c *Client) SetProfile(p *sourcev1.NetworkProfile) error + type Options struct + CallTimeout time.Duration + ConnectTimeout time.Duration + Log *slog.Logger + ReadTimeout time.Duration + SharedJar func(name string) http.CookieJar + UserAgent string + type Sources struct + func NewSources(opts Options) *Sources + func (s *Sources) Client(sourceID string) *Client + func (s *Sources) HTTP(sourceID string) *http.Client + func (s *Sources) SetDefault(p *sourcev1.NetworkProfile) error + func (s *Sources) SetNetworkProfile(_ context.Context, req *sourcev1.SetNetworkProfileRequest) (*sourcev1.SetNetworkProfileResponse, error) + func (s *Sources) SetProfile(sourceID string, p *sourcev1.NetworkProfile) error