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 AssetCompleteUploadInput
- type AssetCreateInput
- type AssetDeleteInput
- type AssetGetInput
- type AssetListInput
- type AssetMultipartPart
- type AssetMultipartUpload
- 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) AssetCompleteUpload(ctx context.Context, params *AssetCompleteUploadInput) (*Asset, 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) CustomRoleCreate(ctx context.Context, params *CustomRoleCreateInput) (*CustomRole, error)
- func (c *Client) CustomRoleDelete(ctx context.Context, params *CustomRoleDeleteInput) error
- func (c *Client) CustomRoleGet(ctx context.Context, params *CustomRoleGetInput) (*CustomRole, error)
- func (c *Client) CustomRoleList(ctx context.Context, params *CustomRoleListInput) ([]*CustomRole, error)
- func (c *Client) CustomRoleUpdate(ctx context.Context, params *CustomRoleUpdateInput) (*CustomRole, 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) SecretDelete(ctx context.Context, params *SecretDeleteInput) error
- func (c *Client) SecretList(ctx context.Context, params *SecretListInput) ([]*Secret, error)
- func (c *Client) SecretSet(ctx context.Context, params *SecretSetInput) (*Secret, 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)
- func (c *Client) WorkflowCreate(ctx context.Context, params *WorkflowCreateInput, body io.Reader, ...) (*Workflow, error)
- func (c *Client) WorkflowCreateFromBytes(ctx context.Context, params *WorkflowCreateInput, data []byte) (*Workflow, error)
- func (c *Client) WorkflowDelete(ctx context.Context, params *WorkflowDeleteInput) error
- func (c *Client) WorkflowGet(ctx context.Context, params *WorkflowGetInput) (*Workflow, error)
- func (c *Client) WorkflowList(ctx context.Context, params *WorkflowListInput) ([]*Workflow, error)
- func (c *Client) WorkflowRun(ctx context.Context, params *WorkflowRunInput) (*WorkflowRun, error)
- func (c *Client) WorkflowRunGet(ctx context.Context, params *WorkflowRunGetInput) (*WorkflowRun, error)
- func (c *Client) WorkflowRunList(ctx context.Context, params *WorkflowRunListInput) ([]*WorkflowRun, error)
- func (c *Client) WorkflowUpdate(ctx context.Context, params *WorkflowUpdateInput, body io.Reader, ...) (*Workflow, error)
- func (c *Client) WorkflowUpdateFromBytes(ctx context.Context, params *WorkflowUpdateInput, data []byte) (*Workflow, error)
- func (c *Client) WorkflowVersionList(ctx context.Context, params *WorkflowVersionListInput) ([]*WorkflowVersion, error)
- func (c *Client) WorkflowVersionRevert(ctx context.Context, params *WorkflowVersionRevertInput) (*Workflow, error)
- type ClientParamsKey
- type Credit
- type CreditCreateInput
- type CreditGetInput
- type CreditInvite
- type CreditInviteAcceptInput
- type CreditInviteCreateInput
- type CreditListInput
- type CreditUpdateInput
- type CustomRole
- type CustomRoleCreateInput
- type CustomRoleDeleteInput
- type CustomRoleGetInput
- type CustomRoleListInput
- type CustomRoleUpdateInput
- 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 Secret
- type SecretDeleteInput
- type SecretListInput
- type SecretSetInput
- 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
- type Workflow
- type WorkflowCreateInput
- type WorkflowDefinition
- type WorkflowDeleteInput
- type WorkflowGetInput
- type WorkflowListInput
- type WorkflowRun
- type WorkflowRunGetInput
- type WorkflowRunInput
- type WorkflowRunListInput
- type WorkflowUpdateInput
- type WorkflowVersion
- type WorkflowVersionListInput
- type WorkflowVersionRevertInput
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" AssetCompleteUploadPath = "/api/1.0.0/assets/%s/upload-complete" )
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 ( CustomRoleGetPath = "/api/1.0.0/roles/%s" CustomRoleCreatePath = "/api/1.0.0/roles" CustomRoleUpdatePath = "/api/1.0.0/roles/%s" CustomRoleDeletePath = "/api/1.0.0/roles/%s" CustomRoleListPath = "/api/1.0.0/roles" )
View Source
const ( SecretListPath = "/api/1.0.0/secrets" SecretSetPath = "/api/1.0.0/secrets" SecretDeletePath = "/api/1.0.0/secrets/%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" UserExportPath = "/api/1.0.0/users/export" )
View Source
const ( WorkflowListPath = "/api/1.0.0/workflows" WorkflowCreatePath = "/api/1.0.0/workflows" WorkflowGetPath = "/api/1.0.0/workflows/%s" WorkflowUpdatePath = "/api/1.0.0/workflows/%s" WorkflowDeletePath = "/api/1.0.0/workflows/%s" WorkflowRunPath = "/api/1.0.0/workflows/%s/run" WorkflowRunListPath = "/api/1.0.0/workflows/%s/runs" WorkflowRunGetPath = "/api/1.0.0/workflows/%s/runs/%s" WorkflowVersionListPath = "/api/1.0.0/workflows/%s/versions" WorkflowVersionRevertPath = "/api/1.0.0/workflows/%s/versions/%d/revert" )
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 AccessTokenUpdateInput ¶
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 ¶
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 AssetCompleteUploadInput ¶
type AssetCompleteUploadInput = atomic.AssetCompleteUploadInput
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 AssetMultipartPart ¶
type AssetMultipartPart = atomic.AssetMultipartPart
type AssetMultipartUpload ¶
type AssetMultipartUpload = atomic.AssetMultipartUpload
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 CategoryCreateInput ¶
type CategoryCreateInput = atomic.CategoryCreateInput
type CategoryDeleteInput ¶
type CategoryDeleteInput = atomic.CategoryDeleteInput
type CategoryGetInput ¶
type CategoryGetInput = atomic.CategoryGetInput
type CategoryListInput ¶
type CategoryListInput = atomic.CategoryListInput
type CategoryUpdateInput ¶
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 ¶
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) AssetCompleteUpload ¶
func (c *Client) AssetCompleteUpload(ctx context.Context, params *AssetCompleteUploadInput) (*Asset, error)
AssetCompleteUpload finishes an S3 multipart upload started by AssetCreate.
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 ¶
func (*Client) CategoryDelete ¶
func (c *Client) CategoryDelete(ctx context.Context, params *CategoryDeleteInput) error
func (*Client) CategoryGet ¶
func (*Client) CategoryList ¶
func (*Client) CategoryUpdate ¶
func (*Client) CreditCreate ¶
func (*Client) CreditInviteAccept ¶
func (c *Client) CreditInviteAccept(ctx context.Context, params *CreditInviteAcceptInput) (*Credit, *CreditInvite, error)
func (*Client) CreditInviteCreate ¶
func (c *Client) CreditInviteCreate(ctx context.Context, params *CreditInviteCreateInput) (*CreditInvite, error)
func (*Client) CreditList ¶
func (*Client) CreditUpdate ¶
func (*Client) CustomRoleCreate ¶
func (c *Client) CustomRoleCreate(ctx context.Context, params *CustomRoleCreateInput) (*CustomRole, error)
func (*Client) CustomRoleDelete ¶
func (c *Client) CustomRoleDelete(ctx context.Context, params *CustomRoleDeleteInput) error
func (*Client) CustomRoleGet ¶
func (c *Client) CustomRoleGet(ctx context.Context, params *CustomRoleGetInput) (*CustomRole, error)
func (*Client) CustomRoleList ¶
func (c *Client) CustomRoleList(ctx context.Context, params *CustomRoleListInput) ([]*CustomRole, error)
func (*Client) CustomRoleUpdate ¶
func (c *Client) CustomRoleUpdate(ctx context.Context, params *CustomRoleUpdateInput) (*CustomRole, error)
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) 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) SecretDelete ¶
func (c *Client) SecretDelete(ctx context.Context, params *SecretDeleteInput) error
func (*Client) SecretList ¶
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 ¶
func (*Client) UserImport ¶
func (*Client) UserUpdate ¶
func (*Client) WorkflowCreate ¶
func (*Client) WorkflowCreateFromBytes ¶
func (c *Client) WorkflowCreateFromBytes(ctx context.Context, params *WorkflowCreateInput, data []byte) (*Workflow, error)
WorkflowCreateFromBytes is a convenience wrapper that creates a workflow from raw YAML or JSON bytes, auto-detecting the content type.
func (*Client) WorkflowDelete ¶
func (c *Client) WorkflowDelete(ctx context.Context, params *WorkflowDeleteInput) error
func (*Client) WorkflowGet ¶
func (*Client) WorkflowList ¶
func (*Client) WorkflowRun ¶
func (c *Client) WorkflowRun(ctx context.Context, params *WorkflowRunInput) (*WorkflowRun, error)
func (*Client) WorkflowRunGet ¶
func (c *Client) WorkflowRunGet(ctx context.Context, params *WorkflowRunGetInput) (*WorkflowRun, error)
func (*Client) WorkflowRunList ¶
func (c *Client) WorkflowRunList(ctx context.Context, params *WorkflowRunListInput) ([]*WorkflowRun, error)
func (*Client) WorkflowUpdate ¶
func (*Client) WorkflowUpdateFromBytes ¶
func (c *Client) WorkflowUpdateFromBytes(ctx context.Context, params *WorkflowUpdateInput, data []byte) (*Workflow, error)
WorkflowUpdateFromBytes is a convenience wrapper that updates a workflow from raw YAML or JSON bytes, auto-detecting the content type.
func (*Client) WorkflowVersionList ¶
func (c *Client) WorkflowVersionList(ctx context.Context, params *WorkflowVersionListInput) ([]*WorkflowVersion, error)
func (*Client) WorkflowVersionRevert ¶
type ClientParamsKey ¶
type ClientParamsKey string
type CreditCreateInput ¶
type CreditCreateInput = atomic.CreditCreateInput
type CreditGetInput ¶
type CreditGetInput = atomic.CreditGetInput
type CreditInvite ¶
type CreditInvite = atomic.CreditInvite
type CreditInviteAcceptInput ¶
type CreditInviteAcceptInput = atomic.CreditInviteAcceptInput
type CreditInviteCreateInput ¶
type CreditInviteCreateInput = atomic.CreditInviteCreateInput
type CreditListInput ¶
type CreditListInput = atomic.CreditListInput
type CreditUpdateInput ¶
type CreditUpdateInput = atomic.CreditUpdateInput
type CustomRole ¶
type CustomRole = atomic.CustomRole
type CustomRoleCreateInput ¶
type CustomRoleCreateInput = atomic.CustomRoleCreateInput
type CustomRoleDeleteInput ¶
type CustomRoleDeleteInput = atomic.CustomRoleDeleteInput
type CustomRoleGetInput ¶
type CustomRoleGetInput = atomic.CustomRoleGetInput
type CustomRoleListInput ¶
type CustomRoleListInput = atomic.CustomRoleListInput
type CustomRoleUpdateInput ¶
type CustomRoleUpdateInput = atomic.CustomRoleUpdateInput
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 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 ¶
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 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 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 SecretDeleteInput ¶
type SecretDeleteInput = atomic.SecretDeleteInput
type SecretListInput ¶
type SecretListInput = atomic.SecretListInput
type SecretSetInput ¶
type SecretSetInput = atomic.SecretSetInput
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 UserExportInput ¶
type UserExportInput = atomic.UserExportInput
type UserExportSource ¶
type UserExportSource = atomic.UserExportSource
type UserGetInput ¶
type UserGetInput = atomic.UserGetInput
type UserImportInput ¶
type UserImportInput = atomic.UserImportInput
type UserListInput ¶
type UserListInput = atomic.UserListInput
type UserUpdateInput ¶
type UserUpdateInput = atomic.UserUpdateInput
type WorkflowCreateInput ¶
type WorkflowCreateInput = atomic.WorkflowCreateInput
type WorkflowDefinition ¶
type WorkflowDefinition = atomic.WorkflowDefinition
type WorkflowDeleteInput ¶
type WorkflowDeleteInput = atomic.WorkflowDeleteInput
type WorkflowGetInput ¶
type WorkflowGetInput = atomic.WorkflowGetInput
type WorkflowListInput ¶
type WorkflowListInput = atomic.WorkflowListInput
type WorkflowRun ¶
type WorkflowRun = atomic.WorkflowRun
type WorkflowRunGetInput ¶
type WorkflowRunGetInput = atomic.WorkflowRunGetInput
type WorkflowRunInput ¶
type WorkflowRunInput = atomic.WorkflowRunInput
type WorkflowRunListInput ¶
type WorkflowRunListInput = atomic.WorkflowRunListInput
type WorkflowUpdateInput ¶
type WorkflowUpdateInput = atomic.WorkflowUpdateInput
type WorkflowVersion ¶
type WorkflowVersion = atomic.WorkflowVersion
type WorkflowVersionListInput ¶
type WorkflowVersionListInput = atomic.WorkflowVersionListInput
type WorkflowVersionRevertInput ¶
type WorkflowVersionRevertInput = atomic.WorkflowVersionRevertInput
Source Files
¶
Click to show internal directories.
Click to hide internal directories.