Documentation ¶
Index ¶
- type Client
- func (c Client) Create(ctx context.Context, name string, isPrivate bool, externalId string, ...) (Response, error)
- func (c Client) Delete(ctx context.Context, id string) (Response, error)
- func (c Client) Get(ctx context.Context, id string) (Response, error)
- func (c Client) List(ctx context.Context, filter string) (ListResponse, error)
- func (c Client) Update(ctx context.Context, id string, name string, isPrivate bool, data []byte, ...) (Response, error)
- type DocumentType
- type ListResponse
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the HTTP client to be used for interacting with the Document API
type DocumentType ¶
type DocumentType string
const ( Dashboard DocumentType = "dashboard" Notebook DocumentType = "notebook" )
type ListResponse ¶
ListResponse is a list of API Responses
type Response ¶
type Response struct { api.Response // Metadata fields ID string `json:"id"` ExternalID string `json:"externalId"` Actor string `json:"actor"` Owner string `json:"owner"` Name string `json:"name"` Type string `json:"type"` Version int `json:"version"` IsPrivate bool `json:"isPrivate"` }
Response contains the API response
Click to show internal directories.
Click to hide internal directories.