Documentation
¶
Index ¶
Constants ¶
const ( // DefaultHost is the default Host // found in Meta (info) section of spec file DefaultHost string = "https://api.aiozai.network" // DefaultBasePath is the default BasePath // found in Meta (info) section of spec file DefaultBasePath string = "/api/v1/" )
Variables ¶
var Default = NewHTTPClient(nil)
Default aiozai platform HTTP client.
var DefaultSchemes = []string{"https"}
DefaultSchemes are the default schemes found in Meta (info) section of spec file
Functions ¶
This section is empty.
Types ¶
type AiozaiPlatform ¶
type AiozaiPlatform struct {
APIKey api_key.ClientService
APIKeyCollection api_key_collection.ClientService
APIKeyComments api_key_comments.ClientService
APIKeyCompetition api_key_competition.ClientService
APIKeyCompetitionLeaderboard api_key_competition_leaderboard.ClientService
APIKeyDataset api_key_dataset.ClientService
APIKeyDependency api_key_dependency.ClientService
APIKeyDiscussion api_key_discussion.ClientService
APIKeyModel api_key_model.ClientService
APIKeyModelAPIKey api_key_model_api_key.ClientService
APIKeyModelPackage api_key_model_package.ClientService
APIKeyModelPlayground api_key_model_playground.ClientService
APIKeyModelReviews api_key_model_reviews.ClientService
APIKeyModelSetting api_key_model_setting.ClientService
APIKeyModelTraining api_key_model_training.ClientService
APIKeyModelVerify api_key_model_verify.ClientService
APIKeyModelVersioning api_key_model_versioning.ClientService
APIKeyNotification api_key_notification.ClientService
APIKeyOffer api_key_offer.ClientService
APIKeyOrganization api_key_organization.ClientService
APIKeyOrganizationWallet api_key_organization_wallet.ClientService
APIKeyPackage api_key_package.ClientService
APIKeyPlatformTask api_key_platform_task.ClientService
APIKeyReaction api_key_reaction.ClientService
APIKeyRepository api_key_repository.ClientService
APIKeySearch api_key_search.ClientService
APIKeyStorage api_key_storage.ClientService
APIKeyTrainingTask api_key_training_task.ClientService
APIKeyUser api_key_user.ClientService
APIKeyUserPublicKey api_key_user_public_key.ClientService
APIKeyUserVoucher api_key_user_voucher.ClientService
APIKeyUserWallet api_key_user_wallet.ClientService
Public public.ClientService
PublicCollection public_collection.ClientService
PublicCompetition public_competition.ClientService
PublicDataset public_dataset.ClientService
PublicDiscussion public_discussion.ClientService
PublicMedals public_medals.ClientService
PublicModel public_model.ClientService
PublicOrganization public_organization.ClientService
Transport runtime.ClientTransport
}
AiozaiPlatform is a client for aiozai platform
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *AiozaiPlatform
New creates a new aiozai platform client
func NewHTTPClient ¶
func NewHTTPClient(formats strfmt.Registry) *AiozaiPlatform
NewHTTPClient creates a new aiozai platform HTTP client.
func NewHTTPClientWithConfig ¶
func NewHTTPClientWithConfig(formats strfmt.Registry, cfg *TransportConfig) *AiozaiPlatform
NewHTTPClientWithConfig creates a new aiozai platform HTTP client, using a customizable transport config.
func (*AiozaiPlatform) SetTransport ¶
func (c *AiozaiPlatform) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client and all its subresources
type TransportConfig ¶
TransportConfig contains the transport related info, found in the meta section of the spec file.
func DefaultTransportConfig ¶
func DefaultTransportConfig() *TransportConfig
DefaultTransportConfig creates a TransportConfig with the default settings taken from the meta section of the spec file.
func (*TransportConfig) WithBasePath ¶
func (cfg *TransportConfig) WithBasePath(basePath string) *TransportConfig
WithBasePath overrides the default basePath, provided by the meta section of the spec file.
func (*TransportConfig) WithHost ¶
func (cfg *TransportConfig) WithHost(host string) *TransportConfig
WithHost overrides the default host, provided by the meta section of the spec file.
func (*TransportConfig) WithSchemes ¶
func (cfg *TransportConfig) WithSchemes(schemes []string) *TransportConfig
WithSchemes overrides the default schemes, provided by the meta section of the spec file.