Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient(token, accountID string, opts ...ClientOption) *client
Types ¶
type Client ¶
type Client interface {
ListZeroTrustUsers(ctx context.Context) ([]ZeroTrustUser, error)
}
type ClientOption ¶
type ClientOption func(*client)
ClientOption is a function that configures a Client.
func WithBaseURL ¶
func WithBaseURL(baseUrl string) ClientOption
WithBaseURL sets the base URL for the Cloudflare API client.
func WithHTTPClient ¶ added in v0.4.0
func WithHTTPClient(c HttpClient) ClientOption
WithHTTPClient sets the HTTP client for the Cloudflare API client.
Click to show internal directories.
Click to hide internal directories.