Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SORT_INPUT_TO_QUERY_MAP = map[string]string{
"created-at": "created_at",
"last-used": "last_accessed_at",
"size": "size_in_bytes",
}
Functions ¶
This section is empty.
Types ¶
type ActionsCache ¶
type BaseOptions ¶
func (*BaseOptions) GenerateBaseQueryParams ¶
func (o *BaseOptions) GenerateBaseQueryParams(query url.Values)
type DeleteApiResponse ¶
type DeleteApiResponse struct {
TotalCount int `json:"total_count"`
ActionsCaches []ActionsCache `json:"actions_caches"`
}
type DeleteOptions ¶
type DeleteOptions struct {
BaseOptions
Confirm bool
}
type HandledError ¶
func (HandledError) Error ¶
func (err HandledError) Error() string
Allow HandledError to satisfy error interface.
type ListApiResponse ¶
type ListApiResponse struct {
TotalCount int `json:"total_count"`
ActionsCaches []ActionsCache `json:"actions_caches"`
}
type ListOptions ¶
type ListOptions struct {
BaseOptions
Limit int
Order string
Sort string
}
func (*ListOptions) GenerateQueryParams ¶
func (o *ListOptions) GenerateQueryParams(query url.Values)
func (*ListOptions) Validate ¶
func (o *ListOptions) Validate() error
Click to show internal directories.
Click to hide internal directories.