Documentation
¶
Overview ¶
Package models provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT.
Index ¶
- type Branch
- type BranchesResponse
- type CacheInvalidationResponse
- type Error
- type GetRepositoryParams
- type GitServerParam
- type InvalidateCacheParams
- type InvalidateCacheParamsEndpoint
- type ListBranchesParams
- type ListOptions
- type ListRepositoriesParams
- type ListUserOrganizationsParams
- type Organization
- type OrganizationsResponse
- type Owner
- type Pagination
- type RepoNameParam
- type RepoNameQueryParam
- type RepoOwnerParam
- type RepositoriesResponse
- type Repository
- type RepositoryDetails
- type RepositoryDetailsVisibility
- type RepositoryVisibility
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BranchesResponse ¶
type BranchesResponse struct {
Data []Branch `json:"data"`
}
BranchesResponse defines model for BranchesResponse.
type CacheInvalidationResponse ¶
type CacheInvalidationResponse struct {
// Endpoint The endpoint for which cache was invalidated
Endpoint string `json:"endpoint"`
// Message A message indicating the result of the cache invalidation
Message string `json:"message"`
}
CacheInvalidationResponse defines model for CacheInvalidationResponse.
type Error ¶
type Error struct {
// Code A short error code representing the type of error
Code string `json:"code"`
// Message A human-readable message providing more details about the error
Message string `json:"message"`
}
Error defines model for Error.
type GetRepositoryParams ¶
type GetRepositoryParams struct {
// GitServer The Git server name.
GitServer GitServerParam `form:"gitServer" json:"gitServer"`
// Owner The owner of the repository.
Owner RepoOwnerParam `form:"owner" json:"owner"`
// RepoName The name of the repository.
RepoName RepoNameParam `form:"repoName" json:"repoName"`
}
GetRepositoryParams defines parameters for GetRepository.
type InvalidateCacheParams ¶
type InvalidateCacheParams struct {
// Endpoint The endpoint name to invalidate cache for (repositories, organizations, branches)
Endpoint InvalidateCacheParamsEndpoint `form:"endpoint" json:"endpoint"`
}
InvalidateCacheParams defines parameters for InvalidateCache.
type InvalidateCacheParamsEndpoint ¶
type InvalidateCacheParamsEndpoint string
InvalidateCacheParamsEndpoint defines parameters for InvalidateCache.
const ( Branches InvalidateCacheParamsEndpoint = "branches" Organizations InvalidateCacheParamsEndpoint = "organizations" Repositories InvalidateCacheParamsEndpoint = "repositories" )
Defines values for InvalidateCacheParamsEndpoint.
type ListBranchesParams ¶
type ListBranchesParams struct {
// GitServer The Git server name.
GitServer GitServerParam `form:"gitServer" json:"gitServer"`
// Owner The owner of the repository.
Owner RepoOwnerParam `form:"owner" json:"owner"`
// RepoName The name of the repository.
RepoName RepoNameParam `form:"repoName" json:"repoName"`
}
ListBranchesParams defines parameters for ListBranches.
type ListOptions ¶
type ListOptions struct {
Name *string
}
type ListRepositoriesParams ¶
type ListRepositoriesParams struct {
// GitServer The Git server name.
GitServer GitServerParam `form:"gitServer" json:"gitServer"`
// Owner The owner of the repository.
Owner RepoOwnerParam `form:"owner" json:"owner"`
// RepoName The name of the repository to search for.
RepoName *RepoNameQueryParam `form:"repoName,omitempty" json:"repoName,omitempty"`
}
ListRepositoriesParams defines parameters for ListRepositories.
type ListUserOrganizationsParams ¶
type ListUserOrganizationsParams struct {
// GitServer The Git server name.
GitServer GitServerParam `form:"gitServer" json:"gitServer"`
}
ListUserOrganizationsParams defines parameters for ListUserOrganizations.
type Organization ¶
type Organization struct {
AvatarUrl *string `json:"avatar_url,omitempty"`
Id string `json:"id"`
Name string `json:"name"`
}
Organization defines model for Organization.
type OrganizationsResponse ¶
type OrganizationsResponse struct {
Data []Organization `json:"data"`
}
OrganizationsResponse defines model for OrganizationsResponse.
type Owner ¶
type Owner struct {
AvatarUrl *string `json:"avatar_url,omitempty"`
Id string `json:"id"`
Name string `json:"name"`
}
Owner defines model for Owner.
type Pagination ¶
type Pagination struct {
Total int `json:"total"`
}
Pagination defines model for Pagination.
type RepoNameQueryParam ¶
type RepoNameQueryParam = string
RepoNameQueryParam defines model for repoNameQueryParam.
type RepositoriesResponse ¶
type RepositoriesResponse struct {
Data []Repository `json:"data"`
}
RepositoriesResponse defines model for RepositoriesResponse.
type Repository ¶
type Repository struct {
DefaultBranch *string `json:"default_branch,omitempty"`
Description *string `json:"description,omitempty"`
Id string `json:"id"`
Name string `json:"name"`
Owner *string `json:"owner,omitempty"`
Url *string `json:"url,omitempty"`
Visibility *RepositoryVisibility `json:"visibility,omitempty"`
}
Repository defines model for Repository.
type RepositoryDetails ¶
type RepositoryDetails struct {
CreatedAt *time.Time `json:"created_at,omitempty"`
DefaultBranch *string `json:"default_branch,omitempty"`
Description *string `json:"description,omitempty"`
ForksCount *int `json:"forks_count,omitempty"`
HttpUrl *string `json:"http_url,omitempty"`
Id string `json:"id"`
Name string `json:"name"`
Owner *Owner `json:"owner,omitempty"`
SshUrl *string `json:"ssh_url,omitempty"`
StarsCount *int `json:"stars_count,omitempty"`
Url *string `json:"url,omitempty"`
Visibility *RepositoryDetailsVisibility `json:"visibility,omitempty"`
}
RepositoryDetails defines model for RepositoryDetails.
type RepositoryDetailsVisibility ¶
type RepositoryDetailsVisibility string
RepositoryDetailsVisibility defines model for RepositoryDetails.Visibility.
const ( RepositoryDetailsVisibilityPrivate RepositoryDetailsVisibility = "private" RepositoryDetailsVisibilityPublic RepositoryDetailsVisibility = "public" )
Defines values for RepositoryDetailsVisibility.
type RepositoryVisibility ¶
type RepositoryVisibility string
RepositoryVisibility defines model for Repository.Visibility.
const ( RepositoryVisibilityPrivate RepositoryVisibility = "private" RepositoryVisibilityPublic RepositoryVisibility = "public" )
Defines values for RepositoryVisibility.