models

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2025 License: Apache-2.0 Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Branch

type Branch struct {
	Name string `json:"name"`
}

Branch defines model for Branch.

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 GitServerParam

type GitServerParam = string

GitServerParam defines model for gitServerParam.

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 RepoNameParam

type RepoNameParam = string

RepoNameParam defines model for repoNameParam.

type RepoNameQueryParam

type RepoNameQueryParam = string

RepoNameQueryParam defines model for repoNameQueryParam.

type RepoOwnerParam

type RepoOwnerParam = string

RepoOwnerParam defines model for repoOwnerParam.

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.

Jump to

Keyboard shortcuts

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