Documentation ¶
Index ¶
- func Create(params CreateParams) (*models.Extension, error)
- func Delete(params DeleteParams) error
- func Get(params GetParams) (*models.Extension, error)
- func List(params ListParams) (*models.Extensions, error)
- func Update(params UpdateParams) (*models.Extension, error)
- func Upload(params UploadParams) (*models.Extension, error)
- type CreateParams
- type DeleteParams
- type GetParams
- type ListParams
- type UpdateParams
- type UploadParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(params CreateParams) (*models.Extension, error)
Create creates a new extension.
func List ¶
func List(params ListParams) (*models.Extensions, error)
List returns a list of extensions.
Types ¶
type CreateParams ¶
type CreateParams struct { *api.API Name string Version string Type string DownloadURL string Description string }
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 ExtensionID string `json:"extension_id,omitempty"` Description string `json:"description,omitempty"` DownloadURL string `json:"download_url,omitempty"` Type string `json:"extension_type"` Name string `json:"name"` Version string `json:"version"` }
UpdateParams is consumed by the Update function.
func NewUpdateRequestFromGet ¶ added in v1.4.0
func NewUpdateRequestFromGet(res *models.Extension) *UpdateParams
NewUpdateRequestFromGet populates UpdateParams from models.Extension
func (UpdateParams) Validate ¶
func (params UpdateParams) Validate() error
Validate ensures the parameters are usable by Update.
type UploadParams ¶ added in v1.3.0
UploadParams is consumed by the Upload function.
func (UploadParams) Validate ¶ added in v1.3.0
func (params UploadParams) Validate() error
Validate ensures the parameters are usable by Upload.
Click to show internal directories.
Click to hide internal directories.