api

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPromptsFromApi

func GetPromptsFromApi(ctx context.Context, auth DatadogAuth) ([]api.AiPrompt, error)

func GetPromptsFromApiData

func GetPromptsFromApiData(data io.ReadCloser) ([]api.AiPrompt, error)

Types

type DatadogAuth

type DatadogAuth struct {
	Site     string
	AppKey   *string
	ApiKey   *string
	JWTToken *string
}

func GetDatadogAuth

func GetDatadogAuth() (DatadogAuth, error)

func (*DatadogAuth) HasAPIKeyAuth

func (auth *DatadogAuth) HasAPIKeyAuth() bool

func (*DatadogAuth) HasAnyAuth

func (auth *DatadogAuth) HasAnyAuth() bool

func (*DatadogAuth) HasJWTAuth

func (auth *DatadogAuth) HasJWTAuth() bool

Jump to

Keyboard shortcuts

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