api

package
v0.0.1-beta Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: Apache-2.0, MIT Imports: 20 Imported by: 0

Documentation

Overview

Package api provides generated code for our OpenAPI

Package api provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen/v2 version v2.0.1-0.20231120160225-add3126ee845 DO NOT EDIT.

Package api is a generated GoMock package.

Index

Constants

View Source
const (
	Basic_authScopes  = "basic_auth.Scopes"
	Cookie_authScopes = "cookie_auth.Scopes"
	Jwt_tokenScopes   = "jwt_token.Scopes"
)

Variables

This section is empty.

Functions

func GetSwagger

func GetSwagger() (swagger *openapi3.T, err error)

GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.

func Handler

func Handler(si ServerInterface) http.Handler

Handler creates http.Handler with routing matching OpenAPI spec.

func HandlerFromMux

func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler

HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.

func HandlerFromMuxWithBaseURL

func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler

func HandlerWithOptions

func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler

HandlerWithOptions creates http.Handler with additional options

func NewCommitWipRequest

func NewCommitWipRequest(server string, owner string, repository string, params *CommitWipParams) (*http.Request, error)

NewCommitWipRequest generates requests for CommitWip

func NewCompareCommitRequest

func NewCompareCommitRequest(server string, owner string, repository string, basehead string, params *CompareCommitParams) (*http.Request, error)

NewCompareCommitRequest generates requests for CompareCommit

func NewCreateBranchRequest

func NewCreateBranchRequest(server string, owner string, repository string, body CreateBranchJSONRequestBody) (*http.Request, error)

NewCreateBranchRequest calls the generic CreateBranch builder with application/json body

func NewCreateBranchRequestWithBody

func NewCreateBranchRequestWithBody(server string, owner string, repository string, contentType string, body io.Reader) (*http.Request, error)

NewCreateBranchRequestWithBody generates requests for CreateBranch with any type of body

func NewCreateMergeRequestRequest

func NewCreateMergeRequestRequest(server string, owner string, repository string, body CreateMergeRequestJSONRequestBody) (*http.Request, error)

NewCreateMergeRequestRequest calls the generic CreateMergeRequest builder with application/json body

func NewCreateMergeRequestRequestWithBody

func NewCreateMergeRequestRequestWithBody(server string, owner string, repository string, contentType string, body io.Reader) (*http.Request, error)

NewCreateMergeRequestRequestWithBody generates requests for CreateMergeRequest with any type of body

func NewCreateRepositoryRequest

func NewCreateRepositoryRequest(server string, body CreateRepositoryJSONRequestBody) (*http.Request, error)

NewCreateRepositoryRequest calls the generic CreateRepository builder with application/json body

func NewCreateRepositoryRequestWithBody

func NewCreateRepositoryRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateRepositoryRequestWithBody generates requests for CreateRepository with any type of body

func NewDeleteBranchRequest

func NewDeleteBranchRequest(server string, owner string, repository string, params *DeleteBranchParams) (*http.Request, error)

NewDeleteBranchRequest generates requests for DeleteBranch

func NewDeleteObjectRequest

func NewDeleteObjectRequest(server string, owner string, repository string, params *DeleteObjectParams) (*http.Request, error)

NewDeleteObjectRequest generates requests for DeleteObject

func NewDeleteRepositoryRequest

func NewDeleteRepositoryRequest(server string, owner string, repository string) (*http.Request, error)

NewDeleteRepositoryRequest generates requests for DeleteRepository

func NewDeleteWipRequest

func NewDeleteWipRequest(server string, owner string, repository string, params *DeleteWipParams) (*http.Request, error)

NewDeleteWipRequest generates requests for DeleteWip

func NewGetBranchRequest

func NewGetBranchRequest(server string, owner string, repository string, params *GetBranchParams) (*http.Request, error)

NewGetBranchRequest generates requests for GetBranch

func NewGetCommitChangesRequest

func NewGetCommitChangesRequest(server string, owner string, repository string, commitId string, params *GetCommitChangesParams) (*http.Request, error)

NewGetCommitChangesRequest generates requests for GetCommitChanges

func NewGetCommitsInRefRequest

func NewGetCommitsInRefRequest(server string, owner string, repository string, params *GetCommitsInRefParams) (*http.Request, error)

NewGetCommitsInRefRequest generates requests for GetCommitsInRef

func NewGetEntriesInRefRequest

func NewGetEntriesInRefRequest(server string, owner string, repository string, params *GetEntriesInRefParams) (*http.Request, error)

NewGetEntriesInRefRequest generates requests for GetEntriesInRef

func NewGetMergeRequestRequest

func NewGetMergeRequestRequest(server string, owner string, repository string, mrSeq uint64) (*http.Request, error)

NewGetMergeRequestRequest generates requests for GetMergeRequest

func NewGetObjectRequest

func NewGetObjectRequest(server string, owner string, repository string, params *GetObjectParams) (*http.Request, error)

NewGetObjectRequest generates requests for GetObject

func NewGetRepositoryRequest

func NewGetRepositoryRequest(server string, owner string, repository string) (*http.Request, error)

NewGetRepositoryRequest generates requests for GetRepository

func NewGetSetupStateRequest

func NewGetSetupStateRequest(server string) (*http.Request, error)

NewGetSetupStateRequest generates requests for GetSetupState

func NewGetUserInfoRequest

func NewGetUserInfoRequest(server string) (*http.Request, error)

NewGetUserInfoRequest generates requests for GetUserInfo

func NewGetVersionRequest

func NewGetVersionRequest(server string) (*http.Request, error)

NewGetVersionRequest generates requests for GetVersion

func NewGetWipChangesRequest

func NewGetWipChangesRequest(server string, owner string, repository string, params *GetWipChangesParams) (*http.Request, error)

NewGetWipChangesRequest generates requests for GetWipChanges

func NewGetWipRequest

func NewGetWipRequest(server string, owner string, repository string, params *GetWipParams) (*http.Request, error)

NewGetWipRequest generates requests for GetWip

func NewHeadObjectRequest

func NewHeadObjectRequest(server string, owner string, repository string, params *HeadObjectParams) (*http.Request, error)

NewHeadObjectRequest generates requests for HeadObject

func NewListBranchesRequest

func NewListBranchesRequest(server string, owner string, repository string, params *ListBranchesParams) (*http.Request, error)

NewListBranchesRequest generates requests for ListBranches

func NewListMergeRequestsRequest

func NewListMergeRequestsRequest(server string, owner string, repository string, params *ListMergeRequestsParams) (*http.Request, error)

NewListMergeRequestsRequest generates requests for ListMergeRequests

func NewListRepositoryOfAuthenticatedUserRequest

func NewListRepositoryOfAuthenticatedUserRequest(server string, params *ListRepositoryOfAuthenticatedUserParams) (*http.Request, error)

NewListRepositoryOfAuthenticatedUserRequest generates requests for ListRepositoryOfAuthenticatedUser

func NewListRepositoryRequest

func NewListRepositoryRequest(server string, owner string, params *ListRepositoryParams) (*http.Request, error)

NewListRepositoryRequest generates requests for ListRepository

func NewListWipRequest

func NewListWipRequest(server string, owner string, repository string) (*http.Request, error)

NewListWipRequest generates requests for ListWip

func NewLoginRequest

func NewLoginRequest(server string, body LoginJSONRequestBody) (*http.Request, error)

NewLoginRequest calls the generic Login builder with application/json body

func NewLoginRequestWithBody

func NewLoginRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewLoginRequestWithBody generates requests for Login with any type of body

func NewLogoutRequest

func NewLogoutRequest(server string) (*http.Request, error)

NewLogoutRequest generates requests for Logout

func NewMergeRequest

func NewMergeRequest(server string, owner string, repository string, mrSeq uint64, body MergeJSONRequestBody) (*http.Request, error)

NewMergeRequest calls the generic Merge builder with application/json body

func NewMergeRequestWithBody

func NewMergeRequestWithBody(server string, owner string, repository string, mrSeq uint64, contentType string, body io.Reader) (*http.Request, error)

NewMergeRequestWithBody generates requests for Merge with any type of body

func NewRefreshTokenRequest

func NewRefreshTokenRequest(server string) (*http.Request, error)

NewRefreshTokenRequest generates requests for RefreshToken

func NewRegisterRequest

func NewRegisterRequest(server string, body RegisterJSONRequestBody) (*http.Request, error)

NewRegisterRequest calls the generic Register builder with application/json body

func NewRegisterRequestWithBody

func NewRegisterRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewRegisterRequestWithBody generates requests for Register with any type of body

func NewRevertWipChangesRequest

func NewRevertWipChangesRequest(server string, owner string, repository string, params *RevertWipChangesParams) (*http.Request, error)

NewRevertWipChangesRequest generates requests for RevertWipChanges

func NewUpdateMergeRequestRequest

func NewUpdateMergeRequestRequest(server string, owner string, repository string, mrSeq uint64, body UpdateMergeRequestJSONRequestBody) (*http.Request, error)

NewUpdateMergeRequestRequest calls the generic UpdateMergeRequest builder with application/json body

func NewUpdateMergeRequestRequestWithBody

func NewUpdateMergeRequestRequestWithBody(server string, owner string, repository string, mrSeq uint64, contentType string, body io.Reader) (*http.Request, error)

NewUpdateMergeRequestRequestWithBody generates requests for UpdateMergeRequest with any type of body

func NewUpdateRepositoryRequest

func NewUpdateRepositoryRequest(server string, owner string, repository string, body UpdateRepositoryJSONRequestBody) (*http.Request, error)

NewUpdateRepositoryRequest calls the generic UpdateRepository builder with application/json body

func NewUpdateRepositoryRequestWithBody

func NewUpdateRepositoryRequestWithBody(server string, owner string, repository string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateRepositoryRequestWithBody generates requests for UpdateRepository with any type of body

func NewUpdateWipRequest

func NewUpdateWipRequest(server string, owner string, repository string, params *UpdateWipParams, body UpdateWipJSONRequestBody) (*http.Request, error)

NewUpdateWipRequest calls the generic UpdateWip builder with application/json body

func NewUpdateWipRequestWithBody

func NewUpdateWipRequestWithBody(server string, owner string, repository string, params *UpdateWipParams, contentType string, body io.Reader) (*http.Request, error)

NewUpdateWipRequestWithBody generates requests for UpdateWip with any type of body

func NewUploadObjectRequestWithBody

func NewUploadObjectRequestWithBody(server string, owner string, repository string, params *UploadObjectParams, contentType string, body io.Reader) (*http.Request, error)

NewUploadObjectRequestWithBody generates requests for UploadObject with any type of body

func PathToRawSpec

func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)

Constructs a synthetic filesystem for resolving external references when loading openapi specifications.

func RawSpec

func RawSpec() ([]byte, error)

RawSpec hack to get swagger json for swagger ui

Types

type AuthenticationToken

type AuthenticationToken struct {
	// Token a JWT token that could be used to authenticate requests
	Token string `json:"token"`

	// TokenExpiration Unix Epoch in seconds
	TokenExpiration *int64 `json:"token_expiration,omitempty"`
}

AuthenticationToken defines model for AuthenticationToken.

type Branch

type Branch struct {
	CommitHash   string             `json:"commit_hash"`
	CreatedAt    int64              `json:"created_at"`
	CreatorId    openapi_types.UUID `json:"creator_id"`
	Description  *string            `json:"description,omitempty"`
	Id           openapi_types.UUID `json:"id"`
	Name         string             `json:"name"`
	RepositoryId openapi_types.UUID `json:"repository_id"`
	UpdatedAt    int64              `json:"updated_at"`
}

Branch defines model for Branch.

type BranchCreation

type BranchCreation struct {
	Name   string `json:"name"`
	Source string `json:"source"`
}

BranchCreation defines model for BranchCreation.

type BranchList

type BranchList struct {
	Pagination Pagination `json:"pagination"`
	Results    []Branch   `json:"results"`
}

BranchList defines model for BranchList.

type Change

type Change struct {
	Action   ChangeAction `json:"action"`
	BaseHash *string      `json:"base_hash,omitempty"`
	Path     string       `json:"path"`
	ToHash   *string      `json:"to_hash,omitempty"`
}

Change defines model for Change.

type ChangeAction

type ChangeAction int

ChangeAction defines model for Change.Action.

const (
	N1 ChangeAction = 1
	N2 ChangeAction = 2
	N3 ChangeAction = 3
)

Defines values for ChangeAction.

type ChangePair

type ChangePair struct {
	IsConflict bool    `json:"is_conflict"`
	Left       *Change `json:"left,omitempty"`
	Path       string  `json:"path"`
	Right      *Change `json:"right,omitempty"`
}

ChangePair defines model for ChangePair.

type ChiServerOptions

type ChiServerOptions struct {
	BaseURL          string
	BaseRouter       chi.Router
	Middlewares      []MiddlewareFunc
	ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) CommitWip

func (c *Client) CommitWip(ctx context.Context, owner string, repository string, params *CommitWipParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CompareCommit

func (c *Client) CompareCommit(ctx context.Context, owner string, repository string, basehead string, params *CompareCommitParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateBranch

func (c *Client) CreateBranch(ctx context.Context, owner string, repository string, body CreateBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateBranchWithBody

func (c *Client) CreateBranchWithBody(ctx context.Context, owner string, repository string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateMergeRequest

func (c *Client) CreateMergeRequest(ctx context.Context, owner string, repository string, body CreateMergeRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateMergeRequestWithBody

func (c *Client) CreateMergeRequestWithBody(ctx context.Context, owner string, repository string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateRepository

func (c *Client) CreateRepository(ctx context.Context, body CreateRepositoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateRepositoryWithBody

func (c *Client) CreateRepositoryWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteBranch

func (c *Client) DeleteBranch(ctx context.Context, owner string, repository string, params *DeleteBranchParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteObject

func (c *Client) DeleteObject(ctx context.Context, owner string, repository string, params *DeleteObjectParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteRepository

func (c *Client) DeleteRepository(ctx context.Context, owner string, repository string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteWip

func (c *Client) DeleteWip(ctx context.Context, owner string, repository string, params *DeleteWipParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetBranch

func (c *Client) GetBranch(ctx context.Context, owner string, repository string, params *GetBranchParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetCommitChanges

func (c *Client) GetCommitChanges(ctx context.Context, owner string, repository string, commitId string, params *GetCommitChangesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetCommitsInRef

func (c *Client) GetCommitsInRef(ctx context.Context, owner string, repository string, params *GetCommitsInRefParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetEntriesInRef

func (c *Client) GetEntriesInRef(ctx context.Context, owner string, repository string, params *GetEntriesInRefParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetMergeRequest

func (c *Client) GetMergeRequest(ctx context.Context, owner string, repository string, mrSeq uint64, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetObject

func (c *Client) GetObject(ctx context.Context, owner string, repository string, params *GetObjectParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetRepository

func (c *Client) GetRepository(ctx context.Context, owner string, repository string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetSetupState

func (c *Client) GetSetupState(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetUserInfo

func (c *Client) GetUserInfo(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetVersion

func (c *Client) GetVersion(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetWip

func (c *Client) GetWip(ctx context.Context, owner string, repository string, params *GetWipParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetWipChanges

func (c *Client) GetWipChanges(ctx context.Context, owner string, repository string, params *GetWipChangesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) HeadObject

func (c *Client) HeadObject(ctx context.Context, owner string, repository string, params *HeadObjectParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListBranches

func (c *Client) ListBranches(ctx context.Context, owner string, repository string, params *ListBranchesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListMergeRequests

func (c *Client) ListMergeRequests(ctx context.Context, owner string, repository string, params *ListMergeRequestsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListRepository

func (c *Client) ListRepository(ctx context.Context, owner string, params *ListRepositoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListRepositoryOfAuthenticatedUser

func (c *Client) ListRepositoryOfAuthenticatedUser(ctx context.Context, params *ListRepositoryOfAuthenticatedUserParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListWip

func (c *Client) ListWip(ctx context.Context, owner string, repository string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) Login

func (c *Client) Login(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) LoginWithBody

func (c *Client) LoginWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) Logout

func (c *Client) Logout(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) Merge

func (c *Client) Merge(ctx context.Context, owner string, repository string, mrSeq uint64, body MergeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) MergeWithBody

func (c *Client) MergeWithBody(ctx context.Context, owner string, repository string, mrSeq uint64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RefreshToken

func (c *Client) RefreshToken(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) Register

func (c *Client) Register(ctx context.Context, body RegisterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RegisterWithBody

func (c *Client) RegisterWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RevertWipChanges

func (c *Client) RevertWipChanges(ctx context.Context, owner string, repository string, params *RevertWipChangesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateMergeRequest

func (c *Client) UpdateMergeRequest(ctx context.Context, owner string, repository string, mrSeq uint64, body UpdateMergeRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateMergeRequestWithBody

func (c *Client) UpdateMergeRequestWithBody(ctx context.Context, owner string, repository string, mrSeq uint64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateRepository

func (c *Client) UpdateRepository(ctx context.Context, owner string, repository string, body UpdateRepositoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateRepositoryWithBody

func (c *Client) UpdateRepositoryWithBody(ctx context.Context, owner string, repository string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateWip

func (c *Client) UpdateWip(ctx context.Context, owner string, repository string, params *UpdateWipParams, body UpdateWipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateWipWithBody

func (c *Client) UpdateWipWithBody(ctx context.Context, owner string, repository string, params *UpdateWipParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UploadObjectWithBody

func (c *Client) UploadObjectWithBody(ctx context.Context, owner string, repository string, params *UploadObjectParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// LoginWithBody request with any body
	LoginWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	Login(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Logout request
	Logout(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetMergeRequest request
	GetMergeRequest(ctx context.Context, owner string, repository string, mrSeq uint64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateMergeRequestWithBody request with any body
	UpdateMergeRequestWithBody(ctx context.Context, owner string, repository string, mrSeq uint64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateMergeRequest(ctx context.Context, owner string, repository string, mrSeq uint64, body UpdateMergeRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListMergeRequests request
	ListMergeRequests(ctx context.Context, owner string, repository string, params *ListMergeRequestsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateMergeRequestWithBody request with any body
	CreateMergeRequestWithBody(ctx context.Context, owner string, repository string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateMergeRequest(ctx context.Context, owner string, repository string, body CreateMergeRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// MergeWithBody request with any body
	MergeWithBody(ctx context.Context, owner string, repository string, mrSeq uint64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	Merge(ctx context.Context, owner string, repository string, mrSeq uint64, body MergeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteObject request
	DeleteObject(ctx context.Context, owner string, repository string, params *DeleteObjectParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetObject request
	GetObject(ctx context.Context, owner string, repository string, params *GetObjectParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// HeadObject request
	HeadObject(ctx context.Context, owner string, repository string, params *HeadObjectParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UploadObjectWithBody request with any body
	UploadObjectWithBody(ctx context.Context, owner string, repository string, params *UploadObjectParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteRepository request
	DeleteRepository(ctx context.Context, owner string, repository string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRepository request
	GetRepository(ctx context.Context, owner string, repository string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateRepositoryWithBody request with any body
	UpdateRepositoryWithBody(ctx context.Context, owner string, repository string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateRepository(ctx context.Context, owner string, repository string, body UpdateRepositoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteBranch request
	DeleteBranch(ctx context.Context, owner string, repository string, params *DeleteBranchParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetBranch request
	GetBranch(ctx context.Context, owner string, repository string, params *GetBranchParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateBranchWithBody request with any body
	CreateBranchWithBody(ctx context.Context, owner string, repository string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateBranch(ctx context.Context, owner string, repository string, body CreateBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListBranches request
	ListBranches(ctx context.Context, owner string, repository string, params *ListBranchesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCommitChanges request
	GetCommitChanges(ctx context.Context, owner string, repository string, commitId string, params *GetCommitChangesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCommitsInRef request
	GetCommitsInRef(ctx context.Context, owner string, repository string, params *GetCommitsInRefParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CompareCommit request
	CompareCommit(ctx context.Context, owner string, repository string, basehead string, params *CompareCommitParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetEntriesInRef request
	GetEntriesInRef(ctx context.Context, owner string, repository string, params *GetEntriesInRefParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetSetupState request
	GetSetupState(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RefreshToken request
	RefreshToken(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RegisterWithBody request with any body
	RegisterWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	Register(ctx context.Context, body RegisterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListRepositoryOfAuthenticatedUser request
	ListRepositoryOfAuthenticatedUser(ctx context.Context, params *ListRepositoryOfAuthenticatedUserParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateRepositoryWithBody request with any body
	CreateRepositoryWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateRepository(ctx context.Context, body CreateRepositoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetUserInfo request
	GetUserInfo(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListRepository request
	ListRepository(ctx context.Context, owner string, params *ListRepositoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetVersion request
	GetVersion(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteWip request
	DeleteWip(ctx context.Context, owner string, repository string, params *DeleteWipParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetWip request
	GetWip(ctx context.Context, owner string, repository string, params *GetWipParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateWipWithBody request with any body
	UpdateWipWithBody(ctx context.Context, owner string, repository string, params *UpdateWipParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateWip(ctx context.Context, owner string, repository string, params *UpdateWipParams, body UpdateWipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetWipChanges request
	GetWipChanges(ctx context.Context, owner string, repository string, params *GetWipChangesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CommitWip request
	CommitWip(ctx context.Context, owner string, repository string, params *CommitWipParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListWip request
	ListWip(ctx context.Context, owner string, repository string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RevertWipChanges request
	RevertWipChanges(ctx context.Context, owner string, repository string, params *RevertWipChangesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) CommitWipWithResponse

func (c *ClientWithResponses) CommitWipWithResponse(ctx context.Context, owner string, repository string, params *CommitWipParams, reqEditors ...RequestEditorFn) (*CommitWipResponse, error)

CommitWipWithResponse request returning *CommitWipResponse

func (*ClientWithResponses) CompareCommitWithResponse

func (c *ClientWithResponses) CompareCommitWithResponse(ctx context.Context, owner string, repository string, basehead string, params *CompareCommitParams, reqEditors ...RequestEditorFn) (*CompareCommitResponse, error)

CompareCommitWithResponse request returning *CompareCommitResponse

func (*ClientWithResponses) CreateBranchWithBodyWithResponse

func (c *ClientWithResponses) CreateBranchWithBodyWithResponse(ctx context.Context, owner string, repository string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateBranchResponse, error)

CreateBranchWithBodyWithResponse request with arbitrary body returning *CreateBranchResponse

func (*ClientWithResponses) CreateBranchWithResponse

func (c *ClientWithResponses) CreateBranchWithResponse(ctx context.Context, owner string, repository string, body CreateBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateBranchResponse, error)

func (*ClientWithResponses) CreateMergeRequestWithBodyWithResponse

func (c *ClientWithResponses) CreateMergeRequestWithBodyWithResponse(ctx context.Context, owner string, repository string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateMergeRequestResponse, error)

CreateMergeRequestWithBodyWithResponse request with arbitrary body returning *CreateMergeRequestResponse

func (*ClientWithResponses) CreateMergeRequestWithResponse

func (c *ClientWithResponses) CreateMergeRequestWithResponse(ctx context.Context, owner string, repository string, body CreateMergeRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateMergeRequestResponse, error)

func (*ClientWithResponses) CreateRepositoryWithBodyWithResponse

func (c *ClientWithResponses) CreateRepositoryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateRepositoryResponse, error)

CreateRepositoryWithBodyWithResponse request with arbitrary body returning *CreateRepositoryResponse

func (*ClientWithResponses) CreateRepositoryWithResponse

func (c *ClientWithResponses) CreateRepositoryWithResponse(ctx context.Context, body CreateRepositoryJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateRepositoryResponse, error)

func (*ClientWithResponses) DeleteBranchWithResponse

func (c *ClientWithResponses) DeleteBranchWithResponse(ctx context.Context, owner string, repository string, params *DeleteBranchParams, reqEditors ...RequestEditorFn) (*DeleteBranchResponse, error)

DeleteBranchWithResponse request returning *DeleteBranchResponse

func (*ClientWithResponses) DeleteObjectWithResponse

func (c *ClientWithResponses) DeleteObjectWithResponse(ctx context.Context, owner string, repository string, params *DeleteObjectParams, reqEditors ...RequestEditorFn) (*DeleteObjectResponse, error)

DeleteObjectWithResponse request returning *DeleteObjectResponse

func (*ClientWithResponses) DeleteRepositoryWithResponse

func (c *ClientWithResponses) DeleteRepositoryWithResponse(ctx context.Context, owner string, repository string, reqEditors ...RequestEditorFn) (*DeleteRepositoryResponse, error)

DeleteRepositoryWithResponse request returning *DeleteRepositoryResponse

func (*ClientWithResponses) DeleteWipWithResponse

func (c *ClientWithResponses) DeleteWipWithResponse(ctx context.Context, owner string, repository string, params *DeleteWipParams, reqEditors ...RequestEditorFn) (*DeleteWipResponse, error)

DeleteWipWithResponse request returning *DeleteWipResponse

func (*ClientWithResponses) GetBranchWithResponse

func (c *ClientWithResponses) GetBranchWithResponse(ctx context.Context, owner string, repository string, params *GetBranchParams, reqEditors ...RequestEditorFn) (*GetBranchResponse, error)

GetBranchWithResponse request returning *GetBranchResponse

func (*ClientWithResponses) GetCommitChangesWithResponse

func (c *ClientWithResponses) GetCommitChangesWithResponse(ctx context.Context, owner string, repository string, commitId string, params *GetCommitChangesParams, reqEditors ...RequestEditorFn) (*GetCommitChangesResponse, error)

GetCommitChangesWithResponse request returning *GetCommitChangesResponse

func (*ClientWithResponses) GetCommitsInRefWithResponse

func (c *ClientWithResponses) GetCommitsInRefWithResponse(ctx context.Context, owner string, repository string, params *GetCommitsInRefParams, reqEditors ...RequestEditorFn) (*GetCommitsInRefResponse, error)

GetCommitsInRefWithResponse request returning *GetCommitsInRefResponse

func (*ClientWithResponses) GetEntriesInRefWithResponse

func (c *ClientWithResponses) GetEntriesInRefWithResponse(ctx context.Context, owner string, repository string, params *GetEntriesInRefParams, reqEditors ...RequestEditorFn) (*GetEntriesInRefResponse, error)

GetEntriesInRefWithResponse request returning *GetEntriesInRefResponse

func (*ClientWithResponses) GetMergeRequestWithResponse

func (c *ClientWithResponses) GetMergeRequestWithResponse(ctx context.Context, owner string, repository string, mrSeq uint64, reqEditors ...RequestEditorFn) (*GetMergeRequestResponse, error)

GetMergeRequestWithResponse request returning *GetMergeRequestResponse

func (*ClientWithResponses) GetObjectWithResponse

func (c *ClientWithResponses) GetObjectWithResponse(ctx context.Context, owner string, repository string, params *GetObjectParams, reqEditors ...RequestEditorFn) (*GetObjectResponse, error)

GetObjectWithResponse request returning *GetObjectResponse

func (*ClientWithResponses) GetRepositoryWithResponse

func (c *ClientWithResponses) GetRepositoryWithResponse(ctx context.Context, owner string, repository string, reqEditors ...RequestEditorFn) (*GetRepositoryResponse, error)

GetRepositoryWithResponse request returning *GetRepositoryResponse

func (*ClientWithResponses) GetSetupStateWithResponse

func (c *ClientWithResponses) GetSetupStateWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSetupStateResponse, error)

GetSetupStateWithResponse request returning *GetSetupStateResponse

func (*ClientWithResponses) GetUserInfoWithResponse

func (c *ClientWithResponses) GetUserInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUserInfoResponse, error)

GetUserInfoWithResponse request returning *GetUserInfoResponse

func (*ClientWithResponses) GetVersionWithResponse

func (c *ClientWithResponses) GetVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetVersionResponse, error)

GetVersionWithResponse request returning *GetVersionResponse

func (*ClientWithResponses) GetWipChangesWithResponse

func (c *ClientWithResponses) GetWipChangesWithResponse(ctx context.Context, owner string, repository string, params *GetWipChangesParams, reqEditors ...RequestEditorFn) (*GetWipChangesResponse, error)

GetWipChangesWithResponse request returning *GetWipChangesResponse

func (*ClientWithResponses) GetWipWithResponse

func (c *ClientWithResponses) GetWipWithResponse(ctx context.Context, owner string, repository string, params *GetWipParams, reqEditors ...RequestEditorFn) (*GetWipResponse, error)

GetWipWithResponse request returning *GetWipResponse

func (*ClientWithResponses) HeadObjectWithResponse

func (c *ClientWithResponses) HeadObjectWithResponse(ctx context.Context, owner string, repository string, params *HeadObjectParams, reqEditors ...RequestEditorFn) (*HeadObjectResponse, error)

HeadObjectWithResponse request returning *HeadObjectResponse

func (*ClientWithResponses) ListBranchesWithResponse

func (c *ClientWithResponses) ListBranchesWithResponse(ctx context.Context, owner string, repository string, params *ListBranchesParams, reqEditors ...RequestEditorFn) (*ListBranchesResponse, error)

ListBranchesWithResponse request returning *ListBranchesResponse

func (*ClientWithResponses) ListMergeRequestsWithResponse

func (c *ClientWithResponses) ListMergeRequestsWithResponse(ctx context.Context, owner string, repository string, params *ListMergeRequestsParams, reqEditors ...RequestEditorFn) (*ListMergeRequestsResponse, error)

ListMergeRequestsWithResponse request returning *ListMergeRequestsResponse

func (*ClientWithResponses) ListRepositoryOfAuthenticatedUserWithResponse

func (c *ClientWithResponses) ListRepositoryOfAuthenticatedUserWithResponse(ctx context.Context, params *ListRepositoryOfAuthenticatedUserParams, reqEditors ...RequestEditorFn) (*ListRepositoryOfAuthenticatedUserResponse, error)

ListRepositoryOfAuthenticatedUserWithResponse request returning *ListRepositoryOfAuthenticatedUserResponse

func (*ClientWithResponses) ListRepositoryWithResponse

func (c *ClientWithResponses) ListRepositoryWithResponse(ctx context.Context, owner string, params *ListRepositoryParams, reqEditors ...RequestEditorFn) (*ListRepositoryResponse, error)

ListRepositoryWithResponse request returning *ListRepositoryResponse

func (*ClientWithResponses) ListWipWithResponse

func (c *ClientWithResponses) ListWipWithResponse(ctx context.Context, owner string, repository string, reqEditors ...RequestEditorFn) (*ListWipResponse, error)

ListWipWithResponse request returning *ListWipResponse

func (*ClientWithResponses) LoginWithBodyWithResponse

func (c *ClientWithResponses) LoginWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginResponse, error)

LoginWithBodyWithResponse request with arbitrary body returning *LoginResponse

func (*ClientWithResponses) LoginWithResponse

func (c *ClientWithResponses) LoginWithResponse(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginResponse, error)

func (*ClientWithResponses) LogoutWithResponse

func (c *ClientWithResponses) LogoutWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*LogoutResponse, error)

LogoutWithResponse request returning *LogoutResponse

func (*ClientWithResponses) MergeWithBodyWithResponse

func (c *ClientWithResponses) MergeWithBodyWithResponse(ctx context.Context, owner string, repository string, mrSeq uint64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MergeResponse, error)

MergeWithBodyWithResponse request with arbitrary body returning *MergeResponse

func (*ClientWithResponses) MergeWithResponse

func (c *ClientWithResponses) MergeWithResponse(ctx context.Context, owner string, repository string, mrSeq uint64, body MergeJSONRequestBody, reqEditors ...RequestEditorFn) (*MergeResponse, error)

func (*ClientWithResponses) RefreshTokenWithResponse

func (c *ClientWithResponses) RefreshTokenWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RefreshTokenResponse, error)

RefreshTokenWithResponse request returning *RefreshTokenResponse

func (*ClientWithResponses) RegisterWithBodyWithResponse

func (c *ClientWithResponses) RegisterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RegisterResponse, error)

RegisterWithBodyWithResponse request with arbitrary body returning *RegisterResponse

func (*ClientWithResponses) RegisterWithResponse

func (c *ClientWithResponses) RegisterWithResponse(ctx context.Context, body RegisterJSONRequestBody, reqEditors ...RequestEditorFn) (*RegisterResponse, error)

func (*ClientWithResponses) RevertWipChangesWithResponse

func (c *ClientWithResponses) RevertWipChangesWithResponse(ctx context.Context, owner string, repository string, params *RevertWipChangesParams, reqEditors ...RequestEditorFn) (*RevertWipChangesResponse, error)

RevertWipChangesWithResponse request returning *RevertWipChangesResponse

func (*ClientWithResponses) UpdateMergeRequestWithBodyWithResponse

func (c *ClientWithResponses) UpdateMergeRequestWithBodyWithResponse(ctx context.Context, owner string, repository string, mrSeq uint64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMergeRequestResponse, error)

UpdateMergeRequestWithBodyWithResponse request with arbitrary body returning *UpdateMergeRequestResponse

func (*ClientWithResponses) UpdateMergeRequestWithResponse

func (c *ClientWithResponses) UpdateMergeRequestWithResponse(ctx context.Context, owner string, repository string, mrSeq uint64, body UpdateMergeRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMergeRequestResponse, error)

func (*ClientWithResponses) UpdateRepositoryWithBodyWithResponse

func (c *ClientWithResponses) UpdateRepositoryWithBodyWithResponse(ctx context.Context, owner string, repository string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateRepositoryResponse, error)

UpdateRepositoryWithBodyWithResponse request with arbitrary body returning *UpdateRepositoryResponse

func (*ClientWithResponses) UpdateRepositoryWithResponse

func (c *ClientWithResponses) UpdateRepositoryWithResponse(ctx context.Context, owner string, repository string, body UpdateRepositoryJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateRepositoryResponse, error)

func (*ClientWithResponses) UpdateWipWithBodyWithResponse

func (c *ClientWithResponses) UpdateWipWithBodyWithResponse(ctx context.Context, owner string, repository string, params *UpdateWipParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateWipResponse, error)

UpdateWipWithBodyWithResponse request with arbitrary body returning *UpdateWipResponse

func (*ClientWithResponses) UpdateWipWithResponse

func (c *ClientWithResponses) UpdateWipWithResponse(ctx context.Context, owner string, repository string, params *UpdateWipParams, body UpdateWipJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateWipResponse, error)

func (*ClientWithResponses) UploadObjectWithBodyWithResponse

func (c *ClientWithResponses) UploadObjectWithBodyWithResponse(ctx context.Context, owner string, repository string, params *UploadObjectParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadObjectResponse, error)

UploadObjectWithBodyWithResponse request with arbitrary body returning *UploadObjectResponse

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// LoginWithBodyWithResponse request with any body
	LoginWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginResponse, error)

	LoginWithResponse(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginResponse, error)

	// LogoutWithResponse request
	LogoutWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*LogoutResponse, error)

	// GetMergeRequestWithResponse request
	GetMergeRequestWithResponse(ctx context.Context, owner string, repository string, mrSeq uint64, reqEditors ...RequestEditorFn) (*GetMergeRequestResponse, error)

	// UpdateMergeRequestWithBodyWithResponse request with any body
	UpdateMergeRequestWithBodyWithResponse(ctx context.Context, owner string, repository string, mrSeq uint64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMergeRequestResponse, error)

	UpdateMergeRequestWithResponse(ctx context.Context, owner string, repository string, mrSeq uint64, body UpdateMergeRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMergeRequestResponse, error)

	// ListMergeRequestsWithResponse request
	ListMergeRequestsWithResponse(ctx context.Context, owner string, repository string, params *ListMergeRequestsParams, reqEditors ...RequestEditorFn) (*ListMergeRequestsResponse, error)

	// CreateMergeRequestWithBodyWithResponse request with any body
	CreateMergeRequestWithBodyWithResponse(ctx context.Context, owner string, repository string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateMergeRequestResponse, error)

	CreateMergeRequestWithResponse(ctx context.Context, owner string, repository string, body CreateMergeRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateMergeRequestResponse, error)

	// MergeWithBodyWithResponse request with any body
	MergeWithBodyWithResponse(ctx context.Context, owner string, repository string, mrSeq uint64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MergeResponse, error)

	MergeWithResponse(ctx context.Context, owner string, repository string, mrSeq uint64, body MergeJSONRequestBody, reqEditors ...RequestEditorFn) (*MergeResponse, error)

	// DeleteObjectWithResponse request
	DeleteObjectWithResponse(ctx context.Context, owner string, repository string, params *DeleteObjectParams, reqEditors ...RequestEditorFn) (*DeleteObjectResponse, error)

	// GetObjectWithResponse request
	GetObjectWithResponse(ctx context.Context, owner string, repository string, params *GetObjectParams, reqEditors ...RequestEditorFn) (*GetObjectResponse, error)

	// HeadObjectWithResponse request
	HeadObjectWithResponse(ctx context.Context, owner string, repository string, params *HeadObjectParams, reqEditors ...RequestEditorFn) (*HeadObjectResponse, error)

	// UploadObjectWithBodyWithResponse request with any body
	UploadObjectWithBodyWithResponse(ctx context.Context, owner string, repository string, params *UploadObjectParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadObjectResponse, error)

	// DeleteRepositoryWithResponse request
	DeleteRepositoryWithResponse(ctx context.Context, owner string, repository string, reqEditors ...RequestEditorFn) (*DeleteRepositoryResponse, error)

	// GetRepositoryWithResponse request
	GetRepositoryWithResponse(ctx context.Context, owner string, repository string, reqEditors ...RequestEditorFn) (*GetRepositoryResponse, error)

	// UpdateRepositoryWithBodyWithResponse request with any body
	UpdateRepositoryWithBodyWithResponse(ctx context.Context, owner string, repository string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateRepositoryResponse, error)

	UpdateRepositoryWithResponse(ctx context.Context, owner string, repository string, body UpdateRepositoryJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateRepositoryResponse, error)

	// DeleteBranchWithResponse request
	DeleteBranchWithResponse(ctx context.Context, owner string, repository string, params *DeleteBranchParams, reqEditors ...RequestEditorFn) (*DeleteBranchResponse, error)

	// GetBranchWithResponse request
	GetBranchWithResponse(ctx context.Context, owner string, repository string, params *GetBranchParams, reqEditors ...RequestEditorFn) (*GetBranchResponse, error)

	// CreateBranchWithBodyWithResponse request with any body
	CreateBranchWithBodyWithResponse(ctx context.Context, owner string, repository string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateBranchResponse, error)

	CreateBranchWithResponse(ctx context.Context, owner string, repository string, body CreateBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateBranchResponse, error)

	// ListBranchesWithResponse request
	ListBranchesWithResponse(ctx context.Context, owner string, repository string, params *ListBranchesParams, reqEditors ...RequestEditorFn) (*ListBranchesResponse, error)

	// GetCommitChangesWithResponse request
	GetCommitChangesWithResponse(ctx context.Context, owner string, repository string, commitId string, params *GetCommitChangesParams, reqEditors ...RequestEditorFn) (*GetCommitChangesResponse, error)

	// GetCommitsInRefWithResponse request
	GetCommitsInRefWithResponse(ctx context.Context, owner string, repository string, params *GetCommitsInRefParams, reqEditors ...RequestEditorFn) (*GetCommitsInRefResponse, error)

	// CompareCommitWithResponse request
	CompareCommitWithResponse(ctx context.Context, owner string, repository string, basehead string, params *CompareCommitParams, reqEditors ...RequestEditorFn) (*CompareCommitResponse, error)

	// GetEntriesInRefWithResponse request
	GetEntriesInRefWithResponse(ctx context.Context, owner string, repository string, params *GetEntriesInRefParams, reqEditors ...RequestEditorFn) (*GetEntriesInRefResponse, error)

	// GetSetupStateWithResponse request
	GetSetupStateWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSetupStateResponse, error)

	// RefreshTokenWithResponse request
	RefreshTokenWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RefreshTokenResponse, error)

	// RegisterWithBodyWithResponse request with any body
	RegisterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RegisterResponse, error)

	RegisterWithResponse(ctx context.Context, body RegisterJSONRequestBody, reqEditors ...RequestEditorFn) (*RegisterResponse, error)

	// ListRepositoryOfAuthenticatedUserWithResponse request
	ListRepositoryOfAuthenticatedUserWithResponse(ctx context.Context, params *ListRepositoryOfAuthenticatedUserParams, reqEditors ...RequestEditorFn) (*ListRepositoryOfAuthenticatedUserResponse, error)

	// CreateRepositoryWithBodyWithResponse request with any body
	CreateRepositoryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateRepositoryResponse, error)

	CreateRepositoryWithResponse(ctx context.Context, body CreateRepositoryJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateRepositoryResponse, error)

	// GetUserInfoWithResponse request
	GetUserInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUserInfoResponse, error)

	// ListRepositoryWithResponse request
	ListRepositoryWithResponse(ctx context.Context, owner string, params *ListRepositoryParams, reqEditors ...RequestEditorFn) (*ListRepositoryResponse, error)

	// GetVersionWithResponse request
	GetVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetVersionResponse, error)

	// DeleteWipWithResponse request
	DeleteWipWithResponse(ctx context.Context, owner string, repository string, params *DeleteWipParams, reqEditors ...RequestEditorFn) (*DeleteWipResponse, error)

	// GetWipWithResponse request
	GetWipWithResponse(ctx context.Context, owner string, repository string, params *GetWipParams, reqEditors ...RequestEditorFn) (*GetWipResponse, error)

	// UpdateWipWithBodyWithResponse request with any body
	UpdateWipWithBodyWithResponse(ctx context.Context, owner string, repository string, params *UpdateWipParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateWipResponse, error)

	UpdateWipWithResponse(ctx context.Context, owner string, repository string, params *UpdateWipParams, body UpdateWipJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateWipResponse, error)

	// GetWipChangesWithResponse request
	GetWipChangesWithResponse(ctx context.Context, owner string, repository string, params *GetWipChangesParams, reqEditors ...RequestEditorFn) (*GetWipChangesResponse, error)

	// CommitWipWithResponse request
	CommitWipWithResponse(ctx context.Context, owner string, repository string, params *CommitWipParams, reqEditors ...RequestEditorFn) (*CommitWipResponse, error)

	// ListWipWithResponse request
	ListWipWithResponse(ctx context.Context, owner string, repository string, reqEditors ...RequestEditorFn) (*ListWipResponse, error)

	// RevertWipChangesWithResponse request
	RevertWipChangesWithResponse(ctx context.Context, owner string, repository string, params *RevertWipChangesParams, reqEditors ...RequestEditorFn) (*RevertWipChangesResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type Commit

type Commit struct {
	Author       Signature          `json:"author"`
	Committer    Signature          `json:"committer"`
	CreatedAt    int64              `json:"created_at"`
	Hash         string             `json:"hash"`
	MergeTag     string             `json:"merge_tag"`
	Message      string             `json:"message"`
	ParentHashes []string           `json:"parent_hashes"`
	RepositoryId openapi_types.UUID `json:"repository_id"`
	TreeHash     string             `json:"tree_hash"`
	UpdatedAt    int64              `json:"updated_at"`
}

Commit defines model for Commit.

type CommitWipParams

type CommitWipParams struct {
	// Msg commit message
	Msg string `form:"msg" json:"msg"`

	// RefName ref name
	RefName string `form:"refName" json:"refName"`
}

CommitWipParams defines parameters for CommitWip.

type CommitWipResponse

type CommitWipResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Wip
}

func ParseCommitWipResponse

func ParseCommitWipResponse(rsp *http.Response) (*CommitWipResponse, error)

ParseCommitWipResponse parses an HTTP response from a CommitWipWithResponse call

func (CommitWipResponse) Status

func (r CommitWipResponse) Status() string

Status returns HTTPResponse.Status

func (CommitWipResponse) StatusCode

func (r CommitWipResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CompareCommitParams

type CompareCommitParams struct {
	// Path specific path, if not specific return entries in root
	Path *string `form:"path,omitempty" json:"path,omitempty"`
}

CompareCommitParams defines parameters for CompareCommit.

type CompareCommitResponse

type CompareCommitResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Change
}

func ParseCompareCommitResponse

func ParseCompareCommitResponse(rsp *http.Response) (*CompareCommitResponse, error)

ParseCompareCommitResponse parses an HTTP response from a CompareCommitWithResponse call

func (CompareCommitResponse) Status

func (r CompareCommitResponse) Status() string

Status returns HTTPResponse.Status

func (CompareCommitResponse) StatusCode

func (r CompareCommitResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateBranchJSONRequestBody

type CreateBranchJSONRequestBody = BranchCreation

CreateBranchJSONRequestBody defines body for CreateBranch for application/json ContentType.

type CreateBranchResponse

type CreateBranchResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *BranchCreation
}

func ParseCreateBranchResponse

func ParseCreateBranchResponse(rsp *http.Response) (*CreateBranchResponse, error)

ParseCreateBranchResponse parses an HTTP response from a CreateBranchWithResponse call

func (CreateBranchResponse) Status

func (r CreateBranchResponse) Status() string

Status returns HTTPResponse.Status

func (CreateBranchResponse) StatusCode

func (r CreateBranchResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateMergeRequest

type CreateMergeRequest struct {
	Description      *string `json:"description,omitempty"`
	SourceBranchName string  `json:"source_branch_name"`
	TargetBranchName string  `json:"target_branch_name"`
	Title            string  `json:"title"`
}

CreateMergeRequest defines model for CreateMergeRequest.

type CreateMergeRequestJSONRequestBody

type CreateMergeRequestJSONRequestBody = CreateMergeRequest

CreateMergeRequestJSONRequestBody defines body for CreateMergeRequest for application/json ContentType.

type CreateMergeRequestResponse

type CreateMergeRequestResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *MergeRequest
}

func ParseCreateMergeRequestResponse

func ParseCreateMergeRequestResponse(rsp *http.Response) (*CreateMergeRequestResponse, error)

ParseCreateMergeRequestResponse parses an HTTP response from a CreateMergeRequestWithResponse call

func (CreateMergeRequestResponse) Status

Status returns HTTPResponse.Status

func (CreateMergeRequestResponse) StatusCode

func (r CreateMergeRequestResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateRepository

type CreateRepository struct {
	// BlockstoreConfig block storage config url encoded json
	BlockstoreConfig *string `json:"blockstore_config,omitempty"`
	Description      *string `json:"description,omitempty"`
	Name             string  `json:"name"`
}

CreateRepository defines model for CreateRepository.

type CreateRepositoryJSONRequestBody

type CreateRepositoryJSONRequestBody = CreateRepository

CreateRepositoryJSONRequestBody defines body for CreateRepository for application/json ContentType.

type CreateRepositoryResponse

type CreateRepositoryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *[]Repository
}

func ParseCreateRepositoryResponse

func ParseCreateRepositoryResponse(rsp *http.Response) (*CreateRepositoryResponse, error)

ParseCreateRepositoryResponse parses an HTTP response from a CreateRepositoryWithResponse call

func (CreateRepositoryResponse) Status

func (r CreateRepositoryResponse) Status() string

Status returns HTTPResponse.Status

func (CreateRepositoryResponse) StatusCode

func (r CreateRepositoryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteBranchParams

type DeleteBranchParams struct {
	RefName string `form:"refName" json:"refName"`
}

DeleteBranchParams defines parameters for DeleteBranch.

type DeleteBranchResponse

type DeleteBranchResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDeleteBranchResponse

func ParseDeleteBranchResponse(rsp *http.Response) (*DeleteBranchResponse, error)

ParseDeleteBranchResponse parses an HTTP response from a DeleteBranchWithResponse call

func (DeleteBranchResponse) Status

func (r DeleteBranchResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteBranchResponse) StatusCode

func (r DeleteBranchResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteObjectParams

type DeleteObjectParams struct {
	// RefName branch/tag to the ref
	RefName string `form:"refName" json:"refName"`

	// Path relative to the ref
	Path string `form:"path" json:"path"`
}

DeleteObjectParams defines parameters for DeleteObject.

type DeleteObjectResponse

type DeleteObjectResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDeleteObjectResponse

func ParseDeleteObjectResponse(rsp *http.Response) (*DeleteObjectResponse, error)

ParseDeleteObjectResponse parses an HTTP response from a DeleteObjectWithResponse call

func (DeleteObjectResponse) Status

func (r DeleteObjectResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteObjectResponse) StatusCode

func (r DeleteObjectResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteRepositoryResponse

type DeleteRepositoryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDeleteRepositoryResponse

func ParseDeleteRepositoryResponse(rsp *http.Response) (*DeleteRepositoryResponse, error)

ParseDeleteRepositoryResponse parses an HTTP response from a DeleteRepositoryWithResponse call

func (DeleteRepositoryResponse) Status

func (r DeleteRepositoryResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteRepositoryResponse) StatusCode

func (r DeleteRepositoryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteWipParams

type DeleteWipParams struct {
	// RefName ref name
	RefName string `form:"refName" json:"refName"`
}

DeleteWipParams defines parameters for DeleteWip.

type DeleteWipResponse

type DeleteWipResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDeleteWipResponse

func ParseDeleteWipResponse(rsp *http.Response) (*DeleteWipResponse, error)

ParseDeleteWipResponse parses an HTTP response from a DeleteWipWithResponse call

func (DeleteWipResponse) Status

func (r DeleteWipResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteWipResponse) StatusCode

func (r DeleteWipResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type FullTreeEntry

type FullTreeEntry struct {
	CreatedAt int64  `json:"created_at"`
	Hash      string `json:"hash"`
	IsDir     bool   `json:"is_dir"`
	Name      string `json:"name"`
	Size      int64  `json:"size"`
	UpdatedAt int64  `json:"updated_at"`
}

FullTreeEntry defines model for FullTreeEntry.

type GetBranchParams

type GetBranchParams struct {
	RefName string `form:"refName" json:"refName"`
}

GetBranchParams defines parameters for GetBranch.

type GetBranchResponse

type GetBranchResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Branch
}

func ParseGetBranchResponse

func ParseGetBranchResponse(rsp *http.Response) (*GetBranchResponse, error)

ParseGetBranchResponse parses an HTTP response from a GetBranchWithResponse call

func (GetBranchResponse) Status

func (r GetBranchResponse) Status() string

Status returns HTTPResponse.Status

func (GetBranchResponse) StatusCode

func (r GetBranchResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetCommitChangesParams

type GetCommitChangesParams struct {
	// Path specific path, if not specific return entries in root
	Path *string `form:"path,omitempty" json:"path,omitempty"`
}

GetCommitChangesParams defines parameters for GetCommitChanges.

type GetCommitChangesResponse

type GetCommitChangesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Change
}

func ParseGetCommitChangesResponse

func ParseGetCommitChangesResponse(rsp *http.Response) (*GetCommitChangesResponse, error)

ParseGetCommitChangesResponse parses an HTTP response from a GetCommitChangesWithResponse call

func (GetCommitChangesResponse) Status

func (r GetCommitChangesResponse) Status() string

Status returns HTTPResponse.Status

func (GetCommitChangesResponse) StatusCode

func (r GetCommitChangesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetCommitsInRefParams

type GetCommitsInRefParams struct {
	// After return items after this value
	After *PaginationInt64After `form:"after,omitempty" json:"after,omitempty"`

	// Amount how many items to return
	Amount *PaginationAmount `form:"amount,omitempty" json:"amount,omitempty"`

	// RefName ref(branch/tag) name
	RefName *string `form:"refName,omitempty" json:"refName,omitempty"`
}

GetCommitsInRefParams defines parameters for GetCommitsInRef.

type GetCommitsInRefResponse

type GetCommitsInRefResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Commit
}

func ParseGetCommitsInRefResponse

func ParseGetCommitsInRefResponse(rsp *http.Response) (*GetCommitsInRefResponse, error)

ParseGetCommitsInRefResponse parses an HTTP response from a GetCommitsInRefWithResponse call

func (GetCommitsInRefResponse) Status

func (r GetCommitsInRefResponse) Status() string

Status returns HTTPResponse.Status

func (GetCommitsInRefResponse) StatusCode

func (r GetCommitsInRefResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetEntriesInRefParams

type GetEntriesInRefParams struct {
	// Path specific path, if not specific return entries in root
	Path *string `form:"path,omitempty" json:"path,omitempty"`

	// Ref specific( ref name, tag name, commit hash), for wip and branchm, branch name default to repository default branch(HEAD),
	Ref *string `form:"ref,omitempty" json:"ref,omitempty"`

	// Type type indicate to retrieve from wip/branch/tag/commit, default branch
	Type RefType `form:"type" json:"type"`
}

GetEntriesInRefParams defines parameters for GetEntriesInRef.

type GetEntriesInRefResponse

type GetEntriesInRefResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]FullTreeEntry
}

func ParseGetEntriesInRefResponse

func ParseGetEntriesInRefResponse(rsp *http.Response) (*GetEntriesInRefResponse, error)

ParseGetEntriesInRefResponse parses an HTTP response from a GetEntriesInRefWithResponse call

func (GetEntriesInRefResponse) Status

func (r GetEntriesInRefResponse) Status() string

Status returns HTTPResponse.Status

func (GetEntriesInRefResponse) StatusCode

func (r GetEntriesInRefResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetMergeRequestResponse

type GetMergeRequestResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *MergeRequestFullState
}

func ParseGetMergeRequestResponse

func ParseGetMergeRequestResponse(rsp *http.Response) (*GetMergeRequestResponse, error)

ParseGetMergeRequestResponse parses an HTTP response from a GetMergeRequestWithResponse call

func (GetMergeRequestResponse) Status

func (r GetMergeRequestResponse) Status() string

Status returns HTTPResponse.Status

func (GetMergeRequestResponse) StatusCode

func (r GetMergeRequestResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetObjectParams

type GetObjectParams struct {
	// Type type indicate to retrieve from wip/branch/tag, default branch
	Type RefType `form:"type" json:"type"`

	// RefName branch/tag to the ref
	RefName string `form:"refName" json:"refName"`

	// Path relative to the ref
	Path string `form:"path" json:"path"`

	// Range Byte range to retrieve
	Range *string `json:"Range,omitempty"`
}

GetObjectParams defines parameters for GetObject.

type GetObjectResponse

type GetObjectResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseGetObjectResponse

func ParseGetObjectResponse(rsp *http.Response) (*GetObjectResponse, error)

ParseGetObjectResponse parses an HTTP response from a GetObjectWithResponse call

func (GetObjectResponse) Status

func (r GetObjectResponse) Status() string

Status returns HTTPResponse.Status

func (GetObjectResponse) StatusCode

func (r GetObjectResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRepositoryResponse

type GetRepositoryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Repository
}

func ParseGetRepositoryResponse

func ParseGetRepositoryResponse(rsp *http.Response) (*GetRepositoryResponse, error)

ParseGetRepositoryResponse parses an HTTP response from a GetRepositoryWithResponse call

func (GetRepositoryResponse) Status

func (r GetRepositoryResponse) Status() string

Status returns HTTPResponse.Status

func (GetRepositoryResponse) StatusCode

func (r GetRepositoryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSetupStateResponse

type GetSetupStateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SetupState
}

func ParseGetSetupStateResponse

func ParseGetSetupStateResponse(rsp *http.Response) (*GetSetupStateResponse, error)

ParseGetSetupStateResponse parses an HTTP response from a GetSetupStateWithResponse call

func (GetSetupStateResponse) Status

func (r GetSetupStateResponse) Status() string

Status returns HTTPResponse.Status

func (GetSetupStateResponse) StatusCode

func (r GetSetupStateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetUserInfoResponse

type GetUserInfoResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *UserInfo
}

func ParseGetUserInfoResponse

func ParseGetUserInfoResponse(rsp *http.Response) (*GetUserInfoResponse, error)

ParseGetUserInfoResponse parses an HTTP response from a GetUserInfoWithResponse call

func (GetUserInfoResponse) Status

func (r GetUserInfoResponse) Status() string

Status returns HTTPResponse.Status

func (GetUserInfoResponse) StatusCode

func (r GetUserInfoResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetVersionResponse

type GetVersionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *VersionResult
}

func ParseGetVersionResponse

func ParseGetVersionResponse(rsp *http.Response) (*GetVersionResponse, error)

ParseGetVersionResponse parses an HTTP response from a GetVersionWithResponse call

func (GetVersionResponse) Status

func (r GetVersionResponse) Status() string

Status returns HTTPResponse.Status

func (GetVersionResponse) StatusCode

func (r GetVersionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetWipChangesParams

type GetWipChangesParams struct {
	// RefName ref name
	RefName string `form:"refName" json:"refName"`

	// Path path
	Path *string `form:"path,omitempty" json:"path,omitempty"`
}

GetWipChangesParams defines parameters for GetWipChanges.

type GetWipChangesResponse

type GetWipChangesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Change
}

func ParseGetWipChangesResponse

func ParseGetWipChangesResponse(rsp *http.Response) (*GetWipChangesResponse, error)

ParseGetWipChangesResponse parses an HTTP response from a GetWipChangesWithResponse call

func (GetWipChangesResponse) Status

func (r GetWipChangesResponse) Status() string

Status returns HTTPResponse.Status

func (GetWipChangesResponse) StatusCode

func (r GetWipChangesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetWipParams

type GetWipParams struct {
	// RefName ref name
	RefName string `form:"refName" json:"refName"`
}

GetWipParams defines parameters for GetWip.

type GetWipResponse

type GetWipResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Wip
}

func ParseGetWipResponse

func ParseGetWipResponse(rsp *http.Response) (*GetWipResponse, error)

ParseGetWipResponse parses an HTTP response from a GetWipWithResponse call

func (GetWipResponse) Status

func (r GetWipResponse) Status() string

Status returns HTTPResponse.Status

func (GetWipResponse) StatusCode

func (r GetWipResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HeadObjectParams

type HeadObjectParams struct {
	// Type type indicate to retrieve from wip/branch/tag, default branch
	Type RefType `form:"type" json:"type"`

	// RefName branch/tag to the ref
	RefName string `form:"refName" json:"refName"`

	// Path relative to the ref
	Path string `form:"path" json:"path"`

	// Range Byte range to retrieve
	Range *string `json:"Range,omitempty"`
}

HeadObjectParams defines parameters for HeadObject.

type HeadObjectResponse

type HeadObjectResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseHeadObjectResponse

func ParseHeadObjectResponse(rsp *http.Response) (*HeadObjectResponse, error)

ParseHeadObjectResponse parses an HTTP response from a HeadObjectWithResponse call

func (HeadObjectResponse) Status

func (r HeadObjectResponse) Status() string

Status returns HTTPResponse.Status

func (HeadObjectResponse) StatusCode

func (r HeadObjectResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type InvalidParamFormatError

type InvalidParamFormatError struct {
	ParamName string
	Err       error
}

func (*InvalidParamFormatError) Error

func (e *InvalidParamFormatError) Error() string

func (*InvalidParamFormatError) Unwrap

func (e *InvalidParamFormatError) Unwrap() error

type JiaozifsResponse

type JiaozifsResponse struct {
	http.ResponseWriter
}

func (*JiaozifsResponse) BadRequest

func (response *JiaozifsResponse) BadRequest(msg string)

func (*JiaozifsResponse) Code

func (response *JiaozifsResponse) Code(code int)

Code response with uncommon code

func (*JiaozifsResponse) Error

func (response *JiaozifsResponse) Error(err error)

Error response with 500 and error message

func (*JiaozifsResponse) Forbidden

func (response *JiaozifsResponse) Forbidden()

func (*JiaozifsResponse) JSON

func (response *JiaozifsResponse) JSON(v any, code ...int)

JSON convert object to json format and write to response, if not specific code, default code is 200. given code will overwrite default code, if more than one code, the first one will be used.

func (*JiaozifsResponse) NotFound

func (response *JiaozifsResponse) NotFound()

NotFound response with 404

func (*JiaozifsResponse) OK

func (response *JiaozifsResponse) OK()

OK response with 200

func (*JiaozifsResponse) String

func (response *JiaozifsResponse) String(msg string, code ...int)

String response and string if not specific code, default code is 200. given code will overwrite default code, if more than one code, the first one will be used.

func (*JiaozifsResponse) Unauthorized

func (response *JiaozifsResponse) Unauthorized()

Unauthorized response with 401

type ListBranchesParams

type ListBranchesParams struct {
	// Prefix return items prefixed with this value
	Prefix *PaginationPrefix `form:"prefix,omitempty" json:"prefix,omitempty"`

	// After return items after this value
	After *PaginationStringAfter `form:"after,omitempty" json:"after,omitempty"`

	// Amount how many items to return
	Amount *PaginationAmount `form:"amount,omitempty" json:"amount,omitempty"`
}

ListBranchesParams defines parameters for ListBranches.

type ListBranchesResponse

type ListBranchesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *BranchList
}

func ParseListBranchesResponse

func ParseListBranchesResponse(rsp *http.Response) (*ListBranchesResponse, error)

ParseListBranchesResponse parses an HTTP response from a ListBranchesWithResponse call

func (ListBranchesResponse) Status

func (r ListBranchesResponse) Status() string

Status returns HTTPResponse.Status

func (ListBranchesResponse) StatusCode

func (r ListBranchesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListMergeRequestsParams

type ListMergeRequestsParams struct {
	// After return items after this value
	After *PaginationInt64After `form:"after,omitempty" json:"after,omitempty"`

	// Amount how many items to return
	Amount *PaginationAmount `form:"amount,omitempty" json:"amount,omitempty"`
	State  *int              `form:"state,omitempty" json:"state,omitempty"`
}

ListMergeRequestsParams defines parameters for ListMergeRequests.

type ListMergeRequestsResponse

type ListMergeRequestsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *MergeRequestList
}

func ParseListMergeRequestsResponse

func ParseListMergeRequestsResponse(rsp *http.Response) (*ListMergeRequestsResponse, error)

ParseListMergeRequestsResponse parses an HTTP response from a ListMergeRequestsWithResponse call

func (ListMergeRequestsResponse) Status

func (r ListMergeRequestsResponse) Status() string

Status returns HTTPResponse.Status

func (ListMergeRequestsResponse) StatusCode

func (r ListMergeRequestsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListRepositoryOfAuthenticatedUserParams

type ListRepositoryOfAuthenticatedUserParams struct {
	// Prefix return items prefixed with this value
	Prefix *PaginationPrefix `form:"prefix,omitempty" json:"prefix,omitempty"`

	// After return items after this value
	After *PaginationInt64After `form:"after,omitempty" json:"after,omitempty"`

	// Amount how many items to return
	Amount *PaginationAmount `form:"amount,omitempty" json:"amount,omitempty"`
}

ListRepositoryOfAuthenticatedUserParams defines parameters for ListRepositoryOfAuthenticatedUser.

type ListRepositoryOfAuthenticatedUserResponse

type ListRepositoryOfAuthenticatedUserResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *RepositoryList
}

func ParseListRepositoryOfAuthenticatedUserResponse

func ParseListRepositoryOfAuthenticatedUserResponse(rsp *http.Response) (*ListRepositoryOfAuthenticatedUserResponse, error)

ParseListRepositoryOfAuthenticatedUserResponse parses an HTTP response from a ListRepositoryOfAuthenticatedUserWithResponse call

func (ListRepositoryOfAuthenticatedUserResponse) Status

Status returns HTTPResponse.Status

func (ListRepositoryOfAuthenticatedUserResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ListRepositoryParams

type ListRepositoryParams struct {
	// Prefix return items prefixed with this value
	Prefix *PaginationPrefix `form:"prefix,omitempty" json:"prefix,omitempty"`

	// After return items after this value
	After *PaginationInt64After `form:"after,omitempty" json:"after,omitempty"`

	// Amount how many items to return
	Amount *PaginationAmount `form:"amount,omitempty" json:"amount,omitempty"`
}

ListRepositoryParams defines parameters for ListRepository.

type ListRepositoryResponse

type ListRepositoryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *RepositoryList
}

func ParseListRepositoryResponse

func ParseListRepositoryResponse(rsp *http.Response) (*ListRepositoryResponse, error)

ParseListRepositoryResponse parses an HTTP response from a ListRepositoryWithResponse call

func (ListRepositoryResponse) Status

func (r ListRepositoryResponse) Status() string

Status returns HTTPResponse.Status

func (ListRepositoryResponse) StatusCode

func (r ListRepositoryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListWipResponse

type ListWipResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Wip
}

func ParseListWipResponse

func ParseListWipResponse(rsp *http.Response) (*ListWipResponse, error)

ParseListWipResponse parses an HTTP response from a ListWipWithResponse call

func (ListWipResponse) Status

func (r ListWipResponse) Status() string

Status returns HTTPResponse.Status

func (ListWipResponse) StatusCode

func (r ListWipResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type LoginConfig

type LoginConfig struct {
	// RBAC RBAC will remain enabled on GUI if "external".  That only works
	// with an external auth service.
	RBAC *LoginConfigRBAC `json:"RBAC,omitempty"`

	// FallbackLoginLabel label to place on fallback_login_url.
	FallbackLoginLabel *string `json:"fallback_login_label,omitempty"`

	// FallbackLoginUrl secondary URL to offer users to use for login.
	FallbackLoginUrl *string `json:"fallback_login_url,omitempty"`

	// LoginCookieNames cookie names used to store JWT
	LoginCookieNames []string `json:"login_cookie_names"`

	// LoginFailedMessage message to display to users who fail to login; a full sentence that is rendered
	// in HTML and may contain a link to a secondary login method
	LoginFailedMessage *string `json:"login_failed_message,omitempty"`

	// LoginUrl primary URL to use for login.
	LoginUrl string `json:"login_url"`

	// LogoutUrl URL to use for logging out.
	LogoutUrl string `json:"logout_url"`
}

LoginConfig defines model for LoginConfig.

type LoginConfigRBAC

type LoginConfigRBAC string

LoginConfigRBAC RBAC will remain enabled on GUI if "external". That only works with an external auth service.

const (
	External   LoginConfigRBAC = "external"
	Simplified LoginConfigRBAC = "simplified"
)

Defines values for LoginConfigRBAC.

type LoginJSONBody

type LoginJSONBody struct {
	Name     string `json:"name"`
	Password string `json:"password"`
}

LoginJSONBody defines parameters for Login.

type LoginJSONRequestBody

type LoginJSONRequestBody LoginJSONBody

LoginJSONRequestBody defines body for Login for application/json ContentType.

type LoginResponse

type LoginResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AuthenticationToken
}

func ParseLoginResponse

func ParseLoginResponse(rsp *http.Response) (*LoginResponse, error)

ParseLoginResponse parses an HTTP response from a LoginWithResponse call

func (LoginResponse) Status

func (r LoginResponse) Status() string

Status returns HTTPResponse.Status

func (LoginResponse) StatusCode

func (r LoginResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type LogoutResponse

type LogoutResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseLogoutResponse

func ParseLogoutResponse(rsp *http.Response) (*LogoutResponse, error)

ParseLogoutResponse parses an HTTP response from a LogoutWithResponse call

func (LogoutResponse) Status

func (r LogoutResponse) Status() string

Status returns HTTPResponse.Status

func (LogoutResponse) StatusCode

func (r LogoutResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type MergeJSONRequestBody

type MergeJSONRequestBody = MergeMergeRequest

MergeJSONRequestBody defines body for Merge for application/json ContentType.

type MergeMergeRequest

type MergeMergeRequest struct {
	// ConflictResolve use to record the resolution of the conflict, example({"b/a.txt":"left"})
	ConflictResolve *map[string]string `json:"conflict_resolve,omitempty"`
	Msg             string             `json:"msg"`
}

MergeMergeRequest defines model for MergeMergeRequest.

type MergeRequest

type MergeRequest struct {
	AuthorId     openapi_types.UUID `json:"author_id"`
	CreatedAt    int64              `json:"created_at"`
	Description  *string            `json:"description,omitempty"`
	Id           openapi_types.UUID `json:"id"`
	MergeStatus  int                `json:"merge_status"`
	Sequence     uint64             `json:"sequence"`
	SourceBranch openapi_types.UUID `json:"source_branch"`
	SourceRepoId openapi_types.UUID `json:"source_repo_id"`
	TargetBranch openapi_types.UUID `json:"target_branch"`
	TargetRepoId openapi_types.UUID `json:"target_repo_id"`
	Title        string             `json:"title"`
	UpdatedAt    int64              `json:"updated_at"`
}

MergeRequest defines model for MergeRequest.

type MergeRequestFullState

type MergeRequestFullState struct {
	AuthorId     openapi_types.UUID `json:"author_id"`
	Changes      []ChangePair       `json:"changes"`
	CreatedAt    int64              `json:"created_at"`
	Description  *string            `json:"description,omitempty"`
	Id           openapi_types.UUID `json:"id"`
	MergeStatus  int                `json:"merge_status"`
	Sequence     uint64             `json:"sequence"`
	SourceBranch openapi_types.UUID `json:"source_branch"`
	SourceRepoId openapi_types.UUID `json:"source_repo_id"`
	TargetBranch openapi_types.UUID `json:"target_branch"`
	TargetRepoId openapi_types.UUID `json:"target_repo_id"`
	Title        string             `json:"title"`
	UpdatedAt    int64              `json:"updated_at"`
}

MergeRequestFullState defines model for MergeRequestFullState.

type MergeRequestList

type MergeRequestList struct {
	Pagination Pagination     `json:"pagination"`
	Results    []MergeRequest `json:"results"`
}

MergeRequestList defines model for MergeRequestList.

type MergeResponse

type MergeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Commit
}

func ParseMergeResponse

func ParseMergeResponse(rsp *http.Response) (*MergeResponse, error)

ParseMergeResponse parses an HTTP response from a MergeWithResponse call

func (MergeResponse) Status

func (r MergeResponse) Status() string

Status returns HTTPResponse.Status

func (MergeResponse) StatusCode

func (r MergeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type MiddlewareFunc

type MiddlewareFunc func(http.Handler) http.Handler

type MockResponseWriter

type MockResponseWriter struct {
	// contains filtered or unexported fields
}

MockResponseWriter is a mock of ResponseWriter interface.

func NewMockResponseWriter

func NewMockResponseWriter(ctrl *gomock.Controller) *MockResponseWriter

NewMockResponseWriter creates a new mock instance.

func (*MockResponseWriter) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockResponseWriter) Header

func (m *MockResponseWriter) Header() http.Header

Header mocks base method.

func (*MockResponseWriter) Write

func (m *MockResponseWriter) Write(arg0 []byte) (int, error)

Write mocks base method.

func (*MockResponseWriter) WriteHeader

func (m *MockResponseWriter) WriteHeader(arg0 int)

WriteHeader mocks base method.

type MockResponseWriterMockRecorder

type MockResponseWriterMockRecorder struct {
	// contains filtered or unexported fields
}

MockResponseWriterMockRecorder is the mock recorder for MockResponseWriter.

func (*MockResponseWriterMockRecorder) Header

Header indicates an expected call of Header.

func (*MockResponseWriterMockRecorder) Write

func (mr *MockResponseWriterMockRecorder) Write(arg0 any) *gomock.Call

Write indicates an expected call of Write.

func (*MockResponseWriterMockRecorder) WriteHeader

func (mr *MockResponseWriterMockRecorder) WriteHeader(arg0 any) *gomock.Call

WriteHeader indicates an expected call of WriteHeader.

type ObjectStats

type ObjectStats struct {
	Checksum string `json:"checksum"`

	// ContentType Object media type
	ContentType *string             `json:"content_type,omitempty"`
	Metadata    *ObjectUserMetadata `json:"metadata,omitempty"`

	// Mtime Unix Epoch in seconds
	Mtime     int64   `json:"mtime"`
	Path      string  `json:"path"`
	PathMode  *uint32 `json:"path_mode,omitempty"`
	SizeBytes *int64  `json:"size_bytes,omitempty"`
}

ObjectStats defines model for ObjectStats.

type ObjectUserMetadata

type ObjectUserMetadata map[string]string

ObjectUserMetadata defines model for ObjectUserMetadata.

type Pagination

type Pagination struct {
	// HasMore Next page is available
	HasMore bool `json:"has_more"`

	// MaxPerPage Maximal number of entries per page
	MaxPerPage int `json:"max_per_page"`

	// NextOffset Token used to retrieve the next page
	NextOffset string `json:"next_offset"`

	// Results Number of values found in the results
	Results int `json:"results"`
}

Pagination defines model for Pagination.

type PaginationAmount

type PaginationAmount = int

PaginationAmount defines model for PaginationAmount.

type PaginationInt64After

type PaginationInt64After = int64

PaginationInt64After defines model for PaginationInt64After.

type PaginationPrefix

type PaginationPrefix = string

PaginationPrefix defines model for PaginationPrefix.

type PaginationStringAfter

type PaginationStringAfter = string

PaginationStringAfter defines model for PaginationStringAfter.

type RefType

type RefType string

RefType defines model for RefType.

const (
	RefTypeBranch RefType = "branch"
	RefTypeCommit RefType = "commit"
	RefTypeTag    RefType = "tag"
	RefTypeWip    RefType = "wip"
)

Defines values for RefType.

type RefreshTokenResponse

type RefreshTokenResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AuthenticationToken
}

func ParseRefreshTokenResponse

func ParseRefreshTokenResponse(rsp *http.Response) (*RefreshTokenResponse, error)

ParseRefreshTokenResponse parses an HTTP response from a RefreshTokenWithResponse call

func (RefreshTokenResponse) Status

func (r RefreshTokenResponse) Status() string

Status returns HTTPResponse.Status

func (RefreshTokenResponse) StatusCode

func (r RefreshTokenResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RegisterJSONRequestBody

type RegisterJSONRequestBody = UserRegisterInfo

RegisterJSONRequestBody defines body for Register for application/json ContentType.

type RegisterResponse

type RegisterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseRegisterResponse

func ParseRegisterResponse(rsp *http.Response) (*RegisterResponse, error)

ParseRegisterResponse parses an HTTP response from a RegisterWithResponse call

func (RegisterResponse) Status

func (r RegisterResponse) Status() string

Status returns HTTPResponse.Status

func (RegisterResponse) StatusCode

func (r RegisterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Repository

type Repository struct {
	CreatedAt            int64              `json:"created_at"`
	CreatorId            openapi_types.UUID `json:"creator_id"`
	Description          *string            `json:"description,omitempty"`
	Head                 string             `json:"head"`
	Id                   openapi_types.UUID `json:"id"`
	Name                 string             `json:"name"`
	OwnerId              openapi_types.UUID `json:"owner_id"`
	StorageAdapterParams *string            `json:"storage_adapter_params,omitempty"`
	StorageNamespace     *string            `json:"storage_namespace,omitempty"`
	UpdatedAt            int64              `json:"updated_at"`
	UsePublicStorage     bool               `json:"use_public_storage"`
}

Repository defines model for Repository.

type RepositoryList

type RepositoryList struct {
	Pagination Pagination   `json:"pagination"`
	Results    []Repository `json:"results"`
}

RepositoryList defines model for RepositoryList.

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type RequiredHeaderError

type RequiredHeaderError struct {
	ParamName string
	Err       error
}

func (*RequiredHeaderError) Error

func (e *RequiredHeaderError) Error() string

func (*RequiredHeaderError) Unwrap

func (e *RequiredHeaderError) Unwrap() error

type RequiredParamError

type RequiredParamError struct {
	ParamName string
}

func (*RequiredParamError) Error

func (e *RequiredParamError) Error() string

type RevertWipChangesParams

type RevertWipChangesParams struct {
	// RefName ref name
	RefName string `form:"refName" json:"refName"`

	// PathPrefix prefix of path
	PathPrefix *string `form:"pathPrefix,omitempty" json:"pathPrefix,omitempty"`
}

RevertWipChangesParams defines parameters for RevertWipChanges.

type RevertWipChangesResponse

type RevertWipChangesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseRevertWipChangesResponse

func ParseRevertWipChangesResponse(rsp *http.Response) (*RevertWipChangesResponse, error)

ParseRevertWipChangesResponse parses an HTTP response from a RevertWipChangesWithResponse call

func (RevertWipChangesResponse) Status

func (r RevertWipChangesResponse) Status() string

Status returns HTTPResponse.Status

func (RevertWipChangesResponse) StatusCode

func (r RevertWipChangesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ServerInterface

type ServerInterface interface {
	// perform a login
	// (POST /auth/login)
	Login(ctx context.Context, w *JiaozifsResponse, r *http.Request, body LoginJSONRequestBody)
	// perform a logout
	// (POST /auth/logout)
	Logout(ctx context.Context, w *JiaozifsResponse, r *http.Request)
	// get merge request
	// (GET /mergequest/{owner}/{repository}/{mrSeq})
	GetMergeRequest(ctx context.Context, w *JiaozifsResponse, r *http.Request, owner string, repository string, mrSeq uint64)
	// update merge request
	// (POST /mergequest/{owner}/{repository}/{mrSeq})
	UpdateMergeRequest(ctx context.Context, w *JiaozifsResponse, r *http.Request, body UpdateMergeRequestJSONRequestBody, owner string, repository string, mrSeq uint64)
	// get list of merge request in repository
	// (GET /mergerequest/{owner}/{repository})
	ListMergeRequests(ctx context.Context, w *JiaozifsResponse, r *http.Request, owner string, repository string, params ListMergeRequestsParams)
	// create merge request
	// (POST /mergerequest/{owner}/{repository})
	CreateMergeRequest(ctx context.Context, w *JiaozifsResponse, r *http.Request, body CreateMergeRequestJSONRequestBody, owner string, repository string)
	// merge a mergerequest
	// (POST /mergerequest/{owner}/{repository}/{mrSeq}/merge)
	Merge(ctx context.Context, w *JiaozifsResponse, r *http.Request, body MergeJSONRequestBody, owner string, repository string, mrSeq uint64)
	// delete object. Missing objects will not return a NotFound error.
	// (DELETE /object/{owner}/{repository})
	DeleteObject(ctx context.Context, w *JiaozifsResponse, r *http.Request, owner string, repository string, params DeleteObjectParams)
	// get object content
	// (GET /object/{owner}/{repository})
	GetObject(ctx context.Context, w *JiaozifsResponse, r *http.Request, owner string, repository string, params GetObjectParams)
	// check if object exists
	// (HEAD /object/{owner}/{repository})
	HeadObject(ctx context.Context, w *JiaozifsResponse, r *http.Request, owner string, repository string, params HeadObjectParams)

	// (POST /object/{owner}/{repository})
	UploadObject(ctx context.Context, w *JiaozifsResponse, r *http.Request, owner string, repository string, params UploadObjectParams)
	// delete repository
	// (DELETE /repos/{owner}/{repository})
	DeleteRepository(ctx context.Context, w *JiaozifsResponse, r *http.Request, owner string, repository string)
	// get repository
	// (GET /repos/{owner}/{repository})
	GetRepository(ctx context.Context, w *JiaozifsResponse, r *http.Request, owner string, repository string)
	// update repository
	// (POST /repos/{owner}/{repository})
	UpdateRepository(ctx context.Context, w *JiaozifsResponse, r *http.Request, body UpdateRepositoryJSONRequestBody, owner string, repository string)
	// delete branch
	// (DELETE /repos/{owner}/{repository}/branch)
	DeleteBranch(ctx context.Context, w *JiaozifsResponse, r *http.Request, owner string, repository string, params DeleteBranchParams)
	// get branch
	// (GET /repos/{owner}/{repository}/branch)
	GetBranch(ctx context.Context, w *JiaozifsResponse, r *http.Request, owner string, repository string, params GetBranchParams)
	// create branch
	// (POST /repos/{owner}/{repository}/branch)
	CreateBranch(ctx context.Context, w *JiaozifsResponse, r *http.Request, body CreateBranchJSONRequestBody, owner string, repository string)
	// list branches
	// (GET /repos/{owner}/{repository}/branches)
	ListBranches(ctx context.Context, w *JiaozifsResponse, r *http.Request, owner string, repository string, params ListBranchesParams)
	// get changes in commit
	// (GET /repos/{owner}/{repository}/changes/{commit_id})
	GetCommitChanges(ctx context.Context, w *JiaozifsResponse, r *http.Request, owner string, repository string, commitId string, params GetCommitChangesParams)
	// get commits in ref
	// (GET /repos/{owner}/{repository}/commits)
	GetCommitsInRef(ctx context.Context, w *JiaozifsResponse, r *http.Request, owner string, repository string, params GetCommitsInRefParams)
	// compare two commit
	// (GET /repos/{owner}/{repository}/compare/{basehead})
	CompareCommit(ctx context.Context, w *JiaozifsResponse, r *http.Request, owner string, repository string, basehead string, params CompareCommitParams)
	// list entries in ref
	// (GET /repos/{owner}/{repository}/contents)
	GetEntriesInRef(ctx context.Context, w *JiaozifsResponse, r *http.Request, owner string, repository string, params GetEntriesInRefParams)
	// check if jiaozifs setup
	// (GET /setup)
	GetSetupState(ctx context.Context, w *JiaozifsResponse, r *http.Request)
	// refresh token for more time
	// (GET /users/refreshtoken)
	RefreshToken(ctx context.Context, w *JiaozifsResponse, r *http.Request)
	// perform user registration
	// (POST /users/register)
	Register(ctx context.Context, w *JiaozifsResponse, r *http.Request, body RegisterJSONRequestBody)
	// list repository
	// (GET /users/repos)
	ListRepositoryOfAuthenticatedUser(ctx context.Context, w *JiaozifsResponse, r *http.Request, params ListRepositoryOfAuthenticatedUserParams)
	// create repository
	// (POST /users/repos)
	CreateRepository(ctx context.Context, w *JiaozifsResponse, r *http.Request, body CreateRepositoryJSONRequestBody)
	// get information of the currently logged-in user
	// (GET /users/user)
	GetUserInfo(ctx context.Context, w *JiaozifsResponse, r *http.Request)
	// list repository in specific owner
	// (GET /users/{owner}/repos)
	ListRepository(ctx context.Context, w *JiaozifsResponse, r *http.Request, owner string, params ListRepositoryParams)
	// return program and runtime version
	// (GET /version)
	GetVersion(ctx context.Context, w *JiaozifsResponse, r *http.Request)
	// remove working in process
	// (DELETE /wip/{owner}/{repository})
	DeleteWip(ctx context.Context, w *JiaozifsResponse, r *http.Request, owner string, repository string, params DeleteWipParams)
	// get working in process
	// (GET /wip/{owner}/{repository})
	GetWip(ctx context.Context, w *JiaozifsResponse, r *http.Request, owner string, repository string, params GetWipParams)
	// update wip
	// (POST /wip/{owner}/{repository})
	UpdateWip(ctx context.Context, w *JiaozifsResponse, r *http.Request, body UpdateWipJSONRequestBody, owner string, repository string, params UpdateWipParams)
	// get working in process changes
	// (GET /wip/{owner}/{repository}/changes)
	GetWipChanges(ctx context.Context, w *JiaozifsResponse, r *http.Request, owner string, repository string, params GetWipChangesParams)
	// commit working in process to branch
	// (POST /wip/{owner}/{repository}/commit)
	CommitWip(ctx context.Context, w *JiaozifsResponse, r *http.Request, owner string, repository string, params CommitWipParams)
	// list wip in specific project and user
	// (GET /wip/{owner}/{repository}/list)
	ListWip(ctx context.Context, w *JiaozifsResponse, r *http.Request, owner string, repository string)
	// revert changes in working in process, empty path will revert all
	// (POST /wip/{owner}/{repository}/revert)
	RevertWipChanges(ctx context.Context, w *JiaozifsResponse, r *http.Request, owner string, repository string, params RevertWipChangesParams)
}

ServerInterface represents all server handlers.

type ServerInterfaceWrapper

type ServerInterfaceWrapper struct {
	Handler            ServerInterface
	HandlerMiddlewares []MiddlewareFunc
	ErrorHandlerFunc   func(w http.ResponseWriter, r *http.Request, err error)
}

ServerInterfaceWrapper converts contexts to parameters.

func (*ServerInterfaceWrapper) CommitWip

func (siw *ServerInterfaceWrapper) CommitWip(w http.ResponseWriter, r *http.Request)

CommitWip operation middleware

func (*ServerInterfaceWrapper) CompareCommit

func (siw *ServerInterfaceWrapper) CompareCommit(w http.ResponseWriter, r *http.Request)

CompareCommit operation middleware

func (*ServerInterfaceWrapper) CreateBranch

func (siw *ServerInterfaceWrapper) CreateBranch(w http.ResponseWriter, r *http.Request)

CreateBranch operation middleware

func (*ServerInterfaceWrapper) CreateMergeRequest

func (siw *ServerInterfaceWrapper) CreateMergeRequest(w http.ResponseWriter, r *http.Request)

CreateMergeRequest operation middleware

func (*ServerInterfaceWrapper) CreateRepository

func (siw *ServerInterfaceWrapper) CreateRepository(w http.ResponseWriter, r *http.Request)

CreateRepository operation middleware

func (*ServerInterfaceWrapper) DeleteBranch

func (siw *ServerInterfaceWrapper) DeleteBranch(w http.ResponseWriter, r *http.Request)

DeleteBranch operation middleware

func (*ServerInterfaceWrapper) DeleteObject

func (siw *ServerInterfaceWrapper) DeleteObject(w http.ResponseWriter, r *http.Request)

DeleteObject operation middleware

func (*ServerInterfaceWrapper) DeleteRepository

func (siw *ServerInterfaceWrapper) DeleteRepository(w http.ResponseWriter, r *http.Request)

DeleteRepository operation middleware

func (*ServerInterfaceWrapper) DeleteWip

func (siw *ServerInterfaceWrapper) DeleteWip(w http.ResponseWriter, r *http.Request)

DeleteWip operation middleware

func (*ServerInterfaceWrapper) GetBranch

func (siw *ServerInterfaceWrapper) GetBranch(w http.ResponseWriter, r *http.Request)

GetBranch operation middleware

func (*ServerInterfaceWrapper) GetCommitChanges

func (siw *ServerInterfaceWrapper) GetCommitChanges(w http.ResponseWriter, r *http.Request)

GetCommitChanges operation middleware

func (*ServerInterfaceWrapper) GetCommitsInRef

func (siw *ServerInterfaceWrapper) GetCommitsInRef(w http.ResponseWriter, r *http.Request)

GetCommitsInRef operation middleware

func (*ServerInterfaceWrapper) GetEntriesInRef

func (siw *ServerInterfaceWrapper) GetEntriesInRef(w http.ResponseWriter, r *http.Request)

GetEntriesInRef operation middleware

func (*ServerInterfaceWrapper) GetMergeRequest

func (siw *ServerInterfaceWrapper) GetMergeRequest(w http.ResponseWriter, r *http.Request)

GetMergeRequest operation middleware

func (*ServerInterfaceWrapper) GetObject

func (siw *ServerInterfaceWrapper) GetObject(w http.ResponseWriter, r *http.Request)

GetObject operation middleware

func (*ServerInterfaceWrapper) GetRepository

func (siw *ServerInterfaceWrapper) GetRepository(w http.ResponseWriter, r *http.Request)

GetRepository operation middleware

func (*ServerInterfaceWrapper) GetSetupState

func (siw *ServerInterfaceWrapper) GetSetupState(w http.ResponseWriter, r *http.Request)

GetSetupState operation middleware

func (*ServerInterfaceWrapper) GetUserInfo

func (siw *ServerInterfaceWrapper) GetUserInfo(w http.ResponseWriter, r *http.Request)

GetUserInfo operation middleware

func (*ServerInterfaceWrapper) GetVersion

func (siw *ServerInterfaceWrapper) GetVersion(w http.ResponseWriter, r *http.Request)

GetVersion operation middleware

func (*ServerInterfaceWrapper) GetWip

GetWip operation middleware

func (*ServerInterfaceWrapper) GetWipChanges

func (siw *ServerInterfaceWrapper) GetWipChanges(w http.ResponseWriter, r *http.Request)

GetWipChanges operation middleware

func (*ServerInterfaceWrapper) HeadObject

func (siw *ServerInterfaceWrapper) HeadObject(w http.ResponseWriter, r *http.Request)

HeadObject operation middleware

func (*ServerInterfaceWrapper) ListBranches

func (siw *ServerInterfaceWrapper) ListBranches(w http.ResponseWriter, r *http.Request)

ListBranches operation middleware

func (*ServerInterfaceWrapper) ListMergeRequests

func (siw *ServerInterfaceWrapper) ListMergeRequests(w http.ResponseWriter, r *http.Request)

ListMergeRequests operation middleware

func (*ServerInterfaceWrapper) ListRepository

func (siw *ServerInterfaceWrapper) ListRepository(w http.ResponseWriter, r *http.Request)

ListRepository operation middleware

func (*ServerInterfaceWrapper) ListRepositoryOfAuthenticatedUser

func (siw *ServerInterfaceWrapper) ListRepositoryOfAuthenticatedUser(w http.ResponseWriter, r *http.Request)

ListRepositoryOfAuthenticatedUser operation middleware

func (*ServerInterfaceWrapper) ListWip

ListWip operation middleware

func (*ServerInterfaceWrapper) Login

Login operation middleware

func (*ServerInterfaceWrapper) Logout

Logout operation middleware

func (*ServerInterfaceWrapper) Merge

Merge operation middleware

func (*ServerInterfaceWrapper) RefreshToken

func (siw *ServerInterfaceWrapper) RefreshToken(w http.ResponseWriter, r *http.Request)

RefreshToken operation middleware

func (*ServerInterfaceWrapper) Register

func (siw *ServerInterfaceWrapper) Register(w http.ResponseWriter, r *http.Request)

Register operation middleware

func (*ServerInterfaceWrapper) RevertWipChanges

func (siw *ServerInterfaceWrapper) RevertWipChanges(w http.ResponseWriter, r *http.Request)

RevertWipChanges operation middleware

func (*ServerInterfaceWrapper) UpdateMergeRequest

func (siw *ServerInterfaceWrapper) UpdateMergeRequest(w http.ResponseWriter, r *http.Request)

UpdateMergeRequest operation middleware

func (*ServerInterfaceWrapper) UpdateRepository

func (siw *ServerInterfaceWrapper) UpdateRepository(w http.ResponseWriter, r *http.Request)

UpdateRepository operation middleware

func (*ServerInterfaceWrapper) UpdateWip

func (siw *ServerInterfaceWrapper) UpdateWip(w http.ResponseWriter, r *http.Request)

UpdateWip operation middleware

func (*ServerInterfaceWrapper) UploadObject

func (siw *ServerInterfaceWrapper) UploadObject(w http.ResponseWriter, r *http.Request)

UploadObject operation middleware

type SetupState

type SetupState struct {
	// CommPrefsMissing true if the comm prefs are missing.
	CommPrefsMissing *bool            `json:"comm_prefs_missing,omitempty"`
	LoginConfig      *LoginConfig     `json:"login_config,omitempty"`
	State            *SetupStateState `json:"state,omitempty"`
}

SetupState defines model for SetupState.

type SetupStateState

type SetupStateState string

SetupStateState defines model for SetupState.State.

const (
	Initialized    SetupStateState = "initialized"
	NotInitialized SetupStateState = "not_initialized"
)

Defines values for SetupStateState.

type Signature

type Signature struct {
	Email openapi_types.Email `json:"email"`
	Name  string              `json:"name"`
	When  int64               `json:"when"`
}

Signature defines model for Signature.

type TooManyValuesForParamError

type TooManyValuesForParamError struct {
	ParamName string
	Count     int
}

func (*TooManyValuesForParamError) Error

type UnescapedCookieParamError

type UnescapedCookieParamError struct {
	ParamName string
	Err       error
}

func (*UnescapedCookieParamError) Error

func (e *UnescapedCookieParamError) Error() string

func (*UnescapedCookieParamError) Unwrap

func (e *UnescapedCookieParamError) Unwrap() error

type Unimplemented

type Unimplemented struct{}

func (Unimplemented) CommitWip

func (_ Unimplemented) CommitWip(ctx context.Context, w *JiaozifsResponse, r *http.Request, owner string, repository string, params CommitWipParams)

commit working in process to branch (POST /wip/{owner}/{repository}/commit)

func (Unimplemented) CompareCommit

func (_ Unimplemented) CompareCommit(ctx context.Context, w *JiaozifsResponse, r *http.Request, owner string, repository string, basehead string, params CompareCommitParams)

compare two commit (GET /repos/{owner}/{repository}/compare/{basehead})

func (Unimplemented) CreateBranch

func (_ Unimplemented) CreateBranch(ctx context.Context, w *JiaozifsResponse, r *http.Request, body CreateBranchJSONRequestBody, owner string, repository string)

create branch (POST /repos/{owner}/{repository}/branch)

func (Unimplemented) CreateMergeRequest

func (_ Unimplemented) CreateMergeRequest(ctx context.Context, w *JiaozifsResponse, r *http.Request, body CreateMergeRequestJSONRequestBody, owner string, repository string)

create merge request (POST /mergerequest/{owner}/{repository})

func (Unimplemented) CreateRepository

create repository (POST /users/repos)

func (Unimplemented) DeleteBranch

func (_ Unimplemented) DeleteBranch(ctx context.Context, w *JiaozifsResponse, r *http.Request, owner string, repository string, params DeleteBranchParams)

delete branch (DELETE /repos/{owner}/{repository}/branch)

func (Unimplemented) DeleteObject

func (_ Unimplemented) DeleteObject(ctx context.Context, w *JiaozifsResponse, r *http.Request, owner string, repository string, params DeleteObjectParams)

delete object. Missing objects will not return a NotFound error. (DELETE /object/{owner}/{repository})

func (Unimplemented) DeleteRepository

func (_ Unimplemented) DeleteRepository(ctx context.Context, w *JiaozifsResponse, r *http.Request, owner string, repository string)

delete repository (DELETE /repos/{owner}/{repository})

func (Unimplemented) DeleteWip

func (_ Unimplemented) DeleteWip(ctx context.Context, w *JiaozifsResponse, r *http.Request, owner string, repository string, params DeleteWipParams)

remove working in process (DELETE /wip/{owner}/{repository})

func (Unimplemented) GetBranch

func (_ Unimplemented) GetBranch(ctx context.Context, w *JiaozifsResponse, r *http.Request, owner string, repository string, params GetBranchParams)

get branch (GET /repos/{owner}/{repository}/branch)

func (Unimplemented) GetCommitChanges

func (_ Unimplemented) GetCommitChanges(ctx context.Context, w *JiaozifsResponse, r *http.Request, owner string, repository string, commitId string, params GetCommitChangesParams)

get changes in commit (GET /repos/{owner}/{repository}/changes/{commit_id})

func (Unimplemented) GetCommitsInRef

func (_ Unimplemented) GetCommitsInRef(ctx context.Context, w *JiaozifsResponse, r *http.Request, owner string, repository string, params GetCommitsInRefParams)

get commits in ref (GET /repos/{owner}/{repository}/commits)

func (Unimplemented) GetEntriesInRef

func (_ Unimplemented) GetEntriesInRef(ctx context.Context, w *JiaozifsResponse, r *http.Request, owner string, repository string, params GetEntriesInRefParams)

list entries in ref (GET /repos/{owner}/{repository}/contents)

func (Unimplemented) GetMergeRequest

func (_ Unimplemented) GetMergeRequest(ctx context.Context, w *JiaozifsResponse, r *http.Request, owner string, repository string, mrSeq uint64)

get merge request (GET /mergequest/{owner}/{repository}/{mrSeq})

func (Unimplemented) GetObject

func (_ Unimplemented) GetObject(ctx context.Context, w *JiaozifsResponse, r *http.Request, owner string, repository string, params GetObjectParams)

get object content (GET /object/{owner}/{repository})

func (Unimplemented) GetRepository

func (_ Unimplemented) GetRepository(ctx context.Context, w *JiaozifsResponse, r *http.Request, owner string, repository string)

get repository (GET /repos/{owner}/{repository})

func (Unimplemented) GetSetupState

func (_ Unimplemented) GetSetupState(ctx context.Context, w *JiaozifsResponse, r *http.Request)

check if jiaozifs setup (GET /setup)

func (Unimplemented) GetUserInfo

func (_ Unimplemented) GetUserInfo(ctx context.Context, w *JiaozifsResponse, r *http.Request)

get information of the currently logged-in user (GET /users/user)

func (Unimplemented) GetVersion

func (_ Unimplemented) GetVersion(ctx context.Context, w *JiaozifsResponse, r *http.Request)

return program and runtime version (GET /version)

func (Unimplemented) GetWip

func (_ Unimplemented) GetWip(ctx context.Context, w *JiaozifsResponse, r *http.Request, owner string, repository string, params GetWipParams)

get working in process (GET /wip/{owner}/{repository})

func (Unimplemented) GetWipChanges

func (_ Unimplemented) GetWipChanges(ctx context.Context, w *JiaozifsResponse, r *http.Request, owner string, repository string, params GetWipChangesParams)

get working in process changes (GET /wip/{owner}/{repository}/changes)

func (Unimplemented) HeadObject

func (_ Unimplemented) HeadObject(ctx context.Context, w *JiaozifsResponse, r *http.Request, owner string, repository string, params HeadObjectParams)

check if object exists (HEAD /object/{owner}/{repository})

func (Unimplemented) ListBranches

func (_ Unimplemented) ListBranches(ctx context.Context, w *JiaozifsResponse, r *http.Request, owner string, repository string, params ListBranchesParams)

list branches (GET /repos/{owner}/{repository}/branches)

func (Unimplemented) ListMergeRequests

func (_ Unimplemented) ListMergeRequests(ctx context.Context, w *JiaozifsResponse, r *http.Request, owner string, repository string, params ListMergeRequestsParams)

get list of merge request in repository (GET /mergerequest/{owner}/{repository})

func (Unimplemented) ListRepository

func (_ Unimplemented) ListRepository(ctx context.Context, w *JiaozifsResponse, r *http.Request, owner string, params ListRepositoryParams)

list repository in specific owner (GET /users/{owner}/repos)

func (Unimplemented) ListRepositoryOfAuthenticatedUser

func (_ Unimplemented) ListRepositoryOfAuthenticatedUser(ctx context.Context, w *JiaozifsResponse, r *http.Request, params ListRepositoryOfAuthenticatedUserParams)

list repository (GET /users/repos)

func (Unimplemented) ListWip

func (_ Unimplemented) ListWip(ctx context.Context, w *JiaozifsResponse, r *http.Request, owner string, repository string)

list wip in specific project and user (GET /wip/{owner}/{repository}/list)

func (Unimplemented) Login

perform a login (POST /auth/login)

func (Unimplemented) Logout

func (_ Unimplemented) Logout(ctx context.Context, w *JiaozifsResponse, r *http.Request)

perform a logout (POST /auth/logout)

func (Unimplemented) Merge

func (_ Unimplemented) Merge(ctx context.Context, w *JiaozifsResponse, r *http.Request, body MergeJSONRequestBody, owner string, repository string, mrSeq uint64)

merge a mergerequest (POST /mergerequest/{owner}/{repository}/{mrSeq}/merge)

func (Unimplemented) RefreshToken

func (_ Unimplemented) RefreshToken(ctx context.Context, w *JiaozifsResponse, r *http.Request)

refresh token for more time (GET /users/refreshtoken)

func (Unimplemented) Register

perform user registration (POST /users/register)

func (Unimplemented) RevertWipChanges

func (_ Unimplemented) RevertWipChanges(ctx context.Context, w *JiaozifsResponse, r *http.Request, owner string, repository string, params RevertWipChangesParams)

revert changes in working in process, empty path will revert all (POST /wip/{owner}/{repository}/revert)

func (Unimplemented) UpdateMergeRequest

func (_ Unimplemented) UpdateMergeRequest(ctx context.Context, w *JiaozifsResponse, r *http.Request, body UpdateMergeRequestJSONRequestBody, owner string, repository string, mrSeq uint64)

update merge request (POST /mergequest/{owner}/{repository}/{mrSeq})

func (Unimplemented) UpdateRepository

func (_ Unimplemented) UpdateRepository(ctx context.Context, w *JiaozifsResponse, r *http.Request, body UpdateRepositoryJSONRequestBody, owner string, repository string)

update repository (POST /repos/{owner}/{repository})

func (Unimplemented) UpdateWip

func (_ Unimplemented) UpdateWip(ctx context.Context, w *JiaozifsResponse, r *http.Request, body UpdateWipJSONRequestBody, owner string, repository string, params UpdateWipParams)

update wip (POST /wip/{owner}/{repository})

func (Unimplemented) UploadObject

func (_ Unimplemented) UploadObject(ctx context.Context, w *JiaozifsResponse, r *http.Request, owner string, repository string, params UploadObjectParams)

(POST /object/{owner}/{repository})

type UnmarshalingParamError

type UnmarshalingParamError struct {
	ParamName string
	Err       error
}

func (*UnmarshalingParamError) Error

func (e *UnmarshalingParamError) Error() string

func (*UnmarshalingParamError) Unwrap

func (e *UnmarshalingParamError) Unwrap() error

type UpdateMergeRequest

type UpdateMergeRequest struct {
	Description *string `json:"description,omitempty"`
	Status      *int    `json:"status,omitempty"`
	Title       *string `json:"title,omitempty"`
}

UpdateMergeRequest defines model for UpdateMergeRequest.

type UpdateMergeRequestJSONRequestBody

type UpdateMergeRequestJSONRequestBody = UpdateMergeRequest

UpdateMergeRequestJSONRequestBody defines body for UpdateMergeRequest for application/json ContentType.

type UpdateMergeRequestResponse

type UpdateMergeRequestResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseUpdateMergeRequestResponse

func ParseUpdateMergeRequestResponse(rsp *http.Response) (*UpdateMergeRequestResponse, error)

ParseUpdateMergeRequestResponse parses an HTTP response from a UpdateMergeRequestWithResponse call

func (UpdateMergeRequestResponse) Status

Status returns HTTPResponse.Status

func (UpdateMergeRequestResponse) StatusCode

func (r UpdateMergeRequestResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateRepository

type UpdateRepository struct {
	Description *string `json:"description,omitempty"`
	Head        *string `json:"head,omitempty"`
}

UpdateRepository defines model for UpdateRepository.

type UpdateRepositoryJSONRequestBody

type UpdateRepositoryJSONRequestBody = UpdateRepository

UpdateRepositoryJSONRequestBody defines body for UpdateRepository for application/json ContentType.

type UpdateRepositoryResponse

type UpdateRepositoryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseUpdateRepositoryResponse

func ParseUpdateRepositoryResponse(rsp *http.Response) (*UpdateRepositoryResponse, error)

ParseUpdateRepositoryResponse parses an HTTP response from a UpdateRepositoryWithResponse call

func (UpdateRepositoryResponse) Status

func (r UpdateRepositoryResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateRepositoryResponse) StatusCode

func (r UpdateRepositoryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateWip

type UpdateWip struct {
	BaseCommit  *string `json:"base_commit,omitempty"`
	CurrentTree *string `json:"current_tree,omitempty"`
}

UpdateWip defines model for UpdateWip.

type UpdateWipJSONRequestBody

type UpdateWipJSONRequestBody = UpdateWip

UpdateWipJSONRequestBody defines body for UpdateWip for application/json ContentType.

type UpdateWipParams

type UpdateWipParams struct {
	// RefName ref name
	RefName string `form:"refName" json:"refName"`
}

UpdateWipParams defines parameters for UpdateWip.

type UpdateWipResponse

type UpdateWipResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseUpdateWipResponse

func ParseUpdateWipResponse(rsp *http.Response) (*UpdateWipResponse, error)

ParseUpdateWipResponse parses an HTTP response from a UpdateWipWithResponse call

func (UpdateWipResponse) Status

func (r UpdateWipResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateWipResponse) StatusCode

func (r UpdateWipResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UploadObjectMultipartBody

type UploadObjectMultipartBody struct {
	// Content Only a single file per upload which must be named "content".
	Content *openapi_types.File `json:"content,omitempty"`
}

UploadObjectMultipartBody defines parameters for UploadObject.

type UploadObjectMultipartRequestBody

type UploadObjectMultipartRequestBody UploadObjectMultipartBody

UploadObjectMultipartRequestBody defines body for UploadObject for multipart/form-data ContentType.

type UploadObjectParams

type UploadObjectParams struct {
	// RefName branch/tag to the ref
	RefName string `form:"refName" json:"refName"`

	// Path relative to the ref
	Path string `form:"path" json:"path"`
}

UploadObjectParams defines parameters for UploadObject.

type UploadObjectResponse

type UploadObjectResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *ObjectStats
}

func ParseUploadObjectResponse

func ParseUploadObjectResponse(rsp *http.Response) (*UploadObjectResponse, error)

ParseUploadObjectResponse parses an HTTP response from a UploadObjectWithResponse call

func (UploadObjectResponse) Status

func (r UploadObjectResponse) Status() string

Status returns HTTPResponse.Status

func (UploadObjectResponse) StatusCode

func (r UploadObjectResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UserInfo

type UserInfo struct {
	CreatedAt       int64               `json:"created_at"`
	CurrentSignInAt *int64              `json:"current_sign_in_at,omitempty"`
	CurrentSignInIp *string             `json:"current_sign_in_ip,omitempty"`
	Email           openapi_types.Email `json:"email"`
	Id              openapi_types.UUID  `json:"id"`
	LastSignInAt    *int64              `json:"last_sign_in_at,omitempty"`
	LastSignInIp    *string             `json:"last_sign_in_ip,omitempty"`
	Name            string              `json:"name"`
	UpdatedAt       int64               `json:"updated_at"`
}

UserInfo defines model for UserInfo.

type UserRegisterInfo

type UserRegisterInfo struct {
	Email    openapi_types.Email `json:"email"`
	Name     string              `json:"name"`
	Password string              `json:"password"`
}

UserRegisterInfo defines model for UserRegisterInfo.

type VersionResult

type VersionResult struct {
	// ApiVersion runtime version
	ApiVersion    string  `json:"api_version"`
	LatestVersion *string `json:"latest_version,omitempty"`

	// Version program version
	Version string `json:"version"`
}

VersionResult defines model for VersionResult.

type Wip

type Wip struct {
	BaseCommit   string             `json:"base_commit"`
	CreatedAt    int64              `json:"created_at"`
	CreatorId    openapi_types.UUID `json:"creator_id"`
	CurrentTree  string             `json:"current_tree"`
	Id           openapi_types.UUID `json:"id"`
	RefId        openapi_types.UUID `json:"ref_id"`
	RepositoryId openapi_types.UUID `json:"repository_id"`
	State        int                `json:"state"`
	UpdatedAt    int64              `json:"updated_at"`
}

Wip defines model for Wip.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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