Documentation
¶
Index ¶
- type Client
- func (c Client) Create(ctx context.Context, name string, isPrivate bool, externalId string, ...) (api.Response, error)
- func (c Client) Delete(ctx context.Context, id string) (api.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, ...) (api.Response, error)
- type DocumentType
- type ListResponse
- type Metadata
- 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
DocumentType defines the *known* types of documents. It is possible to pass an arbitrary string in consumers to download any kind of document.
const ( Dashboard DocumentType = "dashboard" Notebook DocumentType = "notebook" Launchpad DocumentType = "launchpad" )
type ListResponse ¶
ListResponse is a list of API Responses
type Metadata ¶
type Metadata struct { 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"` OriginAppID *string `json:"originAppId,omitempty"` }
func UnmarshallMetadata ¶
Click to show internal directories.
Click to hide internal directories.