Documentation
¶
Overview ¶
Package source_commit provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.6.0 DO NOT EDIT.
Index ¶
- Constants
- Variables
- func NewChangeRepositoryRequest(server string, repositoryId string, body ChangeRepositoryJSONRequestBody) (*http.Request, error)
- func NewChangeRepositoryRequestWithBody(server string, repositoryId string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateRepositoryRequest(server string, body CreateRepositoryJSONRequestBody) (*http.Request, error)
- func NewCreateRepositoryRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteRepositoryRequest(server string, repositoryId string) (*http.Request, error)
- func NewGetRepositoriesRequest(server string) (*http.Request, error)
- func NewGetRepositoryByIdRequest(server string, repositoryId string) (*http.Request, error)
- func NewGetRepositoryRequest(server string, repositoryName string) (*http.Request, error)
- type ChangeRepository
- type ChangeRepositoryHTTPResp
- type ChangeRepositoryJSONRequestBody
- type Client
- func (c *Client) ChangeRepository(ctx context.Context, repositoryId string, body ChangeRepositoryJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ChangeRepositoryWithBody(ctx context.Context, repositoryId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateRepository(ctx context.Context, body CreateRepositoryJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateRepositoryWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteRepository(ctx context.Context, repositoryId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetRepositories(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetRepository(ctx context.Context, repositoryName string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetRepositoryById(ctx context.Context, repositoryId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) ChangeRepositoryWithBodyWithResponse(ctx context.Context, repositoryId string, contentType string, body io.Reader, ...) (*ChangeRepositoryHTTPResp, error)
- func (c *ClientWithResponses) ChangeRepositoryWithResponse(ctx context.Context, repositoryId string, body ChangeRepositoryJSONRequestBody, ...) (*ChangeRepositoryHTTPResp, error)
- func (c *ClientWithResponses) CreateRepositoryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateRepositoryHTTPResp, error)
- func (c *ClientWithResponses) CreateRepositoryWithResponse(ctx context.Context, body CreateRepositoryJSONRequestBody, ...) (*CreateRepositoryHTTPResp, error)
- func (c *ClientWithResponses) DeleteRepositoryWithResponse(ctx context.Context, repositoryId string, reqEditors ...RequestEditorFn) (*DeleteRepositoryHTTPResp, error)
- func (c *ClientWithResponses) GetRepositoriesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetRepositoriesHTTPResp, error)
- func (c *ClientWithResponses) GetRepositoryByIdWithResponse(ctx context.Context, repositoryId string, reqEditors ...RequestEditorFn) (*GetRepositoryByIdHTTPResp, error)
- func (c *ClientWithResponses) GetRepositoryWithResponse(ctx context.Context, repositoryName string, reqEditors ...RequestEditorFn) (*GetRepositoryHTTPResp, error)
- type ClientWithResponsesInterface
- type CreateRepository
- type CreateRepositoryHTTPResp
- type CreateRepositoryJSONRequestBody
- type CreateRepositoryLinked
- type DeleteRepositoryHTTPResp
- type GetRepositoriesHTTPResp
- type GetRepositoryByIdHTTPResp
- type GetRepositoryDetailResponse
- type GetRepositoryDetailResponseCreated
- type GetRepositoryDetailResponseGit
- type GetRepositoryDetailResponseLinked
- type GetRepositoryHTTPResp
- type GetRepositoryListResponse
- type GetRepositoryListResponseRepository
- type HttpRequestDoer
- type NcloudClientError
- type NcloudErrorEnvelope
- type NcloudErrorEnvelope_ResponseError
- func (a NcloudErrorEnvelope_ResponseError) Get(fieldName string) (value interface{}, found bool)
- func (a NcloudErrorEnvelope_ResponseError) MarshalJSON() ([]byte, error)
- func (a *NcloudErrorEnvelope_ResponseError) Set(fieldName string, value interface{})
- func (a *NcloudErrorEnvelope_ResponseError) UnmarshalJSON(b []byte) error
- type NcloudServerError
- type RequestEditorFn
Constants ¶
const ( NcpAccessKeyScopes = "ncpAccessKey.Scopes" NcpHmacV2Scopes = "ncpHmacV2.Scopes" NcpTimestampScopes = "ncpTimestamp.Scopes" )
Variables ¶
var ServerEndpoints = map[ncloudgo.Environment]string{
ncloudgo.EnvPublic: "https://sourcecommit.apigw.ntruss.com/api/v1",
ncloudgo.EnvFinancial: "https://sourcecommit.apigw.fin-ntruss.com/api/v1",
ncloudgo.EnvGov: "https://sourcecommit.apigw.gov-ntruss.com/api/v1",
}
ServerEndpoints maps each NCP environment supported by the source-commit service to its base URL template. Templates may contain {regionCode} (substituted from cfg.Region at NewFromConfig time) and {basePath} (resolved by resolveBasePath when present).
Functions ¶
func NewChangeRepositoryRequest ¶
func NewChangeRepositoryRequest(server string, repositoryId string, body ChangeRepositoryJSONRequestBody) (*http.Request, error)
NewChangeRepositoryRequest calls the generic ChangeRepository builder with application/json body
func NewChangeRepositoryRequestWithBody ¶
func NewChangeRepositoryRequestWithBody(server string, repositoryId string, contentType string, body io.Reader) (*http.Request, error)
NewChangeRepositoryRequestWithBody generates requests for ChangeRepository 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 NewDeleteRepositoryRequest ¶
NewDeleteRepositoryRequest generates requests for DeleteRepository
func NewGetRepositoriesRequest ¶
NewGetRepositoriesRequest generates requests for GetRepositories
func NewGetRepositoryByIdRequest ¶
NewGetRepositoryByIdRequest generates requests for GetRepositoryById
Types ¶
type ChangeRepository ¶
type ChangeRepository struct {
Description *string `json:"description,omitempty"`
Linked *CreateRepositoryLinked `json:"linked,omitempty"`
}
ChangeRepository defines model for ChangeRepository.
type ChangeRepositoryHTTPResp ¶
type ChangeRepositoryHTTPResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *bool
JSON4XX *NcloudClientError
JSON5XX *NcloudServerError
}
func ParseChangeRepositoryHTTPResp ¶
func ParseChangeRepositoryHTTPResp(rsp *http.Response) (*ChangeRepositoryHTTPResp, error)
ParseChangeRepositoryHTTPResp parses an HTTP response from a ChangeRepositoryWithResponse call
func (ChangeRepositoryHTTPResp) Status ¶
func (r ChangeRepositoryHTTPResp) Status() string
Status returns HTTPResponse.Status
func (ChangeRepositoryHTTPResp) StatusCode ¶
func (r ChangeRepositoryHTTPResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ChangeRepositoryJSONRequestBody ¶
type ChangeRepositoryJSONRequestBody = ChangeRepository
ChangeRepositoryJSONRequestBody defines body for ChangeRepository for application/json ContentType.
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) ChangeRepository ¶
func (c *Client) ChangeRepository(ctx context.Context, repositoryId string, body ChangeRepositoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ChangeRepositoryWithBody ¶
func (*Client) CreateRepository ¶
func (c *Client) CreateRepository(ctx context.Context, body CreateRepositoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateRepositoryWithBody ¶
func (*Client) DeleteRepository ¶
func (*Client) GetRepositories ¶
func (*Client) GetRepository ¶
func (*Client) GetRepositoryById ¶
type ClientInterface ¶
type ClientInterface interface {
// GetRepositories request
GetRepositories(ctx context.Context, 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)
// DeleteRepository request
DeleteRepository(ctx context.Context, repositoryId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetRepositoryById request
GetRepositoryById(ctx context.Context, repositoryId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ChangeRepositoryWithBody request with any body
ChangeRepositoryWithBody(ctx context.Context, repositoryId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ChangeRepository(ctx context.Context, repositoryId string, body ChangeRepositoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetRepository request
GetRepository(ctx context.Context, repositoryName string, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
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 NewFromConfig ¶
func NewFromConfig(cfg ncloudgo.Config, opts ...ClientOption) (*ClientWithResponses, error)
NewFromConfig builds a ClientWithResponses for the environment and credentials carried by cfg. The HTTP client is the signed transport from the root ncloudgo package — HMAC v2 for the general API surface, AWS SigV4 for Object Storage.
cfg, _ := ncloudgo.LoadDefaultConfig(ctx) c, _ := source_commit.NewFromConfig(cfg)
func (*ClientWithResponses) ChangeRepositoryWithBodyWithResponse ¶
func (c *ClientWithResponses) ChangeRepositoryWithBodyWithResponse(ctx context.Context, repositoryId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangeRepositoryHTTPResp, error)
ChangeRepositoryWithBodyWithResponse request with arbitrary body returning *ChangeRepositoryHTTPResp
func (*ClientWithResponses) ChangeRepositoryWithResponse ¶
func (c *ClientWithResponses) ChangeRepositoryWithResponse(ctx context.Context, repositoryId string, body ChangeRepositoryJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangeRepositoryHTTPResp, error)
func (*ClientWithResponses) CreateRepositoryWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateRepositoryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateRepositoryHTTPResp, error)
CreateRepositoryWithBodyWithResponse request with arbitrary body returning *CreateRepositoryHTTPResp
func (*ClientWithResponses) CreateRepositoryWithResponse ¶
func (c *ClientWithResponses) CreateRepositoryWithResponse(ctx context.Context, body CreateRepositoryJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateRepositoryHTTPResp, error)
func (*ClientWithResponses) DeleteRepositoryWithResponse ¶
func (c *ClientWithResponses) DeleteRepositoryWithResponse(ctx context.Context, repositoryId string, reqEditors ...RequestEditorFn) (*DeleteRepositoryHTTPResp, error)
DeleteRepositoryWithResponse request returning *DeleteRepositoryHTTPResp
func (*ClientWithResponses) GetRepositoriesWithResponse ¶
func (c *ClientWithResponses) GetRepositoriesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetRepositoriesHTTPResp, error)
GetRepositoriesWithResponse request returning *GetRepositoriesHTTPResp
func (*ClientWithResponses) GetRepositoryByIdWithResponse ¶
func (c *ClientWithResponses) GetRepositoryByIdWithResponse(ctx context.Context, repositoryId string, reqEditors ...RequestEditorFn) (*GetRepositoryByIdHTTPResp, error)
GetRepositoryByIdWithResponse request returning *GetRepositoryByIdHTTPResp
func (*ClientWithResponses) GetRepositoryWithResponse ¶
func (c *ClientWithResponses) GetRepositoryWithResponse(ctx context.Context, repositoryName string, reqEditors ...RequestEditorFn) (*GetRepositoryHTTPResp, error)
GetRepositoryWithResponse request returning *GetRepositoryHTTPResp
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// GetRepositoriesWithResponse request
GetRepositoriesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetRepositoriesHTTPResp, error)
// CreateRepositoryWithBodyWithResponse request with any body
CreateRepositoryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateRepositoryHTTPResp, error)
CreateRepositoryWithResponse(ctx context.Context, body CreateRepositoryJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateRepositoryHTTPResp, error)
// DeleteRepositoryWithResponse request
DeleteRepositoryWithResponse(ctx context.Context, repositoryId string, reqEditors ...RequestEditorFn) (*DeleteRepositoryHTTPResp, error)
// GetRepositoryByIdWithResponse request
GetRepositoryByIdWithResponse(ctx context.Context, repositoryId string, reqEditors ...RequestEditorFn) (*GetRepositoryByIdHTTPResp, error)
// ChangeRepositoryWithBodyWithResponse request with any body
ChangeRepositoryWithBodyWithResponse(ctx context.Context, repositoryId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangeRepositoryHTTPResp, error)
ChangeRepositoryWithResponse(ctx context.Context, repositoryId string, body ChangeRepositoryJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangeRepositoryHTTPResp, error)
// GetRepositoryWithResponse request
GetRepositoryWithResponse(ctx context.Context, repositoryName string, reqEditors ...RequestEditorFn) (*GetRepositoryHTTPResp, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CreateRepository ¶
type CreateRepository struct {
Description *string `json:"description,omitempty"`
Linked *CreateRepositoryLinked `json:"linked,omitempty"`
Name *string `json:"name,omitempty"`
}
CreateRepository defines model for CreateRepository.
type CreateRepositoryHTTPResp ¶
type CreateRepositoryHTTPResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *bool
JSON4XX *NcloudClientError
JSON5XX *NcloudServerError
}
func ParseCreateRepositoryHTTPResp ¶
func ParseCreateRepositoryHTTPResp(rsp *http.Response) (*CreateRepositoryHTTPResp, error)
ParseCreateRepositoryHTTPResp parses an HTTP response from a CreateRepositoryWithResponse call
func (CreateRepositoryHTTPResp) Status ¶
func (r CreateRepositoryHTTPResp) Status() string
Status returns HTTPResponse.Status
func (CreateRepositoryHTTPResp) StatusCode ¶
func (r CreateRepositoryHTTPResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateRepositoryJSONRequestBody ¶
type CreateRepositoryJSONRequestBody = CreateRepository
CreateRepositoryJSONRequestBody defines body for CreateRepository for application/json ContentType.
type CreateRepositoryLinked ¶
type CreateRepositoryLinked struct {
FileSafer *bool `json:"FileSafer,omitempty"`
}
CreateRepositoryLinked defines model for CreateRepositoryLinked.
type DeleteRepositoryHTTPResp ¶
type DeleteRepositoryHTTPResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *bool
JSON4XX *NcloudClientError
JSON5XX *NcloudServerError
}
func ParseDeleteRepositoryHTTPResp ¶
func ParseDeleteRepositoryHTTPResp(rsp *http.Response) (*DeleteRepositoryHTTPResp, error)
ParseDeleteRepositoryHTTPResp parses an HTTP response from a DeleteRepositoryWithResponse call
func (DeleteRepositoryHTTPResp) Status ¶
func (r DeleteRepositoryHTTPResp) Status() string
Status returns HTTPResponse.Status
func (DeleteRepositoryHTTPResp) StatusCode ¶
func (r DeleteRepositoryHTTPResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetRepositoriesHTTPResp ¶
type GetRepositoriesHTTPResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *GetRepositoryListResponse
JSON4XX *NcloudClientError
JSON5XX *NcloudServerError
}
func ParseGetRepositoriesHTTPResp ¶
func ParseGetRepositoriesHTTPResp(rsp *http.Response) (*GetRepositoriesHTTPResp, error)
ParseGetRepositoriesHTTPResp parses an HTTP response from a GetRepositoriesWithResponse call
func (GetRepositoriesHTTPResp) Status ¶
func (r GetRepositoriesHTTPResp) Status() string
Status returns HTTPResponse.Status
func (GetRepositoriesHTTPResp) StatusCode ¶
func (r GetRepositoriesHTTPResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetRepositoryByIdHTTPResp ¶
type GetRepositoryByIdHTTPResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *GetRepositoryDetailResponse
JSON4XX *NcloudClientError
JSON5XX *NcloudServerError
}
func ParseGetRepositoryByIdHTTPResp ¶
func ParseGetRepositoryByIdHTTPResp(rsp *http.Response) (*GetRepositoryByIdHTTPResp, error)
ParseGetRepositoryByIdHTTPResp parses an HTTP response from a GetRepositoryByIdWithResponse call
func (GetRepositoryByIdHTTPResp) Status ¶
func (r GetRepositoryByIdHTTPResp) Status() string
Status returns HTTPResponse.Status
func (GetRepositoryByIdHTTPResp) StatusCode ¶
func (r GetRepositoryByIdHTTPResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetRepositoryDetailResponse ¶
type GetRepositoryDetailResponse struct {
Created *GetRepositoryDetailResponseCreated `json:"created,omitempty"`
// Description repository description
Description *string `json:"description,omitempty"`
Git *GetRepositoryDetailResponseGit `json:"git,omitempty"`
// Id repository id
Id *int32 `json:"id,omitempty"`
Linked *GetRepositoryDetailResponseLinked `json:"linked,omitempty"`
// Name repository name
Name *string `json:"name,omitempty"`
}
GetRepositoryDetailResponse defines model for GetRepositoryDetailResponse.
type GetRepositoryDetailResponseCreated ¶
type GetRepositoryDetailResponseCreated struct {
// Timestamp repository created timestamp
Timestamp *float32 `json:"timestamp,omitempty"`
// User repository created user
User *string `json:"user,omitempty"`
}
GetRepositoryDetailResponseCreated defines model for GetRepositoryDetailResponseCreated.
type GetRepositoryDetailResponseGit ¶
type GetRepositoryDetailResponseGit struct {
// Https git repository https url
Https *string `json:"https,omitempty"`
// Ssh git repository ssh url
Ssh *string `json:"ssh,omitempty"`
}
GetRepositoryDetailResponseGit defines model for GetRepositoryDetailResponseGit.
type GetRepositoryDetailResponseLinked ¶
type GetRepositoryDetailResponseLinked struct {
// FileSafer FileSafer use
FileSafer *bool `json:"FileSafer,omitempty"`
}
GetRepositoryDetailResponseLinked defines model for GetRepositoryDetailResponseLinked.
type GetRepositoryHTTPResp ¶
type GetRepositoryHTTPResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *GetRepositoryDetailResponse
JSON4XX *NcloudClientError
JSON5XX *NcloudServerError
}
func ParseGetRepositoryHTTPResp ¶
func ParseGetRepositoryHTTPResp(rsp *http.Response) (*GetRepositoryHTTPResp, error)
ParseGetRepositoryHTTPResp parses an HTTP response from a GetRepositoryWithResponse call
func (GetRepositoryHTTPResp) Status ¶
func (r GetRepositoryHTTPResp) Status() string
Status returns HTTPResponse.Status
func (GetRepositoryHTTPResp) StatusCode ¶
func (r GetRepositoryHTTPResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetRepositoryListResponse ¶
type GetRepositoryListResponse struct {
Repository *[]GetRepositoryListResponseRepository `json:"repository,omitempty"`
// Total total repository count
Total *int32 `json:"total,omitempty"`
}
GetRepositoryListResponse defines model for GetRepositoryListResponse.
type GetRepositoryListResponseRepository ¶
type GetRepositoryListResponseRepository struct {
// ActionName repository detail action name
ActionName *string `json:"actionName,omitempty"`
// Id repository id
Id *int32 `json:"id,omitempty"`
// Name repository name
Name *string `json:"name,omitempty"`
// Permission repository permission
Permission *string `json:"permission,omitempty"`
}
GetRepositoryListResponseRepository defines model for GetRepositoryListResponseRepository.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type NcloudClientError ¶
type NcloudClientError = NcloudErrorEnvelope
NcloudClientError Naver Cloud Platform standard error envelope. Most products return this shape; some (Object Storage, CLOVA) wrap differently — `additionalProperties: true` keeps clients tolerant.
type NcloudErrorEnvelope ¶
type NcloudErrorEnvelope struct {
// Error Alternative error field. Type varies: object (CLOVA, NCP standard), string (cert-manager Spring Boot 404), or null.
Error interface{} `json:"error,omitempty"`
// ResponseError Error detail (present on most NCP product errors). Field shape varies; `additionalProperties: true` keeps clients tolerant.
ResponseError *NcloudErrorEnvelope_ResponseError `json:"responseError,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
NcloudErrorEnvelope Naver Cloud Platform standard error envelope. Most products return this shape; some (Object Storage, CLOVA) wrap differently — `additionalProperties: true` keeps clients tolerant.
func (NcloudErrorEnvelope) Get ¶
func (a NcloudErrorEnvelope) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for NcloudErrorEnvelope. Returns the specified element and whether it was found
func (NcloudErrorEnvelope) MarshalJSON ¶
func (a NcloudErrorEnvelope) MarshalJSON() ([]byte, error)
Override default JSON handling for NcloudErrorEnvelope to handle AdditionalProperties
func (*NcloudErrorEnvelope) Set ¶
func (a *NcloudErrorEnvelope) Set(fieldName string, value interface{})
Setter for additional properties for NcloudErrorEnvelope
func (*NcloudErrorEnvelope) UnmarshalJSON ¶
func (a *NcloudErrorEnvelope) UnmarshalJSON(b []byte) error
Override default JSON handling for NcloudErrorEnvelope to handle AdditionalProperties
type NcloudErrorEnvelope_ResponseError ¶
type NcloudErrorEnvelope_ResponseError struct {
// ReturnCode NCP error code.
ReturnCode *string `json:"returnCode,omitempty"`
// ReturnMessage Human-readable error message.
ReturnMessage *string `json:"returnMessage,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
NcloudErrorEnvelope_ResponseError Error detail (present on most NCP product errors). Field shape varies; `additionalProperties: true` keeps clients tolerant.
func (NcloudErrorEnvelope_ResponseError) Get ¶
func (a NcloudErrorEnvelope_ResponseError) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for NcloudErrorEnvelope_ResponseError. Returns the specified element and whether it was found
func (NcloudErrorEnvelope_ResponseError) MarshalJSON ¶
func (a NcloudErrorEnvelope_ResponseError) MarshalJSON() ([]byte, error)
Override default JSON handling for NcloudErrorEnvelope_ResponseError to handle AdditionalProperties
func (*NcloudErrorEnvelope_ResponseError) Set ¶
func (a *NcloudErrorEnvelope_ResponseError) Set(fieldName string, value interface{})
Setter for additional properties for NcloudErrorEnvelope_ResponseError
func (*NcloudErrorEnvelope_ResponseError) UnmarshalJSON ¶
func (a *NcloudErrorEnvelope_ResponseError) UnmarshalJSON(b []byte) error
Override default JSON handling for NcloudErrorEnvelope_ResponseError to handle AdditionalProperties
type NcloudServerError ¶
type NcloudServerError = NcloudErrorEnvelope
NcloudServerError Naver Cloud Platform standard error envelope. Most products return this shape; some (Object Storage, CLOVA) wrap differently — `additionalProperties: true` keeps clients tolerant.