Documentation ¶
Index ¶
- func Create(params CreateParams) (string, error)
- func Delete(params DeleteParams) error
- func Get(params GetParams) (*models.Comment, error)
- func List(params ListParams) (*models.CommentsWithMetas, error)
- func Update(params UpdateParams) (string, error)
- type CreateParams
- type DeleteParams
- type GetParams
- type ListParams
- type UpdateParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(params CreateParams) (string, error)
Create creates a comment to the given resource and returns a reference ID.
func Delete ¶
func Delete(params DeleteParams) error
Delete delete the comment of the given combination of comment ID, version, resource type and resource ID.
func Get ¶
Get fetches the comment of the given combination of comment ID, resource type and resource ID.
func List ¶
func List(params ListParams) (*models.CommentsWithMetas, error)
List fetches the comment of the given combination of comment ID, resource type and resource ID.
func Update ¶
func Update(params UpdateParams) (string, error)
Update creates a comment to the given resource and returns a reference ID.
Types ¶
type CreateParams ¶
CreateParams is consumed by the Create function.
func (CreateParams) Validate ¶
func (params CreateParams) Validate() error
Validate ensures the parameters are usable by Create.
type DeleteParams ¶
DeleteParams is consumed by the Delete function.
func (DeleteParams) Validate ¶
func (params DeleteParams) Validate() error
Validate ensures the parameters are usable by Delete.
type ListParams ¶
ListParams is consumed by the List function.
func (ListParams) Validate ¶
func (params ListParams) Validate() error
Validate ensures the parameters are usable by List.
type UpdateParams ¶
type UpdateParams struct { *api.API ResourceType, ResourceID, Message, CommentID, Version, Region string }
UpdateParams is consumed by the Update function.
func (UpdateParams) Validate ¶
func (params UpdateParams) Validate() error
Validate ensures the parameters are usable by Update.