syncclient

package
v0.3.12 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package syncclient 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.

Index

Constants

View Source
const (
	BearerAuthScopes = "bearerAuth.Scopes"
)

Variables

This section is empty.

Functions

func NewDeleteOpenfeatureV0ManifestFlagsKeyRequest

func NewDeleteOpenfeatureV0ManifestFlagsKeyRequest(server string, key string) (*http.Request, error)

NewDeleteOpenfeatureV0ManifestFlagsKeyRequest generates requests for DeleteOpenfeatureV0ManifestFlagsKey

func NewGetOpenfeatureV0ManifestRequest

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

NewGetOpenfeatureV0ManifestRequest generates requests for GetOpenfeatureV0Manifest

func NewPostOpenfeatureV0ManifestFlagsRequest

func NewPostOpenfeatureV0ManifestFlagsRequest(server string, body PostOpenfeatureV0ManifestFlagsJSONRequestBody) (*http.Request, error)

NewPostOpenfeatureV0ManifestFlagsRequest calls the generic PostOpenfeatureV0ManifestFlags builder with application/json body

func NewPostOpenfeatureV0ManifestFlagsRequestWithBody

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

NewPostOpenfeatureV0ManifestFlagsRequestWithBody generates requests for PostOpenfeatureV0ManifestFlags with any type of body

func NewPutOpenfeatureV0ManifestFlagsKeyRequest

func NewPutOpenfeatureV0ManifestFlagsKeyRequest(server string, key string, body PutOpenfeatureV0ManifestFlagsKeyJSONRequestBody) (*http.Request, error)

NewPutOpenfeatureV0ManifestFlagsKeyRequest calls the generic PutOpenfeatureV0ManifestFlagsKey builder with application/json body

func NewPutOpenfeatureV0ManifestFlagsKeyRequestWithBody

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

NewPutOpenfeatureV0ManifestFlagsKeyRequestWithBody generates requests for PutOpenfeatureV0ManifestFlagsKey with any type of body

Types

type ArchiveResponse

type ArchiveResponse struct {
	// ArchivedAt Timestamp recording when the flag was archived.
	ArchivedAt *time.Time `json:"archivedAt"`
	Message    string     `json:"message"`
}

ArchiveResponse defines model for ArchiveResponse.

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

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

func (*Client) GetOpenfeatureV0Manifest

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

func (*Client) PostOpenfeatureV0ManifestFlags

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

func (*Client) PostOpenfeatureV0ManifestFlagsWithBody

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

func (*Client) PutOpenfeatureV0ManifestFlagsKey

func (c *Client) PutOpenfeatureV0ManifestFlagsKey(ctx context.Context, key string, body PutOpenfeatureV0ManifestFlagsKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PutOpenfeatureV0ManifestFlagsKeyWithBody

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

type ClientInterface

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

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

	PostOpenfeatureV0ManifestFlags(ctx context.Context, body PostOpenfeatureV0ManifestFlagsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

	PutOpenfeatureV0ManifestFlagsKey(ctx context.Context, key string, body PutOpenfeatureV0ManifestFlagsKeyJSONRequestBody, 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 WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

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

func (c *ClientWithResponses) DeleteOpenfeatureV0ManifestFlagsKeyWithResponse(ctx context.Context, key string, reqEditors ...RequestEditorFn) (*DeleteOpenfeatureV0ManifestFlagsKeyResponse, error)

DeleteOpenfeatureV0ManifestFlagsKeyWithResponse request returning *DeleteOpenfeatureV0ManifestFlagsKeyResponse

func (*ClientWithResponses) GetOpenfeatureV0ManifestWithResponse

func (c *ClientWithResponses) GetOpenfeatureV0ManifestWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOpenfeatureV0ManifestResponse, error)

GetOpenfeatureV0ManifestWithResponse request returning *GetOpenfeatureV0ManifestResponse

func (*ClientWithResponses) PostOpenfeatureV0ManifestFlagsWithBodyWithResponse

func (c *ClientWithResponses) PostOpenfeatureV0ManifestFlagsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOpenfeatureV0ManifestFlagsResponse, error)

PostOpenfeatureV0ManifestFlagsWithBodyWithResponse request with arbitrary body returning *PostOpenfeatureV0ManifestFlagsResponse

func (*ClientWithResponses) PostOpenfeatureV0ManifestFlagsWithResponse

func (c *ClientWithResponses) PostOpenfeatureV0ManifestFlagsWithResponse(ctx context.Context, body PostOpenfeatureV0ManifestFlagsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOpenfeatureV0ManifestFlagsResponse, error)

func (*ClientWithResponses) PutOpenfeatureV0ManifestFlagsKeyWithBodyWithResponse

func (c *ClientWithResponses) PutOpenfeatureV0ManifestFlagsKeyWithBodyWithResponse(ctx context.Context, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutOpenfeatureV0ManifestFlagsKeyResponse, error)

PutOpenfeatureV0ManifestFlagsKeyWithBodyWithResponse request with arbitrary body returning *PutOpenfeatureV0ManifestFlagsKeyResponse

func (*ClientWithResponses) PutOpenfeatureV0ManifestFlagsKeyWithResponse

func (c *ClientWithResponses) PutOpenfeatureV0ManifestFlagsKeyWithResponse(ctx context.Context, key string, body PutOpenfeatureV0ManifestFlagsKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOpenfeatureV0ManifestFlagsKeyResponse, error)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// GetOpenfeatureV0ManifestWithResponse request
	GetOpenfeatureV0ManifestWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOpenfeatureV0ManifestResponse, error)

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

	PostOpenfeatureV0ManifestFlagsWithResponse(ctx context.Context, body PostOpenfeatureV0ManifestFlagsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOpenfeatureV0ManifestFlagsResponse, error)

	// DeleteOpenfeatureV0ManifestFlagsKeyWithResponse request
	DeleteOpenfeatureV0ManifestFlagsKeyWithResponse(ctx context.Context, key string, reqEditors ...RequestEditorFn) (*DeleteOpenfeatureV0ManifestFlagsKeyResponse, error)

	// PutOpenfeatureV0ManifestFlagsKeyWithBodyWithResponse request with any body
	PutOpenfeatureV0ManifestFlagsKeyWithBodyWithResponse(ctx context.Context, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutOpenfeatureV0ManifestFlagsKeyResponse, error)

	PutOpenfeatureV0ManifestFlagsKeyWithResponse(ctx context.Context, key string, body PutOpenfeatureV0ManifestFlagsKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOpenfeatureV0ManifestFlagsKeyResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type DeleteOpenfeatureV0ManifestFlagsKeyResponse

type DeleteOpenfeatureV0ManifestFlagsKeyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ArchiveResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
}

func ParseDeleteOpenfeatureV0ManifestFlagsKeyResponse

func ParseDeleteOpenfeatureV0ManifestFlagsKeyResponse(rsp *http.Response) (*DeleteOpenfeatureV0ManifestFlagsKeyResponse, error)

ParseDeleteOpenfeatureV0ManifestFlagsKeyResponse parses an HTTP response from a DeleteOpenfeatureV0ManifestFlagsKeyWithResponse call

func (DeleteOpenfeatureV0ManifestFlagsKeyResponse) Status

Status returns HTTPResponse.Status

func (DeleteOpenfeatureV0ManifestFlagsKeyResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ErrorDetail

type ErrorDetail struct {
	// Code Short machine-readable code (matches Zod issue codes).
	Code *string `json:"code,omitempty"`

	// Field Field path related to the error.
	Field *string `json:"field,omitempty"`

	// Message Human-friendly error message.
	Message *string `json:"message,omitempty"`
}

ErrorDetail defines model for ErrorDetail.

type ErrorResponse

type ErrorResponse struct {
	Error struct {
		Details *[]ErrorDetail `json:"details,omitempty"`
		Message string         `json:"message"`
		Status  int            `json:"status"`
	} `json:"error"`
}

ErrorResponse defines model for ErrorResponse.

type FlagDefaultValue

type FlagDefaultValue struct {
	// contains filtered or unexported fields
}

FlagDefaultValue Default value for a flag (can be boolean, string, integer, or object)

func (FlagDefaultValue) AsFlagDefaultValue0

func (t FlagDefaultValue) AsFlagDefaultValue0() (FlagDefaultValue0, error)

AsFlagDefaultValue0 returns the union data inside the FlagDefaultValue as a FlagDefaultValue0

func (FlagDefaultValue) AsFlagDefaultValue1

func (t FlagDefaultValue) AsFlagDefaultValue1() (FlagDefaultValue1, error)

AsFlagDefaultValue1 returns the union data inside the FlagDefaultValue as a FlagDefaultValue1

func (FlagDefaultValue) AsFlagDefaultValue2

func (t FlagDefaultValue) AsFlagDefaultValue2() (FlagDefaultValue2, error)

AsFlagDefaultValue2 returns the union data inside the FlagDefaultValue as a FlagDefaultValue2

func (FlagDefaultValue) AsFlagDefaultValue3

func (t FlagDefaultValue) AsFlagDefaultValue3() (FlagDefaultValue3, error)

AsFlagDefaultValue3 returns the union data inside the FlagDefaultValue as a FlagDefaultValue3

func (*FlagDefaultValue) FromFlagDefaultValue0

func (t *FlagDefaultValue) FromFlagDefaultValue0(v FlagDefaultValue0) error

FromFlagDefaultValue0 overwrites any union data inside the FlagDefaultValue as the provided FlagDefaultValue0

func (*FlagDefaultValue) FromFlagDefaultValue1

func (t *FlagDefaultValue) FromFlagDefaultValue1(v FlagDefaultValue1) error

FromFlagDefaultValue1 overwrites any union data inside the FlagDefaultValue as the provided FlagDefaultValue1

func (*FlagDefaultValue) FromFlagDefaultValue2

func (t *FlagDefaultValue) FromFlagDefaultValue2(v FlagDefaultValue2) error

FromFlagDefaultValue2 overwrites any union data inside the FlagDefaultValue as the provided FlagDefaultValue2

func (*FlagDefaultValue) FromFlagDefaultValue3

func (t *FlagDefaultValue) FromFlagDefaultValue3(v FlagDefaultValue3) error

FromFlagDefaultValue3 overwrites any union data inside the FlagDefaultValue as the provided FlagDefaultValue3

func (FlagDefaultValue) MarshalJSON

func (t FlagDefaultValue) MarshalJSON() ([]byte, error)

func (*FlagDefaultValue) MergeFlagDefaultValue0

func (t *FlagDefaultValue) MergeFlagDefaultValue0(v FlagDefaultValue0) error

MergeFlagDefaultValue0 performs a merge with any union data inside the FlagDefaultValue, using the provided FlagDefaultValue0

func (*FlagDefaultValue) MergeFlagDefaultValue1

func (t *FlagDefaultValue) MergeFlagDefaultValue1(v FlagDefaultValue1) error

MergeFlagDefaultValue1 performs a merge with any union data inside the FlagDefaultValue, using the provided FlagDefaultValue1

func (*FlagDefaultValue) MergeFlagDefaultValue2

func (t *FlagDefaultValue) MergeFlagDefaultValue2(v FlagDefaultValue2) error

MergeFlagDefaultValue2 performs a merge with any union data inside the FlagDefaultValue, using the provided FlagDefaultValue2

func (*FlagDefaultValue) MergeFlagDefaultValue3

func (t *FlagDefaultValue) MergeFlagDefaultValue3(v FlagDefaultValue3) error

MergeFlagDefaultValue3 performs a merge with any union data inside the FlagDefaultValue, using the provided FlagDefaultValue3

func (*FlagDefaultValue) UnmarshalJSON

func (t *FlagDefaultValue) UnmarshalJSON(b []byte) error

type FlagDefaultValue0

type FlagDefaultValue0 = bool

FlagDefaultValue0 defines model for .

type FlagDefaultValue1

type FlagDefaultValue1 = string

FlagDefaultValue1 defines model for .

type FlagDefaultValue2

type FlagDefaultValue2 = int

FlagDefaultValue2 defines model for .

type FlagDefaultValue3

type FlagDefaultValue3 = map[string]interface{}

FlagDefaultValue3 defines model for .

type GetOpenfeatureV0ManifestResponse

type GetOpenfeatureV0ManifestResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ManifestEnvelope
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseGetOpenfeatureV0ManifestResponse

func ParseGetOpenfeatureV0ManifestResponse(rsp *http.Response) (*GetOpenfeatureV0ManifestResponse, error)

ParseGetOpenfeatureV0ManifestResponse parses an HTTP response from a GetOpenfeatureV0ManifestWithResponse call

func (GetOpenfeatureV0ManifestResponse) Status

Status returns HTTPResponse.Status

func (GetOpenfeatureV0ManifestResponse) StatusCode

func (r GetOpenfeatureV0ManifestResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HttpRequestDoer

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

Doer performs HTTP requests.

The standard http.Client implements this interface.

type ManifestEnvelope

type ManifestEnvelope struct {
	Flags []ManifestFlag `json:"flags"`
}

ManifestEnvelope defines model for ManifestEnvelope.

type ManifestFlag

type ManifestFlag struct {
	// DefaultValue Default value for a flag (can be boolean, string, integer, or object)
	DefaultValue FlagDefaultValue `json:"defaultValue"`

	// Description Optional flag description.
	Description *string `json:"description"`

	// Key Unique flag key within the flag set.
	Key string `json:"key"`

	// Name Human-friendly flag name. Defaults to the key when omitted.
	Name *string `json:"name,omitempty"`

	// Type Flag data type.
	Type ManifestFlagType `json:"type"`
}

ManifestFlag defines model for ManifestFlag.

type ManifestFlagResponse

type ManifestFlagResponse struct {
	Flag ManifestFlag `json:"flag"`

	// UpdatedAt ISO timestamp reflecting the last update to the flag record. Clients can use this to
	// detect changes between manifest fetches or to implement optimistic concurrency checks.
	UpdatedAt time.Time `json:"updatedAt"`
}

ManifestFlagResponse defines model for ManifestFlagResponse.

type ManifestFlagType

type ManifestFlagType string

ManifestFlagType Flag data type.

const (
	ManifestFlagTypeBoolean ManifestFlagType = "boolean"
	ManifestFlagTypeInteger ManifestFlagType = "integer"
	ManifestFlagTypeObject  ManifestFlagType = "object"
	ManifestFlagTypeString  ManifestFlagType = "string"
)

Defines values for ManifestFlagType.

type PostOpenfeatureV0ManifestFlagsJSONBody

type PostOpenfeatureV0ManifestFlagsJSONBody struct {
	// DefaultValue Default value for a flag (can be boolean, string, integer, or object)
	DefaultValue FlagDefaultValue `json:"defaultValue"`
	Description  *string          `json:"description"`
	Key          string           `json:"key"`

	// Name Optional display name. Defaults to the key.
	Name *string                                    `json:"name,omitempty"`
	Type PostOpenfeatureV0ManifestFlagsJSONBodyType `json:"type"`
}

PostOpenfeatureV0ManifestFlagsJSONBody defines parameters for PostOpenfeatureV0ManifestFlags.

type PostOpenfeatureV0ManifestFlagsJSONBodyType

type PostOpenfeatureV0ManifestFlagsJSONBodyType string

PostOpenfeatureV0ManifestFlagsJSONBodyType defines parameters for PostOpenfeatureV0ManifestFlags.

const (
	PostOpenfeatureV0ManifestFlagsJSONBodyTypeBoolean PostOpenfeatureV0ManifestFlagsJSONBodyType = "boolean"
	PostOpenfeatureV0ManifestFlagsJSONBodyTypeInteger PostOpenfeatureV0ManifestFlagsJSONBodyType = "integer"
	PostOpenfeatureV0ManifestFlagsJSONBodyTypeObject  PostOpenfeatureV0ManifestFlagsJSONBodyType = "object"
	PostOpenfeatureV0ManifestFlagsJSONBodyTypeString  PostOpenfeatureV0ManifestFlagsJSONBodyType = "string"
)

Defines values for PostOpenfeatureV0ManifestFlagsJSONBodyType.

type PostOpenfeatureV0ManifestFlagsJSONRequestBody

type PostOpenfeatureV0ManifestFlagsJSONRequestBody PostOpenfeatureV0ManifestFlagsJSONBody

PostOpenfeatureV0ManifestFlagsJSONRequestBody defines body for PostOpenfeatureV0ManifestFlags for application/json ContentType.

type PostOpenfeatureV0ManifestFlagsResponse

type PostOpenfeatureV0ManifestFlagsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *ManifestFlagResponse
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON409      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParsePostOpenfeatureV0ManifestFlagsResponse

func ParsePostOpenfeatureV0ManifestFlagsResponse(rsp *http.Response) (*PostOpenfeatureV0ManifestFlagsResponse, error)

ParsePostOpenfeatureV0ManifestFlagsResponse parses an HTTP response from a PostOpenfeatureV0ManifestFlagsWithResponse call

func (PostOpenfeatureV0ManifestFlagsResponse) Status

Status returns HTTPResponse.Status

func (PostOpenfeatureV0ManifestFlagsResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type PutOpenfeatureV0ManifestFlagsKeyJSONBody

type PutOpenfeatureV0ManifestFlagsKeyJSONBody struct {
	// DefaultValue Default value for a flag (can be boolean, string, integer, or object)
	DefaultValue *FlagDefaultValue                            `json:"defaultValue,omitempty"`
	Description  *string                                      `json:"description"`
	Key          string                                       `json:"key"`
	Name         *string                                      `json:"name,omitempty"`
	Type         PutOpenfeatureV0ManifestFlagsKeyJSONBodyType `json:"type"`
}

PutOpenfeatureV0ManifestFlagsKeyJSONBody defines parameters for PutOpenfeatureV0ManifestFlagsKey.

type PutOpenfeatureV0ManifestFlagsKeyJSONBodyType

type PutOpenfeatureV0ManifestFlagsKeyJSONBodyType string

PutOpenfeatureV0ManifestFlagsKeyJSONBodyType defines parameters for PutOpenfeatureV0ManifestFlagsKey.

Defines values for PutOpenfeatureV0ManifestFlagsKeyJSONBodyType.

type PutOpenfeatureV0ManifestFlagsKeyJSONRequestBody

type PutOpenfeatureV0ManifestFlagsKeyJSONRequestBody PutOpenfeatureV0ManifestFlagsKeyJSONBody

PutOpenfeatureV0ManifestFlagsKeyJSONRequestBody defines body for PutOpenfeatureV0ManifestFlagsKey for application/json ContentType.

type PutOpenfeatureV0ManifestFlagsKeyResponse

type PutOpenfeatureV0ManifestFlagsKeyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ManifestFlagResponse
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParsePutOpenfeatureV0ManifestFlagsKeyResponse

func ParsePutOpenfeatureV0ManifestFlagsKeyResponse(rsp *http.Response) (*PutOpenfeatureV0ManifestFlagsKeyResponse, error)

ParsePutOpenfeatureV0ManifestFlagsKeyResponse parses an HTTP response from a PutOpenfeatureV0ManifestFlagsKeyWithResponse call

func (PutOpenfeatureV0ManifestFlagsKeyResponse) Status

Status returns HTTPResponse.Status

func (PutOpenfeatureV0ManifestFlagsKeyResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type RequestEditorFn

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

RequestEditorFn is the function signature for the RequestEditor callback function

Jump to

Keyboard shortcuts

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