Documentation
¶
Index ¶
- Constants
- func ContextWithParams(ctx context.Context, params Params) context.Context
- type AccessToken
- type AccessTokenCreateInput
- type AccessTokenGetInput
- type AccessTokenRevokeInput
- type ApiBackend
- type ApiConfig
- type ApiOption
- type Application
- type ApplicationCreateInput
- type ApplicationDeleteInput
- type ApplicationGetInput
- type ApplicationListInput
- type ApplicationUpdateInput
- type Article
- type ArticleCreateInput
- type ArticleDeleteInput
- type ArticleGetInput
- type ArticleListInput
- type ArticleUpdateInput
- type Asset
- type AssetCreateInput
- type AssetDeleteInput
- type AssetGetInput
- type AssetListInput
- type AssetUpdateInput
- type Audience
- type AudienceCreateInput
- type AudienceDeleteInput
- type AudienceGetInput
- type AudienceListInput
- type AudienceUpdateInput
- type Backend
- type Client
- func (c *Client) AccessTokenCreate(ctx context.Context, params *AccessTokenCreateInput) (*AccessToken, error)
- func (c *Client) AccessTokenGet(ctx context.Context, params *AccessTokenGetInput) (*AccessToken, error)
- func (c *Client) AccessTokenRevoke(ctx context.Context, params *AccessTokenRevokeInput) error
- func (c *Client) ApplicationCreate(ctx context.Context, params *ApplicationCreateInput) (*Application, error)
- func (c *Client) ApplicationDelete(ctx context.Context, params *ApplicationDeleteInput) error
- func (c *Client) ApplicationGet(ctx context.Context, params *ApplicationGetInput) (*Application, error)
- func (c *Client) ApplicationList(ctx context.Context, params *atomic.ApplicationListInput) ([]*atomic.Application, error)
- func (c *Client) ApplicationUpdate(ctx context.Context, params *ApplicationUpdateInput) (*Application, error)
- func (c *Client) ArticleCreate(ctx context.Context, params *ArticleCreateInput) (*Article, error)
- func (c *Client) ArticleDelete(ctx context.Context, params *ArticleDeleteInput) error
- func (c *Client) ArticleGet(ctx context.Context, params *ArticleGetInput) (*Article, error)
- func (c *Client) ArticleList(ctx context.Context, params *ArticleListInput) ([]*Article, error)
- func (c *Client) ArticleUpdate(ctx context.Context, params *ArticleUpdateInput) (*Article, error)
- func (c *Client) AssetCreate(ctx context.Context, params *AssetCreateInput) (*Asset, error)
- func (c *Client) AssetDelete(ctx context.Context, params *AssetDeleteInput) error
- func (c *Client) AssetGet(ctx context.Context, params *AssetGetInput) (*Asset, error)
- func (c *Client) AssetList(ctx context.Context, params *AssetListInput) ([]*Asset, error)
- func (c *Client) AssetUpdate(ctx context.Context, params *AssetUpdateInput) (*Asset, error)
- func (c *Client) AudienceCreate(ctx context.Context, params *AudienceCreateInput) (*Audience, error)
- func (c *Client) AudienceDelete(ctx context.Context, params *AudienceDeleteInput) error
- func (c *Client) AudienceGet(ctx context.Context, params *AudienceGetInput) (*Audience, error)
- func (c *Client) AudienceList(ctx context.Context, params *AudienceListInput) ([]*Audience, error)
- func (c *Client) AudienceUpdate(ctx context.Context, params *AudienceUpdateInput) (*Audience, error)
- func (c *Client) DistributionCreate(ctx context.Context, params *DistributionCreateInput) (*Distribution, error)
- func (c *Client) DistributionDelete(ctx context.Context, params *DistributionDeleteInput) error
- func (c *Client) DistributionGet(ctx context.Context, params *DistributionGetInput) (*Distribution, error)
- func (c *Client) DistributionList(ctx context.Context, params *DistributionListInput) ([]*Distribution, error)
- func (c *Client) DistributionUpdate(ctx context.Context, params *DistributionUpdateInput) (*Distribution, error)
- func (c *Client) InstanceCreate(ctx context.Context, params *InstanceCreateInput) (*Instance, error)
- func (c *Client) InstanceDelete(ctx context.Context, params *InstanceDeleteInput) error
- func (c *Client) InstanceGet(ctx context.Context, params *InstanceGetInput) (*Instance, error)
- func (c *Client) InstanceList(ctx context.Context, params *InstanceListInput) ([]*Instance, error)
- func (c *Client) InstanceUpdate(ctx context.Context, params *InstanceUpdateInput) (*Instance, error)
- func (c *Client) JobCancel(ctx context.Context, params *JobCancelInput) error
- func (c *Client) JobCreate(ctx context.Context, params *JobCreateInput) (*Job, error)
- func (c *Client) JobGet(ctx context.Context, params *JobGetInput) (*Job, error)
- func (c *Client) JobList(ctx context.Context, params *JobListInput) ([]*Job, error)
- func (c *Client) JobRestart(ctx context.Context, params *JobRestartInput) (*Job, error)
- func (c *Client) JobUpdate(ctx context.Context, params *JobUpdateInput) (*Job, error)
- func (c *Client) OptionGet(ctx context.Context, params *OptionGetInput) (*Option, error)
- func (c *Client) OptionList(ctx context.Context, params *OptionListInput) ([]*Option, error)
- func (c *Client) OptionRemove(ctx context.Context, params *OptionRemoveInput) error
- func (c *Client) OptionUpdate(ctx context.Context, params *OptionUpdateInput) (*Option, error)
- func (c *Client) PartnerCreate(ctx context.Context, params *PartnerCreateInput) (*Partner, error)
- func (c *Client) PartnerCredentialCreate(ctx context.Context, params *PartnerCredentialCreateInput) (*PartnerCredential, error)
- func (c *Client) PartnerCredentialDelete(ctx context.Context, params *PartnerCredentialDeleteInput) error
- func (c *Client) PartnerCredentialGet(ctx context.Context, params *PartnerCredentialGetInput) (*PartnerCredential, error)
- func (c *Client) PartnerDelete(ctx context.Context, params *PartnerDeleteInput) error
- func (c *Client) PartnerGet(ctx context.Context, params *PartnerGetInput) (*Partner, error)
- func (c *Client) PartnerList(ctx context.Context, params *PartnerListInput) ([]*Partner, error)
- func (c *Client) PartnerTokenCreate(ctx context.Context, params *PartnerTokenCreateInput) (*PartnerAccessToken, error)
- func (c *Client) PartnerTokenGet(ctx context.Context, params *PartnerTokenGetInput) (*PartnerAccessToken, error)
- func (c *Client) PartnerTokenRevoke(ctx context.Context, params *PartnerTokenRevokeInput) error
- func (c *Client) PartnerUpdate(ctx context.Context, params *PartnerUpdateInput) (*Partner, error)
- func (c *Client) PlanCreate(ctx context.Context, params *PlanCreateInput) (*Plan, error)
- func (c *Client) PlanDelete(ctx context.Context, params *PlanDeleteInput) error
- func (c *Client) PlanGet(ctx context.Context, params *PlanGetInput) (*Plan, error)
- func (c *Client) PlanList(ctx context.Context, params *PlanListInput) ([]*Plan, error)
- func (c *Client) PlanSubscribe(ctx context.Context, params *PlanSubscribeInput) (*Subscription, error)
- func (c *Client) PlanUpdate(ctx context.Context, params *PlanUpdateInput) (*Plan, error)
- func (c *Client) PriceCreate(ctx context.Context, params *PriceCreateInput) (*Price, error)
- func (c *Client) PriceDelete(ctx context.Context, params *PriceDeleteInput) error
- func (c *Client) PriceGet(ctx context.Context, params *PriceGetInput) (*Price, error)
- func (c *Client) PriceList(ctx context.Context, params *PriceListInput) ([]*Price, error)
- func (c *Client) PriceUpdate(ctx context.Context, params *PriceUpdateInput) (*Price, error)
- func (c *Client) PublisherCreate(ctx context.Context, params *PublisherCreateInput) (*Publisher, error)
- func (c *Client) PublisherDelete(ctx context.Context, params *PublisherDeleteInput) error
- func (c *Client) PublisherGet(ctx context.Context, params *PublisherGetInput) (*Publisher, error)
- func (c *Client) PublisherList(ctx context.Context, params *PublisherListInput) (*PublisherListOutput, error)
- func (c *Client) PublisherUpdate(ctx context.Context, params *PublisherUpdateInput) (*Publisher, error)
- func (c *Client) SendMail(ctx context.Context, params *SendMailInput) ([]*EmailMessage, error)
- func (c *Client) SendSMS(ctx context.Context, params *atomic.SendSMSInput) ([]*atomic.SMS, error)
- func (c *Client) SubscriptionCreate(ctx context.Context, params *SubscriptionCreateInput) (*Subscription, error)
- func (c *Client) SubscriptionDelete(ctx context.Context, params *SubscriptionDeleteInput) error
- func (c *Client) SubscriptionGet(ctx context.Context, params *SubscriptionGetInput) (*Subscription, error)
- func (c *Client) SubscriptionList(ctx context.Context, params *SubscriptionListInput) ([]*Subscription, error)
- func (c *Client) SubscriptionUpdate(ctx context.Context, params *SubscriptionUpdateInput) (*Subscription, error)
- func (c *Client) TemplateCreate(ctx context.Context, params *TemplateCreateInput) (*Template, error)
- func (c *Client) TemplateDelete(ctx context.Context, params *TemplateDeleteInput) error
- func (c *Client) TemplateGet(ctx context.Context, params *TemplateGetInput) (*Template, error)
- func (c *Client) TemplateList(ctx context.Context, params *TemplateListInput) ([]*Template, error)
- func (c *Client) TemplateUpdate(ctx context.Context, params *TemplateUpdateInput) (*Template, error)
- func (c *Client) UserCreate(ctx context.Context, params *UserCreateInput) (*User, error)
- func (c *Client) UserDelete(ctx context.Context, params *UserDeleteInput) error
- func (c *Client) UserGet(ctx context.Context, params *UserGetInput) (*User, error)
- func (c *Client) UserImport(ctx context.Context, params *UserImportInput) (*Job, error)
- func (c *Client) UserList(ctx context.Context, params *UserListInput) ([]*User, error)
- func (c *Client) UserUpdate(ctx context.Context, params *UserUpdateInput) (*User, error)
- type ClientParamsKey
- type Distribution
- type DistributionCreateInput
- type DistributionDeleteInput
- type DistributionGetInput
- type DistributionListInput
- type DistributionUpdateInput
- type EmailMessage
- type Error
- type Instance
- type InstanceCreateInput
- type InstanceDeleteInput
- type InstanceGetInput
- type InstanceListInput
- type InstanceUpdateInput
- type Iter
- type Job
- type JobCancelInput
- type JobCreateInput
- type JobGetInput
- type JobListInput
- type JobRestartInput
- type JobUpdateInput
- type ListParams
- type NextFunc
- type Option
- type OptionGetInput
- type OptionListInput
- type OptionRemoveInput
- type OptionUpdateInput
- type Params
- type ParamsEncoding
- type Partner
- type PartnerAccessToken
- type PartnerCreateInput
- type PartnerCredential
- type PartnerCredentialCreateInput
- type PartnerCredentialDeleteInput
- type PartnerCredentialGetInput
- type PartnerDeleteInput
- type PartnerGetInput
- type PartnerListInput
- type PartnerTokenCreateInput
- type PartnerTokenGetInput
- type PartnerTokenRevokeInput
- type PartnerUpdateInput
- type Plan
- type PlanCreateInput
- type PlanDeleteInput
- type PlanGetInput
- type PlanListInput
- type PlanSubscribeInput
- type PlanUpdateInput
- type Price
- type PriceCreateInput
- type PriceDeleteInput
- type PriceGetInput
- type PriceListInput
- type PriceUpdateInput
- type Publisher
- type PublisherCreateInput
- type PublisherDeleteInput
- type PublisherGetInput
- type PublisherListInput
- type PublisherListOutput
- type PublisherUpdateInput
- type RequestContainer
- type RequestProxy
- func (p *RequestProxy[T]) Body() io.Reader
- func (p *RequestProxy[T]) ContentType() string
- func (p *RequestProxy[T]) Delete() *RequestProxy[T]
- func (p *RequestProxy[T]) Get() *RequestProxy[T]
- func (p *RequestProxy[T]) MarshalJSON() ([]byte, error)
- func (p *RequestProxy[T]) Method() string
- func (p *RequestProxy[T]) MethodParams() validation.Validatable
- func (p *RequestProxy[T]) ParamsEncoding() ParamsEncoding
- func (p *RequestProxy[T]) Patch() *RequestProxy[T]
- func (p *RequestProxy[T]) Path() string
- func (p *RequestProxy[T]) Post() *RequestProxy[T]
- func (p *RequestProxy[T]) Put() *RequestProxy[T]
- func (p *RequestProxy[T]) RequestParams() Params
- func (p *RequestProxy[T]) WithBody(body io.Reader) *RequestProxy[T]
- func (p *RequestProxy[T]) WithContentType(contentType string) *RequestProxy[T]
- func (p *RequestProxy[T]) WithEncoding(encoding ParamsEncoding) *RequestProxy[T]
- func (p *RequestProxy[T]) WithMethod(method string) *RequestProxy[T]
- type Resource
- type Responder
- type Response
- type ResponseProxy
- type ResponseSliceProxy
- type SendMailInput
- type Subscription
- type SubscriptionCreateInput
- type SubscriptionDeleteInput
- type SubscriptionGetInput
- type SubscriptionListInput
- type SubscriptionUpdateInput
- type Template
- type TemplateCreateInput
- type TemplateDeleteInput
- type TemplateGetInput
- type TemplateListInput
- type TemplateUpdateInput
- type User
- type UserCreateInput
- type UserDeleteInput
- type UserGetInput
- type UserImportInput
- type UserListInput
- type UserUpdateInput
Constants ¶
View Source
const ( UserTokenCreatePath = "/api/1.0.0/users/%s/tokens" AppTokenCreatePath = "/api/1.0.0/applications/%s/tokens" AccessTokenGetPath = "/api/1.0.0/tokens/%s" AccessTokenRevokePath = "/api/1.0.0/tokens/%s" AccessTokenDeletePath = "/api/1.0.0/tokens/%s" )
View Source
const ( ApplicationGetPath = "/api/1.0.0/applications/%s" ApplicationCreatePath = "/api/1.0.0/applications" ApplicationUpdatePath = "/api/1.0.0/applications/%s" ApplicationDeletePath = "/api/1.0.0/applications/%s" ApplicationListPath = "/api/1.0.0/applications" )
View Source
const ( ArticleCreatePath = "/api/1.0.0/articles" ArticleUpdatePath = "/api/1.0.0/articles/%s" ArticleDeletePath = "/api/1.0.0/articles/%s" ArticleListPath = "/api/1.0.0/articles" ArticleGetPath = "/api/1.0.0/articles/%s" )
View Source
const ( AssetCreatePath = "/api/1.0.0/assets" AssetGetPath = "/api/1.0.0/assets/%s" AssetUpdatePath = "/api/1.0.0/assets/%s" AssetDeletePath = "/api/1.0.0/assets/%s" AssetListPath = "/api/1.0.0/assets" )
View Source
const ( AudienceGetPath = "/api/1.0.0/audiences/%s" AudienceCreatePath = "/api/1.0.0/audiences" AudienceUpdatePath = "/api/1.0.0/audiences/%s" AudienceDeletePath = "/api/1.0.0/audiences/%s" AudienceListPath = "/api/1.0.0/audiences" )
View Source
const ( DistributionGetPath = "/api/1.0.0/distributions/%s" DistributionCreatePath = "/api/1.0.0/distributions" DistributionUpdatePath = "/api/1.0.0/distributions/%s" DistributionDeletePath = "/api/1.0.0/distributions/%s" DistributionListPath = "/api/1.0.0/distributions" )
View Source
const ( InstanceCreatePath = "/api/1.0.0/instances" InstanceGetPath = "/api/1.0.0/instances/%s" InstanceListPath = "/api/1.0.0/instances" InstanceUpdatePath = "/api/1.0.0/instances/%s" InstanceDeletePath = "/api/1.0.0/instances/%s" )
View Source
const ( JobGetPath = "/api/1.0.0/jobs/%s" JobCreatePath = "/api/1.0.0/jobs" JobRestartPath = "/api/1.0.0/jobs/%s" JobUpdatePath = "/api/1.0.0/jobs/%s" JobCancelPath = "/api/1.0.0/jobs/%s" JobListPath = "/api/1.0.0/jobs" )
View Source
const ( OptionGetPath = "/api/1.0.0/options/%s" OptionListPath = "/api/1.0.0/options" OptionUpdatePath = "/api/1.0.0/options/%s" OptionRemovePath = "/api/1.0.0/options/%s" )
View Source
const ( PartnerGetPath = "/api/1.0.0/partners/%s" PartnerCreatePath = "/api/1.0.0/partners" PartnerUpdatePath = "/api/1.0.0/partners/%s" PartnerDeletePath = "/api/1.0.0/partners/%s" PartnerListPath = "/api/1.0.0/partners" PartnerCredentialCreatePath = "/api/1.0.0/partners/%s/credentials" PartnerCredentialGetPath = "/api/1.0.0/partners/%s/credentials/%s" PartnerCredentialDeletePath = "/api/1.0.0/partners/%s/credentials/%s" PartnerTokenCreatePath = "/api/1.0.0/partners/%s/tokens" PartnerTokenGetPath = "/api/1.0.0/partners/%s/tokens/%s" PartnerTokenRevokePath = "/api/1.0.0/partners/%s/tokens/%s" )
View Source
const ( PlanGetPath = "/api/1.0.0/plans/%s" PlanCreatePath = "/api/1.0.0/plans" PlanUpdatePath = "/api/1.0.0/plans/%s" PlanDeletePath = "/api/1.0.0/plans/%s" PlanListPath = "/api/1.0.0/plans" PlanSubscribePath = "/api/1.0.0/plans/%s/subscribe" )
View Source
const ( PriceGetPath = "/api/1.0.0/prices/%s" PriceCreatePath = "/api/1.0.0/prices" PriceUpdatePath = "/api/1.0.0/prices/%s" PriceDeletePath = "/api/1.0.0/prices/%s" PriceListPath = "/api/1.0.0/prices" )
View Source
const ( PublisherCreatePath = "/api/1.0.0/publishers" PublisherUpdatePath = "/api/1.0.0/publishers/%s" PublisherGetPath = "/api/1.0.0/publishers/%s" PublisherListPath = "/api/1.0.0/publishers" PublisherDeletePath = "/api/1.0.0/publishers/%s" )
View Source
const ( SubscriptionGetPath = "/api/1.0.0/subscriptions/%s" SubscriptionListPath = "/api/1.0.0/subscriptions" SubscriptionCreatePath = "/api/1.0.0/subscriptions" SubscriptionUpdatePath = "/api/1.0.0/subscriptions/%s" SubscriptionDeletePath = "/api/1.0.0/subscriptions/%s" )
View Source
const ( TemplateGetPath = "/api/1.0.0/templates/%s" TemplateListPath = "/api/1.0.0/templates" TemplateCreatePath = "/api/1.0.0/templates" TemplateUpdatePath = "/api/1.0.0/templates/%s" TemplateDeletePath = "/api/1.0.0/templates/%s" )
View Source
const ( UserGetPath = "/api/1.0.0/users/%s" UserCreatePath = "/api/1.0.0/users" UserUpdatePath = "/api/1.0.0/users/%s" UserDeletePath = "/api/1.0.0/users/%s" UserListPath = "/api/1.0.0/users" UserImportPath = "/api/1.0.0/users/import" )
View Source
const (
DefaultAPIHost = "localhost:9000"
)
View Source
const (
SMSSendPath = "/api/1.0.0/sms"
)
View Source
const (
SendMailPath = "/api/1.0.0/mail"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccessToken ¶
type AccessToken = atomic.AccessToken
type AccessTokenCreateInput ¶
type AccessTokenCreateInput = atomic.AccessTokenCreateInput
type AccessTokenGetInput ¶
type AccessTokenGetInput = atomic.AccessTokenGetInput
type AccessTokenRevokeInput ¶
type AccessTokenRevokeInput = atomic.AccessTokenRevokeInput
type ApiBackend ¶
type ApiBackend struct {
// contains filtered or unexported fields
}
func (*ApiBackend) ExecContext ¶
func (b *ApiBackend) ExecContext(ctx context.Context, params RequestContainer, result Responder) error
func (*ApiBackend) NewRequest ¶
func (b *ApiBackend) NewRequest(ctx context.Context, params RequestContainer) (*http.Request, error)
type Application ¶
type Application = atomic.Application
type ApplicationCreateInput ¶
type ApplicationCreateInput = atomic.ApplicationCreateInput
type ApplicationDeleteInput ¶
type ApplicationDeleteInput = atomic.ApplicationDeleteInput
type ApplicationGetInput ¶
type ApplicationGetInput = atomic.ApplicationGetInput
type ApplicationListInput ¶
type ApplicationListInput = atomic.ApplicationListInput
type ApplicationUpdateInput ¶
type ApplicationUpdateInput = atomic.ApplicationUpdateInput
type ArticleCreateInput ¶
type ArticleCreateInput = atomic.ArticleCreateInput
type ArticleDeleteInput ¶
type ArticleDeleteInput = atomic.ArticleDeleteInput
type ArticleGetInput ¶
type ArticleGetInput = atomic.ArticleGetInput
type ArticleListInput ¶
type ArticleListInput = atomic.ArticleListInput
type ArticleUpdateInput ¶
type ArticleUpdateInput = atomic.ArticleUpdateInput
type AssetCreateInput ¶
type AssetCreateInput = atomic.AssetCreateInput
type AssetDeleteInput ¶
type AssetDeleteInput = atomic.AssetDeleteInput
type AssetGetInput ¶
type AssetGetInput = atomic.AssetGetInput
type AssetListInput ¶
type AssetListInput = atomic.AssetListInput
type AssetUpdateInput ¶
type AssetUpdateInput = atomic.AssetUpdateInput
type AudienceCreateInput ¶
type AudienceCreateInput = atomic.AudienceCreateInput
type AudienceDeleteInput ¶
type AudienceDeleteInput = atomic.AudienceDeleteInput
type AudienceGetInput ¶
type AudienceGetInput = atomic.AudienceGetInput
type AudienceListInput ¶
type AudienceListInput = atomic.AudienceListInput
type AudienceUpdateInput ¶
type AudienceUpdateInput = atomic.AudienceUpdateInput
type Backend ¶
type Backend interface {
ExecContext(ctx context.Context, params RequestContainer, result Responder) error
}
type Client ¶
type Client struct {
Backend Backend
}
func (*Client) AccessTokenCreate ¶
func (c *Client) AccessTokenCreate(ctx context.Context, params *AccessTokenCreateInput) (*AccessToken, error)
func (*Client) AccessTokenGet ¶
func (c *Client) AccessTokenGet(ctx context.Context, params *AccessTokenGetInput) (*AccessToken, error)
func (*Client) AccessTokenRevoke ¶
func (c *Client) AccessTokenRevoke(ctx context.Context, params *AccessTokenRevokeInput) error
func (*Client) ApplicationCreate ¶
func (c *Client) ApplicationCreate(ctx context.Context, params *ApplicationCreateInput) (*Application, error)
func (*Client) ApplicationDelete ¶
func (c *Client) ApplicationDelete(ctx context.Context, params *ApplicationDeleteInput) error
func (*Client) ApplicationGet ¶
func (c *Client) ApplicationGet(ctx context.Context, params *ApplicationGetInput) (*Application, error)
func (*Client) ApplicationList ¶
func (c *Client) ApplicationList(ctx context.Context, params *atomic.ApplicationListInput) ([]*atomic.Application, error)
func (*Client) ApplicationUpdate ¶
func (c *Client) ApplicationUpdate(ctx context.Context, params *ApplicationUpdateInput) (*Application, error)
func (*Client) ArticleCreate ¶
func (*Client) ArticleDelete ¶
func (c *Client) ArticleDelete(ctx context.Context, params *ArticleDeleteInput) error
func (*Client) ArticleGet ¶
func (*Client) ArticleList ¶
func (*Client) ArticleUpdate ¶
func (*Client) AssetCreate ¶
func (*Client) AssetDelete ¶
func (c *Client) AssetDelete(ctx context.Context, params *AssetDeleteInput) error
func (*Client) AssetUpdate ¶
func (*Client) AudienceCreate ¶
func (*Client) AudienceDelete ¶
func (c *Client) AudienceDelete(ctx context.Context, params *AudienceDeleteInput) error
func (*Client) AudienceGet ¶
func (*Client) AudienceList ¶
func (*Client) AudienceUpdate ¶
func (*Client) DistributionCreate ¶
func (c *Client) DistributionCreate(ctx context.Context, params *DistributionCreateInput) (*Distribution, error)
func (*Client) DistributionDelete ¶
func (c *Client) DistributionDelete(ctx context.Context, params *DistributionDeleteInput) error
func (*Client) DistributionGet ¶
func (c *Client) DistributionGet(ctx context.Context, params *DistributionGetInput) (*Distribution, error)
func (*Client) DistributionList ¶
func (c *Client) DistributionList(ctx context.Context, params *DistributionListInput) ([]*Distribution, error)
func (*Client) DistributionUpdate ¶
func (c *Client) DistributionUpdate(ctx context.Context, params *DistributionUpdateInput) (*Distribution, error)
func (*Client) InstanceCreate ¶
func (*Client) InstanceDelete ¶
func (c *Client) InstanceDelete(ctx context.Context, params *InstanceDeleteInput) error
func (*Client) InstanceGet ¶
func (*Client) InstanceList ¶
func (*Client) InstanceUpdate ¶
func (*Client) JobCancel ¶
func (c *Client) JobCancel(ctx context.Context, params *JobCancelInput) error
func (*Client) JobRestart ¶
func (*Client) OptionList ¶
func (*Client) OptionRemove ¶
func (c *Client) OptionRemove(ctx context.Context, params *OptionRemoveInput) error
func (*Client) OptionUpdate ¶
func (*Client) PartnerCreate ¶
func (*Client) PartnerCredentialCreate ¶
func (c *Client) PartnerCredentialCreate(ctx context.Context, params *PartnerCredentialCreateInput) (*PartnerCredential, error)
func (*Client) PartnerCredentialDelete ¶
func (c *Client) PartnerCredentialDelete(ctx context.Context, params *PartnerCredentialDeleteInput) error
func (*Client) PartnerCredentialGet ¶
func (c *Client) PartnerCredentialGet(ctx context.Context, params *PartnerCredentialGetInput) (*PartnerCredential, error)
func (*Client) PartnerDelete ¶
func (c *Client) PartnerDelete(ctx context.Context, params *PartnerDeleteInput) error
func (*Client) PartnerGet ¶
func (*Client) PartnerList ¶
func (*Client) PartnerTokenCreate ¶
func (c *Client) PartnerTokenCreate(ctx context.Context, params *PartnerTokenCreateInput) (*PartnerAccessToken, error)
func (*Client) PartnerTokenGet ¶
func (c *Client) PartnerTokenGet(ctx context.Context, params *PartnerTokenGetInput) (*PartnerAccessToken, error)
func (*Client) PartnerTokenRevoke ¶
func (c *Client) PartnerTokenRevoke(ctx context.Context, params *PartnerTokenRevokeInput) error
func (*Client) PartnerUpdate ¶
func (*Client) PlanCreate ¶
func (*Client) PlanDelete ¶
func (c *Client) PlanDelete(ctx context.Context, params *PlanDeleteInput) error
func (*Client) PlanSubscribe ¶
func (c *Client) PlanSubscribe(ctx context.Context, params *PlanSubscribeInput) (*Subscription, error)
func (*Client) PlanUpdate ¶
func (*Client) PriceCreate ¶
func (*Client) PriceDelete ¶
func (c *Client) PriceDelete(ctx context.Context, params *PriceDeleteInput) error
func (*Client) PriceUpdate ¶
func (*Client) PublisherCreate ¶
func (*Client) PublisherDelete ¶
func (c *Client) PublisherDelete(ctx context.Context, params *PublisherDeleteInput) error
func (*Client) PublisherGet ¶
func (*Client) PublisherList ¶
func (c *Client) PublisherList(ctx context.Context, params *PublisherListInput) (*PublisherListOutput, error)
func (*Client) PublisherUpdate ¶
func (*Client) SendMail ¶
func (c *Client) SendMail(ctx context.Context, params *SendMailInput) ([]*EmailMessage, error)
func (*Client) SubscriptionCreate ¶
func (c *Client) SubscriptionCreate(ctx context.Context, params *SubscriptionCreateInput) (*Subscription, error)
func (*Client) SubscriptionDelete ¶
func (c *Client) SubscriptionDelete(ctx context.Context, params *SubscriptionDeleteInput) error
func (*Client) SubscriptionGet ¶
func (c *Client) SubscriptionGet(ctx context.Context, params *SubscriptionGetInput) (*Subscription, error)
func (*Client) SubscriptionList ¶
func (c *Client) SubscriptionList(ctx context.Context, params *SubscriptionListInput) ([]*Subscription, error)
func (*Client) SubscriptionUpdate ¶
func (c *Client) SubscriptionUpdate(ctx context.Context, params *SubscriptionUpdateInput) (*Subscription, error)
func (*Client) TemplateCreate ¶
func (*Client) TemplateDelete ¶
func (c *Client) TemplateDelete(ctx context.Context, params *TemplateDeleteInput) error
func (*Client) TemplateGet ¶
func (*Client) TemplateList ¶
func (*Client) TemplateUpdate ¶
func (*Client) UserCreate ¶
func (*Client) UserDelete ¶
func (c *Client) UserDelete(ctx context.Context, params *UserDeleteInput) error
func (*Client) UserImport ¶
func (*Client) UserUpdate ¶
type ClientParamsKey ¶
type ClientParamsKey string
type Distribution ¶
type Distribution = atomic.Distribution
type DistributionCreateInput ¶
type DistributionCreateInput = atomic.DistributionCreateInput
type DistributionDeleteInput ¶
type DistributionDeleteInput = atomic.DistributionDeleteInput
type DistributionGetInput ¶
type DistributionGetInput = atomic.DistributionGetInput
type DistributionListInput ¶
type DistributionListInput = atomic.DistributionListInput
type DistributionUpdateInput ¶
type DistributionUpdateInput = atomic.DistributionUpdateInput
type EmailMessage ¶
type InstanceCreateInput ¶
type InstanceCreateInput = atomic.InstanceCreateInput
type InstanceDeleteInput ¶
type InstanceDeleteInput = atomic.InstanceDeleteInput
type InstanceGetInput ¶
type InstanceGetInput = atomic.InstanceGetInput
type InstanceListInput ¶
type InstanceListInput = atomic.InstanceListInput
type InstanceUpdateInput ¶
type InstanceUpdateInput = atomic.InstanceUpdateInput
type JobCancelInput ¶
type JobCancelInput = atomic.JobCancelInput
type JobCreateInput ¶
type JobCreateInput = atomic.JobCreateInput
type JobGetInput ¶
type JobGetInput = atomic.JobGetInput
type JobListInput ¶
type JobListInput = atomic.JobListInput
type JobRestartInput ¶
type JobRestartInput = atomic.JobRestartInput
type JobUpdateInput ¶
type JobUpdateInput = atomic.JobUpdateInput
type ListParams ¶
type OptionGetInput ¶
type OptionGetInput = atomic.OptionGetInput
type OptionListInput ¶
type OptionListInput = atomic.OptionListInput
type OptionRemoveInput ¶
type OptionRemoveInput = atomic.OptionRemoveInput
type OptionUpdateInput ¶
type OptionUpdateInput = atomic.OptionUpdateInput
type Params ¶
type Params struct {
Context context.Context `schema:"-" json:"-"`
Headers http.Header `schema:"-" json:"-"`
NoAuth bool `schema:"-" json:"-"`
Expand []string `schema:"expand,omitempty" json:"expand,omitempty"`
Fields []string `schema:"fields,omitempty" json:"fields,omitempty"`
Instance *string `schema:"instance,omitempty" json:"-"`
}
func ParamsFromContext ¶
type ParamsEncoding ¶
type ParamsEncoding string
const ( ParamsEncodingJSON ParamsEncoding = "json" ParamsEncodingMultipart ParamsEncoding = "multipart" ParamsEncodingQuery ParamsEncoding = "query" )
type PartnerAccessToken ¶
type PartnerAccessToken = atomic.PartnerAccessToken
type PartnerCreateInput ¶
type PartnerCreateInput = atomic.PartnerCreateInput
type PartnerCredential ¶
type PartnerCredential = atomic.PartnerCredential
type PartnerCredentialCreateInput ¶
type PartnerCredentialCreateInput = atomic.PartnerCredentialCreateInput
type PartnerCredentialDeleteInput ¶
type PartnerCredentialDeleteInput = atomic.PartnerCredentialDeleteInput
type PartnerCredentialGetInput ¶
type PartnerCredentialGetInput = atomic.PartnerCredentialGetInput
type PartnerDeleteInput ¶
type PartnerDeleteInput = atomic.PartnerDeleteInput
type PartnerGetInput ¶
type PartnerGetInput = atomic.PartnerGetInput
type PartnerListInput ¶
type PartnerListInput = atomic.PartnerListInput
type PartnerTokenCreateInput ¶
type PartnerTokenCreateInput = atomic.PartnerTokenCreateInput
type PartnerTokenGetInput ¶
type PartnerTokenGetInput = atomic.PartnerTokenGetInput
type PartnerTokenRevokeInput ¶
type PartnerTokenRevokeInput = atomic.PartnerTokenRevokeInput
type PartnerUpdateInput ¶
type PartnerUpdateInput = atomic.PartnerUpdateInput
type PlanCreateInput ¶
type PlanCreateInput = atomic.PlanCreateInput
type PlanDeleteInput ¶
type PlanDeleteInput = atomic.PlanDeleteInput
type PlanGetInput ¶
type PlanGetInput = atomic.PlanGetInput
type PlanListInput ¶
type PlanListInput = atomic.PlanListInput
type PlanSubscribeInput ¶
type PlanSubscribeInput = atomic.PlanSubscribeInput
type PlanUpdateInput ¶
type PlanUpdateInput = atomic.PlanUpdateInput
type PriceCreateInput ¶
type PriceCreateInput = atomic.PriceCreateInput
type PriceDeleteInput ¶
type PriceDeleteInput = atomic.PriceDeleteInput
type PriceGetInput ¶
type PriceGetInput = atomic.PriceGetInput
type PriceListInput ¶
type PriceListInput = atomic.PriceListInput
type PriceUpdateInput ¶
type PriceUpdateInput = atomic.PriceUpdateInput
type PublisherCreateInput ¶
type PublisherCreateInput = atomic.PublisherCreateInput
type PublisherDeleteInput ¶
type PublisherDeleteInput = atomic.PublisherDeleteInput
type PublisherGetInput ¶
type PublisherGetInput = atomic.PublisherGetInput
type PublisherListInput ¶
type PublisherListInput = atomic.PublisherListInput
type PublisherListOutput ¶
type PublisherListOutput = atomic.PublisherListOutput
type PublisherUpdateInput ¶
type PublisherUpdateInput = atomic.PublisherUpdateInput
type RequestContainer ¶
type RequestContainer interface {
MethodParams() validation.Validatable
RequestParams() Params
ParamsEncoding() ParamsEncoding
ContentType() string
Method() string
Path() string
Body() io.Reader
}
type RequestProxy ¶
type RequestProxy[T validation.Validatable] struct { // contains filtered or unexported fields }
func NewRequest ¶
func NewRequest[T validation.Validatable](ctx context.Context, path string, methodParams T) *RequestProxy[T]
func (*RequestProxy[T]) Body ¶
func (p *RequestProxy[T]) Body() io.Reader
func (*RequestProxy[T]) ContentType ¶
func (p *RequestProxy[T]) ContentType() string
func (*RequestProxy[T]) Delete ¶
func (p *RequestProxy[T]) Delete() *RequestProxy[T]
func (*RequestProxy[T]) Get ¶
func (p *RequestProxy[T]) Get() *RequestProxy[T]
func (*RequestProxy[T]) MarshalJSON ¶
func (p *RequestProxy[T]) MarshalJSON() ([]byte, error)
func (*RequestProxy[T]) Method ¶
func (p *RequestProxy[T]) Method() string
func (*RequestProxy[T]) MethodParams ¶
func (p *RequestProxy[T]) MethodParams() validation.Validatable
func (*RequestProxy[T]) ParamsEncoding ¶
func (p *RequestProxy[T]) ParamsEncoding() ParamsEncoding
func (*RequestProxy[T]) Patch ¶
func (p *RequestProxy[T]) Patch() *RequestProxy[T]
func (*RequestProxy[T]) Path ¶
func (p *RequestProxy[T]) Path() string
func (*RequestProxy[T]) Post ¶
func (p *RequestProxy[T]) Post() *RequestProxy[T]
func (*RequestProxy[T]) Put ¶
func (p *RequestProxy[T]) Put() *RequestProxy[T]
func (*RequestProxy[T]) RequestParams ¶
func (p *RequestProxy[T]) RequestParams() Params
func (*RequestProxy[T]) WithBody ¶
func (p *RequestProxy[T]) WithBody(body io.Reader) *RequestProxy[T]
func (*RequestProxy[T]) WithContentType ¶
func (p *RequestProxy[T]) WithContentType(contentType string) *RequestProxy[T]
func (*RequestProxy[T]) WithEncoding ¶
func (p *RequestProxy[T]) WithEncoding(encoding ParamsEncoding) *RequestProxy[T]
func (*RequestProxy[T]) WithMethod ¶
func (p *RequestProxy[T]) WithMethod(method string) *RequestProxy[T]
type Resource ¶
type Resource[T any] struct { LastResponse *Response `json:"-"` // contains filtered or unexported fields }
func (*Resource[T]) SetLastResponse ¶
type ResponseProxy ¶
type ResponseSliceProxy ¶
type SendMailInput ¶
type SendMailInput = atomic.SendMailInput
type Subscription ¶
type Subscription = atomic.Subscription
type SubscriptionCreateInput ¶
type SubscriptionCreateInput = atomic.SubscriptionCreateInput
type SubscriptionDeleteInput ¶
type SubscriptionDeleteInput = atomic.SubscriptionDeleteInput
type SubscriptionGetInput ¶
type SubscriptionGetInput = atomic.SubscriptionGetInput
type SubscriptionListInput ¶
type SubscriptionListInput = atomic.SubscriptionListInput
type SubscriptionUpdateInput ¶
type SubscriptionUpdateInput = atomic.SubscriptionUpdateInput
type TemplateCreateInput ¶
type TemplateCreateInput = atomic.TemplateCreateInput
type TemplateDeleteInput ¶
type TemplateDeleteInput = atomic.TemplateDeleteInput
type TemplateGetInput ¶
type TemplateGetInput = atomic.TemplateGetInput
type TemplateListInput ¶
type TemplateListInput = atomic.TemplateListInput
type TemplateUpdateInput ¶
type TemplateUpdateInput = atomic.TemplateUpdateInput
type UserCreateInput ¶
type UserCreateInput = atomic.UserCreateInput
type UserDeleteInput ¶
type UserDeleteInput = atomic.UserDeleteInput
type UserGetInput ¶
type UserGetInput = atomic.UserGetInput
type UserImportInput ¶
type UserImportInput = atomic.UserImportInput
type UserListInput ¶
type UserListInput = atomic.UserListInput
type UserUpdateInput ¶
type UserUpdateInput = atomic.UserUpdateInput
Click to show internal directories.
Click to hide internal directories.