Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithClientRequestLimiter ¶
func WithClientRequestLimiter(limiter *concurrency.Limiter) func(client *Client)
WithClientRequestLimiter specifies that a specifies the limiter to be used for limiting parallel client requests
func WithCustomUserAgentString ¶
WithCustomUserAgentString allows to configure a custom user-agent string that the Client will send with each HTTP request If none is set, the default Monaco CLI specific user-agent is sent.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client can be used to interact with the Automation API
func NewClient ¶
func NewClient(url string, client *http.Client, opts ...ClientOption) *Client
NewClient creates a new client to interact with the Automation API
func (Client) Delete ¶
func (a Client) Delete(resourceType ResourceType, id string) (err error)
Delete removes a given automation object by ID
type ClientOption ¶
type ClientOption func(*Client)
ClientOption are (optional) additional parameter passed to the creation of an automation client
type Resource ¶
type Resource struct { // Path is the API path to be used for this resource Path string }
Resource specifies information about a specific resource
type ResourceType ¶
type ResourceType int
ResourceType enumerates different kind of resources
const ( Workflows ResourceType = iota BusinessCalendars SchedulingRules )