Versions in this module Expand all Collapse all v1 v1.0.0 Feb 29, 2024 Changes in this version + const UserAgent + var NewAndAuth = https.NewAndAuth + var NewAuth = https.NewAuth + var NewHttpConfiguration = https.NewHttpConfiguration + var NewOrAuth = https.NewOrAuth + var NewRetryConfiguration = https.NewRetryConfiguration + var WithBackoffFactor = https.WithBackoffFactor + var WithHttpMethodsToRetry = https.WithHttpMethodsToRetry + var WithHttpStatusCodesToRetry = https.WithHttpStatusCodesToRetry + var WithMaxRetryAttempts = https.WithMaxRetryAttempts + var WithMaximumRetryWaitTime = https.WithMaximumRetryWaitTime + var WithRetryConfiguration = https.WithRetryConfiguration + var WithRetryInterval = https.WithRetryInterval + var WithRetryOnTimeout = https.WithRetryOnTimeout + var WithTimeout = https.WithTimeout + var WithTransport = https.WithTransport + func NewBaseController(cb callBuilderFactory) *baseController + type ApiKeyCredentials struct + func NewApiKeyCredentials(apiKey string) ApiKeyCredentials + func (a ApiKeyCredentials) ApiKey() string + func (a ApiKeyCredentials) Authenticator() https.HttpInterceptor + func (a ApiKeyCredentials) Validate() error + func (a ApiKeyCredentials) WithApiKey(apiKey string) ApiKeyCredentials + type ClientInterface interface + CloneWithConfiguration func(options ...ConfigurationOptions) ClientInterface + Configuration func() Configuration + PetController func() *PetController + PetstoreAuthManager func() *PetstoreAuthManager + StoreController func() *StoreController + UserController func() *UserController + func NewClient(configuration Configuration) ClientInterface + type Configuration struct + func CreateConfiguration(options ...ConfigurationOptions) Configuration + func CreateConfigurationFromEnvironment(options ...ConfigurationOptions) Configuration + func DefaultConfiguration() Configuration + func (c Configuration) ApiKeyCredentials() ApiKeyCredentials + func (c Configuration) Environment() Environment + func (c Configuration) HttpConfiguration() HttpConfiguration + func (c Configuration) PetstoreAuthCredentials() PetstoreAuthCredentials + type ConfigurationOptions func(*Configuration) + func WithApiKeyCredentials(apiKeyCredentials ApiKeyCredentials) ConfigurationOptions + func WithEnvironment(environment Environment) ConfigurationOptions + func WithHttpConfiguration(httpConfiguration HttpConfiguration) ConfigurationOptions + func WithPetstoreAuthCredentials(petstoreAuthCredentials PetstoreAuthCredentials) ConfigurationOptions + type Environment string + const PRODUCTION + type HttpConfiguration = https.HttpConfiguration + func CreateHttpConfiguration(options ...HttpConfigurationOptions) HttpConfiguration + func DefaultHttpConfiguration() HttpConfiguration + type HttpConfigurationOptions = https.HttpConfigurationOptions + type PetController struct + func NewPetController(baseController baseController) *PetController + func (p *PetController) AddPet(ctx context.Context, body *models.Pet) (*http.Response, error) + func (p *PetController) DeletePet(ctx context.Context, petId int64, apiKey *string) (*http.Response, error) + func (p *PetController) FindPetsByStatus(ctx context.Context, status []models.Status2Enum) (models.ApiResponse[[]models.Pet], error) + func (p *PetController) FindPetsByTags(ctx context.Context, tags []string) (models.ApiResponse[[]models.Pet], error) + func (p *PetController) GetPetById(ctx context.Context, petId int64) (models.ApiResponse[models.Pet], error) + func (p *PetController) UpdatePet(ctx context.Context, body *models.Pet) (*http.Response, error) + func (p *PetController) UpdatePetWithForm(ctx context.Context, petId int64, name *string, status *string) (*http.Response, error) + func (p *PetController) UploadFile(ctx context.Context, petId int64, additionalMetadata *string, ...) (models.ApiResponse[models.MApiResponse], error) + type PetstoreAuthCredentials struct + func NewPetstoreAuthCredentials(oAuthClientId string, oAuthRedirectUri string) PetstoreAuthCredentials + func (p PetstoreAuthCredentials) Authenticator() https.HttpInterceptor + func (p PetstoreAuthCredentials) OAuthClientId() string + func (p PetstoreAuthCredentials) OAuthRedirectUri() string + func (p PetstoreAuthCredentials) OAuthScopes() []models.OAuthScopePetstoreAuthEnum + func (p PetstoreAuthCredentials) OAuthToken() models.OAuthToken + func (p PetstoreAuthCredentials) Validate() error + func (p PetstoreAuthCredentials) WithOAuthClientId(oAuthClientId string) PetstoreAuthCredentials + func (p PetstoreAuthCredentials) WithOAuthRedirectUri(oAuthRedirectUri string) PetstoreAuthCredentials + func (p PetstoreAuthCredentials) WithOAuthScopes(oAuthScopes []models.OAuthScopePetstoreAuthEnum) PetstoreAuthCredentials + func (p PetstoreAuthCredentials) WithOAuthToken(oAuthToken models.OAuthToken) PetstoreAuthCredentials + type PetstoreAuthManager struct + func (p *PetstoreAuthManager) BuildAuthorizationUrl(state *string) string + func (p *PetstoreAuthManager) OAuthTokenIsExpired() bool + type RetryConfiguration = https.RetryConfiguration + func CreateRetryConfiguration(options ...RetryConfigurationOptions) RetryConfiguration + func DefaultRetryConfiguration() RetryConfiguration + type RetryConfigurationOptions = https.RetryConfigurationOptions + type Server string + const AUTHSERVER + const SERVER1 + const SERVER2 + type StoreController struct + func NewStoreController(baseController baseController) *StoreController + func (s *StoreController) DeleteOrder(ctx context.Context, orderId int64) (*http.Response, error) + func (s *StoreController) GetInventory(ctx context.Context) (models.ApiResponse[map[string]int], error) + func (s *StoreController) GetOrderById(ctx context.Context, orderId int64) (models.ApiResponse[models.Order], error) + func (s *StoreController) PlaceOrder(ctx context.Context, body *models.Order) (models.ApiResponse[models.Order], error) + type UserController struct + func NewUserController(baseController baseController) *UserController + func (u *UserController) CreateUser(ctx context.Context, body *models.User) (*http.Response, error) + func (u *UserController) CreateUsersWithArrayInput(ctx context.Context, body []models.User) (*http.Response, error) + func (u *UserController) CreateUsersWithListInput(ctx context.Context, body []models.User) (*http.Response, error) + func (u *UserController) DeleteUser(ctx context.Context, username string) (*http.Response, error) + func (u *UserController) GetUserByName(ctx context.Context, username string) (models.ApiResponse[models.User], error) + func (u *UserController) LoginUser(ctx context.Context, username string, password string) (models.ApiResponse[string], error) + func (u *UserController) LogoutUser(ctx context.Context) (*http.Response, error) + func (u *UserController) UpdateUser(ctx context.Context, username string, body *models.User) (*http.Response, error)