Documentation ¶
Index ¶
- type AddonClient
- func (c AddonClient) CreatePleskLicense(in PleskLicenseCreateRequest) (PleskLicenseSingleResponse, *http.Response, error)
- func (c AddonClient) CreateSSLCertificate(in SSLCertificateCreateRequest) (SSLCertificateSingleResponse, *http.Response, error)
- func (c AddonClient) CreateSSLContact(in SSLContactCreateRequest) (SSLContactSingleResponse, *http.Response, error)
- func (c AddonClient) CreateSSLOrganisation(in SSLOrganisationCreateRequest) (SSLOrganisationSingleResponse, *http.Response, error)
- func (c AddonClient) DeleteSSLContact(id string) (EmptyResponse, *http.Response, error)
- func (c AddonClient) DeleteSSLOrganisation(id string) (EmptyResponse, *http.Response, error)
- func (c *AddonClient) GetCurrentProject() string
- func (c AddonClient) GetPleskLicense(id string) (PleskLicenseSingleResponse, *http.Response, error)
- func (c AddonClient) GetPleskLicenseType(id string) (PleskLicenseTypeSingleResponse, *http.Response, error)
- func (c AddonClient) GetPleskLicenseTypes(qParams GetPleskLicenseTypesQueryParams) (PleskLicenseTypeListResponse, *http.Response, error)
- func (c AddonClient) GetPleskLicenses(qParams GetPleskLicensesQueryParams) (PleskLicenseListResponse, *http.Response, error)
- func (c AddonClient) GetSSLCertificate(id string) (SSLCertificateSingleResponse, *http.Response, error)
- func (c AddonClient) GetSSLCertificates(qParams GetSSLCertificatesQueryParams) (SSLCertificateListResponse, *http.Response, error)
- func (c AddonClient) GetSSLContact(id string) (SSLContactSingleResponse, *http.Response, error)
- func (c AddonClient) GetSSLContacts(qParams GetSSLContactsQueryParams) (SSLContactListResponse, *http.Response, error)
- func (c AddonClient) GetSSLOrganisation(id string) (SSLOrganisationSingleResponse, *http.Response, error)
- func (c AddonClient) GetSSLOrganisations(qParams GetSSLOrganisationsQueryParams) (SSLOrganisationListResponse, *http.Response, error)
- func (c AddonClient) GetSSLType(id string) (SSLTypeSingleResponse, *http.Response, error)
- func (c AddonClient) GetSSLTypes(qParams GetSSLTypesQueryParams) (SSLTypeListResponse, *http.Response, error)
- func (c *AddonClient) Request(method string, path string, postBody io.Reader) (*http.Response, []byte, error)
- func (c AddonClient) Search(qParams SearchQueryParams) (SearchResponse, *http.Response, error)
- func (c *AddonClient) SetAccessToken(token string)
- func (c *AddonClient) SetCurrentProject(project string)
- func (c *AddonClient) SetHttpClient(client *http.Client)
- func (c AddonClient) UpdatePleskLicense(in PleskLicenseUpdateRequest, id string) (PleskLicenseSingleResponse, *http.Response, error)
- type EmptyResponse
- type GetPleskLicenseTypesQueryParams
- type GetPleskLicensesQueryParams
- type GetPleskLicensesQueryParamsFilter
- type GetSSLCertificatesQueryParams
- type GetSSLCertificatesQueryParamsFilter
- type GetSSLContactsQueryParams
- type GetSSLContactsQueryParamsFilter
- type GetSSLOrganisationsQueryParams
- type GetSSLOrganisationsQueryParamsFilter
- type GetSSLTypesQueryParams
- type InvalidRequestResponse
- type PleskLicense
- type PleskLicenseCreateRequest
- type PleskLicenseListResponse
- type PleskLicenseSingleResponse
- type PleskLicenseType
- type PleskLicenseTypeListResponse
- type PleskLicenseTypeSingleResponse
- type PleskLicenseUpdateRequest
- type ResponseMessage
- type ResponseMessages
- type ResponseMetadata
- type ResponsePagination
- type SSLCertificate
- type SSLCertificateCreateRequest
- type SSLCertificateListResponse
- type SSLCertificateSingleResponse
- type SSLContact
- type SSLContactCreateRequest
- type SSLContactListResponse
- type SSLContactSingleResponse
- type SSLOrganisation
- type SSLOrganisationCreateRequest
- type SSLOrganisationListResponse
- type SSLOrganisationSingleResponse
- type SSLType
- type SSLTypeListResponse
- type SSLTypeSingleResponse
- type SearchQueryParams
- type SearchQueryParamsLabels
- type SearchResponse
- type SearchResults
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddonClient ¶
type AddonClient struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(apiKey string) AddonClient
func NewClientWithUrl ¶
func NewClientWithUrl(apiKey string, baseUrl string) AddonClient
func (AddonClient) CreatePleskLicense ¶
func (c AddonClient) CreatePleskLicense(in PleskLicenseCreateRequest) (PleskLicenseSingleResponse, *http.Response, error)
func (AddonClient) CreateSSLCertificate ¶
func (c AddonClient) CreateSSLCertificate(in SSLCertificateCreateRequest) (SSLCertificateSingleResponse, *http.Response, error)
func (AddonClient) CreateSSLContact ¶
func (c AddonClient) CreateSSLContact(in SSLContactCreateRequest) (SSLContactSingleResponse, *http.Response, error)
func (AddonClient) CreateSSLOrganisation ¶
func (c AddonClient) CreateSSLOrganisation(in SSLOrganisationCreateRequest) (SSLOrganisationSingleResponse, *http.Response, error)
func (AddonClient) DeleteSSLContact ¶
func (c AddonClient) DeleteSSLContact(id string) (EmptyResponse, *http.Response, error)
func (AddonClient) DeleteSSLOrganisation ¶
func (c AddonClient) DeleteSSLOrganisation(id string) (EmptyResponse, *http.Response, error)
func (*AddonClient) GetCurrentProject ¶
func (c *AddonClient) GetCurrentProject() string
func (AddonClient) GetPleskLicense ¶
func (c AddonClient) GetPleskLicense(id string) (PleskLicenseSingleResponse, *http.Response, error)
func (AddonClient) GetPleskLicenseType ¶
func (c AddonClient) GetPleskLicenseType(id string) (PleskLicenseTypeSingleResponse, *http.Response, error)
func (AddonClient) GetPleskLicenseTypes ¶
func (c AddonClient) GetPleskLicenseTypes(qParams GetPleskLicenseTypesQueryParams) (PleskLicenseTypeListResponse, *http.Response, error)
func (AddonClient) GetPleskLicenses ¶
func (c AddonClient) GetPleskLicenses(qParams GetPleskLicensesQueryParams) (PleskLicenseListResponse, *http.Response, error)
func (AddonClient) GetSSLCertificate ¶
func (c AddonClient) GetSSLCertificate(id string) (SSLCertificateSingleResponse, *http.Response, error)
func (AddonClient) GetSSLCertificates ¶
func (c AddonClient) GetSSLCertificates(qParams GetSSLCertificatesQueryParams) (SSLCertificateListResponse, *http.Response, error)
func (AddonClient) GetSSLContact ¶
func (c AddonClient) GetSSLContact(id string) (SSLContactSingleResponse, *http.Response, error)
func (AddonClient) GetSSLContacts ¶
func (c AddonClient) GetSSLContacts(qParams GetSSLContactsQueryParams) (SSLContactListResponse, *http.Response, error)
func (AddonClient) GetSSLOrganisation ¶
func (c AddonClient) GetSSLOrganisation(id string) (SSLOrganisationSingleResponse, *http.Response, error)
func (AddonClient) GetSSLOrganisations ¶
func (c AddonClient) GetSSLOrganisations(qParams GetSSLOrganisationsQueryParams) (SSLOrganisationListResponse, *http.Response, error)
func (AddonClient) GetSSLType ¶
func (c AddonClient) GetSSLType(id string) (SSLTypeSingleResponse, *http.Response, error)
func (AddonClient) GetSSLTypes ¶
func (c AddonClient) GetSSLTypes(qParams GetSSLTypesQueryParams) (SSLTypeListResponse, *http.Response, error)
func (AddonClient) Search ¶
func (c AddonClient) Search(qParams SearchQueryParams) (SearchResponse, *http.Response, error)
func (*AddonClient) SetAccessToken ¶
func (c *AddonClient) SetAccessToken(token string)
func (*AddonClient) SetCurrentProject ¶
func (c *AddonClient) SetCurrentProject(project string)
func (*AddonClient) SetHttpClient ¶
func (c *AddonClient) SetHttpClient(client *http.Client)
func (AddonClient) UpdatePleskLicense ¶
func (c AddonClient) UpdatePleskLicense(in PleskLicenseUpdateRequest, id string) (PleskLicenseSingleResponse, *http.Response, error)
type EmptyResponse ¶
type EmptyResponse struct { Metadata ResponseMetadata `json:"metadata"` Success bool `json:"success"` Messages ResponseMessages `json:"messages"` }
type GetPleskLicensesQueryParams ¶
type GetPleskLicensesQueryParams struct { Order *string `url:"order,omitempty"` Filter *GetPleskLicensesQueryParamsFilter `url:"filter,omitempty"` PageSize *int `url:"page_size,omitempty"` OrderBy *string `url:"order_by,omitempty"` Search *string `url:"search,omitempty"` Page *int `url:"page,omitempty"` }
type GetSSLCertificatesQueryParams ¶
type GetSSLCertificatesQueryParams struct { Order *string `url:"order,omitempty"` Filter *GetSSLCertificatesQueryParamsFilter `url:"filter,omitempty"` PageSize *int `url:"page_size,omitempty"` OrderBy *string `url:"order_by,omitempty"` Search *string `url:"search,omitempty"` Page *int `url:"page,omitempty"` }
type GetSSLCertificatesQueryParamsFilter ¶
type GetSSLCertificatesQueryParamsFilter struct { OrganisationId *string `url:"organisation_id,omitempty"` ProjectId *string `url:"project_id,omitempty"` TechContactId *string `url:"tech_contact_id,omitempty"` Labels map[string]*string `url:"labels,omitempty"` TypeId *string `url:"type_id,omitempty"` AdminContactId *string `url:"admin_contact_id,omitempty"` }
type GetSSLContactsQueryParams ¶
type GetSSLContactsQueryParams struct { Order *string `url:"order,omitempty"` Filter *GetSSLContactsQueryParamsFilter `url:"filter,omitempty"` PageSize *int `url:"page_size,omitempty"` OrderBy *string `url:"order_by,omitempty"` Search *string `url:"search,omitempty"` Page *int `url:"page,omitempty"` }
type GetSSLOrganisationsQueryParams ¶
type GetSSLOrganisationsQueryParams struct { Order *string `url:"order,omitempty"` Filter *GetSSLOrganisationsQueryParamsFilter `url:"filter,omitempty"` PageSize *int `url:"page_size,omitempty"` OrderBy *string `url:"order_by,omitempty"` Search *string `url:"search,omitempty"` Page *int `url:"page,omitempty"` }
type GetSSLTypesQueryParams ¶
type InvalidRequestResponse ¶
type InvalidRequestResponse struct { Metadata ResponseMetadata `json:"metadata"` Data interface{} `json:"data"` Success bool `json:"success"` Messages ResponseMessages `json:"messages"` }
type PleskLicense ¶
type PleskLicenseListResponse ¶
type PleskLicenseListResponse struct { Metadata ResponseMetadata `json:"metadata"` Pagination *ResponsePagination `json:"pagination"` Data []PleskLicense `json:"data"` Success bool `json:"success"` Messages ResponseMessages `json:"messages"` }
type PleskLicenseSingleResponse ¶
type PleskLicenseSingleResponse struct { Metadata ResponseMetadata `json:"metadata"` Data PleskLicense `json:"data"` Success bool `json:"success"` Messages ResponseMessages `json:"messages"` }
type PleskLicenseType ¶
type PleskLicenseTypeListResponse ¶
type PleskLicenseTypeListResponse struct { Metadata ResponseMessages `json:"metadata"` Pagination *ResponsePagination `json:"pagination"` Data []PleskLicenseType `json:"data"` Success bool `json:"success"` Messages ResponseMessages `json:"messages"` }
type PleskLicenseTypeSingleResponse ¶
type PleskLicenseTypeSingleResponse struct { Metadata ResponseMetadata `json:"metadata"` Data PleskLicenseType `json:"data"` Success bool `json:"success"` Messages ResponseMessages `json:"messages"` }
type ResponseMessage ¶
type ResponseMessages ¶
type ResponseMessages struct { Warnings []ResponseMessage `json:"warnings"` Errors []ResponseMessage `json:"errors"` Infos []ResponseMessage `json:"infos"` }
type ResponseMetadata ¶
type ResponsePagination ¶
type SSLCertificate ¶
type SSLCertificate struct { OrganisationId string `json:"organisation_id"` ValidUntil string `json:"valid_until"` ProjectId string `json:"project_id"` TypeId string `json:"type_id"` ApproverEmail string `json:"approver_email"` CreatedAt string `json:"created_at"` AdminContactId string `json:"admin_contact_id"` Id string `json:"id"` TechContactId string `json:"tech_contact_id"` Labels map[string]*string `json:"labels"` }
type SSLCertificateCreateRequest ¶
type SSLCertificateCreateRequest struct { OrganisationId *string `json:"organisation_id"` Csr string `json:"csr"` ApproverEmail string `json:"approveremail"` ValidationMethod string `json:"validationmethod"` ProjectId string `json:"project_id"` TypeId string `json:"type_id"` AdminContact *string `json:"admin_contact"` Organisation *string `json:"organisation"` AdminContactId *string `json:"admin_contact_id"` TechContactId *string `json:"tech_contact_id"` Labels map[string]*string `json:"labels"` }
type SSLCertificateListResponse ¶
type SSLCertificateListResponse struct { Metadata ResponseMetadata `json:"metadata"` Pagination *ResponsePagination `json:"pagination"` Data []SSLCertificate `json:"data"` Success bool `json:"success"` Messages ResponseMessages `json:"messages"` }
type SSLCertificateSingleResponse ¶
type SSLCertificateSingleResponse struct { Metadata ResponseMetadata `json:"metadata"` Data SSLCertificate `json:"data"` Success bool `json:"success"` Messages ResponseMessages `json:"messages"` }
type SSLContact ¶
type SSLContact struct { AdditionalAddress string `json:"additional_address"` Address string `json:"address"` City string `json:"city"` LastName string `json:"last_name"` Organisation string `json:"organisation"` CreatedAt string `json:"created_at"` Title string `json:"title"` Labels map[string]*string `json:"labels"` CountryCode string `json:"country_code"` ProjectId string `json:"project_id"` Phone string `json:"phone"` Id string `json:"id"` Fax string `json:"fax"` PostalCode string `json:"postal_code"` Region string `json:"region"` FirstName string `json:"first_name"` Email string `json:"email"` }
type SSLContactCreateRequest ¶
type SSLContactCreateRequest struct { Address string `json:"address"` City string `json:"city"` LastName string `json:"last_name"` Organisation string `json:"organisation"` Title *string `json:"title"` Labels map[string]*string `json:"labels"` AdditonalAddress *string `json:"additonaladdress"` CountryCode string `json:"country_code"` ProjectId *string `json:"project_id"` Phone string `json:"phone"` Fax *string `json:"fax"` PostalCode string `json:"postal_code"` Region *string `json:"region"` FirstName string `json:"first_name"` Email string `json:"email"` }
type SSLContactListResponse ¶
type SSLContactListResponse struct { Metadata ResponseMetadata `json:"metadata"` Pagination *ResponsePagination `json:"pagination"` Data []SSLContact `json:"data"` Success bool `json:"success"` Messages ResponseMessages `json:"messages"` }
type SSLContactSingleResponse ¶
type SSLContactSingleResponse struct { Metadata *ResponseMetadata `json:"metadata"` Data *SSLContact `json:"data"` Success *bool `json:"success"` Messages *ResponseMessages `json:"messages"` }
type SSLOrganisation ¶
type SSLOrganisation struct { AdditionalAddress string `json:"additional_address"` Address string `json:"address"` City string `json:"city"` RegistrationNumber string `json:"registration_number"` CreatedAt string `json:"created_at"` Labels map[string]*string `json:"labels"` Division string `json:"division"` CountryCode string `json:"country_code"` ProjectId string `json:"project_id"` Phone string `json:"phone"` Name string `json:"name"` Duns string `json:"duns"` Id string `json:"id"` PostalCode string `json:"postal_code"` Region string `json:"region"` Fax string `json:"fax"` }
type SSLOrganisationCreateRequest ¶
type SSLOrganisationCreateRequest struct { AdditionalAddress *string `json:"additional_address"` Address string `json:"address"` City string `json:"city"` RegistrationNumber *string `json:"registration_number"` Labels string `json:"labels"` Division *string `json:"division"` CountryCode string `json:"country_code"` ProjectId *string `json:"project_id"` Phone string `json:"phone"` Name string `json:"name"` Duns *string `json:"duns"` PostalCode string `json:"postal_code"` Region *string `json:"region"` Fax *string `json:"fax"` }
type SSLOrganisationListResponse ¶
type SSLOrganisationListResponse struct { Metadata ResponseMetadata `json:"metadata"` Pagination *ResponsePagination `json:"pagination"` Data []SSLOrganisation `json:"data"` Success bool `json:"success"` Messages ResponseMessages `json:"messages"` }
type SSLOrganisationSingleResponse ¶
type SSLOrganisationSingleResponse struct { Metadata ResponseMetadata `json:"metadata"` Data SSLOrganisation `json:"data"` Success bool `json:"success"` Messages ResponseMessages `json:"messages"` }
type SSLTypeListResponse ¶
type SSLTypeListResponse struct { Metadata *ResponseMetadata `json:"metadata"` Pagination *ResponsePagination `json:"pagination"` Data *[]SSLType `json:"data"` Success *bool `json:"success"` Messages *ResponseMessages `json:"messages"` }
type SSLTypeSingleResponse ¶
type SSLTypeSingleResponse struct { Metadata ResponseMetadata `json:"metadata"` Data SSLType `json:"data"` Success bool `json:"success"` Messages ResponseMessages `json:"messages"` }
type SearchQueryParams ¶
type SearchQueryParams struct { Search *string `url:"search,omitempty"` ProjectId *string `url:"project_id,omitempty"` Resources *string `url:"resources,omitempty"` Limit *int `url:"limit,omitempty"` WithLabels *bool `url:"with_labels,omitempty"` Labels *SearchQueryParamsLabels `url:"labels,omitempty"` }
type SearchQueryParamsLabels ¶
type SearchResponse ¶
type SearchResponse struct { Metadata ResponseMetadata `json:"metadata"` Data SearchResults `json:"data"` Success bool `json:"success"` Messages ResponseMessages `json:"messages"` }
type SearchResults ¶
type SearchResults struct { SslContacts []SSLContact `json:"ssl_contacts"` SslOrganisations []SSLOrganisation `json:"ssl_organisations"` PleskLicenses []PleskLicense `json:"plesk_licenses"` SslCertificates []SSLCertificate `json:"ssl_certificates"` }
Click to show internal directories.
Click to hide internal directories.