Documentation
¶
Index ¶
- type AuthorizationTag
- type BackendApp
- type BackendToken
- type BackendUser
- type Client
- func (client *Client) Authorization() *AuthorizationTag
- func (client *Client) Commit() *CommitTag
- func (client *Client) Document() *DocumentTag
- func (client *Client) Explore() *ExploreTag
- func (client *Client) Issue() *IssueTag
- func (client *Client) Meta() *MetaTag
- func (client *Client) PullRequest() *PullRequestTag
- func (client *Client) Star() *StarTag
- func (client *Client) Tag() *TagTag
- func (client *Client) Trigger() *TriggerTag
- type Collection
- type Comment
- type CommentCollection
- type CommentCreate
- type CommentReactions
- type Commit
- type CommitCollection
- type CommitPrevious
- type CommitTag
- type CommonMessage
- type CommonMessageException
- type CommonMetadata
- type Document
- type DocumentCollection
- type DocumentCreate
- type DocumentExportRequest
- type DocumentExportResponse
- type DocumentMeta
- type DocumentPreview
- type DocumentRepository
- type DocumentTag
- func (client *DocumentTag) Create(user string, payload DocumentCreate) (*Message, error)
- func (client *DocumentTag) Delete(user string, document string) (*Message, error)
- func (client *DocumentTag) Export(user string, document string, payload DocumentExportRequest) (*DocumentExportResponse, error)
- func (client *DocumentTag) Fork(user string, document string) (*Message, error)
- func (client *DocumentTag) Get(user string, document string, version string) (*Document, error)
- func (client *DocumentTag) GetAll(user string, startIndex int, count int, search string) (*DocumentCollection, error)
- func (client *DocumentTag) Import(user string, document string, payload Passthru) (*Message, error)
- func (client *DocumentTag) Meta(user string, document string, payload DocumentMeta) (*Message, error)
- func (client *DocumentTag) Reset(user string, document string, payload Passthru) (*Message, error)
- func (client *DocumentTag) Revert(user string, document string, id string, payload Passthru) (*Message, error)
- func (client *DocumentTag) ShowPreview(user string, document string, version string) (*DocumentPreview, error)
- func (client *DocumentTag) Star(user string, document string, payload Passthru) (*Message, error)
- func (client *DocumentTag) Update(user string, document string, payload DocumentUpdate) (*Message, error)
- type DocumentUpdate
- type ExploreTag
- type Issue
- type IssueCollection
- type IssueCreate
- type IssueTag
- func (client *IssueTag) Create(user string, document string, payload IssueCreate) (*Message, error)
- func (client *IssueTag) CreateComment(user string, document string, id string, payload CommentCreate) (*Message, error)
- func (client *IssueTag) Delete(user string, document string, id string) (*Message, error)
- func (client *IssueTag) Get(user string, document string, id string) (*Issue, error)
- func (client *IssueTag) GetAll(user string, document string, status int, startIndex int, count int, ...) (*IssueCollection, error)
- func (client *IssueTag) GetAllComments(user string, document string, id string, startIndex int, count int, ...) (*CommentCollection, error)
- func (client *IssueTag) ReactComment(user string, document string, id string, comment string, reaction string, ...) (*Message, error)
- type Message
- type MessageException
- type MetaTag
- type Passthru
- type PullRequest
- type PullRequestCollection
- type PullRequestCreate
- type PullRequestTag
- func (client *PullRequestTag) Create(user string, document string, payload PullRequestCreate) (*Message, error)
- func (client *PullRequestTag) CreateComment(user string, document string, id string, payload CommentCreate) (*Message, error)
- func (client *PullRequestTag) Delete(user string, document string, id string) (*Message, error)
- func (client *PullRequestTag) Get(user string, document string, id string) (*PullRequest, error)
- func (client *PullRequestTag) GetAll(user string, document string, status int, startIndex int, count int, ...) (*PullRequestCollection, error)
- func (client *PullRequestTag) GetAllComments(user string, document string, id string, startIndex int, count int, ...) (*CommentCollection, error)
- func (client *PullRequestTag) ReactComment(user string, document string, id string, comment string, reaction string, ...) (*Message, error)
- func (client *PullRequestTag) Update(user string, document string, id string, payload Passthru) (*Message, error)
- type StarTag
- type SystemAbout
- type SystemAboutApps
- type SystemAboutLink
- type Tag
- type TagChangelog
- type TagCollection
- type TagTag
- func (client *TagTag) Changelog(user string, document string, payload Passthru) (*TagChangelog, error)
- func (client *TagTag) Create(user string, document string, payload Passthru) (*Message, error)
- func (client *TagTag) Delete(user string, document string, id string) (*Message, error)
- func (client *TagTag) Get(user string, document string, id string) (*Tag, error)
- func (client *TagTag) GetAll(user string, document string, startIndex int, count int, search string) (*TagCollection, error)
- func (client *TagTag) Trigger(user string, document string, id string, payload Passthru) (*Message, error)
- type Trigger
- type TriggerCollection
- type TriggerConfig
- type TriggerCreate
- type TriggerTag
- func (client *TriggerTag) Create(user string, document string, payload TriggerCreate) (*Message, error)
- func (client *TriggerTag) Delete(user string, document string, id string) (*Message, error)
- func (client *TriggerTag) Execute(user string, document string, id string, payload Passthru) (*Message, error)
- func (client *TriggerTag) Get(user string, document string, id string) (*Trigger, error)
- func (client *TriggerTag) GetAll(user string, document string, startIndex int, count int, search string) (*TriggerCollection, error)
- func (client *TriggerTag) Update(user string, document string, id string, payload TriggerUpdate) (*Message, error)
- type TriggerUpdate
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthorizationTag ¶
type AuthorizationTag struct {
// contains filtered or unexported fields
}
func NewAuthorizationTag ¶
func NewAuthorizationTag(httpClient *http.Client, parser *sdkgen.Parser) *AuthorizationTag
func (*AuthorizationTag) GetWhoami ¶
func (client *AuthorizationTag) GetWhoami() (*BackendUser, error)
GetWhoami
func (*AuthorizationTag) Revoke ¶
func (client *AuthorizationTag) Revoke() (*CommonMessage, error)
Revoke
type BackendApp ¶
type BackendApp struct { Id int `json:"id"` UserId int `json:"userId"` Status int `json:"status"` Name string `json:"name"` Url string `json:"url"` Parameters string `json:"parameters"` AppKey string `json:"appKey"` AppSecret string `json:"appSecret"` Metadata *CommonMetadata `json:"metadata"` Date string `json:"date"` Scopes []string `json:"scopes"` Tokens []BackendToken `json:"tokens"` }
type BackendToken ¶ added in v0.2.0
type BackendUser ¶
type BackendUser struct { Id int `json:"id"` RoleId int `json:"roleId"` PlanId int `json:"planId"` Status int `json:"status"` Name string `json:"name"` Email string `json:"email"` Points int `json:"points"` Scopes []string `json:"scopes"` Apps []BackendApp `json:"apps"` Metadata *CommonMetadata `json:"metadata"` Date string `json:"date"` }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func BuildAnonymous ¶ added in v0.2.0
func (*Client) Authorization ¶
func (client *Client) Authorization() *AuthorizationTag
func (*Client) Document ¶
func (client *Client) Document() *DocumentTag
func (*Client) Explore ¶
func (client *Client) Explore() *ExploreTag
func (*Client) PullRequest ¶
func (client *Client) PullRequest() *PullRequestTag
func (*Client) Trigger ¶
func (client *Client) Trigger() *TriggerTag
type Collection ¶
type CommentCollection ¶
type CommentCreate ¶
type CommentReactions ¶
type CommitCollection ¶
type CommitPrevious ¶
type CommitTag ¶
type CommitTag struct {
// contains filtered or unexported fields
}
func NewCommitTag ¶
type CommonMessage ¶
type CommonMessage struct { Success bool `json:"success"` Message string `json:"message"` Id string `json:"id"` }
Common error message
type CommonMessageException ¶
type CommonMessageException struct { Payload CommonMessage Previous error }
func (*CommonMessageException) Error ¶
func (e *CommonMessageException) Error() string
type CommonMetadata ¶
type Document ¶
type Document struct { Id int `json:"id"` User *User `json:"user"` Source *Document `json:"source"` Status int `json:"status"` Stars int `json:"stars"` Name string `json:"name"` Description string `json:"description"` Private bool `json:"private"` BaseVersion string `json:"baseVersion"` DevelopmentMode bool `json:"developmentMode"` Homepage string `json:"homepage"` Spec any `json:"spec"` UpdateDate string `json:"updateDate"` InsertDate string `json:"insertDate"` }
type DocumentCollection ¶
type DocumentCreate ¶
type DocumentExportRequest ¶
type DocumentExportResponse ¶
type DocumentExportResponse struct {
Href string `json:"href"`
}
type DocumentMeta ¶
type DocumentPreview ¶
type DocumentPreview struct { Tags []Tag `json:"tags"` Repositories []DocumentRepository `json:"repositories"` Types []string `json:"types"` }
type DocumentRepository ¶ added in v0.2.0
type DocumentTag ¶
type DocumentTag struct {
// contains filtered or unexported fields
}
func NewDocumentTag ¶
func NewDocumentTag(httpClient *http.Client, parser *sdkgen.Parser) *DocumentTag
func (*DocumentTag) Create ¶
func (client *DocumentTag) Create(user string, payload DocumentCreate) (*Message, error)
Create Creates a new document
func (*DocumentTag) Delete ¶
func (client *DocumentTag) Delete(user string, document string) (*Message, error)
Delete Removes a document
func (*DocumentTag) Export ¶
func (client *DocumentTag) Export(user string, document string, payload DocumentExportRequest) (*DocumentExportResponse, error)
Export Export this document
func (*DocumentTag) Fork ¶
func (client *DocumentTag) Fork(user string, document string) (*Message, error)
Fork Fork this document
func (*DocumentTag) GetAll ¶
func (client *DocumentTag) GetAll(user string, startIndex int, count int, search string) (*DocumentCollection, error)
GetAll Returns all documents
func (*DocumentTag) Meta ¶
func (client *DocumentTag) Meta(user string, document string, payload DocumentMeta) (*Message, error)
Meta Updates the meta data of an document
func (*DocumentTag) Revert ¶
func (client *DocumentTag) Revert(user string, document string, id string, payload Passthru) (*Message, error)
Revert Reverts your document to this commit
func (*DocumentTag) ShowPreview ¶
func (client *DocumentTag) ShowPreview(user string, document string, version string) (*DocumentPreview, error)
ShowPreview Returns a document preview
func (*DocumentTag) Update ¶
func (client *DocumentTag) Update(user string, document string, payload DocumentUpdate) (*Message, error)
Update Updates a document
type DocumentUpdate ¶
type DocumentUpdate struct {
Spec any `json:"spec"`
}
type ExploreTag ¶
type ExploreTag struct {
// contains filtered or unexported fields
}
func NewExploreTag ¶
func NewExploreTag(httpClient *http.Client, parser *sdkgen.Parser) *ExploreTag
func (*ExploreTag) GetAll ¶
func (client *ExploreTag) GetAll(startIndex int, count int, search string) (*DocumentCollection, error)
GetAll Returns trending documents
type IssueCollection ¶
type IssueCreate ¶
type IssueTag ¶
type IssueTag struct {
// contains filtered or unexported fields
}
func NewIssueTag ¶
func (*IssueTag) CreateComment ¶
func (client *IssueTag) CreateComment(user string, document string, id string, payload CommentCreate) (*Message, error)
CreateComment Creates a new issue comment
func (*IssueTag) GetAll ¶
func (client *IssueTag) GetAll(user string, document string, status int, startIndex int, count int, search string) (*IssueCollection, error)
GetAll Returns all issues
type MessageException ¶
func (*MessageException) Error ¶
func (e *MessageException) Error() string
type PullRequest ¶
type PullRequestCollection ¶
type PullRequestCollection struct { TotalResults int `json:"totalResults"` StartIndex int `json:"startIndex"` ItemsPerPage int `json:"itemsPerPage"` Entry []PullRequest `json:"entry"` }
type PullRequestCreate ¶
type PullRequestTag ¶
type PullRequestTag struct {
// contains filtered or unexported fields
}
func NewPullRequestTag ¶
func NewPullRequestTag(httpClient *http.Client, parser *sdkgen.Parser) *PullRequestTag
func (*PullRequestTag) Create ¶
func (client *PullRequestTag) Create(user string, document string, payload PullRequestCreate) (*Message, error)
Create Creates a new pull request
func (*PullRequestTag) CreateComment ¶
func (client *PullRequestTag) CreateComment(user string, document string, id string, payload CommentCreate) (*Message, error)
CreateComment Creates a new pull request comment
func (*PullRequestTag) Get ¶
func (client *PullRequestTag) Get(user string, document string, id string) (*PullRequest, error)
Get Returns a pull request
func (*PullRequestTag) GetAll ¶
func (client *PullRequestTag) GetAll(user string, document string, status int, startIndex int, count int, search string) (*PullRequestCollection, error)
GetAll Returns all pull requests
func (*PullRequestTag) GetAllComments ¶
func (client *PullRequestTag) GetAllComments(user string, document string, id string, startIndex int, count int, search string) (*CommentCollection, error)
GetAllComments Shows all pull request comments
type SystemAbout ¶
type SystemAbout struct { ApiVersion string `json:"apiVersion"` Title string `json:"title"` Description string `json:"description"` TermsOfService string `json:"termsOfService"` ContactName string `json:"contactName"` ContactUrl string `json:"contactUrl"` ContactEmail string `json:"contactEmail"` LicenseName string `json:"licenseName"` LicenseUrl string `json:"licenseUrl"` PaymentCurrency string `json:"paymentCurrency"` Categories []string `json:"categories"` Scopes []string `json:"scopes"` Apps *SystemAboutApps `json:"apps"` Links []SystemAboutLink `json:"links"` }
type SystemAboutApps ¶
type SystemAboutLink ¶
type TagChangelog ¶
type TagCollection ¶
type TagTag ¶
type TagTag struct {
// contains filtered or unexported fields
}
func (*TagTag) Changelog ¶
func (client *TagTag) Changelog(user string, document string, payload Passthru) (*TagChangelog, error)
Changelog Generates the changelog for the current release
type TriggerCollection ¶
type TriggerConfig ¶
type TriggerCreate ¶
type TriggerTag ¶
type TriggerTag struct {
// contains filtered or unexported fields
}
func NewTriggerTag ¶
func NewTriggerTag(httpClient *http.Client, parser *sdkgen.Parser) *TriggerTag
func (*TriggerTag) Create ¶
func (client *TriggerTag) Create(user string, document string, payload TriggerCreate) (*Message, error)
Create Creates a new trigger
func (*TriggerTag) Execute ¶
func (client *TriggerTag) Execute(user string, document string, id string, payload Passthru) (*Message, error)
Execute Executes a trigger
func (*TriggerTag) GetAll ¶
func (client *TriggerTag) GetAll(user string, document string, startIndex int, count int, search string) (*TriggerCollection, error)
GetAll Returns all configured triggers
func (*TriggerTag) Update ¶ added in v0.2.0
func (client *TriggerTag) Update(user string, document string, id string, payload TriggerUpdate) (*Message, error)
Update Updates a trigger
type TriggerUpdate ¶ added in v0.2.0
Source Files
¶
- authorization_tag.go
- backend_app.go
- backend_token.go
- backend_user.go
- client.go
- collection.go
- comment.go
- comment_collection.go
- comment_create.go
- comment_reactions.go
- commit.go
- commit_collection.go
- commit_previous.go
- commit_tag.go
- common_message.go
- common_message_exception.go
- common_metadata.go
- document.go
- document_collection.go
- document_create.go
- document_export_request.go
- document_export_response.go
- document_meta.go
- document_preview.go
- document_repository.go
- document_tag.go
- document_update.go
- explore_tag.go
- issue.go
- issue_collection.go
- issue_create.go
- issue_tag.go
- message.go
- message_exception.go
- meta_tag.go
- passthru.go
- pull_request.go
- pull_request_collection.go
- pull_request_create.go
- pull_request_tag.go
- star_tag.go
- system_about.go
- system_about_apps.go
- system_about_link.go
- tag.go
- tag_changelog.go
- tag_collection.go
- tag_tag.go
- trigger.go
- trigger_collection.go
- trigger_config.go
- trigger_create.go
- trigger_tag.go
- trigger_update.go
- user.go