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
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)
Click to show internal directories.
Click to hide internal directories.