clients

package
v0.0.0-...-7c6f6d5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package clients contains 'smart' clients for the Dynatrace API.

These clients are generally based on those found in package api/clients, but implement logic to ensure the Dynatrace API can be used for configuration-as-code use-cases reliably.

For the underlying clients see package github.com/dynatrace/dynatrace-configuration-as-code-core/api/clients.

In general, whereas the CRUD api/clients make a single API call per operation, the ones in this package make several and react to API responses as needed.

For example, the clients in this package will resolve and follow pagination in their List methods, whereas an api/clients implementation requires/allows the user to handle pagination and make several requests on their own.

Clients implement the following methods:

  • Get
  • List
  • Create
  • Update
  • Upsert (Create or Update as needed)
  • Delete

A clients.Factory simplifies creation of clients.

Index

Constants

This section is empty.

Variables

View Source
var ErrEnvironmentURLMissing = errors.New("no environment URL provided")

ErrEnvironmentURLMissing indicates that no environment URL was provided.

View Source
var ErrOAuthCredentialsMissing = errors.New("no OAuth2 client credentials provided")

ErrOAuthCredentialsMissing indicates that no OAuth2 client credentials were provided.

Functions

func Factory

func Factory() factory

Factory creates a factory-like component that is used to create API client instances.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL