v30

package
v0.2.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package v30 provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.7.1 DO NOT EDIT.

Index

Constants

View Source
const (
	Basic_authScopes basicAuthContextKey = "basic_auth.Scopes"
)

Variables

This section is empty.

Functions

func NewAddMapEntryRequest

func NewAddMapEntryRequest(server string, parentName ParentName, params *AddMapEntryParams, body AddMapEntryJSONRequestBody) (*http.Request, error)

NewAddMapEntryRequest calls the generic AddMapEntry builder with application/json body

func NewAddMapEntryRequestWithBody

func NewAddMapEntryRequestWithBody(server string, parentName ParentName, params *AddMapEntryParams, contentType string, body io.Reader) (*http.Request, error)

NewAddMapEntryRequestWithBody generates requests for AddMapEntry with any type of body

func NewCreateStorageGeneralFileRequestWithBody

func NewCreateStorageGeneralFileRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateStorageGeneralFileRequestWithBody generates requests for CreateStorageGeneralFile with any type of body

func NewCreateStorageMapFileRequestWithBody

func NewCreateStorageMapFileRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateStorageMapFileRequestWithBody generates requests for CreateStorageMapFile with any type of body

func NewCreateStorageSSLCertificateRequestWithBody

func NewCreateStorageSSLCertificateRequestWithBody(server string, params *CreateStorageSSLCertificateParams, contentType string, body io.Reader) (*http.Request, error)

NewCreateStorageSSLCertificateRequestWithBody generates requests for CreateStorageSSLCertificate with any type of body

func NewDeleteRuntimeMapEntryRequest

func NewDeleteRuntimeMapEntryRequest(server string, parentName ParentName, id string, params *DeleteRuntimeMapEntryParams) (*http.Request, error)

NewDeleteRuntimeMapEntryRequest generates requests for DeleteRuntimeMapEntry

func NewDeleteStorageGeneralFileRequest

func NewDeleteStorageGeneralFileRequest(server string, name string) (*http.Request, error)

NewDeleteStorageGeneralFileRequest generates requests for DeleteStorageGeneralFile

func NewDeleteStorageMapRequest

func NewDeleteStorageMapRequest(server string, name string) (*http.Request, error)

NewDeleteStorageMapRequest generates requests for DeleteStorageMap

func NewDeleteStorageSSLCertificateRequest

func NewDeleteStorageSSLCertificateRequest(server string, name string, params *DeleteStorageSSLCertificateParams) (*http.Request, error)

NewDeleteStorageSSLCertificateRequest generates requests for DeleteStorageSSLCertificate

func NewGetAllStorageGeneralFilesRequest

func NewGetAllStorageGeneralFilesRequest(server string) (*http.Request, error)

NewGetAllStorageGeneralFilesRequest generates requests for GetAllStorageGeneralFiles

func NewGetAllStorageMapFilesRequest

func NewGetAllStorageMapFilesRequest(server string) (*http.Request, error)

NewGetAllStorageMapFilesRequest generates requests for GetAllStorageMapFiles

func NewGetAllStorageSSLCertificatesRequest

func NewGetAllStorageSSLCertificatesRequest(server string) (*http.Request, error)

NewGetAllStorageSSLCertificatesRequest generates requests for GetAllStorageSSLCertificates

func NewGetConfigurationVersionRequest

func NewGetConfigurationVersionRequest(server string, params *GetConfigurationVersionParams) (*http.Request, error)

NewGetConfigurationVersionRequest generates requests for GetConfigurationVersion

func NewGetHAProxyConfigurationRequest

func NewGetHAProxyConfigurationRequest(server string, params *GetHAProxyConfigurationParams) (*http.Request, error)

NewGetHAProxyConfigurationRequest generates requests for GetHAProxyConfiguration

func NewGetOneStorageGeneralFileRequest

func NewGetOneStorageGeneralFileRequest(server string, name string) (*http.Request, error)

NewGetOneStorageGeneralFileRequest generates requests for GetOneStorageGeneralFile

func NewGetOneStorageMapRequest

func NewGetOneStorageMapRequest(server string, name string) (*http.Request, error)

NewGetOneStorageMapRequest generates requests for GetOneStorageMap

func NewGetOneStorageSSLCertificateRequest

func NewGetOneStorageSSLCertificateRequest(server string, name string) (*http.Request, error)

NewGetOneStorageSSLCertificateRequest generates requests for GetOneStorageSSLCertificate

func NewGetReloadRequest

func NewGetReloadRequest(server string, id string) (*http.Request, error)

NewGetReloadRequest generates requests for GetReload

func NewPostHAProxyConfigurationRequestWithBody

func NewPostHAProxyConfigurationRequestWithBody(server string, params *PostHAProxyConfigurationParams, contentType string, body io.Reader) (*http.Request, error)

NewPostHAProxyConfigurationRequestWithBody generates requests for PostHAProxyConfiguration with any type of body

func NewPostHAProxyConfigurationRequestWithTextBody

func NewPostHAProxyConfigurationRequestWithTextBody(server string, params *PostHAProxyConfigurationParams, body PostHAProxyConfigurationTextRequestBody) (*http.Request, error)

NewPostHAProxyConfigurationRequestWithTextBody calls the generic PostHAProxyConfiguration builder with text/plain body

func NewReplaceRuntimeMapEntryRequest

func NewReplaceRuntimeMapEntryRequest(server string, parentName ParentName, id string, params *ReplaceRuntimeMapEntryParams, body ReplaceRuntimeMapEntryJSONRequestBody) (*http.Request, error)

NewReplaceRuntimeMapEntryRequest calls the generic ReplaceRuntimeMapEntry builder with application/json body

func NewReplaceRuntimeMapEntryRequestWithBody

func NewReplaceRuntimeMapEntryRequestWithBody(server string, parentName ParentName, id string, params *ReplaceRuntimeMapEntryParams, contentType string, body io.Reader) (*http.Request, error)

NewReplaceRuntimeMapEntryRequestWithBody generates requests for ReplaceRuntimeMapEntry with any type of body

func NewReplaceStorageGeneralFileRequestWithBody

func NewReplaceStorageGeneralFileRequestWithBody(server string, name string, params *ReplaceStorageGeneralFileParams, contentType string, body io.Reader) (*http.Request, error)

NewReplaceStorageGeneralFileRequestWithBody generates requests for ReplaceStorageGeneralFile with any type of body

func NewReplaceStorageMapFileRequestWithBody

func NewReplaceStorageMapFileRequestWithBody(server string, name string, params *ReplaceStorageMapFileParams, contentType string, body io.Reader) (*http.Request, error)

NewReplaceStorageMapFileRequestWithBody generates requests for ReplaceStorageMapFile with any type of body

func NewReplaceStorageMapFileRequestWithTextBody

func NewReplaceStorageMapFileRequestWithTextBody(server string, name string, params *ReplaceStorageMapFileParams, body ReplaceStorageMapFileTextRequestBody) (*http.Request, error)

NewReplaceStorageMapFileRequestWithTextBody calls the generic ReplaceStorageMapFile builder with text/plain body

func NewReplaceStorageSSLCertificateRequestWithBody

func NewReplaceStorageSSLCertificateRequestWithBody(server string, name string, params *ReplaceStorageSSLCertificateParams, contentType string, body io.Reader) (*http.Request, error)

NewReplaceStorageSSLCertificateRequestWithBody generates requests for ReplaceStorageSSLCertificate with any type of body

func NewReplaceStorageSSLCertificateRequestWithTextBody

func NewReplaceStorageSSLCertificateRequestWithTextBody(server string, name string, params *ReplaceStorageSSLCertificateParams, body ReplaceStorageSSLCertificateTextRequestBody) (*http.Request, error)

NewReplaceStorageSSLCertificateRequestWithTextBody calls the generic ReplaceStorageSSLCertificate builder with text/plain body

func NewShowRuntimeMapRequest

func NewShowRuntimeMapRequest(server string, parentName ParentName) (*http.Request, error)

NewShowRuntimeMapRequest generates requests for ShowRuntimeMap

Types

type AddMapEntryJSONRequestBody

type AddMapEntryJSONRequestBody = MapEntry

AddMapEntryJSONRequestBody defines body for AddMapEntry for application/json ContentType.

type AddMapEntryParams

type AddMapEntryParams struct {
	// ForceSync If true, immediately syncs changes to disk
	ForceSync *bool `form:"force_sync,omitempty" json:"force_sync,omitempty"`
}

AddMapEntryParams defines parameters for AddMapEntry.

type AlreadyExists

type AlreadyExists = Error

AlreadyExists API Error

type BadRequest

type BadRequest = Error

BadRequest API Error

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) AddMapEntry

func (c *Client) AddMapEntry(ctx context.Context, parentName ParentName, params *AddMapEntryParams, body AddMapEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AddMapEntryWithBody

func (c *Client) AddMapEntryWithBody(ctx context.Context, parentName ParentName, params *AddMapEntryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateStorageGeneralFileWithBody

func (c *Client) CreateStorageGeneralFileWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateStorageMapFileWithBody

func (c *Client) CreateStorageMapFileWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateStorageSSLCertificateWithBody

func (c *Client) CreateStorageSSLCertificateWithBody(ctx context.Context, params *CreateStorageSSLCertificateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteRuntimeMapEntry

func (c *Client) DeleteRuntimeMapEntry(ctx context.Context, parentName ParentName, id string, params *DeleteRuntimeMapEntryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteStorageGeneralFile

func (c *Client) DeleteStorageGeneralFile(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteStorageMap

func (c *Client) DeleteStorageMap(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteStorageSSLCertificate

func (c *Client) DeleteStorageSSLCertificate(ctx context.Context, name string, params *DeleteStorageSSLCertificateParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAllStorageGeneralFiles

func (c *Client) GetAllStorageGeneralFiles(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAllStorageMapFiles

func (c *Client) GetAllStorageMapFiles(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAllStorageSSLCertificates

func (c *Client) GetAllStorageSSLCertificates(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetConfigurationVersion

func (c *Client) GetConfigurationVersion(ctx context.Context, params *GetConfigurationVersionParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetHAProxyConfiguration

func (c *Client) GetHAProxyConfiguration(ctx context.Context, params *GetHAProxyConfigurationParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetOneStorageGeneralFile

func (c *Client) GetOneStorageGeneralFile(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetOneStorageMap

func (c *Client) GetOneStorageMap(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetOneStorageSSLCertificate

func (c *Client) GetOneStorageSSLCertificate(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetReload

func (c *Client) GetReload(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostHAProxyConfigurationWithBody

func (c *Client) PostHAProxyConfigurationWithBody(ctx context.Context, params *PostHAProxyConfigurationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostHAProxyConfigurationWithTextBody

func (c *Client) PostHAProxyConfigurationWithTextBody(ctx context.Context, params *PostHAProxyConfigurationParams, body PostHAProxyConfigurationTextRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReplaceRuntimeMapEntry

func (c *Client) ReplaceRuntimeMapEntry(ctx context.Context, parentName ParentName, id string, params *ReplaceRuntimeMapEntryParams, body ReplaceRuntimeMapEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReplaceRuntimeMapEntryWithBody

func (c *Client) ReplaceRuntimeMapEntryWithBody(ctx context.Context, parentName ParentName, id string, params *ReplaceRuntimeMapEntryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReplaceStorageGeneralFileWithBody

func (c *Client) ReplaceStorageGeneralFileWithBody(ctx context.Context, name string, params *ReplaceStorageGeneralFileParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReplaceStorageMapFileWithBody

func (c *Client) ReplaceStorageMapFileWithBody(ctx context.Context, name string, params *ReplaceStorageMapFileParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReplaceStorageMapFileWithTextBody

func (c *Client) ReplaceStorageMapFileWithTextBody(ctx context.Context, name string, params *ReplaceStorageMapFileParams, body ReplaceStorageMapFileTextRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReplaceStorageSSLCertificateWithBody

func (c *Client) ReplaceStorageSSLCertificateWithBody(ctx context.Context, name string, params *ReplaceStorageSSLCertificateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReplaceStorageSSLCertificateWithTextBody

func (c *Client) ReplaceStorageSSLCertificateWithTextBody(ctx context.Context, name string, params *ReplaceStorageSSLCertificateParams, body ReplaceStorageSSLCertificateTextRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ShowRuntimeMap

func (c *Client) ShowRuntimeMap(ctx context.Context, parentName ParentName, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// GetHAProxyConfiguration request
	GetHAProxyConfiguration(ctx context.Context, params *GetHAProxyConfigurationParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostHAProxyConfigurationWithBody request with any body
	PostHAProxyConfigurationWithBody(ctx context.Context, params *PostHAProxyConfigurationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostHAProxyConfigurationWithTextBody(ctx context.Context, params *PostHAProxyConfigurationParams, body PostHAProxyConfigurationTextRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetConfigurationVersion request
	GetConfigurationVersion(ctx context.Context, params *GetConfigurationVersionParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetReload request
	GetReload(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ShowRuntimeMap request
	ShowRuntimeMap(ctx context.Context, parentName ParentName, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AddMapEntryWithBody request with any body
	AddMapEntryWithBody(ctx context.Context, parentName ParentName, params *AddMapEntryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	AddMapEntry(ctx context.Context, parentName ParentName, params *AddMapEntryParams, body AddMapEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteRuntimeMapEntry request
	DeleteRuntimeMapEntry(ctx context.Context, parentName ParentName, id string, params *DeleteRuntimeMapEntryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReplaceRuntimeMapEntryWithBody request with any body
	ReplaceRuntimeMapEntryWithBody(ctx context.Context, parentName ParentName, id string, params *ReplaceRuntimeMapEntryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ReplaceRuntimeMapEntry(ctx context.Context, parentName ParentName, id string, params *ReplaceRuntimeMapEntryParams, body ReplaceRuntimeMapEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAllStorageGeneralFiles request
	GetAllStorageGeneralFiles(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateStorageGeneralFileWithBody request with any body
	CreateStorageGeneralFileWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteStorageGeneralFile request
	DeleteStorageGeneralFile(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetOneStorageGeneralFile request
	GetOneStorageGeneralFile(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReplaceStorageGeneralFileWithBody request with any body
	ReplaceStorageGeneralFileWithBody(ctx context.Context, name string, params *ReplaceStorageGeneralFileParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAllStorageMapFiles request
	GetAllStorageMapFiles(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateStorageMapFileWithBody request with any body
	CreateStorageMapFileWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteStorageMap request
	DeleteStorageMap(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetOneStorageMap request
	GetOneStorageMap(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReplaceStorageMapFileWithBody request with any body
	ReplaceStorageMapFileWithBody(ctx context.Context, name string, params *ReplaceStorageMapFileParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ReplaceStorageMapFileWithTextBody(ctx context.Context, name string, params *ReplaceStorageMapFileParams, body ReplaceStorageMapFileTextRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAllStorageSSLCertificates request
	GetAllStorageSSLCertificates(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateStorageSSLCertificateWithBody request with any body
	CreateStorageSSLCertificateWithBody(ctx context.Context, params *CreateStorageSSLCertificateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteStorageSSLCertificate request
	DeleteStorageSSLCertificate(ctx context.Context, name string, params *DeleteStorageSSLCertificateParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetOneStorageSSLCertificate request
	GetOneStorageSSLCertificate(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReplaceStorageSSLCertificateWithBody request with any body
	ReplaceStorageSSLCertificateWithBody(ctx context.Context, name string, params *ReplaceStorageSSLCertificateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ReplaceStorageSSLCertificateWithTextBody(ctx context.Context, name string, params *ReplaceStorageSSLCertificateParams, body ReplaceStorageSSLCertificateTextRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

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 CreateStorageGeneralFileMultipartBody

type CreateStorageGeneralFileMultipartBody struct {
	// FileUpload General use file content
	FileUpload *openapi_types.File `json:"file_upload,omitempty"`
}

CreateStorageGeneralFileMultipartBody defines parameters for CreateStorageGeneralFile.

type CreateStorageGeneralFileMultipartRequestBody

type CreateStorageGeneralFileMultipartRequestBody CreateStorageGeneralFileMultipartBody

CreateStorageGeneralFileMultipartRequestBody defines body for CreateStorageGeneralFile for multipart/form-data ContentType.

type CreateStorageMapFileMultipartBody

type CreateStorageMapFileMultipartBody struct {
	// FileUpload The map file contents
	FileUpload *openapi_types.File `json:"file_upload,omitempty"`
}

CreateStorageMapFileMultipartBody defines parameters for CreateStorageMapFile.

type CreateStorageMapFileMultipartRequestBody

type CreateStorageMapFileMultipartRequestBody CreateStorageMapFileMultipartBody

CreateStorageMapFileMultipartRequestBody defines body for CreateStorageMapFile for multipart/form-data ContentType.

type CreateStorageSSLCertificateMultipartBody

type CreateStorageSSLCertificateMultipartBody struct {
	// FileUpload The SSL certificate to upload
	FileUpload *openapi_types.File `json:"file_upload,omitempty"`
}

CreateStorageSSLCertificateMultipartBody defines parameters for CreateStorageSSLCertificate.

type CreateStorageSSLCertificateMultipartRequestBody

type CreateStorageSSLCertificateMultipartRequestBody CreateStorageSSLCertificateMultipartBody

CreateStorageSSLCertificateMultipartRequestBody defines body for CreateStorageSSLCertificate for multipart/form-data ContentType.

type CreateStorageSSLCertificateParams

type CreateStorageSSLCertificateParams struct {
	// SkipReload If set, no reload will be initiated after update
	SkipReload *SkipReload `form:"skip_reload,omitempty" json:"skip_reload,omitempty"`

	// ForceReload If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration.
	ForceReload *ForceReload `form:"force_reload,omitempty" json:"force_reload,omitempty"`
}

CreateStorageSSLCertificateParams defines parameters for CreateStorageSSLCertificate.

type DefaultError

type DefaultError = Error

DefaultError API Error

type DeleteRuntimeMapEntryParams

type DeleteRuntimeMapEntryParams struct {
	// ForceSync If true, immediately syncs changes to disk
	ForceSync *bool `form:"force_sync,omitempty" json:"force_sync,omitempty"`
}

DeleteRuntimeMapEntryParams defines parameters for DeleteRuntimeMapEntry.

type DeleteStorageSSLCertificateParams

type DeleteStorageSSLCertificateParams struct {
	// SkipReload If set, no reload will be initiated after update
	SkipReload *SkipReload `form:"skip_reload,omitempty" json:"skip_reload,omitempty"`

	// ForceReload If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration.
	ForceReload *ForceReload `form:"force_reload,omitempty" json:"force_reload,omitempty"`
}

DeleteStorageSSLCertificateParams defines parameters for DeleteStorageSSLCertificate.

type Error

type Error struct {
	Code                 *int              `json:"code"`
	Message              *string           `json:"message"`
	AdditionalProperties map[string]string `json:"-"`
}

Error API Error

func (Error) Get

func (a Error) Get(fieldName string) (value string, found bool)

Getter for additional properties for Error. Returns the specified element and whether it was found

func (Error) MarshalJSON

func (a Error) MarshalJSON() ([]byte, error)

Override default JSON handling for Error to handle AdditionalProperties

func (*Error) Set

func (a *Error) Set(fieldName string, value string)

Setter for additional properties for Error

func (*Error) UnmarshalJSON

func (a *Error) UnmarshalJSON(b []byte) error

Override default JSON handling for Error to handle AdditionalProperties

type ForceReload

type ForceReload = bool

ForceReload defines model for force_reload.

type GeneralFile

type GeneralFile struct {
	Description *string `json:"description,omitempty"`
	File        *string `json:"file,omitempty"`
	Id          *string `json:"id,omitempty"`

	// Size File size in bytes.
	Size        *int    `json:"size,omitempty"`
	StorageName *string `json:"storage_name,omitempty"`
}

GeneralFile General use file

type GeneralFiles

type GeneralFiles = []GeneralFile

GeneralFiles Array of general use files

type GetConfigurationVersionParams

type GetConfigurationVersionParams struct {
	// TransactionId ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	TransactionId *TransactionId `form:"transaction_id,omitempty" json:"transaction_id,omitempty"`
}

GetConfigurationVersionParams defines parameters for GetConfigurationVersion.

type GetHAProxyConfigurationParams

type GetHAProxyConfigurationParams struct {
	// TransactionId ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	TransactionId *TransactionId `form:"transaction_id,omitempty" json:"transaction_id,omitempty"`

	// Version Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
	Version *Version `form:"version,omitempty" json:"version,omitempty"`
}

GetHAProxyConfigurationParams defines parameters for GetHAProxyConfiguration.

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type Map

type Map struct {
	Description *string `json:"description,omitempty"`
	File        *string `json:"file,omitempty"`
	Id          *string `json:"id,omitempty"`

	// Size File size in bytes.
	Size        *int    `json:"size,omitempty"`
	StorageName *string `json:"storage_name,omitempty"`
}

Map Map File

type MapEntries

type MapEntries = []MapEntry

MapEntries Entries of one runtime map

type MapEntry

type MapEntry struct {
	Id    *string `json:"id,omitempty"`
	Key   *string `json:"key,omitempty"`
	Value *string `json:"value,omitempty"`
}

MapEntry One Map Entry

type Maps

type Maps = []Map

Maps Array of runtime map files

type NotFound

type NotFound = Error

NotFound API Error

type ParentName

type ParentName = string

ParentName defines model for parent_name.

type PostHAProxyConfigurationParams

type PostHAProxyConfigurationParams struct {
	// SkipVersion If set, no version check will be done and the pushed config will be enforced
	SkipVersion *bool `form:"skip_version,omitempty" json:"skip_version,omitempty"`

	// SkipReload If set, no reload will be initiated and runtime actions from X-Runtime-Actions will be applied
	SkipReload *bool `form:"skip_reload,omitempty" json:"skip_reload,omitempty"`

	// OnlyValidate If set, only validates configuration, without applying it
	OnlyValidate *bool `form:"only_validate,omitempty" json:"only_validate,omitempty"`

	// Version Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
	Version *Version `form:"version,omitempty" json:"version,omitempty"`

	// ForceReload If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration.
	ForceReload *ForceReload `form:"force_reload,omitempty" json:"force_reload,omitempty"`

	// XRuntimeActions List of Runtime API commands with parameters separated by ';'
	XRuntimeActions *string `json:"X-Runtime-Actions,omitempty"`
}

PostHAProxyConfigurationParams defines parameters for PostHAProxyConfiguration.

type PostHAProxyConfigurationTextBody

type PostHAProxyConfigurationTextBody = string

PostHAProxyConfigurationTextBody defines parameters for PostHAProxyConfiguration.

type PostHAProxyConfigurationTextRequestBody

type PostHAProxyConfigurationTextRequestBody = PostHAProxyConfigurationTextBody

PostHAProxyConfigurationTextRequestBody defines body for PostHAProxyConfiguration for text/plain ContentType.

type Reload

type Reload struct {
	Id              *string       `json:"id,omitempty"`
	ReloadTimestamp *int          `json:"reload_timestamp,omitempty"`
	Response        *string       `json:"response,omitempty"`
	Status          *ReloadStatus `json:"status,omitempty"`
}

Reload HAProxy reload

type ReloadStatus

type ReloadStatus string

ReloadStatus defines model for Reload.Status.

const (
	ReloadStatusFailed     ReloadStatus = "failed"
	ReloadStatusInProgress ReloadStatus = "in_progress"
	ReloadStatusSucceeded  ReloadStatus = "succeeded"
)

Defines values for ReloadStatus.

func (ReloadStatus) Valid

func (e ReloadStatus) Valid() bool

Valid indicates whether the value is a known member of the ReloadStatus enum.

type ReplaceRuntimeMapEntryJSONBody

type ReplaceRuntimeMapEntryJSONBody struct {
	// Value Map value
	Value string `json:"value"`
}

ReplaceRuntimeMapEntryJSONBody defines parameters for ReplaceRuntimeMapEntry.

type ReplaceRuntimeMapEntryJSONRequestBody

type ReplaceRuntimeMapEntryJSONRequestBody ReplaceRuntimeMapEntryJSONBody

ReplaceRuntimeMapEntryJSONRequestBody defines body for ReplaceRuntimeMapEntry for application/json ContentType.

type ReplaceRuntimeMapEntryParams

type ReplaceRuntimeMapEntryParams struct {
	// ForceSync If true, immediately syncs changes to disk
	ForceSync *bool `form:"force_sync,omitempty" json:"force_sync,omitempty"`
}

ReplaceRuntimeMapEntryParams defines parameters for ReplaceRuntimeMapEntry.

type ReplaceStorageGeneralFileMultipartBody

type ReplaceStorageGeneralFileMultipartBody struct {
	// FileUpload General use file content
	FileUpload *openapi_types.File `json:"file_upload,omitempty"`
}

ReplaceStorageGeneralFileMultipartBody defines parameters for ReplaceStorageGeneralFile.

type ReplaceStorageGeneralFileMultipartRequestBody

type ReplaceStorageGeneralFileMultipartRequestBody ReplaceStorageGeneralFileMultipartBody

ReplaceStorageGeneralFileMultipartRequestBody defines body for ReplaceStorageGeneralFile for multipart/form-data ContentType.

type ReplaceStorageGeneralFileParams

type ReplaceStorageGeneralFileParams struct {
	// SkipReload If set, no reload will be initiated after update
	SkipReload *SkipReload `form:"skip_reload,omitempty" json:"skip_reload,omitempty"`

	// ForceReload If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration.
	ForceReload *ForceReload `form:"force_reload,omitempty" json:"force_reload,omitempty"`
}

ReplaceStorageGeneralFileParams defines parameters for ReplaceStorageGeneralFile.

type ReplaceStorageMapFileParams

type ReplaceStorageMapFileParams struct {
	// SkipReload If set, no reload will be initiated after update
	SkipReload *SkipReload `form:"skip_reload,omitempty" json:"skip_reload,omitempty"`

	// ForceReload If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration.
	ForceReload *ForceReload `form:"force_reload,omitempty" json:"force_reload,omitempty"`
}

ReplaceStorageMapFileParams defines parameters for ReplaceStorageMapFile.

type ReplaceStorageMapFileTextBody

type ReplaceStorageMapFileTextBody = string

ReplaceStorageMapFileTextBody defines parameters for ReplaceStorageMapFile.

type ReplaceStorageMapFileTextRequestBody

type ReplaceStorageMapFileTextRequestBody = ReplaceStorageMapFileTextBody

ReplaceStorageMapFileTextRequestBody defines body for ReplaceStorageMapFile for text/plain ContentType.

type ReplaceStorageSSLCertificateParams

type ReplaceStorageSSLCertificateParams struct {
	// SkipReload If set, no reload will be initiated after update
	SkipReload *SkipReload `form:"skip_reload,omitempty" json:"skip_reload,omitempty"`

	// ForceReload If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration.
	ForceReload *ForceReload `form:"force_reload,omitempty" json:"force_reload,omitempty"`
}

ReplaceStorageSSLCertificateParams defines parameters for ReplaceStorageSSLCertificate.

type ReplaceStorageSSLCertificateTextBody

type ReplaceStorageSSLCertificateTextBody = string

ReplaceStorageSSLCertificateTextBody defines parameters for ReplaceStorageSSLCertificate.

type ReplaceStorageSSLCertificateTextRequestBody

type ReplaceStorageSSLCertificateTextRequestBody = ReplaceStorageSSLCertificateTextBody

ReplaceStorageSSLCertificateTextRequestBody defines body for ReplaceStorageSSLCertificate for text/plain ContentType.

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type SkipReload

type SkipReload = bool

SkipReload defines model for skip_reload.

type SslCertificate

type SslCertificate struct {
	Algorithm         *string    `json:"algorithm,omitempty"`
	AuthorityKeyId    *string    `json:"authority_key_id,omitempty"`
	Description       *string    `json:"description,omitempty"`
	Domains           *string    `json:"domains,omitempty"`
	File              *string    `json:"file,omitempty"`
	IpAddresses       *string    `json:"ip_addresses,omitempty"`
	Issuers           *string    `json:"issuers,omitempty"`
	NotAfter          *time.Time `json:"not_after,omitempty"`
	NotBefore         *time.Time `json:"not_before,omitempty"`
	Serial            *string    `json:"serial,omitempty"`
	Sha1FingerPrint   *string    `json:"sha1_finger_print,omitempty"`
	Sha256FingerPrint *string    `json:"sha256_finger_print,omitempty"`

	// Size File size in bytes.
	Size                    *int    `json:"size,omitempty"`
	StorageName             *string `json:"storage_name,omitempty"`
	Subject                 *string `json:"subject,omitempty"`
	SubjectAlternativeNames *string `json:"subject_alternative_names,omitempty"`
	SubjectKeyId            *string `json:"subject_key_id,omitempty"`
}

SslCertificate A file containing one or more SSL/TLS certificates and keys

type SslCertificates

type SslCertificates = []SslCertificate

SslCertificates Array of ssl certificate files

type TransactionId

type TransactionId = string

TransactionId defines model for transaction_id.

type Version

type Version = int

Version defines model for version.

Jump to

Keyboard shortcuts

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