Documentation
¶
Index ¶
- func CacheExpires(r *http.Response) time.Time
- func NewConfiguration(region string, apiKeys ...*ncloud.APIKey) *ncloud.Configuration
- type APIClient
- type APIResponse
- type ChangeRepository
- type CreateRepository
- type CreateRepositoryLinked
- type DefaultBranch
- type GetRepositoryBranchListResponse
- type GetRepositoryDetailResponse
- type GetRepositoryDetailResponseCreated
- type GetRepositoryDetailResponseGit
- type GetRepositoryDetailResponseLinked
- type GetRepositoryListResponse
- type GetRepositoryListResponseRepository
- type GetRepositoryTagListResponse
- type OkResponse
- type V1ApiService
- func (a *V1ApiService) ChangeRepository(ctx context.Context, body *ChangeRepository, repositoryId *string) (*bool, error)
- func (a *V1ApiService) CreateRepository(ctx context.Context, body *CreateRepository) (*bool, error)
- func (a *V1ApiService) DeleteRepository(ctx context.Context, repositoryId *string) (*bool, error)
- func (a *V1ApiService) GetRepositories(ctx context.Context) (*GetRepositoryListResponse, error)
- func (a *V1ApiService) GetRepository(ctx context.Context, repositoryName *string) (*GetRepositoryDetailResponse, error)
- func (a *V1ApiService) GetRepositoryById(ctx context.Context, repositoryId *string) (*GetRepositoryDetailResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CacheExpires ¶
CacheExpires helper function to determine remaining time before repeating a request.
func NewConfiguration ¶
func NewConfiguration(region string, apiKeys ...*ncloud.APIKey) *ncloud.Configuration
Types ¶
type APIClient ¶
type APIClient struct {
// API Services
V1Api *V1ApiService
// contains filtered or unexported fields
}
APIClient manages communication with the api API v2022-04-11T03:12:54Z In most cases there should be only one, shared, APIClient.
func NewAPIClient ¶
func NewAPIClient(cfg *ncloud.Configuration) *APIClient
NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.
func (*APIClient) ChangeBasePath ¶
Change base path to allow switching to mocks
type APIResponse ¶
type APIResponse struct {
*http.Response `json:"-"`
Message string `json:"message,omitempty"`
// Operation is the name of the swagger operation.
Operation string `json:"operation,omitempty"`
// RequestURL is the request URL. This value is always available, even if the
// embedded *http.Response is nil.
RequestURL string `json:"url,omitempty"`
// Method is the HTTP method used for the request. This value is always
// available, even if the embedded *http.Response is nil.
Method string `json:"method,omitempty"`
// Payload holds the contents of the response body (which may be nil or empty).
// This is provided here as the raw response.Body() reader will have already
// been drained.
Payload []byte `json:"-"`
}
func NewAPIResponse ¶
func NewAPIResponse(r *http.Response) *APIResponse
func NewAPIResponseWithError ¶
func NewAPIResponseWithError(errorMessage string) *APIResponse
type ChangeRepository ¶
type ChangeRepository struct {
Description *string `json:"description,omitempty"`
Linked *CreateRepositoryLinked `json:"linked,omitempty"`
}
type CreateRepository ¶
type CreateRepository struct {
Name *string `json:"name"`
Description *string `json:"description,omitempty"`
Linked *CreateRepositoryLinked `json:"linked,omitempty"`
}
type CreateRepositoryLinked ¶
type CreateRepositoryLinked struct {
FileSafer *bool `json:"FileSafer,omitempty"`
}
type DefaultBranch ¶
type DefaultBranch struct {
Default_ *string `json:"default"`
}
type GetRepositoryDetailResponse ¶
type GetRepositoryDetailResponse struct {
// repository id
Id *int `json:"id,omitempty"`
// repository name
Name *string `json:"name,omitempty"`
// repository description
Description *string `json:"description,omitempty"`
Created *GetRepositoryDetailResponseCreated `json:"created,omitempty"`
Git *GetRepositoryDetailResponseGit `json:"git,omitempty"`
Linked *GetRepositoryDetailResponseLinked `json:"linked,omitempty"`
}
type GetRepositoryDetailResponseLinked ¶
type GetRepositoryDetailResponseLinked struct {
// FileSafer use
FileSafer *bool `json:"FileSafer,omitempty"`
}
type GetRepositoryListResponse ¶
type GetRepositoryListResponse struct {
// total repository count
Total *int32 `json:"total,omitempty"`
Repository []*GetRepositoryListResponseRepository `json:"repository,omitempty"`
}
type GetRepositoryListResponseRepository ¶
type GetRepositoryListResponseRepository struct {
// repository id
Id *int `json:"id,omitempty"`
// repository name
Name *string `json:"name"`
// repository permission
Permission *string `json:"permission,omitempty"`
// repository detail action name
ActionName *string `json:"actionName,omitempty"`
}
type GetRepositoryTagListResponse ¶
type GetRepositoryTagListResponse struct {
Tag []*string `json:"tag,omitempty"`
}
type OkResponse ¶
type OkResponse struct {
Result *bool `json:"result,omitempty"`
}
type V1ApiService ¶
type V1ApiService service
func (*V1ApiService) ChangeRepository ¶
func (a *V1ApiService) ChangeRepository(ctx context.Context, body *ChangeRepository, repositoryId *string) (*bool, error)
V1ApiService
@param repositoryId repositoryId @return *bool
func (*V1ApiService) CreateRepository ¶
func (a *V1ApiService) CreateRepository(ctx context.Context, body *CreateRepository) (*bool, error)
V1ApiService
@param body CreateRepository @return *bool
func (*V1ApiService) GetRepositories ¶
func (a *V1ApiService) GetRepositories(ctx context.Context) (*GetRepositoryListResponse, error)
V1ApiService
@param optional (nil or map[string]interface{}) with one or more of:
@param "pageNo" (int32) 페이지 넘버 @param "pageSize" (int32) 페이지 사이즈 @param "projectName" (string) 검색할 프로젝트 이름
@return *GetRepositoryListResponse
func (*V1ApiService) GetRepository ¶
func (a *V1ApiService) GetRepository(ctx context.Context, repositoryName *string) (*GetRepositoryDetailResponse, error)
V1ApiService
@param repositoryName repositoryName @return *GetRepositoryDetailResponse
func (*V1ApiService) GetRepositoryById ¶
func (a *V1ApiService) GetRepositoryById(ctx context.Context, repositoryId *string) (*GetRepositoryDetailResponse, error)
V1ApiService
@param repositoryId *string @return *bool
Source Files
¶
- api_client.go
- api_response.go
- change_repository.go
- configuration.go
- create_repository.go
- create_repository_linked.go
- default_branch.go
- get_repository_branch_list_response.go
- get_repository_detail_response.go
- get_repository_detail_response_created.go
- get_repository_detail_response_git.go
- get_repository_detail_response_linked.go
- get_repository_list_response.go
- get_repository_list_response_repository.go
- get_repository_tag_list_response.go
- ok_response.go
- v1_api.go