Documentation
¶
Overview ¶
Package client provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.1 DO NOT EDIT.
Package client contains generated client code for openapi contract
Index ¶
- Constants
- func NewDeleteConfigTransactionItemRequest(server string, params *DeleteConfigTransactionItemParams) (*http.Request, error)
- func NewDeleteZoneRecordRequest(server string, zone Zone, owner RecordOwner, pType RecordType, ...) (*http.Request, error)
- func NewDeleteZoneTransactionRecordRequest(server string, zone Zone, owner RecordOwner, pType RecordType, ...) (*http.Request, error)
- func NewGetConfigExportRequest(server string, params *GetConfigExportParams) (*http.Request, error)
- func NewGetConfigRequest(server string, params *GetConfigParams) (*http.Request, error)
- func NewGetConfigTransactionDiffRequest(server string, params *GetConfigTransactionDiffParams) (*http.Request, error)
- func NewGetConfigTransactionItemRequest(server string, params *GetConfigTransactionItemParams) (*http.Request, error)
- func NewGetStatsRequest(server string, params *GetStatsParams) (*http.Request, error)
- func NewGetStatusRequest(server string, params *GetStatusParams) (*http.Request, error)
- func NewGetZoneRecordsRequest(server string, zone Zone, params *GetZoneRecordsParams) (*http.Request, error)
- func NewGetZoneSerialRequest(server string, zone Zone) (*http.Request, error)
- func NewGetZoneStatsRequest(server string, zone Zone, params *GetZoneStatsParams) (*http.Request, error)
- func NewGetZoneStatusRequest(server string, zone Zone, params *GetZoneStatusParams) (*http.Request, error)
- func NewGetZoneTransactionDiffRequest(server string, zone Zone) (*http.Request, error)
- func NewGetZoneTransactionRecordsRequest(server string, zone Zone, params *GetZoneTransactionRecordsParams) (*http.Request, error)
- func NewGetZonesRequest(server string, params *GetZonesParams) (*http.Request, error)
- func NewPostConfigCheckRequest(server string) (*http.Request, error)
- func NewPostConfigImportRequest(server string, body PostConfigImportJSONRequestBody) (*http.Request, error)
- func NewPostConfigImportRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostConfigInitRequest(server string) (*http.Request, error)
- func NewPostConfigTransactionAbortRequest(server string) (*http.Request, error)
- func NewPostConfigTransactionCommitRequest(server string) (*http.Request, error)
- func NewPostConfigTransactionRequest(server string) (*http.Request, error)
- func NewPostReloadRequest(server string) (*http.Request, error)
- func NewPostStopRequest(server string) (*http.Request, error)
- func NewPostZoneBackupRequest(server string, zone Zone, body PostZoneBackupJSONRequestBody) (*http.Request, error)
- func NewPostZoneBackupRequestWithBody(server string, zone Zone, contentType string, body io.Reader) (*http.Request, error)
- func NewPostZoneCheckRequest(server string, zone Zone) (*http.Request, error)
- func NewPostZoneFlushRequest(server string, zone Zone, params *PostZoneFlushParams) (*http.Request, error)
- func NewPostZoneFreezeRequest(server string, zone Zone) (*http.Request, error)
- func NewPostZoneKSKSubmittedRequest(server string, zone Zone) (*http.Request, error)
- func NewPostZoneKeyRolloverRequest(server string, zone Zone, keyType PostZoneKeyRolloverParamsKeyType) (*http.Request, error)
- func NewPostZoneKeysLoadRequest(server string, zone Zone) (*http.Request, error)
- func NewPostZoneNotifyRequest(server string, zone Zone) (*http.Request, error)
- func NewPostZonePurgeRequest(server string, zone Zone, params *PostZonePurgeParams) (*http.Request, error)
- func NewPostZoneRecordRequest(server string, zone Zone, owner RecordOwner, pType RecordType, ...) (*http.Request, error)
- func NewPostZoneRecordRequestWithBody(server string, zone Zone, owner RecordOwner, pType RecordType, ...) (*http.Request, error)
- func NewPostZoneRecordsBatchRequest(server string, zone Zone, body PostZoneRecordsBatchJSONRequestBody) (*http.Request, error)
- func NewPostZoneRecordsBatchRequestWithBody(server string, zone Zone, contentType string, body io.Reader) (*http.Request, error)
- func NewPostZoneRefreshRequest(server string, zone Zone) (*http.Request, error)
- func NewPostZoneReloadRequest(server string, zone Zone) (*http.Request, error)
- func NewPostZoneRestoreRequest(server string, zone Zone, body PostZoneRestoreJSONRequestBody) (*http.Request, error)
- func NewPostZoneRestoreRequestWithBody(server string, zone Zone, contentType string, body io.Reader) (*http.Request, error)
- func NewPostZoneRetransferRequest(server string, zone Zone) (*http.Request, error)
- func NewPostZoneSignRequest(server string, zone Zone) (*http.Request, error)
- func NewPostZoneThawRequest(server string, zone Zone) (*http.Request, error)
- func NewPostZoneTransactionAbortRequest(server string, zone Zone) (*http.Request, error)
- func NewPostZoneTransactionCommitRequest(server string, zone Zone) (*http.Request, error)
- func NewPostZoneTransactionRequest(server string, zone Zone, body PostZoneTransactionJSONRequestBody) (*http.Request, error)
- func NewPostZoneTransactionRequestWithBody(server string, zone Zone, contentType string, body io.Reader) (*http.Request, error)
- func NewPostZoneValidateRequest(server string, zone Zone) (*http.Request, error)
- func NewPostZoneXFRFreezeRequest(server string, zone Zone) (*http.Request, error)
- func NewPostZoneXFRThawRequest(server string, zone Zone) (*http.Request, error)
- func NewPutConfigTransactionItemRequest(server string, body PutConfigTransactionItemJSONRequestBody) (*http.Request, error)
- func NewPutConfigTransactionItemRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPutZoneSerialRequest(server string, zone Zone, body PutZoneSerialJSONRequestBody) (*http.Request, error)
- func NewPutZoneSerialRequestWithBody(server string, zone Zone, contentType string, body io.Reader) (*http.Request, error)
- func NewPutZoneTransactionRecordRequest(server string, zone Zone, owner RecordOwner, pType RecordType, ...) (*http.Request, error)
- func NewPutZoneTransactionRecordRequestWithBody(server string, zone Zone, owner RecordOwner, pType RecordType, ...) (*http.Request, error)
- type BackupRequest
- type BadRequest
- type Client
- func (c *Client) DeleteConfigTransactionItem(ctx context.Context, params *DeleteConfigTransactionItemParams, ...) (*http.Response, error)
- func (c *Client) DeleteZoneRecord(ctx context.Context, zone Zone, owner RecordOwner, pType RecordType, ...) (*http.Response, error)
- func (c *Client) DeleteZoneTransactionRecord(ctx context.Context, zone Zone, owner RecordOwner, pType RecordType, ...) (*http.Response, error)
- func (c *Client) GetConfig(ctx context.Context, params *GetConfigParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetConfigExport(ctx context.Context, params *GetConfigExportParams, ...) (*http.Response, error)
- func (c *Client) GetConfigTransactionDiff(ctx context.Context, params *GetConfigTransactionDiffParams, ...) (*http.Response, error)
- func (c *Client) GetConfigTransactionItem(ctx context.Context, params *GetConfigTransactionItemParams, ...) (*http.Response, error)
- func (c *Client) GetStats(ctx context.Context, params *GetStatsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetStatus(ctx context.Context, params *GetStatusParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetZoneRecords(ctx context.Context, zone Zone, params *GetZoneRecordsParams, ...) (*http.Response, error)
- func (c *Client) GetZoneSerial(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetZoneStats(ctx context.Context, zone Zone, params *GetZoneStatsParams, ...) (*http.Response, error)
- func (c *Client) GetZoneStatus(ctx context.Context, zone Zone, params *GetZoneStatusParams, ...) (*http.Response, error)
- func (c *Client) GetZoneTransactionDiff(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetZoneTransactionRecords(ctx context.Context, zone Zone, params *GetZoneTransactionRecordsParams, ...) (*http.Response, error)
- func (c *Client) GetZones(ctx context.Context, params *GetZonesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PostConfigCheck(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PostConfigImport(ctx context.Context, body PostConfigImportJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostConfigImportWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostConfigInit(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PostConfigTransaction(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PostConfigTransactionAbort(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PostConfigTransactionCommit(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PostReload(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PostStop(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PostZoneBackup(ctx context.Context, zone Zone, body PostZoneBackupJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostZoneBackupWithBody(ctx context.Context, zone Zone, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostZoneCheck(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PostZoneFlush(ctx context.Context, zone Zone, params *PostZoneFlushParams, ...) (*http.Response, error)
- func (c *Client) PostZoneFreeze(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PostZoneKSKSubmitted(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PostZoneKeyRollover(ctx context.Context, zone Zone, keyType PostZoneKeyRolloverParamsKeyType, ...) (*http.Response, error)
- func (c *Client) PostZoneKeysLoad(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PostZoneNotify(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PostZonePurge(ctx context.Context, zone Zone, params *PostZonePurgeParams, ...) (*http.Response, error)
- func (c *Client) PostZoneRecord(ctx context.Context, zone Zone, owner RecordOwner, pType RecordType, ...) (*http.Response, error)
- func (c *Client) PostZoneRecordWithBody(ctx context.Context, zone Zone, owner RecordOwner, pType RecordType, ...) (*http.Response, error)
- func (c *Client) PostZoneRecordsBatch(ctx context.Context, zone Zone, body PostZoneRecordsBatchJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostZoneRecordsBatchWithBody(ctx context.Context, zone Zone, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostZoneRefresh(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PostZoneReload(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PostZoneRestore(ctx context.Context, zone Zone, body PostZoneRestoreJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostZoneRestoreWithBody(ctx context.Context, zone Zone, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostZoneRetransfer(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PostZoneSign(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PostZoneThaw(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PostZoneTransaction(ctx context.Context, zone Zone, body PostZoneTransactionJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostZoneTransactionAbort(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PostZoneTransactionCommit(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PostZoneTransactionWithBody(ctx context.Context, zone Zone, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostZoneValidate(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PostZoneXFRFreeze(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PostZoneXFRThaw(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PutConfigTransactionItem(ctx context.Context, body PutConfigTransactionItemJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PutConfigTransactionItemWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PutZoneSerial(ctx context.Context, zone Zone, body PutZoneSerialJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PutZoneSerialWithBody(ctx context.Context, zone Zone, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PutZoneTransactionRecord(ctx context.Context, zone Zone, owner RecordOwner, pType RecordType, ...) (*http.Response, error)
- func (c *Client) PutZoneTransactionRecordWithBody(ctx context.Context, zone Zone, owner RecordOwner, pType RecordType, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) DeleteConfigTransactionItemWithResponse(ctx context.Context, params *DeleteConfigTransactionItemParams, ...) (*DeleteConfigTransactionItemResponse, error)
- func (c *ClientWithResponses) DeleteZoneRecordWithResponse(ctx context.Context, zone Zone, owner RecordOwner, pType RecordType, ...) (*DeleteZoneRecordResponse, error)
- func (c *ClientWithResponses) DeleteZoneTransactionRecordWithResponse(ctx context.Context, zone Zone, owner RecordOwner, pType RecordType, ...) (*DeleteZoneTransactionRecordResponse, error)
- func (c *ClientWithResponses) GetConfigExportWithResponse(ctx context.Context, params *GetConfigExportParams, ...) (*GetConfigExportResponse, error)
- func (c *ClientWithResponses) GetConfigTransactionDiffWithResponse(ctx context.Context, params *GetConfigTransactionDiffParams, ...) (*GetConfigTransactionDiffResponse, error)
- func (c *ClientWithResponses) GetConfigTransactionItemWithResponse(ctx context.Context, params *GetConfigTransactionItemParams, ...) (*GetConfigTransactionItemResponse, error)
- func (c *ClientWithResponses) GetConfigWithResponse(ctx context.Context, params *GetConfigParams, reqEditors ...RequestEditorFn) (*GetConfigResponse, error)
- func (c *ClientWithResponses) GetStatsWithResponse(ctx context.Context, params *GetStatsParams, reqEditors ...RequestEditorFn) (*GetStatsResponse, error)
- func (c *ClientWithResponses) GetStatusWithResponse(ctx context.Context, params *GetStatusParams, reqEditors ...RequestEditorFn) (*GetStatusResponse, error)
- func (c *ClientWithResponses) GetZoneRecordsWithResponse(ctx context.Context, zone Zone, params *GetZoneRecordsParams, ...) (*GetZoneRecordsResponse, error)
- func (c *ClientWithResponses) GetZoneSerialWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*GetZoneSerialResponse, error)
- func (c *ClientWithResponses) GetZoneStatsWithResponse(ctx context.Context, zone Zone, params *GetZoneStatsParams, ...) (*GetZoneStatsResponse, error)
- func (c *ClientWithResponses) GetZoneStatusWithResponse(ctx context.Context, zone Zone, params *GetZoneStatusParams, ...) (*GetZoneStatusResponse, error)
- func (c *ClientWithResponses) GetZoneTransactionDiffWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*GetZoneTransactionDiffResponse, error)
- func (c *ClientWithResponses) GetZoneTransactionRecordsWithResponse(ctx context.Context, zone Zone, params *GetZoneTransactionRecordsParams, ...) (*GetZoneTransactionRecordsResponse, error)
- func (c *ClientWithResponses) GetZonesWithResponse(ctx context.Context, params *GetZonesParams, reqEditors ...RequestEditorFn) (*GetZonesResponse, error)
- func (c *ClientWithResponses) PostConfigCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostConfigCheckResponse, error)
- func (c *ClientWithResponses) PostConfigImportWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostConfigImportResponse, error)
- func (c *ClientWithResponses) PostConfigImportWithResponse(ctx context.Context, body PostConfigImportJSONRequestBody, ...) (*PostConfigImportResponse, error)
- func (c *ClientWithResponses) PostConfigInitWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostConfigInitResponse, error)
- func (c *ClientWithResponses) PostConfigTransactionAbortWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostConfigTransactionAbortResponse, error)
- func (c *ClientWithResponses) PostConfigTransactionCommitWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostConfigTransactionCommitResponse, error)
- func (c *ClientWithResponses) PostConfigTransactionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostConfigTransactionResponse, error)
- func (c *ClientWithResponses) PostReloadWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostReloadResponse, error)
- func (c *ClientWithResponses) PostStopWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostStopResponse, error)
- func (c *ClientWithResponses) PostZoneBackupWithBodyWithResponse(ctx context.Context, zone Zone, contentType string, body io.Reader, ...) (*PostZoneBackupResponse, error)
- func (c *ClientWithResponses) PostZoneBackupWithResponse(ctx context.Context, zone Zone, body PostZoneBackupJSONRequestBody, ...) (*PostZoneBackupResponse, error)
- func (c *ClientWithResponses) PostZoneCheckWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*PostZoneCheckResponse, error)
- func (c *ClientWithResponses) PostZoneFlushWithResponse(ctx context.Context, zone Zone, params *PostZoneFlushParams, ...) (*PostZoneFlushResponse, error)
- func (c *ClientWithResponses) PostZoneFreezeWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*PostZoneFreezeResponse, error)
- func (c *ClientWithResponses) PostZoneKSKSubmittedWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*PostZoneKSKSubmittedResponse, error)
- func (c *ClientWithResponses) PostZoneKeyRolloverWithResponse(ctx context.Context, zone Zone, keyType PostZoneKeyRolloverParamsKeyType, ...) (*PostZoneKeyRolloverResponse, error)
- func (c *ClientWithResponses) PostZoneKeysLoadWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*PostZoneKeysLoadResponse, error)
- func (c *ClientWithResponses) PostZoneNotifyWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*PostZoneNotifyResponse, error)
- func (c *ClientWithResponses) PostZonePurgeWithResponse(ctx context.Context, zone Zone, params *PostZonePurgeParams, ...) (*PostZonePurgeResponse, error)
- func (c *ClientWithResponses) PostZoneRecordWithBodyWithResponse(ctx context.Context, zone Zone, owner RecordOwner, pType RecordType, ...) (*PostZoneRecordResponse, error)
- func (c *ClientWithResponses) PostZoneRecordWithResponse(ctx context.Context, zone Zone, owner RecordOwner, pType RecordType, ...) (*PostZoneRecordResponse, error)
- func (c *ClientWithResponses) PostZoneRecordsBatchWithBodyWithResponse(ctx context.Context, zone Zone, contentType string, body io.Reader, ...) (*PostZoneRecordsBatchResponse, error)
- func (c *ClientWithResponses) PostZoneRecordsBatchWithResponse(ctx context.Context, zone Zone, body PostZoneRecordsBatchJSONRequestBody, ...) (*PostZoneRecordsBatchResponse, error)
- func (c *ClientWithResponses) PostZoneRefreshWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*PostZoneRefreshResponse, error)
- func (c *ClientWithResponses) PostZoneReloadWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*PostZoneReloadResponse, error)
- func (c *ClientWithResponses) PostZoneRestoreWithBodyWithResponse(ctx context.Context, zone Zone, contentType string, body io.Reader, ...) (*PostZoneRestoreResponse, error)
- func (c *ClientWithResponses) PostZoneRestoreWithResponse(ctx context.Context, zone Zone, body PostZoneRestoreJSONRequestBody, ...) (*PostZoneRestoreResponse, error)
- func (c *ClientWithResponses) PostZoneRetransferWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*PostZoneRetransferResponse, error)
- func (c *ClientWithResponses) PostZoneSignWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*PostZoneSignResponse, error)
- func (c *ClientWithResponses) PostZoneThawWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*PostZoneThawResponse, error)
- func (c *ClientWithResponses) PostZoneTransactionAbortWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*PostZoneTransactionAbortResponse, error)
- func (c *ClientWithResponses) PostZoneTransactionCommitWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*PostZoneTransactionCommitResponse, error)
- func (c *ClientWithResponses) PostZoneTransactionWithBodyWithResponse(ctx context.Context, zone Zone, contentType string, body io.Reader, ...) (*PostZoneTransactionResponse, error)
- func (c *ClientWithResponses) PostZoneTransactionWithResponse(ctx context.Context, zone Zone, body PostZoneTransactionJSONRequestBody, ...) (*PostZoneTransactionResponse, error)
- func (c *ClientWithResponses) PostZoneValidateWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*PostZoneValidateResponse, error)
- func (c *ClientWithResponses) PostZoneXFRFreezeWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*PostZoneXFRFreezeResponse, error)
- func (c *ClientWithResponses) PostZoneXFRThawWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*PostZoneXFRThawResponse, error)
- func (c *ClientWithResponses) PutConfigTransactionItemWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PutConfigTransactionItemResponse, error)
- func (c *ClientWithResponses) PutConfigTransactionItemWithResponse(ctx context.Context, body PutConfigTransactionItemJSONRequestBody, ...) (*PutConfigTransactionItemResponse, error)
- func (c *ClientWithResponses) PutZoneSerialWithBodyWithResponse(ctx context.Context, zone Zone, contentType string, body io.Reader, ...) (*PutZoneSerialResponse, error)
- func (c *ClientWithResponses) PutZoneSerialWithResponse(ctx context.Context, zone Zone, body PutZoneSerialJSONRequestBody, ...) (*PutZoneSerialResponse, error)
- func (c *ClientWithResponses) PutZoneTransactionRecordWithBodyWithResponse(ctx context.Context, zone Zone, owner RecordOwner, pType RecordType, ...) (*PutZoneTransactionRecordResponse, error)
- func (c *ClientWithResponses) PutZoneTransactionRecordWithResponse(ctx context.Context, zone Zone, owner RecordOwner, pType RecordType, ...) (*PutZoneTransactionRecordResponse, error)
- type ClientWithResponsesInterface
- type Config
- type ConfigID
- type ConfigImportRequest
- type ConfigItem
- type ConfigItemData0
- type ConfigItemData1
- type ConfigItem_Data
- func (t ConfigItem_Data) AsConfigItemData0() (ConfigItemData0, error)
- func (t ConfigItem_Data) AsConfigItemData1() (ConfigItemData1, error)
- func (t *ConfigItem_Data) FromConfigItemData0(v ConfigItemData0) error
- func (t *ConfigItem_Data) FromConfigItemData1(v ConfigItemData1) error
- func (t ConfigItem_Data) MarshalJSON() ([]byte, error)
- func (t *ConfigItem_Data) MergeConfigItemData0(v ConfigItemData0) error
- func (t *ConfigItem_Data) MergeConfigItemData1(v ConfigItemData1) error
- func (t *ConfigItem_Data) UnmarshalJSON(b []byte) error
- type ConfigSection
- type ConfigSetRequest
- type ConfigSetRequestData0
- type ConfigSetRequestData1
- type ConfigSetRequest_Data
- func (t ConfigSetRequest_Data) AsConfigSetRequestData0() (ConfigSetRequestData0, error)
- func (t ConfigSetRequest_Data) AsConfigSetRequestData1() (ConfigSetRequestData1, error)
- func (t *ConfigSetRequest_Data) FromConfigSetRequestData0(v ConfigSetRequestData0) error
- func (t *ConfigSetRequest_Data) FromConfigSetRequestData1(v ConfigSetRequestData1) error
- func (t ConfigSetRequest_Data) MarshalJSON() ([]byte, error)
- func (t *ConfigSetRequest_Data) MergeConfigSetRequestData0(v ConfigSetRequestData0) error
- func (t *ConfigSetRequest_Data) MergeConfigSetRequestData1(v ConfigSetRequestData1) error
- func (t *ConfigSetRequest_Data) UnmarshalJSON(b []byte) error
- type Created
- type DeleteConfigTransactionItemParams
- type DeleteConfigTransactionItemResponse
- type DeleteZoneRecordParams
- type DeleteZoneRecordResponse
- type DeleteZoneTransactionRecordParams
- type DeleteZoneTransactionRecordResponse
- type Error
- type GetConfigExportParams
- type GetConfigExportResponse
- type GetConfigParams
- type GetConfigResponse
- type GetConfigTransactionDiffParams
- type GetConfigTransactionDiffResponse
- type GetConfigTransactionItemParams
- type GetConfigTransactionItemResponse
- type GetStatsParams
- type GetStatsResponse
- type GetStatusParams
- type GetStatusResponse
- type GetZoneRecordsParams
- type GetZoneRecordsResponse
- type GetZoneSerialResponse
- type GetZoneStatsParams
- type GetZoneStatsResponse
- type GetZoneStatusParams
- type GetZoneStatusParamsFilter
- type GetZoneStatusResponse
- type GetZoneTransactionDiffResponse
- type GetZoneTransactionRecordsParams
- type GetZoneTransactionRecordsResponse
- type GetZonesParams
- type GetZonesResponse
- type HttpRequestDoer
- type InternalError
- type NotFound
- type OK
- type PostConfigCheckResponse
- type PostConfigImportJSONRequestBody
- type PostConfigImportResponse
- type PostConfigInitResponse
- type PostConfigTransactionAbortResponse
- type PostConfigTransactionCommitResponse
- type PostConfigTransactionResponse
- type PostReloadResponse
- type PostStopResponse
- type PostZoneBackupJSONRequestBody
- type PostZoneBackupResponse
- type PostZoneCheckResponse
- type PostZoneFlushParams
- type PostZoneFlushResponse
- type PostZoneFreezeResponse
- type PostZoneKSKSubmittedResponse
- type PostZoneKeyRolloverParamsKeyType
- type PostZoneKeyRolloverResponse
- type PostZoneKeysLoadResponse
- type PostZoneNotifyResponse
- type PostZonePurgeParams
- type PostZonePurgeResponse
- type PostZoneRecordJSONRequestBody
- type PostZoneRecordResponse
- type PostZoneRecordsBatchJSONRequestBody
- type PostZoneRecordsBatchResponse
- type PostZoneRefreshResponse
- type PostZoneReloadResponse
- type PostZoneRestoreJSONRequestBody
- type PostZoneRestoreResponse
- type PostZoneRetransferResponse
- type PostZoneSignResponse
- type PostZoneThawResponse
- type PostZoneTransactionAbortResponse
- type PostZoneTransactionCommitResponse
- type PostZoneTransactionJSONRequestBody
- type PostZoneTransactionResponse
- type PostZoneValidateResponse
- type PostZoneXFRFreezeResponse
- type PostZoneXFRThawResponse
- type PutConfigTransactionItemJSONRequestBody
- type PutConfigTransactionItemResponse
- type PutZoneSerialJSONRequestBody
- type PutZoneSerialResponse
- type PutZoneTransactionRecordJSONRequestBody
- type PutZoneTransactionRecordResponse
- type Record
- type RecordBatchRequest
- type RecordBatchResponse
- type RecordOwner
- type RecordResponse
- type RecordType
- type RecordWrite
- type RequestEditorFn
- type SerialRequest
- type SerialResponse
- type ServerStatus
- type ServerStatusStatus
- type Stats
- type Unauthorized
- type Zone
- type ZoneDiff
- type ZoneFilter
- type ZoneList
- type ZoneStatus
- type ZoneStatusRole
- type ZoneTransactionBeginRequest
Constants ¶
const (
BearerAuthScopes = "BearerAuth.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func NewDeleteConfigTransactionItemRequest ¶
func NewDeleteConfigTransactionItemRequest(server string, params *DeleteConfigTransactionItemParams) (*http.Request, error)
NewDeleteConfigTransactionItemRequest generates requests for DeleteConfigTransactionItem
func NewDeleteZoneRecordRequest ¶
func NewDeleteZoneRecordRequest(server string, zone Zone, owner RecordOwner, pType RecordType, params *DeleteZoneRecordParams) (*http.Request, error)
NewDeleteZoneRecordRequest generates requests for DeleteZoneRecord
func NewDeleteZoneTransactionRecordRequest ¶
func NewDeleteZoneTransactionRecordRequest(server string, zone Zone, owner RecordOwner, pType RecordType, params *DeleteZoneTransactionRecordParams) (*http.Request, error)
NewDeleteZoneTransactionRecordRequest generates requests for DeleteZoneTransactionRecord
func NewGetConfigExportRequest ¶
func NewGetConfigExportRequest(server string, params *GetConfigExportParams) (*http.Request, error)
NewGetConfigExportRequest generates requests for GetConfigExport
func NewGetConfigRequest ¶
func NewGetConfigRequest(server string, params *GetConfigParams) (*http.Request, error)
NewGetConfigRequest generates requests for GetConfig
func NewGetConfigTransactionDiffRequest ¶
func NewGetConfigTransactionDiffRequest(server string, params *GetConfigTransactionDiffParams) (*http.Request, error)
NewGetConfigTransactionDiffRequest generates requests for GetConfigTransactionDiff
func NewGetConfigTransactionItemRequest ¶
func NewGetConfigTransactionItemRequest(server string, params *GetConfigTransactionItemParams) (*http.Request, error)
NewGetConfigTransactionItemRequest generates requests for GetConfigTransactionItem
func NewGetStatsRequest ¶
func NewGetStatsRequest(server string, params *GetStatsParams) (*http.Request, error)
NewGetStatsRequest generates requests for GetStats
func NewGetStatusRequest ¶
func NewGetStatusRequest(server string, params *GetStatusParams) (*http.Request, error)
NewGetStatusRequest generates requests for GetStatus
func NewGetZoneRecordsRequest ¶
func NewGetZoneRecordsRequest(server string, zone Zone, params *GetZoneRecordsParams) (*http.Request, error)
NewGetZoneRecordsRequest generates requests for GetZoneRecords
func NewGetZoneSerialRequest ¶
NewGetZoneSerialRequest generates requests for GetZoneSerial
func NewGetZoneStatsRequest ¶
func NewGetZoneStatsRequest(server string, zone Zone, params *GetZoneStatsParams) (*http.Request, error)
NewGetZoneStatsRequest generates requests for GetZoneStats
func NewGetZoneStatusRequest ¶
func NewGetZoneStatusRequest(server string, zone Zone, params *GetZoneStatusParams) (*http.Request, error)
NewGetZoneStatusRequest generates requests for GetZoneStatus
func NewGetZoneTransactionDiffRequest ¶
NewGetZoneTransactionDiffRequest generates requests for GetZoneTransactionDiff
func NewGetZoneTransactionRecordsRequest ¶
func NewGetZoneTransactionRecordsRequest(server string, zone Zone, params *GetZoneTransactionRecordsParams) (*http.Request, error)
NewGetZoneTransactionRecordsRequest generates requests for GetZoneTransactionRecords
func NewGetZonesRequest ¶ added in v0.1.1
func NewGetZonesRequest(server string, params *GetZonesParams) (*http.Request, error)
NewGetZonesRequest generates requests for GetZones
func NewPostConfigCheckRequest ¶
NewPostConfigCheckRequest generates requests for PostConfigCheck
func NewPostConfigImportRequest ¶
func NewPostConfigImportRequest(server string, body PostConfigImportJSONRequestBody) (*http.Request, error)
NewPostConfigImportRequest calls the generic PostConfigImport builder with application/json body
func NewPostConfigImportRequestWithBody ¶
func NewPostConfigImportRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostConfigImportRequestWithBody generates requests for PostConfigImport with any type of body
func NewPostConfigInitRequest ¶
NewPostConfigInitRequest generates requests for PostConfigInit
func NewPostConfigTransactionAbortRequest ¶
NewPostConfigTransactionAbortRequest generates requests for PostConfigTransactionAbort
func NewPostConfigTransactionCommitRequest ¶
NewPostConfigTransactionCommitRequest generates requests for PostConfigTransactionCommit
func NewPostConfigTransactionRequest ¶
NewPostConfigTransactionRequest generates requests for PostConfigTransaction
func NewPostReloadRequest ¶
NewPostReloadRequest generates requests for PostReload
func NewPostStopRequest ¶
NewPostStopRequest generates requests for PostStop
func NewPostZoneBackupRequest ¶
func NewPostZoneBackupRequest(server string, zone Zone, body PostZoneBackupJSONRequestBody) (*http.Request, error)
NewPostZoneBackupRequest calls the generic PostZoneBackup builder with application/json body
func NewPostZoneBackupRequestWithBody ¶
func NewPostZoneBackupRequestWithBody(server string, zone Zone, contentType string, body io.Reader) (*http.Request, error)
NewPostZoneBackupRequestWithBody generates requests for PostZoneBackup with any type of body
func NewPostZoneCheckRequest ¶
NewPostZoneCheckRequest generates requests for PostZoneCheck
func NewPostZoneFlushRequest ¶
func NewPostZoneFlushRequest(server string, zone Zone, params *PostZoneFlushParams) (*http.Request, error)
NewPostZoneFlushRequest generates requests for PostZoneFlush
func NewPostZoneFreezeRequest ¶
NewPostZoneFreezeRequest generates requests for PostZoneFreeze
func NewPostZoneKSKSubmittedRequest ¶
NewPostZoneKSKSubmittedRequest generates requests for PostZoneKSKSubmitted
func NewPostZoneKeyRolloverRequest ¶
func NewPostZoneKeyRolloverRequest(server string, zone Zone, keyType PostZoneKeyRolloverParamsKeyType) (*http.Request, error)
NewPostZoneKeyRolloverRequest generates requests for PostZoneKeyRollover
func NewPostZoneKeysLoadRequest ¶
NewPostZoneKeysLoadRequest generates requests for PostZoneKeysLoad
func NewPostZoneNotifyRequest ¶
NewPostZoneNotifyRequest generates requests for PostZoneNotify
func NewPostZonePurgeRequest ¶
func NewPostZonePurgeRequest(server string, zone Zone, params *PostZonePurgeParams) (*http.Request, error)
NewPostZonePurgeRequest generates requests for PostZonePurge
func NewPostZoneRecordRequest ¶
func NewPostZoneRecordRequest(server string, zone Zone, owner RecordOwner, pType RecordType, body PostZoneRecordJSONRequestBody) (*http.Request, error)
NewPostZoneRecordRequest calls the generic PostZoneRecord builder with application/json body
func NewPostZoneRecordRequestWithBody ¶
func NewPostZoneRecordRequestWithBody(server string, zone Zone, owner RecordOwner, pType RecordType, contentType string, body io.Reader) (*http.Request, error)
NewPostZoneRecordRequestWithBody generates requests for PostZoneRecord with any type of body
func NewPostZoneRecordsBatchRequest ¶
func NewPostZoneRecordsBatchRequest(server string, zone Zone, body PostZoneRecordsBatchJSONRequestBody) (*http.Request, error)
NewPostZoneRecordsBatchRequest calls the generic PostZoneRecordsBatch builder with application/json body
func NewPostZoneRecordsBatchRequestWithBody ¶
func NewPostZoneRecordsBatchRequestWithBody(server string, zone Zone, contentType string, body io.Reader) (*http.Request, error)
NewPostZoneRecordsBatchRequestWithBody generates requests for PostZoneRecordsBatch with any type of body
func NewPostZoneRefreshRequest ¶
NewPostZoneRefreshRequest generates requests for PostZoneRefresh
func NewPostZoneReloadRequest ¶
NewPostZoneReloadRequest generates requests for PostZoneReload
func NewPostZoneRestoreRequest ¶
func NewPostZoneRestoreRequest(server string, zone Zone, body PostZoneRestoreJSONRequestBody) (*http.Request, error)
NewPostZoneRestoreRequest calls the generic PostZoneRestore builder with application/json body
func NewPostZoneRestoreRequestWithBody ¶
func NewPostZoneRestoreRequestWithBody(server string, zone Zone, contentType string, body io.Reader) (*http.Request, error)
NewPostZoneRestoreRequestWithBody generates requests for PostZoneRestore with any type of body
func NewPostZoneRetransferRequest ¶
NewPostZoneRetransferRequest generates requests for PostZoneRetransfer
func NewPostZoneSignRequest ¶
NewPostZoneSignRequest generates requests for PostZoneSign
func NewPostZoneThawRequest ¶
NewPostZoneThawRequest generates requests for PostZoneThaw
func NewPostZoneTransactionAbortRequest ¶
NewPostZoneTransactionAbortRequest generates requests for PostZoneTransactionAbort
func NewPostZoneTransactionCommitRequest ¶
NewPostZoneTransactionCommitRequest generates requests for PostZoneTransactionCommit
func NewPostZoneTransactionRequest ¶
func NewPostZoneTransactionRequest(server string, zone Zone, body PostZoneTransactionJSONRequestBody) (*http.Request, error)
NewPostZoneTransactionRequest calls the generic PostZoneTransaction builder with application/json body
func NewPostZoneTransactionRequestWithBody ¶
func NewPostZoneTransactionRequestWithBody(server string, zone Zone, contentType string, body io.Reader) (*http.Request, error)
NewPostZoneTransactionRequestWithBody generates requests for PostZoneTransaction with any type of body
func NewPostZoneValidateRequest ¶
NewPostZoneValidateRequest generates requests for PostZoneValidate
func NewPostZoneXFRFreezeRequest ¶
NewPostZoneXFRFreezeRequest generates requests for PostZoneXFRFreeze
func NewPostZoneXFRThawRequest ¶
NewPostZoneXFRThawRequest generates requests for PostZoneXFRThaw
func NewPutConfigTransactionItemRequest ¶
func NewPutConfigTransactionItemRequest(server string, body PutConfigTransactionItemJSONRequestBody) (*http.Request, error)
NewPutConfigTransactionItemRequest calls the generic PutConfigTransactionItem builder with application/json body
func NewPutConfigTransactionItemRequestWithBody ¶
func NewPutConfigTransactionItemRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPutConfigTransactionItemRequestWithBody generates requests for PutConfigTransactionItem with any type of body
func NewPutZoneSerialRequest ¶
func NewPutZoneSerialRequest(server string, zone Zone, body PutZoneSerialJSONRequestBody) (*http.Request, error)
NewPutZoneSerialRequest calls the generic PutZoneSerial builder with application/json body
func NewPutZoneSerialRequestWithBody ¶
func NewPutZoneSerialRequestWithBody(server string, zone Zone, contentType string, body io.Reader) (*http.Request, error)
NewPutZoneSerialRequestWithBody generates requests for PutZoneSerial with any type of body
func NewPutZoneTransactionRecordRequest ¶
func NewPutZoneTransactionRecordRequest(server string, zone Zone, owner RecordOwner, pType RecordType, body PutZoneTransactionRecordJSONRequestBody) (*http.Request, error)
NewPutZoneTransactionRecordRequest calls the generic PutZoneTransactionRecord builder with application/json body
func NewPutZoneTransactionRecordRequestWithBody ¶
func NewPutZoneTransactionRecordRequestWithBody(server string, zone Zone, owner RecordOwner, pType RecordType, contentType string, body io.Reader) (*http.Request, error)
NewPutZoneTransactionRecordRequestWithBody generates requests for PutZoneTransactionRecord with any type of body
Types ¶
type BackupRequest ¶
type BackupRequest struct {
// BackupDir Absolute server-side directory path for the backup.
BackupDir string `json:"backupDir"`
// Filter Space-separated list of knot filter names (without the leading `+`)
// to control what is included in the backup.
Filter *string `json:"filter,omitempty"`
}
BackupRequest defines model for BackupRequest.
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) DeleteConfigTransactionItem ¶
func (c *Client) DeleteConfigTransactionItem(ctx context.Context, params *DeleteConfigTransactionItemParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteZoneRecord ¶
func (c *Client) DeleteZoneRecord(ctx context.Context, zone Zone, owner RecordOwner, pType RecordType, params *DeleteZoneRecordParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteZoneTransactionRecord ¶
func (c *Client) DeleteZoneTransactionRecord(ctx context.Context, zone Zone, owner RecordOwner, pType RecordType, params *DeleteZoneTransactionRecordParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetConfig ¶
func (c *Client) GetConfig(ctx context.Context, params *GetConfigParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetConfigExport ¶
func (c *Client) GetConfigExport(ctx context.Context, params *GetConfigExportParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetConfigTransactionDiff ¶
func (c *Client) GetConfigTransactionDiff(ctx context.Context, params *GetConfigTransactionDiffParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetConfigTransactionItem ¶
func (c *Client) GetConfigTransactionItem(ctx context.Context, params *GetConfigTransactionItemParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetStats ¶
func (c *Client) GetStats(ctx context.Context, params *GetStatsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetStatus ¶
func (c *Client) GetStatus(ctx context.Context, params *GetStatusParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetZoneRecords ¶
func (c *Client) GetZoneRecords(ctx context.Context, zone Zone, params *GetZoneRecordsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetZoneSerial ¶
func (*Client) GetZoneStats ¶
func (c *Client) GetZoneStats(ctx context.Context, zone Zone, params *GetZoneStatsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetZoneStatus ¶
func (c *Client) GetZoneStatus(ctx context.Context, zone Zone, params *GetZoneStatusParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetZoneTransactionDiff ¶
func (*Client) GetZoneTransactionRecords ¶
func (c *Client) GetZoneTransactionRecords(ctx context.Context, zone Zone, params *GetZoneTransactionRecordsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetZones ¶ added in v0.1.1
func (c *Client) GetZones(ctx context.Context, params *GetZonesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostConfigCheck ¶
func (*Client) PostConfigImport ¶
func (c *Client) PostConfigImport(ctx context.Context, body PostConfigImportJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostConfigImportWithBody ¶
func (*Client) PostConfigInit ¶
func (*Client) PostConfigTransaction ¶
func (*Client) PostConfigTransactionAbort ¶
func (*Client) PostConfigTransactionCommit ¶
func (*Client) PostReload ¶
func (*Client) PostZoneBackup ¶
func (c *Client) PostZoneBackup(ctx context.Context, zone Zone, body PostZoneBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostZoneBackupWithBody ¶
func (*Client) PostZoneCheck ¶
func (*Client) PostZoneFlush ¶
func (c *Client) PostZoneFlush(ctx context.Context, zone Zone, params *PostZoneFlushParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostZoneFreeze ¶
func (*Client) PostZoneKSKSubmitted ¶
func (*Client) PostZoneKeyRollover ¶
func (c *Client) PostZoneKeyRollover(ctx context.Context, zone Zone, keyType PostZoneKeyRolloverParamsKeyType, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostZoneKeysLoad ¶
func (*Client) PostZoneNotify ¶
func (*Client) PostZonePurge ¶
func (c *Client) PostZonePurge(ctx context.Context, zone Zone, params *PostZonePurgeParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostZoneRecord ¶
func (c *Client) PostZoneRecord(ctx context.Context, zone Zone, owner RecordOwner, pType RecordType, body PostZoneRecordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostZoneRecordWithBody ¶
func (c *Client) PostZoneRecordWithBody(ctx context.Context, zone Zone, owner RecordOwner, pType RecordType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostZoneRecordsBatch ¶
func (c *Client) PostZoneRecordsBatch(ctx context.Context, zone Zone, body PostZoneRecordsBatchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostZoneRecordsBatchWithBody ¶
func (*Client) PostZoneRefresh ¶
func (*Client) PostZoneReload ¶
func (*Client) PostZoneRestore ¶
func (c *Client) PostZoneRestore(ctx context.Context, zone Zone, body PostZoneRestoreJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostZoneRestoreWithBody ¶
func (*Client) PostZoneRetransfer ¶
func (*Client) PostZoneSign ¶
func (*Client) PostZoneThaw ¶
func (*Client) PostZoneTransaction ¶
func (c *Client) PostZoneTransaction(ctx context.Context, zone Zone, body PostZoneTransactionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostZoneTransactionAbort ¶
func (*Client) PostZoneTransactionCommit ¶
func (*Client) PostZoneTransactionWithBody ¶
func (*Client) PostZoneValidate ¶
func (*Client) PostZoneXFRFreeze ¶
func (*Client) PostZoneXFRThaw ¶
func (*Client) PutConfigTransactionItem ¶
func (c *Client) PutConfigTransactionItem(ctx context.Context, body PutConfigTransactionItemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PutConfigTransactionItemWithBody ¶
func (*Client) PutZoneSerial ¶
func (c *Client) PutZoneSerial(ctx context.Context, zone Zone, body PutZoneSerialJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PutZoneSerialWithBody ¶
func (*Client) PutZoneTransactionRecord ¶
func (c *Client) PutZoneTransactionRecord(ctx context.Context, zone Zone, owner RecordOwner, pType RecordType, body PutZoneTransactionRecordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PutZoneTransactionRecordWithBody ¶
func (c *Client) PutZoneTransactionRecordWithBody(ctx context.Context, zone Zone, owner RecordOwner, pType RecordType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface {
// GetConfig request
GetConfig(ctx context.Context, params *GetConfigParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostConfigCheck request
PostConfigCheck(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetConfigExport request
GetConfigExport(ctx context.Context, params *GetConfigExportParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostConfigImportWithBody request with any body
PostConfigImportWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostConfigImport(ctx context.Context, body PostConfigImportJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostConfigInit request
PostConfigInit(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostConfigTransaction request
PostConfigTransaction(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostConfigTransactionAbort request
PostConfigTransactionAbort(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostConfigTransactionCommit request
PostConfigTransactionCommit(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetConfigTransactionDiff request
GetConfigTransactionDiff(ctx context.Context, params *GetConfigTransactionDiffParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteConfigTransactionItem request
DeleteConfigTransactionItem(ctx context.Context, params *DeleteConfigTransactionItemParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetConfigTransactionItem request
GetConfigTransactionItem(ctx context.Context, params *GetConfigTransactionItemParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutConfigTransactionItemWithBody request with any body
PutConfigTransactionItemWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PutConfigTransactionItem(ctx context.Context, body PutConfigTransactionItemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostReload request
PostReload(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetStats request
GetStats(ctx context.Context, params *GetStatsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetStatus request
GetStatus(ctx context.Context, params *GetStatusParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostStop request
PostStop(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetZones request
GetZones(ctx context.Context, params *GetZonesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostZoneBackupWithBody request with any body
PostZoneBackupWithBody(ctx context.Context, zone Zone, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostZoneBackup(ctx context.Context, zone Zone, body PostZoneBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostZoneCheck request
PostZoneCheck(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostZoneFlush request
PostZoneFlush(ctx context.Context, zone Zone, params *PostZoneFlushParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostZoneFreeze request
PostZoneFreeze(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostZoneKeysLoad request
PostZoneKeysLoad(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostZoneKeyRollover request
PostZoneKeyRollover(ctx context.Context, zone Zone, keyType PostZoneKeyRolloverParamsKeyType, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostZoneKSKSubmitted request
PostZoneKSKSubmitted(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostZoneNotify request
PostZoneNotify(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostZonePurge request
PostZonePurge(ctx context.Context, zone Zone, params *PostZonePurgeParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetZoneRecords request
GetZoneRecords(ctx context.Context, zone Zone, params *GetZoneRecordsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostZoneRecordsBatchWithBody request with any body
PostZoneRecordsBatchWithBody(ctx context.Context, zone Zone, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostZoneRecordsBatch(ctx context.Context, zone Zone, body PostZoneRecordsBatchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteZoneRecord request
DeleteZoneRecord(ctx context.Context, zone Zone, owner RecordOwner, pType RecordType, params *DeleteZoneRecordParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostZoneRecordWithBody request with any body
PostZoneRecordWithBody(ctx context.Context, zone Zone, owner RecordOwner, pType RecordType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostZoneRecord(ctx context.Context, zone Zone, owner RecordOwner, pType RecordType, body PostZoneRecordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostZoneRefresh request
PostZoneRefresh(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostZoneReload request
PostZoneReload(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostZoneRestoreWithBody request with any body
PostZoneRestoreWithBody(ctx context.Context, zone Zone, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostZoneRestore(ctx context.Context, zone Zone, body PostZoneRestoreJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostZoneRetransfer request
PostZoneRetransfer(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetZoneSerial request
GetZoneSerial(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutZoneSerialWithBody request with any body
PutZoneSerialWithBody(ctx context.Context, zone Zone, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PutZoneSerial(ctx context.Context, zone Zone, body PutZoneSerialJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostZoneSign request
PostZoneSign(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetZoneStats request
GetZoneStats(ctx context.Context, zone Zone, params *GetZoneStatsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetZoneStatus request
GetZoneStatus(ctx context.Context, zone Zone, params *GetZoneStatusParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostZoneThaw request
PostZoneThaw(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostZoneTransactionWithBody request with any body
PostZoneTransactionWithBody(ctx context.Context, zone Zone, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostZoneTransaction(ctx context.Context, zone Zone, body PostZoneTransactionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostZoneTransactionAbort request
PostZoneTransactionAbort(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostZoneTransactionCommit request
PostZoneTransactionCommit(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetZoneTransactionDiff request
GetZoneTransactionDiff(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetZoneTransactionRecords request
GetZoneTransactionRecords(ctx context.Context, zone Zone, params *GetZoneTransactionRecordsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteZoneTransactionRecord request
DeleteZoneTransactionRecord(ctx context.Context, zone Zone, owner RecordOwner, pType RecordType, params *DeleteZoneTransactionRecordParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutZoneTransactionRecordWithBody request with any body
PutZoneTransactionRecordWithBody(ctx context.Context, zone Zone, owner RecordOwner, pType RecordType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PutZoneTransactionRecord(ctx context.Context, zone Zone, owner RecordOwner, pType RecordType, body PutZoneTransactionRecordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostZoneValidate request
PostZoneValidate(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostZoneXFRFreeze request
PostZoneXFRFreeze(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostZoneXFRThaw request
PostZoneXFRThaw(ctx context.Context, zone Zone, 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 (*ClientWithResponses) DeleteConfigTransactionItemWithResponse ¶
func (c *ClientWithResponses) DeleteConfigTransactionItemWithResponse(ctx context.Context, params *DeleteConfigTransactionItemParams, reqEditors ...RequestEditorFn) (*DeleteConfigTransactionItemResponse, error)
DeleteConfigTransactionItemWithResponse request returning *DeleteConfigTransactionItemResponse
func (*ClientWithResponses) DeleteZoneRecordWithResponse ¶
func (c *ClientWithResponses) DeleteZoneRecordWithResponse(ctx context.Context, zone Zone, owner RecordOwner, pType RecordType, params *DeleteZoneRecordParams, reqEditors ...RequestEditorFn) (*DeleteZoneRecordResponse, error)
DeleteZoneRecordWithResponse request returning *DeleteZoneRecordResponse
func (*ClientWithResponses) DeleteZoneTransactionRecordWithResponse ¶
func (c *ClientWithResponses) DeleteZoneTransactionRecordWithResponse(ctx context.Context, zone Zone, owner RecordOwner, pType RecordType, params *DeleteZoneTransactionRecordParams, reqEditors ...RequestEditorFn) (*DeleteZoneTransactionRecordResponse, error)
DeleteZoneTransactionRecordWithResponse request returning *DeleteZoneTransactionRecordResponse
func (*ClientWithResponses) GetConfigExportWithResponse ¶
func (c *ClientWithResponses) GetConfigExportWithResponse(ctx context.Context, params *GetConfigExportParams, reqEditors ...RequestEditorFn) (*GetConfigExportResponse, error)
GetConfigExportWithResponse request returning *GetConfigExportResponse
func (*ClientWithResponses) GetConfigTransactionDiffWithResponse ¶
func (c *ClientWithResponses) GetConfigTransactionDiffWithResponse(ctx context.Context, params *GetConfigTransactionDiffParams, reqEditors ...RequestEditorFn) (*GetConfigTransactionDiffResponse, error)
GetConfigTransactionDiffWithResponse request returning *GetConfigTransactionDiffResponse
func (*ClientWithResponses) GetConfigTransactionItemWithResponse ¶
func (c *ClientWithResponses) GetConfigTransactionItemWithResponse(ctx context.Context, params *GetConfigTransactionItemParams, reqEditors ...RequestEditorFn) (*GetConfigTransactionItemResponse, error)
GetConfigTransactionItemWithResponse request returning *GetConfigTransactionItemResponse
func (*ClientWithResponses) GetConfigWithResponse ¶
func (c *ClientWithResponses) GetConfigWithResponse(ctx context.Context, params *GetConfigParams, reqEditors ...RequestEditorFn) (*GetConfigResponse, error)
GetConfigWithResponse request returning *GetConfigResponse
func (*ClientWithResponses) GetStatsWithResponse ¶
func (c *ClientWithResponses) GetStatsWithResponse(ctx context.Context, params *GetStatsParams, reqEditors ...RequestEditorFn) (*GetStatsResponse, error)
GetStatsWithResponse request returning *GetStatsResponse
func (*ClientWithResponses) GetStatusWithResponse ¶
func (c *ClientWithResponses) GetStatusWithResponse(ctx context.Context, params *GetStatusParams, reqEditors ...RequestEditorFn) (*GetStatusResponse, error)
GetStatusWithResponse request returning *GetStatusResponse
func (*ClientWithResponses) GetZoneRecordsWithResponse ¶
func (c *ClientWithResponses) GetZoneRecordsWithResponse(ctx context.Context, zone Zone, params *GetZoneRecordsParams, reqEditors ...RequestEditorFn) (*GetZoneRecordsResponse, error)
GetZoneRecordsWithResponse request returning *GetZoneRecordsResponse
func (*ClientWithResponses) GetZoneSerialWithResponse ¶
func (c *ClientWithResponses) GetZoneSerialWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*GetZoneSerialResponse, error)
GetZoneSerialWithResponse request returning *GetZoneSerialResponse
func (*ClientWithResponses) GetZoneStatsWithResponse ¶
func (c *ClientWithResponses) GetZoneStatsWithResponse(ctx context.Context, zone Zone, params *GetZoneStatsParams, reqEditors ...RequestEditorFn) (*GetZoneStatsResponse, error)
GetZoneStatsWithResponse request returning *GetZoneStatsResponse
func (*ClientWithResponses) GetZoneStatusWithResponse ¶
func (c *ClientWithResponses) GetZoneStatusWithResponse(ctx context.Context, zone Zone, params *GetZoneStatusParams, reqEditors ...RequestEditorFn) (*GetZoneStatusResponse, error)
GetZoneStatusWithResponse request returning *GetZoneStatusResponse
func (*ClientWithResponses) GetZoneTransactionDiffWithResponse ¶
func (c *ClientWithResponses) GetZoneTransactionDiffWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*GetZoneTransactionDiffResponse, error)
GetZoneTransactionDiffWithResponse request returning *GetZoneTransactionDiffResponse
func (*ClientWithResponses) GetZoneTransactionRecordsWithResponse ¶
func (c *ClientWithResponses) GetZoneTransactionRecordsWithResponse(ctx context.Context, zone Zone, params *GetZoneTransactionRecordsParams, reqEditors ...RequestEditorFn) (*GetZoneTransactionRecordsResponse, error)
GetZoneTransactionRecordsWithResponse request returning *GetZoneTransactionRecordsResponse
func (*ClientWithResponses) GetZonesWithResponse ¶ added in v0.1.1
func (c *ClientWithResponses) GetZonesWithResponse(ctx context.Context, params *GetZonesParams, reqEditors ...RequestEditorFn) (*GetZonesResponse, error)
GetZonesWithResponse request returning *GetZonesResponse
func (*ClientWithResponses) PostConfigCheckWithResponse ¶
func (c *ClientWithResponses) PostConfigCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostConfigCheckResponse, error)
PostConfigCheckWithResponse request returning *PostConfigCheckResponse
func (*ClientWithResponses) PostConfigImportWithBodyWithResponse ¶
func (c *ClientWithResponses) PostConfigImportWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostConfigImportResponse, error)
PostConfigImportWithBodyWithResponse request with arbitrary body returning *PostConfigImportResponse
func (*ClientWithResponses) PostConfigImportWithResponse ¶
func (c *ClientWithResponses) PostConfigImportWithResponse(ctx context.Context, body PostConfigImportJSONRequestBody, reqEditors ...RequestEditorFn) (*PostConfigImportResponse, error)
func (*ClientWithResponses) PostConfigInitWithResponse ¶
func (c *ClientWithResponses) PostConfigInitWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostConfigInitResponse, error)
PostConfigInitWithResponse request returning *PostConfigInitResponse
func (*ClientWithResponses) PostConfigTransactionAbortWithResponse ¶
func (c *ClientWithResponses) PostConfigTransactionAbortWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostConfigTransactionAbortResponse, error)
PostConfigTransactionAbortWithResponse request returning *PostConfigTransactionAbortResponse
func (*ClientWithResponses) PostConfigTransactionCommitWithResponse ¶
func (c *ClientWithResponses) PostConfigTransactionCommitWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostConfigTransactionCommitResponse, error)
PostConfigTransactionCommitWithResponse request returning *PostConfigTransactionCommitResponse
func (*ClientWithResponses) PostConfigTransactionWithResponse ¶
func (c *ClientWithResponses) PostConfigTransactionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostConfigTransactionResponse, error)
PostConfigTransactionWithResponse request returning *PostConfigTransactionResponse
func (*ClientWithResponses) PostReloadWithResponse ¶
func (c *ClientWithResponses) PostReloadWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostReloadResponse, error)
PostReloadWithResponse request returning *PostReloadResponse
func (*ClientWithResponses) PostStopWithResponse ¶
func (c *ClientWithResponses) PostStopWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostStopResponse, error)
PostStopWithResponse request returning *PostStopResponse
func (*ClientWithResponses) PostZoneBackupWithBodyWithResponse ¶
func (c *ClientWithResponses) PostZoneBackupWithBodyWithResponse(ctx context.Context, zone Zone, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostZoneBackupResponse, error)
PostZoneBackupWithBodyWithResponse request with arbitrary body returning *PostZoneBackupResponse
func (*ClientWithResponses) PostZoneBackupWithResponse ¶
func (c *ClientWithResponses) PostZoneBackupWithResponse(ctx context.Context, zone Zone, body PostZoneBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*PostZoneBackupResponse, error)
func (*ClientWithResponses) PostZoneCheckWithResponse ¶
func (c *ClientWithResponses) PostZoneCheckWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*PostZoneCheckResponse, error)
PostZoneCheckWithResponse request returning *PostZoneCheckResponse
func (*ClientWithResponses) PostZoneFlushWithResponse ¶
func (c *ClientWithResponses) PostZoneFlushWithResponse(ctx context.Context, zone Zone, params *PostZoneFlushParams, reqEditors ...RequestEditorFn) (*PostZoneFlushResponse, error)
PostZoneFlushWithResponse request returning *PostZoneFlushResponse
func (*ClientWithResponses) PostZoneFreezeWithResponse ¶
func (c *ClientWithResponses) PostZoneFreezeWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*PostZoneFreezeResponse, error)
PostZoneFreezeWithResponse request returning *PostZoneFreezeResponse
func (*ClientWithResponses) PostZoneKSKSubmittedWithResponse ¶
func (c *ClientWithResponses) PostZoneKSKSubmittedWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*PostZoneKSKSubmittedResponse, error)
PostZoneKSKSubmittedWithResponse request returning *PostZoneKSKSubmittedResponse
func (*ClientWithResponses) PostZoneKeyRolloverWithResponse ¶
func (c *ClientWithResponses) PostZoneKeyRolloverWithResponse(ctx context.Context, zone Zone, keyType PostZoneKeyRolloverParamsKeyType, reqEditors ...RequestEditorFn) (*PostZoneKeyRolloverResponse, error)
PostZoneKeyRolloverWithResponse request returning *PostZoneKeyRolloverResponse
func (*ClientWithResponses) PostZoneKeysLoadWithResponse ¶
func (c *ClientWithResponses) PostZoneKeysLoadWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*PostZoneKeysLoadResponse, error)
PostZoneKeysLoadWithResponse request returning *PostZoneKeysLoadResponse
func (*ClientWithResponses) PostZoneNotifyWithResponse ¶
func (c *ClientWithResponses) PostZoneNotifyWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*PostZoneNotifyResponse, error)
PostZoneNotifyWithResponse request returning *PostZoneNotifyResponse
func (*ClientWithResponses) PostZonePurgeWithResponse ¶
func (c *ClientWithResponses) PostZonePurgeWithResponse(ctx context.Context, zone Zone, params *PostZonePurgeParams, reqEditors ...RequestEditorFn) (*PostZonePurgeResponse, error)
PostZonePurgeWithResponse request returning *PostZonePurgeResponse
func (*ClientWithResponses) PostZoneRecordWithBodyWithResponse ¶
func (c *ClientWithResponses) PostZoneRecordWithBodyWithResponse(ctx context.Context, zone Zone, owner RecordOwner, pType RecordType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostZoneRecordResponse, error)
PostZoneRecordWithBodyWithResponse request with arbitrary body returning *PostZoneRecordResponse
func (*ClientWithResponses) PostZoneRecordWithResponse ¶
func (c *ClientWithResponses) PostZoneRecordWithResponse(ctx context.Context, zone Zone, owner RecordOwner, pType RecordType, body PostZoneRecordJSONRequestBody, reqEditors ...RequestEditorFn) (*PostZoneRecordResponse, error)
func (*ClientWithResponses) PostZoneRecordsBatchWithBodyWithResponse ¶
func (c *ClientWithResponses) PostZoneRecordsBatchWithBodyWithResponse(ctx context.Context, zone Zone, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostZoneRecordsBatchResponse, error)
PostZoneRecordsBatchWithBodyWithResponse request with arbitrary body returning *PostZoneRecordsBatchResponse
func (*ClientWithResponses) PostZoneRecordsBatchWithResponse ¶
func (c *ClientWithResponses) PostZoneRecordsBatchWithResponse(ctx context.Context, zone Zone, body PostZoneRecordsBatchJSONRequestBody, reqEditors ...RequestEditorFn) (*PostZoneRecordsBatchResponse, error)
func (*ClientWithResponses) PostZoneRefreshWithResponse ¶
func (c *ClientWithResponses) PostZoneRefreshWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*PostZoneRefreshResponse, error)
PostZoneRefreshWithResponse request returning *PostZoneRefreshResponse
func (*ClientWithResponses) PostZoneReloadWithResponse ¶
func (c *ClientWithResponses) PostZoneReloadWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*PostZoneReloadResponse, error)
PostZoneReloadWithResponse request returning *PostZoneReloadResponse
func (*ClientWithResponses) PostZoneRestoreWithBodyWithResponse ¶
func (c *ClientWithResponses) PostZoneRestoreWithBodyWithResponse(ctx context.Context, zone Zone, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostZoneRestoreResponse, error)
PostZoneRestoreWithBodyWithResponse request with arbitrary body returning *PostZoneRestoreResponse
func (*ClientWithResponses) PostZoneRestoreWithResponse ¶
func (c *ClientWithResponses) PostZoneRestoreWithResponse(ctx context.Context, zone Zone, body PostZoneRestoreJSONRequestBody, reqEditors ...RequestEditorFn) (*PostZoneRestoreResponse, error)
func (*ClientWithResponses) PostZoneRetransferWithResponse ¶
func (c *ClientWithResponses) PostZoneRetransferWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*PostZoneRetransferResponse, error)
PostZoneRetransferWithResponse request returning *PostZoneRetransferResponse
func (*ClientWithResponses) PostZoneSignWithResponse ¶
func (c *ClientWithResponses) PostZoneSignWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*PostZoneSignResponse, error)
PostZoneSignWithResponse request returning *PostZoneSignResponse
func (*ClientWithResponses) PostZoneThawWithResponse ¶
func (c *ClientWithResponses) PostZoneThawWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*PostZoneThawResponse, error)
PostZoneThawWithResponse request returning *PostZoneThawResponse
func (*ClientWithResponses) PostZoneTransactionAbortWithResponse ¶
func (c *ClientWithResponses) PostZoneTransactionAbortWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*PostZoneTransactionAbortResponse, error)
PostZoneTransactionAbortWithResponse request returning *PostZoneTransactionAbortResponse
func (*ClientWithResponses) PostZoneTransactionCommitWithResponse ¶
func (c *ClientWithResponses) PostZoneTransactionCommitWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*PostZoneTransactionCommitResponse, error)
PostZoneTransactionCommitWithResponse request returning *PostZoneTransactionCommitResponse
func (*ClientWithResponses) PostZoneTransactionWithBodyWithResponse ¶
func (c *ClientWithResponses) PostZoneTransactionWithBodyWithResponse(ctx context.Context, zone Zone, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostZoneTransactionResponse, error)
PostZoneTransactionWithBodyWithResponse request with arbitrary body returning *PostZoneTransactionResponse
func (*ClientWithResponses) PostZoneTransactionWithResponse ¶
func (c *ClientWithResponses) PostZoneTransactionWithResponse(ctx context.Context, zone Zone, body PostZoneTransactionJSONRequestBody, reqEditors ...RequestEditorFn) (*PostZoneTransactionResponse, error)
func (*ClientWithResponses) PostZoneValidateWithResponse ¶
func (c *ClientWithResponses) PostZoneValidateWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*PostZoneValidateResponse, error)
PostZoneValidateWithResponse request returning *PostZoneValidateResponse
func (*ClientWithResponses) PostZoneXFRFreezeWithResponse ¶
func (c *ClientWithResponses) PostZoneXFRFreezeWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*PostZoneXFRFreezeResponse, error)
PostZoneXFRFreezeWithResponse request returning *PostZoneXFRFreezeResponse
func (*ClientWithResponses) PostZoneXFRThawWithResponse ¶
func (c *ClientWithResponses) PostZoneXFRThawWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*PostZoneXFRThawResponse, error)
PostZoneXFRThawWithResponse request returning *PostZoneXFRThawResponse
func (*ClientWithResponses) PutConfigTransactionItemWithBodyWithResponse ¶
func (c *ClientWithResponses) PutConfigTransactionItemWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutConfigTransactionItemResponse, error)
PutConfigTransactionItemWithBodyWithResponse request with arbitrary body returning *PutConfigTransactionItemResponse
func (*ClientWithResponses) PutConfigTransactionItemWithResponse ¶
func (c *ClientWithResponses) PutConfigTransactionItemWithResponse(ctx context.Context, body PutConfigTransactionItemJSONRequestBody, reqEditors ...RequestEditorFn) (*PutConfigTransactionItemResponse, error)
func (*ClientWithResponses) PutZoneSerialWithBodyWithResponse ¶
func (c *ClientWithResponses) PutZoneSerialWithBodyWithResponse(ctx context.Context, zone Zone, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutZoneSerialResponse, error)
PutZoneSerialWithBodyWithResponse request with arbitrary body returning *PutZoneSerialResponse
func (*ClientWithResponses) PutZoneSerialWithResponse ¶
func (c *ClientWithResponses) PutZoneSerialWithResponse(ctx context.Context, zone Zone, body PutZoneSerialJSONRequestBody, reqEditors ...RequestEditorFn) (*PutZoneSerialResponse, error)
func (*ClientWithResponses) PutZoneTransactionRecordWithBodyWithResponse ¶
func (c *ClientWithResponses) PutZoneTransactionRecordWithBodyWithResponse(ctx context.Context, zone Zone, owner RecordOwner, pType RecordType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutZoneTransactionRecordResponse, error)
PutZoneTransactionRecordWithBodyWithResponse request with arbitrary body returning *PutZoneTransactionRecordResponse
func (*ClientWithResponses) PutZoneTransactionRecordWithResponse ¶
func (c *ClientWithResponses) PutZoneTransactionRecordWithResponse(ctx context.Context, zone Zone, owner RecordOwner, pType RecordType, body PutZoneTransactionRecordJSONRequestBody, reqEditors ...RequestEditorFn) (*PutZoneTransactionRecordResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// GetConfigWithResponse request
GetConfigWithResponse(ctx context.Context, params *GetConfigParams, reqEditors ...RequestEditorFn) (*GetConfigResponse, error)
// PostConfigCheckWithResponse request
PostConfigCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostConfigCheckResponse, error)
// GetConfigExportWithResponse request
GetConfigExportWithResponse(ctx context.Context, params *GetConfigExportParams, reqEditors ...RequestEditorFn) (*GetConfigExportResponse, error)
// PostConfigImportWithBodyWithResponse request with any body
PostConfigImportWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostConfigImportResponse, error)
PostConfigImportWithResponse(ctx context.Context, body PostConfigImportJSONRequestBody, reqEditors ...RequestEditorFn) (*PostConfigImportResponse, error)
// PostConfigInitWithResponse request
PostConfigInitWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostConfigInitResponse, error)
// PostConfigTransactionWithResponse request
PostConfigTransactionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostConfigTransactionResponse, error)
// PostConfigTransactionAbortWithResponse request
PostConfigTransactionAbortWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostConfigTransactionAbortResponse, error)
// PostConfigTransactionCommitWithResponse request
PostConfigTransactionCommitWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostConfigTransactionCommitResponse, error)
// GetConfigTransactionDiffWithResponse request
GetConfigTransactionDiffWithResponse(ctx context.Context, params *GetConfigTransactionDiffParams, reqEditors ...RequestEditorFn) (*GetConfigTransactionDiffResponse, error)
// DeleteConfigTransactionItemWithResponse request
DeleteConfigTransactionItemWithResponse(ctx context.Context, params *DeleteConfigTransactionItemParams, reqEditors ...RequestEditorFn) (*DeleteConfigTransactionItemResponse, error)
// GetConfigTransactionItemWithResponse request
GetConfigTransactionItemWithResponse(ctx context.Context, params *GetConfigTransactionItemParams, reqEditors ...RequestEditorFn) (*GetConfigTransactionItemResponse, error)
// PutConfigTransactionItemWithBodyWithResponse request with any body
PutConfigTransactionItemWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutConfigTransactionItemResponse, error)
PutConfigTransactionItemWithResponse(ctx context.Context, body PutConfigTransactionItemJSONRequestBody, reqEditors ...RequestEditorFn) (*PutConfigTransactionItemResponse, error)
// PostReloadWithResponse request
PostReloadWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostReloadResponse, error)
// GetStatsWithResponse request
GetStatsWithResponse(ctx context.Context, params *GetStatsParams, reqEditors ...RequestEditorFn) (*GetStatsResponse, error)
// GetStatusWithResponse request
GetStatusWithResponse(ctx context.Context, params *GetStatusParams, reqEditors ...RequestEditorFn) (*GetStatusResponse, error)
// PostStopWithResponse request
PostStopWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostStopResponse, error)
// GetZonesWithResponse request
GetZonesWithResponse(ctx context.Context, params *GetZonesParams, reqEditors ...RequestEditorFn) (*GetZonesResponse, error)
// PostZoneBackupWithBodyWithResponse request with any body
PostZoneBackupWithBodyWithResponse(ctx context.Context, zone Zone, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostZoneBackupResponse, error)
PostZoneBackupWithResponse(ctx context.Context, zone Zone, body PostZoneBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*PostZoneBackupResponse, error)
// PostZoneCheckWithResponse request
PostZoneCheckWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*PostZoneCheckResponse, error)
// PostZoneFlushWithResponse request
PostZoneFlushWithResponse(ctx context.Context, zone Zone, params *PostZoneFlushParams, reqEditors ...RequestEditorFn) (*PostZoneFlushResponse, error)
// PostZoneFreezeWithResponse request
PostZoneFreezeWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*PostZoneFreezeResponse, error)
// PostZoneKeysLoadWithResponse request
PostZoneKeysLoadWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*PostZoneKeysLoadResponse, error)
// PostZoneKeyRolloverWithResponse request
PostZoneKeyRolloverWithResponse(ctx context.Context, zone Zone, keyType PostZoneKeyRolloverParamsKeyType, reqEditors ...RequestEditorFn) (*PostZoneKeyRolloverResponse, error)
// PostZoneKSKSubmittedWithResponse request
PostZoneKSKSubmittedWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*PostZoneKSKSubmittedResponse, error)
// PostZoneNotifyWithResponse request
PostZoneNotifyWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*PostZoneNotifyResponse, error)
// PostZonePurgeWithResponse request
PostZonePurgeWithResponse(ctx context.Context, zone Zone, params *PostZonePurgeParams, reqEditors ...RequestEditorFn) (*PostZonePurgeResponse, error)
// GetZoneRecordsWithResponse request
GetZoneRecordsWithResponse(ctx context.Context, zone Zone, params *GetZoneRecordsParams, reqEditors ...RequestEditorFn) (*GetZoneRecordsResponse, error)
// PostZoneRecordsBatchWithBodyWithResponse request with any body
PostZoneRecordsBatchWithBodyWithResponse(ctx context.Context, zone Zone, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostZoneRecordsBatchResponse, error)
PostZoneRecordsBatchWithResponse(ctx context.Context, zone Zone, body PostZoneRecordsBatchJSONRequestBody, reqEditors ...RequestEditorFn) (*PostZoneRecordsBatchResponse, error)
// DeleteZoneRecordWithResponse request
DeleteZoneRecordWithResponse(ctx context.Context, zone Zone, owner RecordOwner, pType RecordType, params *DeleteZoneRecordParams, reqEditors ...RequestEditorFn) (*DeleteZoneRecordResponse, error)
// PostZoneRecordWithBodyWithResponse request with any body
PostZoneRecordWithBodyWithResponse(ctx context.Context, zone Zone, owner RecordOwner, pType RecordType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostZoneRecordResponse, error)
PostZoneRecordWithResponse(ctx context.Context, zone Zone, owner RecordOwner, pType RecordType, body PostZoneRecordJSONRequestBody, reqEditors ...RequestEditorFn) (*PostZoneRecordResponse, error)
// PostZoneRefreshWithResponse request
PostZoneRefreshWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*PostZoneRefreshResponse, error)
// PostZoneReloadWithResponse request
PostZoneReloadWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*PostZoneReloadResponse, error)
// PostZoneRestoreWithBodyWithResponse request with any body
PostZoneRestoreWithBodyWithResponse(ctx context.Context, zone Zone, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostZoneRestoreResponse, error)
PostZoneRestoreWithResponse(ctx context.Context, zone Zone, body PostZoneRestoreJSONRequestBody, reqEditors ...RequestEditorFn) (*PostZoneRestoreResponse, error)
// PostZoneRetransferWithResponse request
PostZoneRetransferWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*PostZoneRetransferResponse, error)
// GetZoneSerialWithResponse request
GetZoneSerialWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*GetZoneSerialResponse, error)
// PutZoneSerialWithBodyWithResponse request with any body
PutZoneSerialWithBodyWithResponse(ctx context.Context, zone Zone, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutZoneSerialResponse, error)
PutZoneSerialWithResponse(ctx context.Context, zone Zone, body PutZoneSerialJSONRequestBody, reqEditors ...RequestEditorFn) (*PutZoneSerialResponse, error)
// PostZoneSignWithResponse request
PostZoneSignWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*PostZoneSignResponse, error)
// GetZoneStatsWithResponse request
GetZoneStatsWithResponse(ctx context.Context, zone Zone, params *GetZoneStatsParams, reqEditors ...RequestEditorFn) (*GetZoneStatsResponse, error)
// GetZoneStatusWithResponse request
GetZoneStatusWithResponse(ctx context.Context, zone Zone, params *GetZoneStatusParams, reqEditors ...RequestEditorFn) (*GetZoneStatusResponse, error)
// PostZoneThawWithResponse request
PostZoneThawWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*PostZoneThawResponse, error)
// PostZoneTransactionWithBodyWithResponse request with any body
PostZoneTransactionWithBodyWithResponse(ctx context.Context, zone Zone, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostZoneTransactionResponse, error)
PostZoneTransactionWithResponse(ctx context.Context, zone Zone, body PostZoneTransactionJSONRequestBody, reqEditors ...RequestEditorFn) (*PostZoneTransactionResponse, error)
// PostZoneTransactionAbortWithResponse request
PostZoneTransactionAbortWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*PostZoneTransactionAbortResponse, error)
// PostZoneTransactionCommitWithResponse request
PostZoneTransactionCommitWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*PostZoneTransactionCommitResponse, error)
// GetZoneTransactionDiffWithResponse request
GetZoneTransactionDiffWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*GetZoneTransactionDiffResponse, error)
// GetZoneTransactionRecordsWithResponse request
GetZoneTransactionRecordsWithResponse(ctx context.Context, zone Zone, params *GetZoneTransactionRecordsParams, reqEditors ...RequestEditorFn) (*GetZoneTransactionRecordsResponse, error)
// DeleteZoneTransactionRecordWithResponse request
DeleteZoneTransactionRecordWithResponse(ctx context.Context, zone Zone, owner RecordOwner, pType RecordType, params *DeleteZoneTransactionRecordParams, reqEditors ...RequestEditorFn) (*DeleteZoneTransactionRecordResponse, error)
// PutZoneTransactionRecordWithBodyWithResponse request with any body
PutZoneTransactionRecordWithBodyWithResponse(ctx context.Context, zone Zone, owner RecordOwner, pType RecordType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutZoneTransactionRecordResponse, error)
PutZoneTransactionRecordWithResponse(ctx context.Context, zone Zone, owner RecordOwner, pType RecordType, body PutZoneTransactionRecordJSONRequestBody, reqEditors ...RequestEditorFn) (*PutZoneTransactionRecordResponse, error)
// PostZoneValidateWithResponse request
PostZoneValidateWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*PostZoneValidateResponse, error)
// PostZoneXFRFreezeWithResponse request
PostZoneXFRFreezeWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*PostZoneXFRFreezeResponse, error)
// PostZoneXFRThawWithResponse request
PostZoneXFRThawWithResponse(ctx context.Context, zone Zone, reqEditors ...RequestEditorFn) (*PostZoneXFRThawResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type ConfigImportRequest ¶
type ConfigImportRequest struct {
// Filename Absolute server-side path to the configuration file.
Filename string `json:"filename"`
// Nopurge When `true`, existing confdb data is preserved; the file is merged
// in rather than replacing the current configuration.
Nopurge *bool `json:"nopurge,omitempty"`
}
ConfigImportRequest defines model for ConfigImportRequest.
type ConfigItem ¶
type ConfigItem struct {
// Data Item value or list of values. Single-value items are returned as
// a string; multi-value items are returned as an array of strings.
Data *ConfigItem_Data `json:"data,omitempty"`
// Id Section identifier (the bracketed part in `zone[example.com]`).
// Empty when the section has no per-instance identifiers.
Id *string `json:"id,omitempty"`
// Item Item name within the section.
Item *string `json:"item,omitempty"`
// Section Configuration section name.
Section *string `json:"section,omitempty"`
}
ConfigItem defines model for ConfigItem.
type ConfigItem_Data ¶
type ConfigItem_Data struct {
// contains filtered or unexported fields
}
ConfigItem_Data Item value or list of values. Single-value items are returned as a string; multi-value items are returned as an array of strings.
func (ConfigItem_Data) AsConfigItemData0 ¶
func (t ConfigItem_Data) AsConfigItemData0() (ConfigItemData0, error)
AsConfigItemData0 returns the union data inside the ConfigItem_Data as a ConfigItemData0
func (ConfigItem_Data) AsConfigItemData1 ¶
func (t ConfigItem_Data) AsConfigItemData1() (ConfigItemData1, error)
AsConfigItemData1 returns the union data inside the ConfigItem_Data as a ConfigItemData1
func (*ConfigItem_Data) FromConfigItemData0 ¶
func (t *ConfigItem_Data) FromConfigItemData0(v ConfigItemData0) error
FromConfigItemData0 overwrites any union data inside the ConfigItem_Data as the provided ConfigItemData0
func (*ConfigItem_Data) FromConfigItemData1 ¶
func (t *ConfigItem_Data) FromConfigItemData1(v ConfigItemData1) error
FromConfigItemData1 overwrites any union data inside the ConfigItem_Data as the provided ConfigItemData1
func (ConfigItem_Data) MarshalJSON ¶
func (t ConfigItem_Data) MarshalJSON() ([]byte, error)
func (*ConfigItem_Data) MergeConfigItemData0 ¶
func (t *ConfigItem_Data) MergeConfigItemData0(v ConfigItemData0) error
MergeConfigItemData0 performs a merge with any union data inside the ConfigItem_Data, using the provided ConfigItemData0
func (*ConfigItem_Data) MergeConfigItemData1 ¶
func (t *ConfigItem_Data) MergeConfigItemData1(v ConfigItemData1) error
MergeConfigItemData1 performs a merge with any union data inside the ConfigItem_Data, using the provided ConfigItemData1
func (*ConfigItem_Data) UnmarshalJSON ¶
func (t *ConfigItem_Data) UnmarshalJSON(b []byte) error
type ConfigSetRequest ¶
type ConfigSetRequest struct {
// Data One or more data values to set. Provide a string for a
// single value or an array for multiple values.
Data ConfigSetRequest_Data `json:"data"`
// Id Section identifier, if applicable (e.g. a zone name for `zone`
// sections). Omit or leave empty for sections without identifiers.
Id *string `json:"id,omitempty"`
// Item Item name within the section.
Item string `json:"item"`
// Section Configuration section name.
Section string `json:"section"`
}
ConfigSetRequest defines model for ConfigSetRequest.
type ConfigSetRequestData0 ¶
type ConfigSetRequestData0 = string
ConfigSetRequestData0 defines model for .
type ConfigSetRequestData1 ¶
type ConfigSetRequestData1 = []string
ConfigSetRequestData1 defines model for .
type ConfigSetRequest_Data ¶
type ConfigSetRequest_Data struct {
// contains filtered or unexported fields
}
ConfigSetRequest_Data One or more data values to set. Provide a string for a single value or an array for multiple values.
func (ConfigSetRequest_Data) AsConfigSetRequestData0 ¶
func (t ConfigSetRequest_Data) AsConfigSetRequestData0() (ConfigSetRequestData0, error)
AsConfigSetRequestData0 returns the union data inside the ConfigSetRequest_Data as a ConfigSetRequestData0
func (ConfigSetRequest_Data) AsConfigSetRequestData1 ¶
func (t ConfigSetRequest_Data) AsConfigSetRequestData1() (ConfigSetRequestData1, error)
AsConfigSetRequestData1 returns the union data inside the ConfigSetRequest_Data as a ConfigSetRequestData1
func (*ConfigSetRequest_Data) FromConfigSetRequestData0 ¶
func (t *ConfigSetRequest_Data) FromConfigSetRequestData0(v ConfigSetRequestData0) error
FromConfigSetRequestData0 overwrites any union data inside the ConfigSetRequest_Data as the provided ConfigSetRequestData0
func (*ConfigSetRequest_Data) FromConfigSetRequestData1 ¶
func (t *ConfigSetRequest_Data) FromConfigSetRequestData1(v ConfigSetRequestData1) error
FromConfigSetRequestData1 overwrites any union data inside the ConfigSetRequest_Data as the provided ConfigSetRequestData1
func (ConfigSetRequest_Data) MarshalJSON ¶
func (t ConfigSetRequest_Data) MarshalJSON() ([]byte, error)
func (*ConfigSetRequest_Data) MergeConfigSetRequestData0 ¶
func (t *ConfigSetRequest_Data) MergeConfigSetRequestData0(v ConfigSetRequestData0) error
MergeConfigSetRequestData0 performs a merge with any union data inside the ConfigSetRequest_Data, using the provided ConfigSetRequestData0
func (*ConfigSetRequest_Data) MergeConfigSetRequestData1 ¶
func (t *ConfigSetRequest_Data) MergeConfigSetRequestData1(v ConfigSetRequestData1) error
MergeConfigSetRequestData1 performs a merge with any union data inside the ConfigSetRequest_Data, using the provided ConfigSetRequestData1
func (*ConfigSetRequest_Data) UnmarshalJSON ¶
func (t *ConfigSetRequest_Data) UnmarshalJSON(b []byte) error
type DeleteConfigTransactionItemParams ¶
type DeleteConfigTransactionItemParams struct {
// Section Configuration section name (e.g. `server`, `zone`, `remote`).
Section *ConfigSection `form:"section,omitempty" json:"section,omitempty"`
// Id Section identifier — the bracketed part in `zone[example.com]`. Used
// for sections that have per-instance configuration.
Id *ConfigID `form:"id,omitempty" json:"id,omitempty"`
// Item Item name within the section (e.g. `listen`, `file`).
Item *Config `form:"item,omitempty" json:"item,omitempty"`
// Data Specific data value to remove. Omit to remove all values for the
// item.
Data *string `form:"data,omitempty" json:"data,omitempty"`
}
DeleteConfigTransactionItemParams defines parameters for DeleteConfigTransactionItem.
type DeleteConfigTransactionItemResponse ¶
type DeleteConfigTransactionItemResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *OK
JSON404 *NotFound
JSON409 *Error
JSON500 *InternalError
}
func ParseDeleteConfigTransactionItemResponse ¶
func ParseDeleteConfigTransactionItemResponse(rsp *http.Response) (*DeleteConfigTransactionItemResponse, error)
ParseDeleteConfigTransactionItemResponse parses an HTTP response from a DeleteConfigTransactionItemWithResponse call
func (DeleteConfigTransactionItemResponse) Status ¶
func (r DeleteConfigTransactionItemResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteConfigTransactionItemResponse) StatusCode ¶
func (r DeleteConfigTransactionItemResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteZoneRecordParams ¶
type DeleteZoneRecordParams struct {
// Data Specific rdata value to remove (presentation format). Omit to
// remove all records matching `owner` and `type`.
Data *string `form:"data,omitempty" json:"data,omitempty"`
}
DeleteZoneRecordParams defines parameters for DeleteZoneRecord.
type DeleteZoneRecordResponse ¶
type DeleteZoneRecordResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *OK
JSON404 *NotFound
JSON409 *Error
JSON500 *InternalError
}
func ParseDeleteZoneRecordResponse ¶
func ParseDeleteZoneRecordResponse(rsp *http.Response) (*DeleteZoneRecordResponse, error)
ParseDeleteZoneRecordResponse parses an HTTP response from a DeleteZoneRecordWithResponse call
func (DeleteZoneRecordResponse) Status ¶
func (r DeleteZoneRecordResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteZoneRecordResponse) StatusCode ¶
func (r DeleteZoneRecordResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteZoneTransactionRecordParams ¶
type DeleteZoneTransactionRecordParams struct {
// Data Specific rdata value to remove (presentation format). Omit to
// remove all records matching `owner` and `type`.
Data *string `form:"data,omitempty" json:"data,omitempty"`
}
DeleteZoneTransactionRecordParams defines parameters for DeleteZoneTransactionRecord.
type DeleteZoneTransactionRecordResponse ¶
type DeleteZoneTransactionRecordResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *OK
JSON404 *NotFound
JSON409 *Error
JSON500 *InternalError
}
func ParseDeleteZoneTransactionRecordResponse ¶
func ParseDeleteZoneTransactionRecordResponse(rsp *http.Response) (*DeleteZoneTransactionRecordResponse, error)
ParseDeleteZoneTransactionRecordResponse parses an HTTP response from a DeleteZoneTransactionRecordWithResponse call
func (DeleteZoneTransactionRecordResponse) Status ¶
func (r DeleteZoneTransactionRecordResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteZoneTransactionRecordResponse) StatusCode ¶
func (r DeleteZoneTransactionRecordResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Error ¶
type Error struct {
// Error Human-readable error message from the knot control socket.
Error string `json:"error"`
}
Error defines model for Error.
type GetConfigExportParams ¶
type GetConfigExportParams struct {
// Schema When true, export the JSON schema instead of the configuration.
Schema *bool `form:"schema,omitempty" json:"schema,omitempty"`
// Filename Server-side path to write the export to. When omitted, the export
// is returned in the response body.
Filename *string `form:"filename,omitempty" json:"filename,omitempty"`
}
GetConfigExportParams defines parameters for GetConfigExport.
type GetConfigExportResponse ¶
type GetConfigExportResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *map[string]interface{}
JSON401 *Unauthorized
JSON500 *InternalError
}
func ParseGetConfigExportResponse ¶
func ParseGetConfigExportResponse(rsp *http.Response) (*GetConfigExportResponse, error)
ParseGetConfigExportResponse parses an HTTP response from a GetConfigExportWithResponse call
func (GetConfigExportResponse) Status ¶
func (r GetConfigExportResponse) Status() string
Status returns HTTPResponse.Status
func (GetConfigExportResponse) StatusCode ¶
func (r GetConfigExportResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetConfigParams ¶
type GetConfigParams struct {
// Section Configuration section name (e.g. `server`, `zone`, `remote`).
Section *ConfigSection `form:"section,omitempty" json:"section,omitempty"`
// Id Section identifier — the bracketed part in `zone[example.com]`. Used
// for sections that have per-instance configuration.
Id *ConfigID `form:"id,omitempty" json:"id,omitempty"`
// Item Item name within the section (e.g. `listen`, `file`).
Item *Config `form:"item,omitempty" json:"item,omitempty"`
}
GetConfigParams defines parameters for GetConfig.
type GetConfigResponse ¶
type GetConfigResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]ConfigItem
JSON404 *NotFound
JSON500 *InternalError
}
func ParseGetConfigResponse ¶
func ParseGetConfigResponse(rsp *http.Response) (*GetConfigResponse, error)
ParseGetConfigResponse parses an HTTP response from a GetConfigWithResponse call
func (GetConfigResponse) Status ¶
func (r GetConfigResponse) Status() string
Status returns HTTPResponse.Status
func (GetConfigResponse) StatusCode ¶
func (r GetConfigResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetConfigTransactionDiffParams ¶
type GetConfigTransactionDiffParams struct {
// Section Configuration section name (e.g. `server`, `zone`, `remote`).
Section *ConfigSection `form:"section,omitempty" json:"section,omitempty"`
// Id Section identifier — the bracketed part in `zone[example.com]`. Used
// for sections that have per-instance configuration.
Id *ConfigID `form:"id,omitempty" json:"id,omitempty"`
// Item Item name within the section (e.g. `listen`, `file`).
Item *Config `form:"item,omitempty" json:"item,omitempty"`
}
GetConfigTransactionDiffParams defines parameters for GetConfigTransactionDiff.
type GetConfigTransactionDiffResponse ¶
type GetConfigTransactionDiffResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]ConfigItem
JSON409 *Error
JSON500 *InternalError
}
func ParseGetConfigTransactionDiffResponse ¶
func ParseGetConfigTransactionDiffResponse(rsp *http.Response) (*GetConfigTransactionDiffResponse, error)
ParseGetConfigTransactionDiffResponse parses an HTTP response from a GetConfigTransactionDiffWithResponse call
func (GetConfigTransactionDiffResponse) Status ¶
func (r GetConfigTransactionDiffResponse) Status() string
Status returns HTTPResponse.Status
func (GetConfigTransactionDiffResponse) StatusCode ¶
func (r GetConfigTransactionDiffResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetConfigTransactionItemParams ¶
type GetConfigTransactionItemParams struct {
// Section Configuration section name (e.g. `server`, `zone`, `remote`).
Section *ConfigSection `form:"section,omitempty" json:"section,omitempty"`
// Id Section identifier — the bracketed part in `zone[example.com]`. Used
// for sections that have per-instance configuration.
Id *ConfigID `form:"id,omitempty" json:"id,omitempty"`
// Item Item name within the section (e.g. `listen`, `file`).
Item *Config `form:"item,omitempty" json:"item,omitempty"`
}
GetConfigTransactionItemParams defines parameters for GetConfigTransactionItem.
type GetConfigTransactionItemResponse ¶
type GetConfigTransactionItemResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ConfigItem
JSON404 *NotFound
JSON409 *Error
JSON500 *InternalError
}
func ParseGetConfigTransactionItemResponse ¶
func ParseGetConfigTransactionItemResponse(rsp *http.Response) (*GetConfigTransactionItemResponse, error)
ParseGetConfigTransactionItemResponse parses an HTTP response from a GetConfigTransactionItemWithResponse call
func (GetConfigTransactionItemResponse) Status ¶
func (r GetConfigTransactionItemResponse) Status() string
Status returns HTTPResponse.Status
func (GetConfigTransactionItemResponse) StatusCode ¶
func (r GetConfigTransactionItemResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetStatsParams ¶
type GetStatsParams struct {
// Module Module name (e.g. `mod-stats`). Omit to return all modules.
Module *string `form:"module,omitempty" json:"module,omitempty"`
// Counter Counter name within the module. Requires `module` to be set.
Counter *string `form:"counter,omitempty" json:"counter,omitempty"`
}
GetStatsParams defines parameters for GetStats.
type GetStatsResponse ¶
type GetStatsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Stats
JSON401 *Unauthorized
JSON500 *InternalError
}
func ParseGetStatsResponse ¶
func ParseGetStatsResponse(rsp *http.Response) (*GetStatsResponse, error)
ParseGetStatsResponse parses an HTTP response from a GetStatsWithResponse call
func (GetStatsResponse) Status ¶
func (r GetStatsResponse) Status() string
Status returns HTTPResponse.Status
func (GetStatsResponse) StatusCode ¶
func (r GetStatsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetStatusParams ¶
type GetStatusParams struct {
// Detail Optional detail level passed to the status command.
Detail *string `form:"detail,omitempty" json:"detail,omitempty"`
}
GetStatusParams defines parameters for GetStatus.
type GetStatusResponse ¶
type GetStatusResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ServerStatus
JSON401 *Unauthorized
JSON503 *Error
}
func ParseGetStatusResponse ¶
func ParseGetStatusResponse(rsp *http.Response) (*GetStatusResponse, error)
ParseGetStatusResponse parses an HTTP response from a GetStatusWithResponse call
func (GetStatusResponse) Status ¶
func (r GetStatusResponse) Status() string
Status returns HTTPResponse.Status
func (GetStatusResponse) StatusCode ¶
func (r GetStatusResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetZoneRecordsParams ¶
type GetZoneRecordsParams struct {
// Owner Filter by owner name (FQDN, e.g. `www.example.com.`).
Owner *string `form:"owner,omitempty" json:"owner,omitempty"`
// Type Filter by record type (e.g. `A`, `AAAA`, `MX`).
Type *string `form:"type,omitempty" json:"type,omitempty"`
}
GetZoneRecordsParams defines parameters for GetZoneRecords.
type GetZoneRecordsResponse ¶
type GetZoneRecordsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]Record
JSON404 *NotFound
JSON500 *InternalError
}
func ParseGetZoneRecordsResponse ¶
func ParseGetZoneRecordsResponse(rsp *http.Response) (*GetZoneRecordsResponse, error)
ParseGetZoneRecordsResponse parses an HTTP response from a GetZoneRecordsWithResponse call
func (GetZoneRecordsResponse) Status ¶
func (r GetZoneRecordsResponse) Status() string
Status returns HTTPResponse.Status
func (GetZoneRecordsResponse) StatusCode ¶
func (r GetZoneRecordsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetZoneSerialResponse ¶
type GetZoneSerialResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SerialResponse
JSON404 *NotFound
JSON500 *InternalError
}
func ParseGetZoneSerialResponse ¶
func ParseGetZoneSerialResponse(rsp *http.Response) (*GetZoneSerialResponse, error)
ParseGetZoneSerialResponse parses an HTTP response from a GetZoneSerialWithResponse call
func (GetZoneSerialResponse) Status ¶
func (r GetZoneSerialResponse) Status() string
Status returns HTTPResponse.Status
func (GetZoneSerialResponse) StatusCode ¶
func (r GetZoneSerialResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetZoneStatsParams ¶
type GetZoneStatsParams struct {
// Module Module name. Omit to return all modules.
Module *string `form:"module,omitempty" json:"module,omitempty"`
// Counter Counter name within the module. Requires `module` to be set.
Counter *string `form:"counter,omitempty" json:"counter,omitempty"`
}
GetZoneStatsParams defines parameters for GetZoneStats.
type GetZoneStatsResponse ¶
type GetZoneStatsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Stats
JSON404 *NotFound
JSON500 *InternalError
}
func ParseGetZoneStatsResponse ¶
func ParseGetZoneStatsResponse(rsp *http.Response) (*GetZoneStatsResponse, error)
ParseGetZoneStatsResponse parses an HTTP response from a GetZoneStatsWithResponse call
func (GetZoneStatsResponse) Status ¶
func (r GetZoneStatsResponse) Status() string
Status returns HTTPResponse.Status
func (GetZoneStatsResponse) StatusCode ¶
func (r GetZoneStatsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetZoneStatusParams ¶
type GetZoneStatusParams struct {
// Filter Status fields to include in the response.
Filter *[]GetZoneStatusParamsFilter `form:"filter,omitempty" json:"filter,omitempty"`
}
GetZoneStatusParams defines parameters for GetZoneStatus.
type GetZoneStatusParamsFilter ¶
type GetZoneStatusParamsFilter string
GetZoneStatusParamsFilter defines parameters for GetZoneStatus.
const ( AutoDnssec GetZoneStatusParamsFilter = "auto-dnssec" Catalog GetZoneStatusParamsFilter = "catalog" Events GetZoneStatusParamsFilter = "events" Freeze GetZoneStatusParamsFilter = "freeze" Modules GetZoneStatusParamsFilter = "modules" Role GetZoneStatusParamsFilter = "role" Serial GetZoneStatusParamsFilter = "serial" Transaction GetZoneStatusParamsFilter = "transaction" )
Defines values for GetZoneStatusParamsFilter.
type GetZoneStatusResponse ¶
type GetZoneStatusResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ZoneStatus
JSON404 *NotFound
JSON500 *InternalError
}
func ParseGetZoneStatusResponse ¶
func ParseGetZoneStatusResponse(rsp *http.Response) (*GetZoneStatusResponse, error)
ParseGetZoneStatusResponse parses an HTTP response from a GetZoneStatusWithResponse call
func (GetZoneStatusResponse) Status ¶
func (r GetZoneStatusResponse) Status() string
Status returns HTTPResponse.Status
func (GetZoneStatusResponse) StatusCode ¶
func (r GetZoneStatusResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetZoneTransactionDiffResponse ¶
type GetZoneTransactionDiffResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ZoneDiff
JSON404 *NotFound
JSON409 *Error
JSON500 *InternalError
}
func ParseGetZoneTransactionDiffResponse ¶
func ParseGetZoneTransactionDiffResponse(rsp *http.Response) (*GetZoneTransactionDiffResponse, error)
ParseGetZoneTransactionDiffResponse parses an HTTP response from a GetZoneTransactionDiffWithResponse call
func (GetZoneTransactionDiffResponse) Status ¶
func (r GetZoneTransactionDiffResponse) Status() string
Status returns HTTPResponse.Status
func (GetZoneTransactionDiffResponse) StatusCode ¶
func (r GetZoneTransactionDiffResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetZoneTransactionRecordsParams ¶
type GetZoneTransactionRecordsParams struct {
// Owner Filter by owner name (FQDN).
Owner *string `form:"owner,omitempty" json:"owner,omitempty"`
// Type Filter by record type.
Type *string `form:"type,omitempty" json:"type,omitempty"`
}
GetZoneTransactionRecordsParams defines parameters for GetZoneTransactionRecords.
type GetZoneTransactionRecordsResponse ¶
type GetZoneTransactionRecordsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]Record
JSON404 *NotFound
JSON409 *Error
JSON500 *InternalError
}
func ParseGetZoneTransactionRecordsResponse ¶
func ParseGetZoneTransactionRecordsResponse(rsp *http.Response) (*GetZoneTransactionRecordsResponse, error)
ParseGetZoneTransactionRecordsResponse parses an HTTP response from a GetZoneTransactionRecordsWithResponse call
func (GetZoneTransactionRecordsResponse) Status ¶
func (r GetZoneTransactionRecordsResponse) Status() string
Status returns HTTPResponse.Status
func (GetZoneTransactionRecordsResponse) StatusCode ¶
func (r GetZoneTransactionRecordsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetZonesParams ¶ added in v0.1.1
type GetZonesParams struct {
// Filter Optional filter to apply (e.g. `type=slave`).
Filter *string `form:"filter,omitempty" json:"filter,omitempty"`
}
GetZonesParams defines parameters for GetZones.
type GetZonesResponse ¶ added in v0.1.1
type GetZonesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ZoneList
JSON404 *NotFound
JSON500 *InternalError
}
func ParseGetZonesResponse ¶ added in v0.1.1
func ParseGetZonesResponse(rsp *http.Response) (*GetZonesResponse, error)
ParseGetZonesResponse parses an HTTP response from a GetZonesWithResponse call
func (GetZonesResponse) Status ¶ added in v0.1.1
func (r GetZonesResponse) Status() string
Status returns HTTPResponse.Status
func (GetZonesResponse) StatusCode ¶ added in v0.1.1
func (r GetZonesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type PostConfigCheckResponse ¶
type PostConfigCheckResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *OK
JSON422 *Error
JSON500 *InternalError
}
func ParsePostConfigCheckResponse ¶
func ParsePostConfigCheckResponse(rsp *http.Response) (*PostConfigCheckResponse, error)
ParsePostConfigCheckResponse parses an HTTP response from a PostConfigCheckWithResponse call
func (PostConfigCheckResponse) Status ¶
func (r PostConfigCheckResponse) Status() string
Status returns HTTPResponse.Status
func (PostConfigCheckResponse) StatusCode ¶
func (r PostConfigCheckResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostConfigImportJSONRequestBody ¶
type PostConfigImportJSONRequestBody = ConfigImportRequest
PostConfigImportJSONRequestBody defines body for PostConfigImport for application/json ContentType.
type PostConfigImportResponse ¶
type PostConfigImportResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *OK
JSON400 *BadRequest
JSON500 *InternalError
}
func ParsePostConfigImportResponse ¶
func ParsePostConfigImportResponse(rsp *http.Response) (*PostConfigImportResponse, error)
ParsePostConfigImportResponse parses an HTTP response from a PostConfigImportWithResponse call
func (PostConfigImportResponse) Status ¶
func (r PostConfigImportResponse) Status() string
Status returns HTTPResponse.Status
func (PostConfigImportResponse) StatusCode ¶
func (r PostConfigImportResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostConfigInitResponse ¶
type PostConfigInitResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *OK
JSON401 *Unauthorized
JSON500 *InternalError
}
func ParsePostConfigInitResponse ¶
func ParsePostConfigInitResponse(rsp *http.Response) (*PostConfigInitResponse, error)
ParsePostConfigInitResponse parses an HTTP response from a PostConfigInitWithResponse call
func (PostConfigInitResponse) Status ¶
func (r PostConfigInitResponse) Status() string
Status returns HTTPResponse.Status
func (PostConfigInitResponse) StatusCode ¶
func (r PostConfigInitResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostConfigTransactionAbortResponse ¶
type PostConfigTransactionAbortResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *OK
JSON401 *Unauthorized
JSON500 *InternalError
}
func ParsePostConfigTransactionAbortResponse ¶
func ParsePostConfigTransactionAbortResponse(rsp *http.Response) (*PostConfigTransactionAbortResponse, error)
ParsePostConfigTransactionAbortResponse parses an HTTP response from a PostConfigTransactionAbortWithResponse call
func (PostConfigTransactionAbortResponse) Status ¶
func (r PostConfigTransactionAbortResponse) Status() string
Status returns HTTPResponse.Status
func (PostConfigTransactionAbortResponse) StatusCode ¶
func (r PostConfigTransactionAbortResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostConfigTransactionCommitResponse ¶
type PostConfigTransactionCommitResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *OK
JSON409 *Error
JSON500 *InternalError
}
func ParsePostConfigTransactionCommitResponse ¶
func ParsePostConfigTransactionCommitResponse(rsp *http.Response) (*PostConfigTransactionCommitResponse, error)
ParsePostConfigTransactionCommitResponse parses an HTTP response from a PostConfigTransactionCommitWithResponse call
func (PostConfigTransactionCommitResponse) Status ¶
func (r PostConfigTransactionCommitResponse) Status() string
Status returns HTTPResponse.Status
func (PostConfigTransactionCommitResponse) StatusCode ¶
func (r PostConfigTransactionCommitResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostConfigTransactionResponse ¶
type PostConfigTransactionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *Created
JSON409 *Error
JSON500 *InternalError
}
func ParsePostConfigTransactionResponse ¶
func ParsePostConfigTransactionResponse(rsp *http.Response) (*PostConfigTransactionResponse, error)
ParsePostConfigTransactionResponse parses an HTTP response from a PostConfigTransactionWithResponse call
func (PostConfigTransactionResponse) Status ¶
func (r PostConfigTransactionResponse) Status() string
Status returns HTTPResponse.Status
func (PostConfigTransactionResponse) StatusCode ¶
func (r PostConfigTransactionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostReloadResponse ¶
type PostReloadResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *OK
JSON401 *Unauthorized
JSON500 *InternalError
}
func ParsePostReloadResponse ¶
func ParsePostReloadResponse(rsp *http.Response) (*PostReloadResponse, error)
ParsePostReloadResponse parses an HTTP response from a PostReloadWithResponse call
func (PostReloadResponse) Status ¶
func (r PostReloadResponse) Status() string
Status returns HTTPResponse.Status
func (PostReloadResponse) StatusCode ¶
func (r PostReloadResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostStopResponse ¶
type PostStopResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *OK
JSON401 *Unauthorized
JSON500 *InternalError
}
func ParsePostStopResponse ¶
func ParsePostStopResponse(rsp *http.Response) (*PostStopResponse, error)
ParsePostStopResponse parses an HTTP response from a PostStopWithResponse call
func (PostStopResponse) Status ¶
func (r PostStopResponse) Status() string
Status returns HTTPResponse.Status
func (PostStopResponse) StatusCode ¶
func (r PostStopResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostZoneBackupJSONRequestBody ¶
type PostZoneBackupJSONRequestBody = BackupRequest
PostZoneBackupJSONRequestBody defines body for PostZoneBackup for application/json ContentType.
type PostZoneBackupResponse ¶
type PostZoneBackupResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *OK
JSON400 *BadRequest
JSON404 *NotFound
JSON500 *InternalError
}
func ParsePostZoneBackupResponse ¶
func ParsePostZoneBackupResponse(rsp *http.Response) (*PostZoneBackupResponse, error)
ParsePostZoneBackupResponse parses an HTTP response from a PostZoneBackupWithResponse call
func (PostZoneBackupResponse) Status ¶
func (r PostZoneBackupResponse) Status() string
Status returns HTTPResponse.Status
func (PostZoneBackupResponse) StatusCode ¶
func (r PostZoneBackupResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostZoneCheckResponse ¶
type PostZoneCheckResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *OK
JSON404 *NotFound
JSON422 *Error
JSON500 *InternalError
}
func ParsePostZoneCheckResponse ¶
func ParsePostZoneCheckResponse(rsp *http.Response) (*PostZoneCheckResponse, error)
ParsePostZoneCheckResponse parses an HTTP response from a PostZoneCheckWithResponse call
func (PostZoneCheckResponse) Status ¶
func (r PostZoneCheckResponse) Status() string
Status returns HTTPResponse.Status
func (PostZoneCheckResponse) StatusCode ¶
func (r PostZoneCheckResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostZoneFlushParams ¶
type PostZoneFlushParams struct {
// Filter Space-separated list of knot filter names (without the leading `+`),
// e.g. `expire journal-content`.
Filter *ZoneFilter `form:"filter,omitempty" json:"filter,omitempty"`
}
PostZoneFlushParams defines parameters for PostZoneFlush.
type PostZoneFlushResponse ¶
type PostZoneFlushResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *OK
JSON404 *NotFound
JSON500 *InternalError
}
func ParsePostZoneFlushResponse ¶
func ParsePostZoneFlushResponse(rsp *http.Response) (*PostZoneFlushResponse, error)
ParsePostZoneFlushResponse parses an HTTP response from a PostZoneFlushWithResponse call
func (PostZoneFlushResponse) Status ¶
func (r PostZoneFlushResponse) Status() string
Status returns HTTPResponse.Status
func (PostZoneFlushResponse) StatusCode ¶
func (r PostZoneFlushResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostZoneFreezeResponse ¶
type PostZoneFreezeResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *OK
JSON404 *NotFound
JSON500 *InternalError
}
func ParsePostZoneFreezeResponse ¶
func ParsePostZoneFreezeResponse(rsp *http.Response) (*PostZoneFreezeResponse, error)
ParsePostZoneFreezeResponse parses an HTTP response from a PostZoneFreezeWithResponse call
func (PostZoneFreezeResponse) Status ¶
func (r PostZoneFreezeResponse) Status() string
Status returns HTTPResponse.Status
func (PostZoneFreezeResponse) StatusCode ¶
func (r PostZoneFreezeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostZoneKSKSubmittedResponse ¶
type PostZoneKSKSubmittedResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *OK
JSON404 *NotFound
JSON500 *InternalError
}
func ParsePostZoneKSKSubmittedResponse ¶
func ParsePostZoneKSKSubmittedResponse(rsp *http.Response) (*PostZoneKSKSubmittedResponse, error)
ParsePostZoneKSKSubmittedResponse parses an HTTP response from a PostZoneKSKSubmittedWithResponse call
func (PostZoneKSKSubmittedResponse) Status ¶
func (r PostZoneKSKSubmittedResponse) Status() string
Status returns HTTPResponse.Status
func (PostZoneKSKSubmittedResponse) StatusCode ¶
func (r PostZoneKSKSubmittedResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostZoneKeyRolloverParamsKeyType ¶
type PostZoneKeyRolloverParamsKeyType string
PostZoneKeyRolloverParamsKeyType defines parameters for PostZoneKeyRollover.
const ( Ksk PostZoneKeyRolloverParamsKeyType = "ksk" Zsk PostZoneKeyRolloverParamsKeyType = "zsk" )
Defines values for PostZoneKeyRolloverParamsKeyType.
type PostZoneKeyRolloverResponse ¶
type PostZoneKeyRolloverResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *OK
JSON404 *NotFound
JSON500 *InternalError
}
func ParsePostZoneKeyRolloverResponse ¶
func ParsePostZoneKeyRolloverResponse(rsp *http.Response) (*PostZoneKeyRolloverResponse, error)
ParsePostZoneKeyRolloverResponse parses an HTTP response from a PostZoneKeyRolloverWithResponse call
func (PostZoneKeyRolloverResponse) Status ¶
func (r PostZoneKeyRolloverResponse) Status() string
Status returns HTTPResponse.Status
func (PostZoneKeyRolloverResponse) StatusCode ¶
func (r PostZoneKeyRolloverResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostZoneKeysLoadResponse ¶
type PostZoneKeysLoadResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *OK
JSON404 *NotFound
JSON500 *InternalError
}
func ParsePostZoneKeysLoadResponse ¶
func ParsePostZoneKeysLoadResponse(rsp *http.Response) (*PostZoneKeysLoadResponse, error)
ParsePostZoneKeysLoadResponse parses an HTTP response from a PostZoneKeysLoadWithResponse call
func (PostZoneKeysLoadResponse) Status ¶
func (r PostZoneKeysLoadResponse) Status() string
Status returns HTTPResponse.Status
func (PostZoneKeysLoadResponse) StatusCode ¶
func (r PostZoneKeysLoadResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostZoneNotifyResponse ¶
type PostZoneNotifyResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *OK
JSON404 *NotFound
JSON500 *InternalError
}
func ParsePostZoneNotifyResponse ¶
func ParsePostZoneNotifyResponse(rsp *http.Response) (*PostZoneNotifyResponse, error)
ParsePostZoneNotifyResponse parses an HTTP response from a PostZoneNotifyWithResponse call
func (PostZoneNotifyResponse) Status ¶
func (r PostZoneNotifyResponse) Status() string
Status returns HTTPResponse.Status
func (PostZoneNotifyResponse) StatusCode ¶
func (r PostZoneNotifyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostZonePurgeParams ¶
type PostZonePurgeParams struct {
// Filter Space-separated list of knot filter names (without the leading `+`),
// e.g. `expire journal-content`.
Filter *ZoneFilter `form:"filter,omitempty" json:"filter,omitempty"`
}
PostZonePurgeParams defines parameters for PostZonePurge.
type PostZonePurgeResponse ¶
type PostZonePurgeResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *OK
JSON404 *NotFound
JSON500 *InternalError
}
func ParsePostZonePurgeResponse ¶
func ParsePostZonePurgeResponse(rsp *http.Response) (*PostZonePurgeResponse, error)
ParsePostZonePurgeResponse parses an HTTP response from a PostZonePurgeWithResponse call
func (PostZonePurgeResponse) Status ¶
func (r PostZonePurgeResponse) Status() string
Status returns HTTPResponse.Status
func (PostZonePurgeResponse) StatusCode ¶
func (r PostZonePurgeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostZoneRecordJSONRequestBody ¶
type PostZoneRecordJSONRequestBody = RecordWrite
PostZoneRecordJSONRequestBody defines body for PostZoneRecord for application/json ContentType.
type PostZoneRecordResponse ¶
type PostZoneRecordResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *RecordResponse
JSON400 *BadRequest
JSON404 *NotFound
JSON409 *Error
JSON500 *InternalError
}
func ParsePostZoneRecordResponse ¶
func ParsePostZoneRecordResponse(rsp *http.Response) (*PostZoneRecordResponse, error)
ParsePostZoneRecordResponse parses an HTTP response from a PostZoneRecordWithResponse call
func (PostZoneRecordResponse) Status ¶
func (r PostZoneRecordResponse) Status() string
Status returns HTTPResponse.Status
func (PostZoneRecordResponse) StatusCode ¶
func (r PostZoneRecordResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostZoneRecordsBatchJSONRequestBody ¶
type PostZoneRecordsBatchJSONRequestBody = RecordBatchRequest
PostZoneRecordsBatchJSONRequestBody defines body for PostZoneRecordsBatch for application/json ContentType.
type PostZoneRecordsBatchResponse ¶
type PostZoneRecordsBatchResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *RecordBatchResponse
JSON400 *BadRequest
JSON404 *NotFound
JSON409 *Error
JSON500 *InternalError
}
func ParsePostZoneRecordsBatchResponse ¶
func ParsePostZoneRecordsBatchResponse(rsp *http.Response) (*PostZoneRecordsBatchResponse, error)
ParsePostZoneRecordsBatchResponse parses an HTTP response from a PostZoneRecordsBatchWithResponse call
func (PostZoneRecordsBatchResponse) Status ¶
func (r PostZoneRecordsBatchResponse) Status() string
Status returns HTTPResponse.Status
func (PostZoneRecordsBatchResponse) StatusCode ¶
func (r PostZoneRecordsBatchResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostZoneRefreshResponse ¶
type PostZoneRefreshResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *OK
JSON404 *NotFound
JSON500 *InternalError
}
func ParsePostZoneRefreshResponse ¶
func ParsePostZoneRefreshResponse(rsp *http.Response) (*PostZoneRefreshResponse, error)
ParsePostZoneRefreshResponse parses an HTTP response from a PostZoneRefreshWithResponse call
func (PostZoneRefreshResponse) Status ¶
func (r PostZoneRefreshResponse) Status() string
Status returns HTTPResponse.Status
func (PostZoneRefreshResponse) StatusCode ¶
func (r PostZoneRefreshResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostZoneReloadResponse ¶
type PostZoneReloadResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *OK
JSON404 *NotFound
JSON500 *InternalError
}
func ParsePostZoneReloadResponse ¶
func ParsePostZoneReloadResponse(rsp *http.Response) (*PostZoneReloadResponse, error)
ParsePostZoneReloadResponse parses an HTTP response from a PostZoneReloadWithResponse call
func (PostZoneReloadResponse) Status ¶
func (r PostZoneReloadResponse) Status() string
Status returns HTTPResponse.Status
func (PostZoneReloadResponse) StatusCode ¶
func (r PostZoneReloadResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostZoneRestoreJSONRequestBody ¶
type PostZoneRestoreJSONRequestBody = BackupRequest
PostZoneRestoreJSONRequestBody defines body for PostZoneRestore for application/json ContentType.
type PostZoneRestoreResponse ¶
type PostZoneRestoreResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *OK
JSON400 *BadRequest
JSON404 *NotFound
JSON500 *InternalError
}
func ParsePostZoneRestoreResponse ¶
func ParsePostZoneRestoreResponse(rsp *http.Response) (*PostZoneRestoreResponse, error)
ParsePostZoneRestoreResponse parses an HTTP response from a PostZoneRestoreWithResponse call
func (PostZoneRestoreResponse) Status ¶
func (r PostZoneRestoreResponse) Status() string
Status returns HTTPResponse.Status
func (PostZoneRestoreResponse) StatusCode ¶
func (r PostZoneRestoreResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostZoneRetransferResponse ¶
type PostZoneRetransferResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *OK
JSON404 *NotFound
JSON500 *InternalError
}
func ParsePostZoneRetransferResponse ¶
func ParsePostZoneRetransferResponse(rsp *http.Response) (*PostZoneRetransferResponse, error)
ParsePostZoneRetransferResponse parses an HTTP response from a PostZoneRetransferWithResponse call
func (PostZoneRetransferResponse) Status ¶
func (r PostZoneRetransferResponse) Status() string
Status returns HTTPResponse.Status
func (PostZoneRetransferResponse) StatusCode ¶
func (r PostZoneRetransferResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostZoneSignResponse ¶
type PostZoneSignResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *OK
JSON404 *NotFound
JSON500 *InternalError
}
func ParsePostZoneSignResponse ¶
func ParsePostZoneSignResponse(rsp *http.Response) (*PostZoneSignResponse, error)
ParsePostZoneSignResponse parses an HTTP response from a PostZoneSignWithResponse call
func (PostZoneSignResponse) Status ¶
func (r PostZoneSignResponse) Status() string
Status returns HTTPResponse.Status
func (PostZoneSignResponse) StatusCode ¶
func (r PostZoneSignResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostZoneThawResponse ¶
type PostZoneThawResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *OK
JSON404 *NotFound
JSON500 *InternalError
}
func ParsePostZoneThawResponse ¶
func ParsePostZoneThawResponse(rsp *http.Response) (*PostZoneThawResponse, error)
ParsePostZoneThawResponse parses an HTTP response from a PostZoneThawWithResponse call
func (PostZoneThawResponse) Status ¶
func (r PostZoneThawResponse) Status() string
Status returns HTTPResponse.Status
func (PostZoneThawResponse) StatusCode ¶
func (r PostZoneThawResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostZoneTransactionAbortResponse ¶
type PostZoneTransactionAbortResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *OK
JSON404 *NotFound
JSON500 *InternalError
}
func ParsePostZoneTransactionAbortResponse ¶
func ParsePostZoneTransactionAbortResponse(rsp *http.Response) (*PostZoneTransactionAbortResponse, error)
ParsePostZoneTransactionAbortResponse parses an HTTP response from a PostZoneTransactionAbortWithResponse call
func (PostZoneTransactionAbortResponse) Status ¶
func (r PostZoneTransactionAbortResponse) Status() string
Status returns HTTPResponse.Status
func (PostZoneTransactionAbortResponse) StatusCode ¶
func (r PostZoneTransactionAbortResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostZoneTransactionCommitResponse ¶
type PostZoneTransactionCommitResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *OK
JSON404 *NotFound
JSON409 *Error
JSON500 *InternalError
}
func ParsePostZoneTransactionCommitResponse ¶
func ParsePostZoneTransactionCommitResponse(rsp *http.Response) (*PostZoneTransactionCommitResponse, error)
ParsePostZoneTransactionCommitResponse parses an HTTP response from a PostZoneTransactionCommitWithResponse call
func (PostZoneTransactionCommitResponse) Status ¶
func (r PostZoneTransactionCommitResponse) Status() string
Status returns HTTPResponse.Status
func (PostZoneTransactionCommitResponse) StatusCode ¶
func (r PostZoneTransactionCommitResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostZoneTransactionJSONRequestBody ¶
type PostZoneTransactionJSONRequestBody = ZoneTransactionBeginRequest
PostZoneTransactionJSONRequestBody defines body for PostZoneTransaction for application/json ContentType.
type PostZoneTransactionResponse ¶
type PostZoneTransactionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *Created
JSON404 *NotFound
JSON409 *Error
JSON500 *InternalError
}
func ParsePostZoneTransactionResponse ¶
func ParsePostZoneTransactionResponse(rsp *http.Response) (*PostZoneTransactionResponse, error)
ParsePostZoneTransactionResponse parses an HTTP response from a PostZoneTransactionWithResponse call
func (PostZoneTransactionResponse) Status ¶
func (r PostZoneTransactionResponse) Status() string
Status returns HTTPResponse.Status
func (PostZoneTransactionResponse) StatusCode ¶
func (r PostZoneTransactionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostZoneValidateResponse ¶
type PostZoneValidateResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *OK
JSON404 *NotFound
JSON422 *Error
JSON500 *InternalError
}
func ParsePostZoneValidateResponse ¶
func ParsePostZoneValidateResponse(rsp *http.Response) (*PostZoneValidateResponse, error)
ParsePostZoneValidateResponse parses an HTTP response from a PostZoneValidateWithResponse call
func (PostZoneValidateResponse) Status ¶
func (r PostZoneValidateResponse) Status() string
Status returns HTTPResponse.Status
func (PostZoneValidateResponse) StatusCode ¶
func (r PostZoneValidateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostZoneXFRFreezeResponse ¶
type PostZoneXFRFreezeResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *OK
JSON404 *NotFound
JSON500 *InternalError
}
func ParsePostZoneXFRFreezeResponse ¶
func ParsePostZoneXFRFreezeResponse(rsp *http.Response) (*PostZoneXFRFreezeResponse, error)
ParsePostZoneXFRFreezeResponse parses an HTTP response from a PostZoneXFRFreezeWithResponse call
func (PostZoneXFRFreezeResponse) Status ¶
func (r PostZoneXFRFreezeResponse) Status() string
Status returns HTTPResponse.Status
func (PostZoneXFRFreezeResponse) StatusCode ¶
func (r PostZoneXFRFreezeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostZoneXFRThawResponse ¶
type PostZoneXFRThawResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *OK
JSON404 *NotFound
JSON500 *InternalError
}
func ParsePostZoneXFRThawResponse ¶
func ParsePostZoneXFRThawResponse(rsp *http.Response) (*PostZoneXFRThawResponse, error)
ParsePostZoneXFRThawResponse parses an HTTP response from a PostZoneXFRThawWithResponse call
func (PostZoneXFRThawResponse) Status ¶
func (r PostZoneXFRThawResponse) Status() string
Status returns HTTPResponse.Status
func (PostZoneXFRThawResponse) StatusCode ¶
func (r PostZoneXFRThawResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PutConfigTransactionItemJSONRequestBody ¶
type PutConfigTransactionItemJSONRequestBody = ConfigSetRequest
PutConfigTransactionItemJSONRequestBody defines body for PutConfigTransactionItem for application/json ContentType.
type PutConfigTransactionItemResponse ¶
type PutConfigTransactionItemResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *OK
JSON400 *BadRequest
JSON409 *Error
JSON500 *InternalError
}
func ParsePutConfigTransactionItemResponse ¶
func ParsePutConfigTransactionItemResponse(rsp *http.Response) (*PutConfigTransactionItemResponse, error)
ParsePutConfigTransactionItemResponse parses an HTTP response from a PutConfigTransactionItemWithResponse call
func (PutConfigTransactionItemResponse) Status ¶
func (r PutConfigTransactionItemResponse) Status() string
Status returns HTTPResponse.Status
func (PutConfigTransactionItemResponse) StatusCode ¶
func (r PutConfigTransactionItemResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PutZoneSerialJSONRequestBody ¶
type PutZoneSerialJSONRequestBody = SerialRequest
PutZoneSerialJSONRequestBody defines body for PutZoneSerial for application/json ContentType.
type PutZoneSerialResponse ¶
type PutZoneSerialResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SerialResponse
JSON400 *BadRequest
JSON404 *NotFound
JSON500 *InternalError
}
func ParsePutZoneSerialResponse ¶
func ParsePutZoneSerialResponse(rsp *http.Response) (*PutZoneSerialResponse, error)
ParsePutZoneSerialResponse parses an HTTP response from a PutZoneSerialWithResponse call
func (PutZoneSerialResponse) Status ¶
func (r PutZoneSerialResponse) Status() string
Status returns HTTPResponse.Status
func (PutZoneSerialResponse) StatusCode ¶
func (r PutZoneSerialResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PutZoneTransactionRecordJSONRequestBody ¶
type PutZoneTransactionRecordJSONRequestBody = RecordWrite
PutZoneTransactionRecordJSONRequestBody defines body for PutZoneTransactionRecord for application/json ContentType.
type PutZoneTransactionRecordResponse ¶
type PutZoneTransactionRecordResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *OK
JSON400 *BadRequest
JSON404 *NotFound
JSON409 *Error
JSON500 *InternalError
}
func ParsePutZoneTransactionRecordResponse ¶
func ParsePutZoneTransactionRecordResponse(rsp *http.Response) (*PutZoneTransactionRecordResponse, error)
ParsePutZoneTransactionRecordResponse parses an HTTP response from a PutZoneTransactionRecordWithResponse call
func (PutZoneTransactionRecordResponse) Status ¶
func (r PutZoneTransactionRecordResponse) Status() string
Status returns HTTPResponse.Status
func (PutZoneTransactionRecordResponse) StatusCode ¶
func (r PutZoneTransactionRecordResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Record ¶
type Record struct {
// Data Record data in presentation format.
Data string `json:"data"`
// Owner Record owner name (FQDN).
Owner string `json:"owner"`
// Ttl Time-to-live in seconds.
Ttl *int `json:"ttl,omitempty"`
// Type Record type in uppercase presentation format.
Type string `json:"type"`
}
Record defines model for Record.
type RecordBatchRequest ¶
type RecordBatchRequest struct {
// Add Records to add or update.
Add *[]struct {
// Data Record data in presentation format.
Data string `json:"data"`
// Owner Record owner name (FQDN).
Owner string `json:"owner"`
// Ttl TTL in seconds. Omit to use zone default.
Ttl *int `json:"ttl,omitempty"`
// Type Record type in uppercase presentation format.
Type string `json:"type"`
} `json:"add,omitempty"`
// Delete Records to delete.
Delete *[]struct {
// Data Specific rdata value to remove. Omit to remove all records
// matching owner and type.
Data *string `json:"data,omitempty"`
// Owner Record owner name (FQDN).
Owner string `json:"owner"`
// Type Record type in uppercase presentation format.
Type string `json:"type"`
} `json:"delete,omitempty"`
}
RecordBatchRequest defines model for RecordBatchRequest.
type RecordBatchResponse ¶
type RecordBatchResponse struct {
// Added Number of records added/updated.
Added *int `json:"added,omitempty"`
// Deleted Number of records deleted.
Deleted *int `json:"deleted,omitempty"`
// Message Success message.
Message *string `json:"message,omitempty"`
}
RecordBatchResponse defines model for RecordBatchResponse.
type RecordResponse ¶
type RecordResponse struct {
// Data Record data in presentation format.
Data string `json:"data"`
// Message Success message.
Message *string `json:"message,omitempty"`
// Owner Record owner name (FQDN).
Owner string `json:"owner"`
// Ttl TTL in seconds.
Ttl *int `json:"ttl,omitempty"`
// Type Record type in uppercase presentation format.
Type string `json:"type"`
}
RecordResponse defines model for RecordResponse.
type RecordWrite ¶
type RecordWrite struct {
// Data Record data in presentation format.
Data string `json:"data"`
// Ttl TTL in seconds. Omit to use the zone default TTL.
Ttl *int `json:"ttl,omitempty"`
}
RecordWrite defines model for RecordWrite.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type SerialRequest ¶
type SerialRequest struct {
// Serial SOA serial update value.
// - A plain integer sets the serial directly (e.g. `"2024010101"`).
// - A value prefixed with `+` increments the current serial by that
// amount (e.g. `"+1"`).
Serial string `json:"serial"`
}
SerialRequest defines model for SerialRequest.
type SerialResponse ¶
type SerialResponse struct {
// Serial Current SOA serial number.
Serial int `json:"serial"`
}
SerialResponse defines model for SerialResponse.
type ServerStatus ¶
type ServerStatus struct {
Status *ServerStatusStatus `json:"status,omitempty"`
// Version Knot DNS version string.
Version *string `json:"version,omitempty"`
// Workers Number of worker threads.
Workers *int `json:"workers,omitempty"`
}
ServerStatus defines model for ServerStatus.
type ServerStatusStatus ¶
type ServerStatusStatus string
ServerStatusStatus defines model for ServerStatus.Status.
const (
Running ServerStatusStatus = "running"
)
Defines values for ServerStatusStatus.
type Stats ¶
Stats Nested map of `module → counter → value`. Both levels are dynamic and depend on which modules are loaded.
type ZoneDiff ¶
type ZoneDiff struct {
// Added Records added by the transaction.
Added *[]Record `json:"added,omitempty"`
// Removed Records removed by the transaction.
Removed *[]Record `json:"removed,omitempty"`
}
ZoneDiff defines model for ZoneDiff.
type ZoneList ¶ added in v0.1.1
type ZoneList = []ZoneStatus
ZoneList All zones currently loaded on the server.
type ZoneStatus ¶
type ZoneStatus struct {
// Frozen Whether automatic zone changes are suspended.
Frozen *bool `json:"frozen,omitempty"`
// NextEvent Name of the next scheduled internal event.
NextEvent *string `json:"nextEvent,omitempty"`
// Role Zone role on this server.
Role *ZoneStatusRole `json:"role,omitempty"`
// Serial Current SOA serial number.
Serial *int `json:"serial,omitempty"`
// Transaction Whether a write transaction is currently open.
Transaction *bool `json:"transaction,omitempty"`
// XfrFrozen Whether outgoing AXFR/IXFR is disabled.
XfrFrozen *bool `json:"xfrFrozen,omitempty"`
Zone *string `json:"zone,omitempty"`
}
ZoneStatus defines model for ZoneStatus.
type ZoneStatusRole ¶
type ZoneStatusRole string
ZoneStatusRole Zone role on this server.
const ( Master ZoneStatusRole = "master" SignedMaster ZoneStatusRole = "signed-master" SignedSlave ZoneStatusRole = "signed-slave" Slave ZoneStatusRole = "slave" )
Defines values for ZoneStatusRole.
type ZoneTransactionBeginRequest ¶
type ZoneTransactionBeginRequest struct {
// Benevolent When `true`, tolerate a pre-existing transaction from another
// client instead of returning a 409 conflict.
Benevolent *bool `json:"benevolent,omitempty"`
}
ZoneTransactionBeginRequest defines model for ZoneTransactionBeginRequest.