addon

package
v0.0.0-...-de483c3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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) CreateSSLContact

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) GetPleskLicenses

func (AddonClient) GetSSLCertificate

func (c AddonClient) GetSSLCertificate(id string) (SSLCertificateSingleResponse, *http.Response, error)

func (AddonClient) GetSSLCertificates

func (AddonClient) GetSSLContact

func (c AddonClient) GetSSLContact(id string) (SSLContactSingleResponse, *http.Response, error)

func (AddonClient) GetSSLContacts

func (AddonClient) GetSSLOrganisation

func (c AddonClient) GetSSLOrganisation(id string) (SSLOrganisationSingleResponse, *http.Response, error)

func (AddonClient) GetSSLOrganisations

func (AddonClient) GetSSLType

func (AddonClient) GetSSLTypes

func (*AddonClient) Request

func (c *AddonClient) Request(method string, path string, postBody io.Reader) (*http.Response, []byte, error)

func (AddonClient) Search

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

type EmptyResponse

type EmptyResponse struct {
	Metadata ResponseMetadata `json:"metadata"`
	Success  bool             `json:"success"`
	Messages ResponseMessages `json:"messages"`
}

type GetPleskLicenseTypesQueryParams

type GetPleskLicenseTypesQueryParams struct {
	Order    *string `url:"order,omitempty"`
	PageSize *int    `url:"page_size,omitempty"`
	OrderBy  *string `url:"order_by,omitempty"`
	Search   *string `url:"search,omitempty"`
	Page     *int    `url:"page,omitempty"`
}

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 GetPleskLicensesQueryParamsFilter

type GetPleskLicensesQueryParamsFilter struct {
	ProjectId *string            `url:"project_id,omitempty"`
	Labels    map[string]*string `url:"labels,omitempty"`
	TypeId    *string            `url:"type_id,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 GetSSLContactsQueryParamsFilter

type GetSSLContactsQueryParamsFilter struct {
	ProjectId *string            `url:"project_id,omitempty"`
	Labels    map[string]*string `url:"labels,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 GetSSLOrganisationsQueryParamsFilter

type GetSSLOrganisationsQueryParamsFilter struct {
	ProjectId *string            `url:"project_id,omitempty"`
	Labels    map[string]*string `url:"labels,omitempty"`
}

type GetSSLTypesQueryParams

type GetSSLTypesQueryParams struct {
	Order    *string `url:"order,omitempty"`
	PageSize *int    `url:"page_size,omitempty"`
	OrderBy  *string `url:"order_by,omitempty"`
	Search   *string `url:"search,omitempty"`
	Page     *int    `url:"page,omitempty"`
}

type InvalidRequestResponse

type InvalidRequestResponse struct {
	Metadata ResponseMetadata `json:"metadata"`
	Data     interface{}      `json:"data"`
	Success  bool             `json:"success"`
	Messages ResponseMessages `json:"messages"`
}

type PleskLicense

type PleskLicense struct {
	License   string             `json:"license"`
	ProjectId string             `json:"project_id"`
	CreatedAt string             `json:"created_at"`
	Id        string             `json:"id"`
	Key       string             `json:"key"`
	Labels    map[string]*string `json:"labels"`
}

type PleskLicenseCreateRequest

type PleskLicenseCreateRequest struct {
	Address   string             `json:"address"`
	ProjectId string             `json:"project_id"`
	TypeId    string             `json:"type_id"`
	Labels    map[string]*string `json:"labels"`
}

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 PleskLicenseType struct {
	Id    string `json:"id"`
	Title string `json:"title"`
}

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 PleskLicenseUpdateRequest

type PleskLicenseUpdateRequest struct {
	Address *string            `json:"address"`
	Labels  map[string]*string `json:"labels"`
}

type ResponseMessage

type ResponseMessage struct {
	Message string `json:"message"`
	Key     string `json:"key"`
}

type ResponseMessages

type ResponseMessages struct {
	Warnings []ResponseMessage `json:"warnings"`
	Errors   []ResponseMessage `json:"errors"`
	Infos    []ResponseMessage `json:"infos"`
}

type ResponseMetadata

type ResponseMetadata struct {
	TransactionId  string `json:"transaction_id"`
	BuildCommit    string `json:"build_commit"`
	BuildTimestamp string `json:"build_timestamp"`
}

type ResponsePagination

type ResponsePagination struct {
	Total    int `json:"total"`
	Page     int `json:"page"`
	PageSize int `json:"page_size"`
}

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 SSLType

type SSLType struct {
	Id    string `json:"id"`
	Title string `json:"title"`
}

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 SearchQueryParamsLabels struct {
	Name map[string]*string `url:"name,omitempty"`
}

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL