Documentation
¶
Index ¶
- Constants
- func ContextWithParams(ctx context.Context, params Params) context.Context
- type AccessToken
- type AccessTokenCreateInput
- type AccessTokenGetInput
- type AccessTokenRevokeInput
- type AccessTokenUpdateInput
- 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 Category
- type CategoryCreateInput
- type CategoryDeleteInput
- type CategoryGetInput
- type CategoryListInput
- type CategoryUpdateInput
- 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) AccessTokenUpdate(ctx context.Context, params *AccessTokenUpdateInput) (*AccessToken, 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) CategoryCreate(ctx context.Context, params *CategoryCreateInput) (*Category, error)
- func (c *Client) CategoryDelete(ctx context.Context, params *CategoryDeleteInput) error
- func (c *Client) CategoryGet(ctx context.Context, params *CategoryGetInput) (*Category, error)
- func (c *Client) CategoryList(ctx context.Context, params *CategoryListInput) ([]*Category, error)
- func (c *Client) CategoryUpdate(ctx context.Context, params *CategoryUpdateInput) (*Category, error)
- func (c *Client) CreditCreate(ctx context.Context, params *CreditCreateInput) (*Credit, error)
- func (c *Client) CreditGet(ctx context.Context, params *CreditGetInput) (*Credit, error)
- func (c *Client) CreditInviteAccept(ctx context.Context, params *CreditInviteAcceptInput) (*Credit, *CreditInvite, error)
- func (c *Client) CreditInviteCreate(ctx context.Context, params *CreditInviteCreateInput) (*CreditInvite, error)
- func (c *Client) CreditList(ctx context.Context, params *CreditListInput) ([]*Credit, error)
- func (c *Client) CreditUpdate(ctx context.Context, params *CreditUpdateInput) (*Credit, 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) 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) 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) UserExport(ctx context.Context, params *UserExportInput) (*Job, 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 Credit
- type CreditCreateInput
- type CreditGetInput
- type CreditInvite
- type CreditInviteAcceptInput
- type CreditInviteCreateInput
- type CreditListInput
- type CreditUpdateInput
- 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 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 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 UserExportInput
- type UserExportSource
- 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" AccessTokenUpdatePath = "/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 ( CategoryGetPath = "/api/1.0.0/categories/%s" CategoryCreatePath = "/api/1.0.0/categories" CategoryUpdatePath = "/api/1.0.0/categories/%s" CategoryDeletePath = "/api/1.0.0/categories/%s" CategoryListPath = "/api/1.0.0/categories" )
View Source
const ( CreditGetPath = "/api/1.0.0/credits/%s" CreditUpdatePath = "/api/1.0.0/credits/%s" CreditCreatePath = "/api/1.0.0/credits" CreditListPath = "/api/1.0.0/credits" CreditInviteCreatePath = "/api/1.0.0/credits/invite" CreditInviteAcceptPath = "/api/1.0.0/credits/invite/%s/accept" )
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 ( 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 ( 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" UserExportPath = "/api/1.0.0/users/export" )
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 ¶ added in v1.2.4
type AccessToken = atomic.AccessToken
type AccessTokenCreateInput ¶ added in v1.2.4
type AccessTokenCreateInput = atomic.AccessTokenCreateInput
type AccessTokenGetInput ¶ added in v1.2.4
type AccessTokenGetInput = atomic.AccessTokenGetInput
type AccessTokenRevokeInput ¶ added in v1.2.4
type AccessTokenRevokeInput = atomic.AccessTokenRevokeInput
type AccessTokenUpdateInput ¶ added in v1.2.4
type AccessTokenUpdateInput = atomic.AccessTokenUpdateInput
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 ¶ added in v1.2.4
type Application = atomic.Application
type ApplicationCreateInput ¶ added in v1.2.4
type ApplicationCreateInput = atomic.ApplicationCreateInput
type ApplicationDeleteInput ¶ added in v1.2.4
type ApplicationDeleteInput = atomic.ApplicationDeleteInput
type ApplicationGetInput ¶ added in v1.2.4
type ApplicationGetInput = atomic.ApplicationGetInput
type ApplicationListInput ¶ added in v1.2.4
type ApplicationListInput = atomic.ApplicationListInput
type ApplicationUpdateInput ¶ added in v1.2.4
type ApplicationUpdateInput = atomic.ApplicationUpdateInput
type ArticleCreateInput ¶ added in v1.2.4
type ArticleCreateInput = atomic.ArticleCreateInput
type ArticleDeleteInput ¶ added in v1.2.4
type ArticleDeleteInput = atomic.ArticleDeleteInput
type ArticleGetInput ¶ added in v1.2.4
type ArticleGetInput = atomic.ArticleGetInput
type ArticleListInput ¶ added in v1.2.4
type ArticleListInput = atomic.ArticleListInput
type ArticleUpdateInput ¶ added in v1.2.4
type ArticleUpdateInput = atomic.ArticleUpdateInput
type AssetCreateInput ¶ added in v1.2.4
type AssetCreateInput = atomic.AssetCreateInput
type AssetDeleteInput ¶ added in v1.2.4
type AssetDeleteInput = atomic.AssetDeleteInput
type AssetGetInput ¶ added in v1.2.4
type AssetGetInput = atomic.AssetGetInput
type AssetListInput ¶ added in v1.2.4
type AssetListInput = atomic.AssetListInput
type AssetUpdateInput ¶ added in v1.2.4
type AssetUpdateInput = atomic.AssetUpdateInput
type AudienceCreateInput ¶ added in v1.2.4
type AudienceCreateInput = atomic.AudienceCreateInput
type AudienceDeleteInput ¶ added in v1.2.4
type AudienceDeleteInput = atomic.AudienceDeleteInput
type AudienceGetInput ¶ added in v1.2.4
type AudienceGetInput = atomic.AudienceGetInput
type AudienceListInput ¶ added in v1.2.4
type AudienceListInput = atomic.AudienceListInput
type AudienceUpdateInput ¶ added in v1.2.4
type AudienceUpdateInput = atomic.AudienceUpdateInput
type Backend ¶
type Backend interface {
ExecContext(ctx context.Context, params RequestContainer, result Responder) error
}
type CategoryCreateInput ¶ added in v1.2.4
type CategoryCreateInput = atomic.CategoryCreateInput
type CategoryDeleteInput ¶ added in v1.2.4
type CategoryDeleteInput = atomic.CategoryDeleteInput
type CategoryGetInput ¶ added in v1.2.4
type CategoryGetInput = atomic.CategoryGetInput
type CategoryListInput ¶ added in v1.2.4
type CategoryListInput = atomic.CategoryListInput
type CategoryUpdateInput ¶ added in v1.2.4
type CategoryUpdateInput = atomic.CategoryUpdateInput
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) AccessTokenUpdate ¶ added in v1.2.4
func (c *Client) AccessTokenUpdate(ctx context.Context, params *AccessTokenUpdateInput) (*AccessToken, 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) CategoryCreate ¶ added in v1.2.4
func (*Client) CategoryDelete ¶ added in v1.2.4
func (c *Client) CategoryDelete(ctx context.Context, params *CategoryDeleteInput) error
func (*Client) CategoryGet ¶ added in v1.2.4
func (*Client) CategoryList ¶ added in v1.2.4
func (*Client) CategoryUpdate ¶ added in v1.2.4
func (*Client) CreditCreate ¶ added in v1.2.4
func (*Client) CreditInviteAccept ¶ added in v1.2.4
func (c *Client) CreditInviteAccept(ctx context.Context, params *CreditInviteAcceptInput) (*Credit, *CreditInvite, error)
func (*Client) CreditInviteCreate ¶ added in v1.2.4
func (c *Client) CreditInviteCreate(ctx context.Context, params *CreditInviteCreateInput) (*CreditInvite, error)
func (*Client) CreditList ¶ added in v1.2.4
func (*Client) CreditUpdate ¶ added in v1.2.4
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 ¶ added in v1.2.4
func (c *Client) JobCancel(ctx context.Context, params *JobCancelInput) error
func (*Client) JobRestart ¶ added in v1.2.4
func (*Client) OptionList ¶
func (*Client) OptionRemove ¶
func (c *Client) OptionRemove(ctx context.Context, params *OptionRemoveInput) error
func (*Client) OptionUpdate ¶
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) 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) UserExport ¶ added in v1.2.4
func (*Client) UserImport ¶
func (*Client) UserUpdate ¶
type ClientParamsKey ¶
type ClientParamsKey string
type CreditCreateInput ¶ added in v1.2.4
type CreditCreateInput = atomic.CreditCreateInput
type CreditGetInput ¶ added in v1.2.4
type CreditGetInput = atomic.CreditGetInput
type CreditInvite ¶ added in v1.2.4
type CreditInvite = atomic.CreditInvite
type CreditInviteAcceptInput ¶ added in v1.2.4
type CreditInviteAcceptInput = atomic.CreditInviteAcceptInput
type CreditInviteCreateInput ¶ added in v1.2.4
type CreditInviteCreateInput = atomic.CreditInviteCreateInput
type CreditListInput ¶ added in v1.2.4
type CreditListInput = atomic.CreditListInput
type CreditUpdateInput ¶ added in v1.2.4
type CreditUpdateInput = atomic.CreditUpdateInput
type Distribution ¶ added in v1.2.4
type Distribution = atomic.Distribution
type DistributionCreateInput ¶ added in v1.2.4
type DistributionCreateInput = atomic.DistributionCreateInput
type DistributionDeleteInput ¶ added in v1.2.4
type DistributionDeleteInput = atomic.DistributionDeleteInput
type DistributionGetInput ¶ added in v1.2.4
type DistributionGetInput = atomic.DistributionGetInput
type DistributionListInput ¶ added in v1.2.4
type DistributionListInput = atomic.DistributionListInput
type DistributionUpdateInput ¶ added in v1.2.4
type DistributionUpdateInput = atomic.DistributionUpdateInput
type EmailMessage ¶ added in v1.2.4
type Error ¶
type Error struct {
Code string `json:"code,omitempty"`
Message string `json:"message,omitempty"`
// Status carries the HTTP status line (e.g. "401 Unauthorized") so
// callers still get useful output when the server returns a body that
// doesn't include a Message.
Status string `json:"-"`
// Raw is the original response body when it existed but couldn't be
// decoded into the standard shape. Helps surface non-standard error
// envelopes (e.g. oauth2 responses).
Raw string `json:"-"`
}
type InstanceCreateInput ¶ added in v1.2.4
type InstanceCreateInput = atomic.InstanceCreateInput
type InstanceDeleteInput ¶ added in v1.2.4
type InstanceDeleteInput = atomic.InstanceDeleteInput
type InstanceGetInput ¶ added in v1.2.4
type InstanceGetInput = atomic.InstanceGetInput
type InstanceListInput ¶ added in v1.2.4
type InstanceListInput = atomic.InstanceListInput
type InstanceUpdateInput ¶ added in v1.2.4
type InstanceUpdateInput = atomic.InstanceUpdateInput
type JobCancelInput ¶ added in v1.2.4
type JobCancelInput = atomic.JobCancelInput
type JobCreateInput ¶ added in v1.2.4
type JobCreateInput = atomic.JobCreateInput
type JobGetInput ¶ added in v1.2.4
type JobGetInput = atomic.JobGetInput
type JobListInput ¶ added in v1.2.4
type JobListInput = atomic.JobListInput
type JobRestartInput ¶ added in v1.2.4
type JobRestartInput = atomic.JobRestartInput
type JobUpdateInput ¶ added in v1.2.4
type JobUpdateInput = atomic.JobUpdateInput
type ListParams ¶
type OptionGetInput ¶ added in v1.2.4
type OptionGetInput = atomic.OptionGetInput
type OptionListInput ¶ added in v1.2.4
type OptionListInput = atomic.OptionListInput
type OptionRemoveInput ¶ added in v1.2.4
type OptionRemoveInput = atomic.OptionRemoveInput
type OptionUpdateInput ¶ added in v1.2.4
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 PlanCreateInput ¶ added in v1.2.4
type PlanCreateInput = atomic.PlanCreateInput
type PlanDeleteInput ¶ added in v1.2.4
type PlanDeleteInput = atomic.PlanDeleteInput
type PlanGetInput ¶ added in v1.2.4
type PlanGetInput = atomic.PlanGetInput
type PlanListInput ¶ added in v1.2.4
type PlanListInput = atomic.PlanListInput
type PlanSubscribeInput ¶ added in v1.2.4
type PlanSubscribeInput = atomic.PlanSubscribeInput
type PlanUpdateInput ¶ added in v1.2.4
type PlanUpdateInput = atomic.PlanUpdateInput
type PriceCreateInput ¶ added in v1.2.4
type PriceCreateInput = atomic.PriceCreateInput
type PriceDeleteInput ¶ added in v1.2.4
type PriceDeleteInput = atomic.PriceDeleteInput
type PriceGetInput ¶ added in v1.2.4
type PriceGetInput = atomic.PriceGetInput
type PriceListInput ¶ added in v1.2.4
type PriceListInput = atomic.PriceListInput
type PriceUpdateInput ¶ added in v1.2.4
type PriceUpdateInput = atomic.PriceUpdateInput
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 ¶ added in v1.2.4
type SendMailInput = atomic.SendMailInput
type Subscription ¶ added in v1.2.4
type Subscription = atomic.Subscription
type SubscriptionCreateInput ¶ added in v1.2.4
type SubscriptionCreateInput = atomic.SubscriptionCreateInput
type SubscriptionDeleteInput ¶ added in v1.2.4
type SubscriptionDeleteInput = atomic.SubscriptionDeleteInput
type SubscriptionGetInput ¶ added in v1.2.4
type SubscriptionGetInput = atomic.SubscriptionGetInput
type SubscriptionListInput ¶ added in v1.2.4
type SubscriptionListInput = atomic.SubscriptionListInput
type SubscriptionUpdateInput ¶ added in v1.2.4
type SubscriptionUpdateInput = atomic.SubscriptionUpdateInput
type TemplateCreateInput ¶ added in v1.2.4
type TemplateCreateInput = atomic.TemplateCreateInput
type TemplateDeleteInput ¶ added in v1.2.4
type TemplateDeleteInput = atomic.TemplateDeleteInput
type TemplateGetInput ¶ added in v1.2.4
type TemplateGetInput = atomic.TemplateGetInput
type TemplateListInput ¶ added in v1.2.4
type TemplateListInput = atomic.TemplateListInput
type TemplateUpdateInput ¶ added in v1.2.4
type TemplateUpdateInput = atomic.TemplateUpdateInput
type UserCreateInput ¶ added in v1.2.4
type UserCreateInput = atomic.UserCreateInput
type UserDeleteInput ¶ added in v1.2.4
type UserDeleteInput = atomic.UserDeleteInput
type UserExportInput ¶ added in v1.2.4
type UserExportInput = atomic.UserExportInput
type UserExportSource ¶ added in v1.2.4
type UserExportSource = atomic.UserExportSource
type UserGetInput ¶ added in v1.2.4
type UserGetInput = atomic.UserGetInput
type UserImportInput ¶ added in v1.2.4
type UserImportInput = atomic.UserImportInput
type UserListInput ¶ added in v1.2.4
type UserListInput = atomic.UserListInput
type UserUpdateInput ¶ added in v1.2.4
type UserUpdateInput = atomic.UserUpdateInput
Click to show internal directories.
Click to hide internal directories.