document

package
v2.24.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrWrongPayloadType     = errors.New("can't deploy a Dynatrace classic dashboard using the 'documents' type. Either use 'api: dashboard' to deploy a Dynatrace classic dashboard or update your payload to a Dynatrace platform dashboard")
	ErrMissingNameParameter = errors.New("missing name parameter")
)

Functions

This section is empty.

Types

type DeployAPI added in v2.24.0

type DeployAPI struct {
	// contains filtered or unexported fields
}

func NewDeployAPI added in v2.24.0

func NewDeployAPI(source DeploySource) *DeployAPI

func (DeployAPI) Deploy added in v2.24.0

func (d DeployAPI) Deploy(ctx context.Context, properties parameter.Properties, renderedConfig string, c *config.Config) (entities.ResolvedEntity, error)

type DeploySource added in v2.24.0

type DeploySource interface {
	List(ctx context.Context, filter string) (documents.ListResponse, error)
	Create(ctx context.Context, name string, isPrivate bool, externalId string, data []byte, documentType documents.DocumentType) (api.Response, error)
	Update(ctx context.Context, id string, name string, isPrivate bool, data []byte, documentType documents.DocumentType) (api.Response, error)
}

type DownloadAPI added in v2.24.0

type DownloadAPI struct {
	// contains filtered or unexported fields
}

func NewDownloadAPI added in v2.24.0

func NewDownloadAPI(documentSource DownloadSource) *DownloadAPI

func (DownloadAPI) Download added in v2.24.0

func (a DownloadAPI) Download(ctx context.Context, projectName string) (project.ConfigsPerType, error)

type DownloadSource added in v2.24.0

type DownloadSource interface {
	List(ctx context.Context, filter string) (documents.ListResponse, error)
	Get(ctx context.Context, id string) (documents.Response, error)
}

Jump to

Keyboard shortcuts

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