apiv2

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Overview

Code generated by ogen, DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithServerURL

func WithServerURL(ctx context.Context, u *url.URL) context.Context

WithServerURL sets context key to override server URL.

Types

type Client

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

Client implements OAS client.

func NewClient

func NewClient(serverURL string, opts ...ClientOption) (*Client, error)

NewClient initializes new Client defined by OAS.

func (*Client) GetConfiguration

func (c *Client) GetConfiguration(ctx context.Context, params GetConfigurationParams) (GetConfigurationRes, error)

GetConfiguration invokes getConfiguration operation.

GET /applications/{Application}/environments/{Environment}/configurations/{Configuration}

type ClientOption

type ClientOption interface {
	// contains filtered or unexported methods
}

ClientOption is client config option.

func WithClient

func WithClient(client ht.Client) ClientOption

WithClient specifies http client to use.

type Error

type Error map[string]jx.Raw

Ref: #/components/schemas/Error

func (*Error) Decode

func (s *Error) Decode(d *jx.Decoder) error

Decode decodes Error from json.

func (Error) Encode

func (s Error) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (Error) MarshalJSON

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

MarshalJSON implements stdjson.Marshaler.

func (*Error) UnmarshalJSON

func (s *Error) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetConfigurationBadGateway

type GetConfigurationBadGateway struct {
	Data io.Reader
}

func (GetConfigurationBadGateway) Read

func (s GetConfigurationBadGateway) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetConfigurationBadGatewayHeaders

type GetConfigurationBadGatewayHeaders struct {
	ContentType string
	Response    GetConfigurationBadGateway
}

GetConfigurationBadGatewayHeaders wraps GetConfigurationBadGateway with response headers.

func (*GetConfigurationBadGatewayHeaders) GetContentType

func (s *GetConfigurationBadGatewayHeaders) GetContentType() string

GetContentType returns the value of ContentType.

func (*GetConfigurationBadGatewayHeaders) GetResponse

GetResponse returns the value of Response.

func (*GetConfigurationBadGatewayHeaders) SetContentType

func (s *GetConfigurationBadGatewayHeaders) SetContentType(val string)

SetContentType sets the value of ContentType.

func (*GetConfigurationBadGatewayHeaders) SetResponse

SetResponse sets the value of Response.

type GetConfigurationBadRequest

type GetConfigurationBadRequest Error

func (*GetConfigurationBadRequest) Decode

Decode decodes GetConfigurationBadRequest from json.

func (GetConfigurationBadRequest) Encode

func (s GetConfigurationBadRequest) Encode(e *jx.Encoder)

Encode encodes GetConfigurationBadRequest as json.

func (GetConfigurationBadRequest) MarshalJSON

func (s GetConfigurationBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetConfigurationBadRequest) UnmarshalJSON

func (s *GetConfigurationBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetConfigurationGatewayTimeout

type GetConfigurationGatewayTimeout struct {
	Data io.Reader
}

func (GetConfigurationGatewayTimeout) Read

func (s GetConfigurationGatewayTimeout) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetConfigurationGatewayTimeoutHeaders

type GetConfigurationGatewayTimeoutHeaders struct {
	ContentType string
	Response    GetConfigurationGatewayTimeout
}

GetConfigurationGatewayTimeoutHeaders wraps GetConfigurationGatewayTimeout with response headers.

func (*GetConfigurationGatewayTimeoutHeaders) GetContentType

func (s *GetConfigurationGatewayTimeoutHeaders) GetContentType() string

GetContentType returns the value of ContentType.

func (*GetConfigurationGatewayTimeoutHeaders) GetResponse

GetResponse returns the value of Response.

func (*GetConfigurationGatewayTimeoutHeaders) SetContentType

func (s *GetConfigurationGatewayTimeoutHeaders) SetContentType(val string)

SetContentType sets the value of ContentType.

func (*GetConfigurationGatewayTimeoutHeaders) SetResponse

SetResponse sets the value of Response.

type GetConfigurationInternalServerError

type GetConfigurationInternalServerError struct {
	Data io.Reader
}

func (GetConfigurationInternalServerError) Read

func (s GetConfigurationInternalServerError) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetConfigurationInternalServerErrorHeaders

type GetConfigurationInternalServerErrorHeaders struct {
	ContentType string
	Response    GetConfigurationInternalServerError
}

GetConfigurationInternalServerErrorHeaders wraps GetConfigurationInternalServerError with response headers.

func (*GetConfigurationInternalServerErrorHeaders) GetContentType

GetContentType returns the value of ContentType.

func (*GetConfigurationInternalServerErrorHeaders) GetResponse

GetResponse returns the value of Response.

func (*GetConfigurationInternalServerErrorHeaders) SetContentType

func (s *GetConfigurationInternalServerErrorHeaders) SetContentType(val string)

SetContentType sets the value of ContentType.

func (*GetConfigurationInternalServerErrorHeaders) SetResponse

SetResponse sets the value of Response.

type GetConfigurationNotFound

type GetConfigurationNotFound Error

func (*GetConfigurationNotFound) Decode

func (s *GetConfigurationNotFound) Decode(d *jx.Decoder) error

Decode decodes GetConfigurationNotFound from json.

func (GetConfigurationNotFound) Encode

func (s GetConfigurationNotFound) Encode(e *jx.Encoder)

Encode encodes GetConfigurationNotFound as json.

func (GetConfigurationNotFound) MarshalJSON

func (s GetConfigurationNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetConfigurationNotFound) UnmarshalJSON

func (s *GetConfigurationNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetConfigurationOK

type GetConfigurationOK struct {
	Data io.Reader
}

func (GetConfigurationOK) Read

func (s GetConfigurationOK) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetConfigurationOKHeaders

type GetConfigurationOKHeaders struct {
	ConfigurationVersion OptString
	ContentType          string
	Response             GetConfigurationOK
}

GetConfigurationOKHeaders wraps GetConfigurationOK with response headers.

func (*GetConfigurationOKHeaders) GetConfigurationVersion

func (s *GetConfigurationOKHeaders) GetConfigurationVersion() OptString

GetConfigurationVersion returns the value of ConfigurationVersion.

func (*GetConfigurationOKHeaders) GetContentType

func (s *GetConfigurationOKHeaders) GetContentType() string

GetContentType returns the value of ContentType.

func (*GetConfigurationOKHeaders) GetResponse

GetResponse returns the value of Response.

func (*GetConfigurationOKHeaders) SetConfigurationVersion

func (s *GetConfigurationOKHeaders) SetConfigurationVersion(val OptString)

SetConfigurationVersion sets the value of ConfigurationVersion.

func (*GetConfigurationOKHeaders) SetContentType

func (s *GetConfigurationOKHeaders) SetContentType(val string)

SetContentType sets the value of ContentType.

func (*GetConfigurationOKHeaders) SetResponse

func (s *GetConfigurationOKHeaders) SetResponse(val GetConfigurationOK)

SetResponse sets the value of Response.

type GetConfigurationParams

type GetConfigurationParams struct {
	// The application for the configuration to get. Specify either the application name or the
	// application ID.
	Application string
	// The environment for the configuration to get. Specify either the environment name or the
	// environment ID.
	Environment string
	// The configuration to get. Specify either the configuration name or the configuration ID.
	Configuration string
	// The flag names of feature flag configuration.
	Flag []string
	// The evaluation context for feature flag configuration.
	Context []string
}

GetConfigurationParams is parameters of getConfiguration operation.

type GetConfigurationRes

type GetConfigurationRes interface {
	// contains filtered or unexported methods
}

type Invoker

type Invoker interface {
	// GetConfiguration invokes getConfiguration operation.
	//
	// GET /applications/{Application}/environments/{Environment}/configurations/{Configuration}
	GetConfiguration(ctx context.Context, params GetConfigurationParams) (GetConfigurationRes, error)
}

Invoker invokes operations described by OpenAPI v3 specification.

type OperationName

type OperationName = string

OperationName is the ogen operation name

const (
	GetConfigurationOperation OperationName = "GetConfiguration"
)

type OptString

type OptString struct {
	Value string
	Set   bool
}

OptString is optional string.

func NewOptString

func NewOptString(v string) OptString

NewOptString returns new OptString with value set to v.

func (OptString) Get

func (o OptString) Get() (v string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptString) IsSet

func (o OptString) IsSet() bool

IsSet returns true if OptString was set.

func (OptString) Or

func (o OptString) Or(d string) string

Or returns value if set, or given parameter if does not.

func (*OptString) Reset

func (o *OptString) Reset()

Reset unsets value.

func (*OptString) SetTo

func (o *OptString) SetTo(v string)

SetTo sets value to v.

type Option

type Option interface {
	ClientOption
}

Option is config option.

func WithMeterProvider

func WithMeterProvider(provider metric.MeterProvider) Option

WithMeterProvider specifies a meter provider to use for creating a meter.

If none is specified, the otel.GetMeterProvider() is used.

func WithTracerProvider

func WithTracerProvider(provider trace.TracerProvider) Option

WithTracerProvider specifies a tracer provider to use for creating a tracer.

If none is specified, the global provider is used.

Jump to

Keyboard shortcuts

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