Versions in this module Expand all Collapse all v0 v0.1.1 Nov 14, 2023 v0.1.0 Oct 2, 2023 Changes in this version + var ErrEncodingResourcesQuery = errors.New("failed to encode resources query") + var ErrFetchingResources = errors.New("failed to fetch resources") + var ErrInitializingResourcesRequest = errors.New("failed to initialize resources request") + var ErrInvalidURL = errors.New("invalid URL") + var ErrMissingToken = errors.New("no API token provided") + type Client struct + func NewClient(config ClientConfig) (*Client, error) + func NewClientFromEnv() (*Client, error) + func (c *Client) Do(req *http.Request) (*http.Response, error) + func (c *Client) Resources(ctx context.Context, orgID string, params ResourcesParameters) (resources []ResourceObject, e error) + type ClientConfig struct + HTTPClient *http.Client + Token string + URL string + Version string + type CollectionDocumentRes struct + Data []ResourceObject + Links Links + type Links struct + Next string + type ResourceAttributes struct + Namespace string + ResourceID string + ResourceType string + State map[string]interface{} + Tags map[string]interface{} + type ResourceObject struct + Attributes ResourceAttributes + ID string + Type string + type ResourcesParameters struct + EnvironmentID []string + ID []string + Location []string + Name []string + NativeID []string + Platform []string + ResourceID []string + ResourceType []string