sourcecommit

package
v1.6.22 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: MIT, MIT Imports: 25 Imported by: 0

README

Go API client for sourcecommit

<br/>https://sourcecommit.apigw.ntruss.com/api/v1

Overview

This API client was generated by the swagger-codegen project. By using the swagger-spec from a remote server, you can easily generate an API client.

  • API version: 2022-04-22T08:24:55Z
  • Package version:
  • Build package: io.swagger.codegen.languages.NcpGoForVnksClientCodegen

Installation

Put the package under your project folder and add the following in import:

"./sourcecommit"

Documentation for API Endpoints

All URIs are relative to https://sourcecommit.apigw.ntruss.com/api/v1

Class Method HTTP request Description
V1Api GetRepositories Get /repository
V1Api GetRepository Get /repository/{repositoryName}
V1Api GetRepositoryById Get /repository/{repositoryId}
V1Api CreateRepository Post /repository
V1Api DeleteRepository Delete /repository/id/{repositoryId}
V1Api ChangeRepository Patch /repository/id/{repositoryId}

Documentation For Models

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

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

func (c *APIClient) ChangeBasePath(path string)

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 GetRepositoryBranchListResponse

type GetRepositoryBranchListResponse struct {
	Default_ *string `json:"default,omitempty"`

	Branch []*string `json:"branch,omitempty"`
}

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 GetRepositoryDetailResponseCreated

type GetRepositoryDetailResponseCreated struct {

	// repository created timestamp
	Timestamp *float32 `json:"timestamp,omitempty"`

	// repository created user
	User *string `json:"user,omitempty"`
}

type GetRepositoryDetailResponseGit

type GetRepositoryDetailResponseGit struct {

	// git repository https url
	Https *string `json:"https,omitempty"`

	// git repository ssh url
	Ssh *string `json:"ssh,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) DeleteRepository

func (a *V1ApiService) DeleteRepository(ctx context.Context, repositoryId *string) (*bool, error)
V1ApiService

@param repositoryId repositoryId @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

Jump to

Keyboard shortcuts

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