Documentation
¶
Overview ¶
Package aiven provides a client for interacting with the Aiven API.
Package aiven provides a client for interacting with the Aiven API.
Package aiven provides a client for interacting with the Aiven API.
Package aiven provides a client for interacting with the Aiven API.
Index ¶
- func IsAlreadyExists(err error) bool
- func IsNotFound(err error) bool
- func Version() string
- type Client
- type Doer
- type Error
- type OperationIDKey
- type Option
- func DebugOpt(debug bool) Option
- func DoerOpt(doer Doer) Option
- func HostOpt(host string) Option
- func RetryMaxOpt(retryMax int) Option
- func RetryWaitMaxOpt(retryWaitMax time.Duration) Option
- func RetryWaitMinOpt(retryWaitMin time.Duration) Option
- func TokenOpt(token string) Option
- func UserAgentOpt(userAgent string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAlreadyExists ¶
IsAlreadyExists returns true if the error message and error code that indicates that entity already exists
func IsNotFound ¶
IsNotFound returns true if the specified error has status 404
Types ¶
type Client ¶
type Client interface {
account.Handler
accountauthentication.Handler
accountteam.Handler
accountteammember.Handler
alloydbomni.Handler
applicationuser.Handler
billinggroup.Handler
clickhouse.Handler
cloud.Handler
domain.Handler
flink.Handler
flinkapplication.Handler
flinkapplicationdeployment.Handler
flinkapplicationversion.Handler
flinkjarapplication.Handler
flinkjarapplicationdeployment.Handler
flinkjarapplicationversion.Handler
flinkjob.Handler
kafka.Handler
kafkaconnect.Handler
kafkamirrormaker.Handler
kafkaschemaregistry.Handler
kafkatopic.Handler
mysql.Handler
opensearch.Handler
organization.Handler
organizationgovernance.Handler
organizationprojects.Handler
organizationuser.Handler
organizationvpc.Handler
postgresql.Handler
privatelink.Handler
project.Handler
projectbilling.Handler
service.Handler
staticip.Handler
thanos.Handler
user.Handler
usergroup.Handler
vpc.Handler
}
type Error ¶
type Error struct {
// Aiven error response fields https://api.aiven.io/doc/#section/Responses/Failed-responses
Message string `json:"message"`
Errors any `json:"errors"`
// Internal fields
OperationID string `json:"-"`
Status int `json:"-"`
}
Error represents an Aiven API Error.
type OperationIDKey ¶
type OperationIDKey struct{}
OperationIDKey is the key used to store the operation ID in the context.
type Option ¶
type Option func(*aivenClient)
Option is a function that configures the client.
func DebugOpt ¶
DebugOpt whether should the client run in debug mode. For instance, to output debug information
func RetryMaxOpt ¶ added in v0.56.0
RetryMaxOpt sets the maximum number of retries
func RetryWaitMaxOpt ¶ added in v0.56.0
RetryWaitMaxOpt sets the maximum wait time between retries
func RetryWaitMinOpt ¶ added in v0.56.0
RetryWaitMinOpt sets the minimum wait time between retries