Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { SetDebug(bool) Client ListFolders(ctx context.Context) ([]FolderHit, error) GetFolder(ctx context.Context, id int) (*Folder, error) CreateFolder(ctx context.Context, params CreateFolderParams) (*Folder, error) ImportDashboard(ctx context.Context, dashboard []byte, params ImportDashboardParams) error }
type CreateFolderParams ¶
type CreateFolderParams struct {
Title string `json:"title"`
}
type Folder ¶
type Folder struct { FolderHit CanAdmin bool `json:"canAdmin"` CanEdit bool `json:"canEdit"` CanSave bool `json:"canSave"` Created time.Time `json:"created"` CreatedBy string `json:"createdBy"` HasAcl bool `json:"hasAcl"` Updated time.Time `json:"updated"` UpdatedBy string `json:"updatedBy"` Url string `json:"url"` Version int `json:"version"` }
type ImportDashboardData ¶
type ImportDashboardData struct { ImportDashboardParams Dashboard map[string]interface{} `json:"dashboard"` }
type ImportDashboardInput ¶
type ImportDashboardParams ¶
type ImportDashboardParams struct { FolderId int `json:"folderId"` Overwrite bool `json:"overwrite"` Inputs []ImportDashboardInput `json:"inputs"` }
Click to show internal directories.
Click to hide internal directories.